diff --git a/README.md b/README.md
index d0f50190..4ef59706 100644
--- a/README.md
+++ b/README.md
@@ -13,9 +13,9 @@
-
-
-
+
+
+
diff --git a/package.json b/package.json
index f1195999..a13e710a 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "dante-cloud-ui",
"private": true,
- "version": "3.3.4.2",
+ "version": "3.3.4.3",
"type": "module",
"scripts": {
"preinstall": "npx only-allow pnpm",
@@ -40,10 +40,10 @@
"@changesets/cli": "^2.27.9",
"@quasar/vite-plugin": "^1.7.0",
"@types/lodash-es": "^4.17.12",
- "@types/node": "^22.7.5",
+ "@types/node": "^22.7.6",
"@types/qs": "^6.9.16",
- "@typescript-eslint/eslint-plugin": "^8.8.1",
- "@typescript-eslint/parser": "^8.8.1",
+ "@typescript-eslint/eslint-plugin": "^8.10.0",
+ "@typescript-eslint/parser": "^8.10.0",
"@vitejs/plugin-vue": "^5.1.4",
"commitizen": "^4.3.1",
"cross-env": "^7.0.3",
@@ -62,18 +62,18 @@
"prettier": "^3.3.3",
"rollup": "4.24.0",
"rollup-plugin-visualizer": "^5.12.0",
- "sass": "^1.79.5",
+ "sass": "^1.80.2",
"stylelint": "^16.10.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-recess-order": "^5.1.1",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard-scss": "^13.1.0",
- "terser": "^5.34.1",
+ "terser": "^5.36.0",
"typescript": "^5.6.3",
"unplugin-auto-import": "^0.18.3",
"unplugin-icons": "^0.19.3",
"unplugin-vue-components": "^0.27.4",
- "vite": "^5.4.8",
+ "vite": "^5.4.9",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-dts": "4.2.4",
"vite-plugin-html": "^3.2.2",
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 01358bdd..a00c1f28 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,6 +1,6 @@
{
"name": "@dante/ui",
- "version": "3.3.4.2",
+ "version": "3.3.4.3",
"description": "",
"keywords": [],
"author": "",
@@ -41,7 +41,7 @@
"xlsx": "^0.18.5"
},
"devDependencies": {
- "@types/node": "22.7.5",
+ "@types/node": "22.7.6",
"@types/vkbeautify": "^0.99.4"
}
}
diff --git a/packages/ui/src/static/styles/bpmn-designer.scss b/packages/ui/src/static/styles/bpmn-designer.scss
index 0215e4a3..ef8bffff 100644
--- a/packages/ui/src/static/styles/bpmn-designer.scss
+++ b/packages/ui/src/static/styles/bpmn-designer.scss
@@ -1,10 +1,10 @@
-@import 'bpmn-js/dist/assets/diagram-js.css';
-@import 'bpmn-js/dist/assets/bpmn-js.css';
-@import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
-@import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css';
-@import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css';
-@import 'bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css';
-@import '@bpmn-io/properties-panel/assets/properties-panel.css';
+@use 'bpmn-js/dist/assets/diagram-js.css';
+@use 'bpmn-js/dist/assets/bpmn-js.css';
+@use 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
+@use 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css';
+@use 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css';
+@use 'bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css';
+@use '@bpmn-io/properties-panel/assets/properties-panel.css';
// 去掉bpmn-js图标
.bjs-powered-by {
diff --git a/packages/ui/src/static/styles/index.scss b/packages/ui/src/static/styles/index.scss
index 1b7af762..df593415 100644
--- a/packages/ui/src/static/styles/index.scss
+++ b/packages/ui/src/static/styles/index.scss
@@ -1 +1 @@
-@import "./bpmn-designer.scss";
\ No newline at end of file
+@use './bpmn-designer.scss';
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a9e2e0ca..0d4af3b5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -38,34 +38,34 @@ importers:
version: 2.27.9
'@quasar/vite-plugin':
specifier: ^1.7.0
- version: 1.7.0(@vitejs/plugin-vue@5.1.4(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))(vue@3.5.12(typescript@5.6.3)))(quasar@2.17.0)(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))(vue@3.5.12(typescript@5.6.3))
+ version: 1.7.0(@vitejs/plugin-vue@5.1.4(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0))(vue@3.5.12(typescript@5.6.3)))(quasar@2.17.0)(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0))(vue@3.5.12(typescript@5.6.3))
'@types/lodash-es':
specifier: ^4.17.12
version: 4.17.12
'@types/node':
- specifier: ^22.7.5
- version: 22.7.5
+ specifier: ^22.7.6
+ version: 22.7.6
'@types/qs':
specifier: ^6.9.16
version: 6.9.16
'@typescript-eslint/eslint-plugin':
- specifier: ^8.8.1
- version: 8.8.1(@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3))(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
+ specifier: ^8.10.0
+ version: 8.10.0(@typescript-eslint/parser@8.10.0(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3))(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
'@typescript-eslint/parser':
- specifier: ^8.8.1
- version: 8.8.1(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
+ specifier: ^8.10.0
+ version: 8.10.0(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
'@vitejs/plugin-vue':
specifier: ^5.1.4
- version: 5.1.4(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))(vue@3.5.12(typescript@5.6.3))
+ version: 5.1.4(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0))(vue@3.5.12(typescript@5.6.3))
commitizen:
specifier: ^4.3.1
- version: 4.3.1(@types/node@22.7.5)(typescript@5.6.3)
+ version: 4.3.1(@types/node@22.7.6)(typescript@5.6.3)
cross-env:
specifier: ^7.0.3
version: 7.0.3
cz-conventional-changelog:
specifier: ^3.3.0
- version: 3.3.0(@types/node@22.7.5)(typescript@5.6.3)
+ version: 3.3.0(@types/node@22.7.6)(typescript@5.6.3)
dotenv:
specifier: ^16.4.5
version: 16.4.5
@@ -109,8 +109,8 @@ importers:
specifier: ^5.12.0
version: 5.12.0(rollup@4.24.0)
sass:
- specifier: ^1.79.5
- version: 1.79.5
+ specifier: ^1.80.2
+ version: 1.80.2
stylelint:
specifier: ^16.10.0
version: 16.10.0(typescript@5.6.3)
@@ -127,8 +127,8 @@ importers:
specifier: ^13.1.0
version: 13.1.0(postcss@8.4.47)(stylelint@16.10.0(typescript@5.6.3))
terser:
- specifier: ^5.34.1
- version: 5.34.1
+ specifier: ^5.36.0
+ version: 5.36.0
typescript:
specifier: ^5.6.3
version: 5.6.3
@@ -142,17 +142,17 @@ importers:
specifier: ^0.27.4
version: 0.27.4(@babel/parser@7.25.8)(@nuxt/kit@3.13.2(rollup@4.24.0)(webpack-sources@3.2.3))(rollup@4.24.0)(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3)
vite:
- specifier: ^5.4.8
- version: 5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1)
+ specifier: ^5.4.9
+ version: 5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0)
vite-plugin-compression:
specifier: ^0.5.1
- version: 0.5.1(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))
+ version: 0.5.1(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0))
vite-plugin-dts:
specifier: 4.2.4
- version: 4.2.4(@types/node@22.7.5)(rollup@4.24.0)(typescript@5.6.3)(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))
+ version: 4.2.4(@types/node@22.7.6)(rollup@4.24.0)(typescript@5.6.3)(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0))
vite-plugin-html:
specifier: ^3.2.2
- version: 3.2.2(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))
+ version: 3.2.2(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0))
vue-tsc:
specifier: ^2.1.6
version: 2.1.6(typescript@5.6.3)
@@ -239,8 +239,8 @@ importers:
version: 0.18.5
devDependencies:
'@types/node':
- specifier: 22.7.5
- version: 22.7.5
+ specifier: 22.7.6
+ version: 22.7.6
'@types/vkbeautify':
specifier: ^0.99.4
version: 0.99.4
@@ -261,7 +261,7 @@ importers:
dependencies:
'@bpmn-io/properties-panel':
specifier: 3.24.1
- version: 3.24.1(@lezer/common@1.2.2)
+ version: 3.24.1(@lezer/common@1.2.3)
'@herodotus/bpmn-apis':
specifier: workspace:^
version: link:../bpmn-apis
@@ -276,7 +276,7 @@ importers:
version: 17.11.1
bpmn-js-properties-panel:
specifier: ^5.25.0
- version: 5.25.0(@bpmn-io/properties-panel@3.24.1(@lezer/common@1.2.2))(bpmn-js@17.11.1)(camunda-bpmn-js-behaviors@1.6.1(bpmn-js@17.11.1)(camunda-bpmn-moddle@7.0.1)(zeebe-bpmn-moddle@1.6.0))(diagram-js@14.11.3)
+ version: 5.25.0(@bpmn-io/properties-panel@3.24.1(@lezer/common@1.2.3))(bpmn-js@17.11.1)(camunda-bpmn-js-behaviors@1.6.1(bpmn-js@17.11.1)(camunda-bpmn-moddle@7.0.1)(zeebe-bpmn-moddle@1.6.0))(diagram-js@14.11.3)
bpmn-js-token-simulation:
specifier: ^0.35.1
version: 0.35.1
@@ -290,8 +290,8 @@ importers:
specifier: ^14.11.3
version: 14.11.3
preact:
- specifier: ^10.24.2
- version: 10.24.2
+ specifier: ^10.24.3
+ version: 10.24.3
zeebe-bpmn-moddle:
specifier: ^1.6.0
version: 1.6.0
@@ -345,8 +345,8 @@ importers:
specifier: ^0.3.13
version: 0.3.13
sweetalert2:
- specifier: ^11.14.2
- version: 11.14.2
+ specifier: ^11.14.3
+ version: 11.14.3
devDependencies:
'@types/crypto-js':
specifier: ^4.2.2
@@ -828,8 +828,8 @@ packages:
'@jridgewell/trace-mapping@0.3.25':
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
- '@lezer/common@1.2.2':
- resolution: {integrity: sha512-Z+R3hN6kXbgBWAuejUNPihylAL1Z5CaFqnIe0nTX8Ej+XlIy3EGtXxn6WtLMO+os2hRkQvm2yvaGMYliUzlJaw==}
+ '@lezer/common@1.2.3':
+ resolution: {integrity: sha512-w7ojc8ejBqr2REPsWxJjrMFsA/ysDCFICn8zEOR9mrqzOu2amhITYuLD8ag6XZf0CFXDrhKqw7+tW8cX66NaDA==}
'@lezer/highlight@1.2.1':
resolution: {integrity: sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==}
@@ -1167,8 +1167,8 @@ packages:
'@types/node@13.13.52':
resolution: {integrity: sha512-s3nugnZumCC//n4moGGe6tkNMyYEdaDBitVjwPxXmR5lnMG5dHePinH2EdxkG3Rh1ghFHHixAG4NJhpJW1rthQ==}
- '@types/node@22.7.5':
- resolution: {integrity: sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==}
+ '@types/node@22.7.6':
+ resolution: {integrity: sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw==}
'@types/qs@6.9.16':
resolution: {integrity: sha512-7i+zxXdPD0T4cKDuxCUXJ4wHcsJLwENa6Z3dCu8cfCK743OGy5Nu1RmAGqDPsoTDINVEcdXKRvR/zre+P2Ku1A==}
@@ -1179,8 +1179,8 @@ packages:
'@types/web-bluetooth@0.0.20':
resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==}
- '@typescript-eslint/eslint-plugin@8.8.1':
- resolution: {integrity: sha512-xfvdgA8AP/vxHgtgU310+WBnLB4uJQ9XdyP17RebG26rLtDrQJV3ZYrcopX91GrHmMoH8bdSwMRh2a//TiJ1jQ==}
+ '@typescript-eslint/eslint-plugin@8.10.0':
+ resolution: {integrity: sha512-phuB3hoP7FFKbRXxjl+DRlQDuJqhpOnm5MmtROXyWi3uS/Xg2ZXqiQfcG2BJHiN4QKyzdOJi3NEn/qTnjUlkmQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
'@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0
@@ -1190,8 +1190,8 @@ packages:
typescript:
optional: true
- '@typescript-eslint/parser@8.8.1':
- resolution: {integrity: sha512-hQUVn2Lij2NAxVFEdvIGxT9gP1tq2yM83m+by3whWFsWC+1y8pxxxHUFE1UqDu2VsGi2i6RLcv4QvouM84U+ow==}
+ '@typescript-eslint/parser@8.10.0':
+ resolution: {integrity: sha512-E24l90SxuJhytWJ0pTQydFT46Nk0Z+bsLKo/L8rtQSL93rQ6byd1V/QbDpHUTdLPOMsBCcYXZweADNCfOCmOAg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
@@ -1200,12 +1200,12 @@ packages:
typescript:
optional: true
- '@typescript-eslint/scope-manager@8.8.1':
- resolution: {integrity: sha512-X4JdU+66Mazev/J0gfXlcC/dV6JI37h+93W9BRYXrSn0hrE64IoWgVkO9MSJgEzoWkxONgaQpICWg8vAN74wlA==}
+ '@typescript-eslint/scope-manager@8.10.0':
+ resolution: {integrity: sha512-AgCaEjhfql9MDKjMUxWvH7HjLeBqMCBfIaBbzzIcBbQPZE7CPh1m6FF+L75NUMJFMLYhCywJXIDEMa3//1A0dw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@typescript-eslint/type-utils@8.8.1':
- resolution: {integrity: sha512-qSVnpcbLP8CALORf0za+vjLYj1Wp8HSoiI8zYU5tHxRVj30702Z1Yw4cLwfNKhTPWp5+P+k1pjmD5Zd1nhxiZA==}
+ '@typescript-eslint/type-utils@8.10.0':
+ resolution: {integrity: sha512-PCpUOpyQSpxBn230yIcK+LeCQaXuxrgCm2Zk1S+PTIRJsEfU6nJ0TtwyH8pIwPK/vJoA+7TZtzyAJSGBz+s/dg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '*'
@@ -1213,12 +1213,12 @@ packages:
typescript:
optional: true
- '@typescript-eslint/types@8.8.1':
- resolution: {integrity: sha512-WCcTP4SDXzMd23N27u66zTKMuEevH4uzU8C9jf0RO4E04yVHgQgW+r+TeVTNnO1KIfrL8ebgVVYYMMO3+jC55Q==}
+ '@typescript-eslint/types@8.10.0':
+ resolution: {integrity: sha512-k/E48uzsfJCRRbGLapdZgrX52csmWJ2rcowwPvOZ8lwPUv3xW6CcFeJAXgx4uJm+Ge4+a4tFOkdYvSpxhRhg1w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@typescript-eslint/typescript-estree@8.8.1':
- resolution: {integrity: sha512-A5d1R9p+X+1js4JogdNilDuuq+EHZdsH9MjTVxXOdVFfTJXunKJR/v+fNNyO4TnoOn5HqobzfRlc70NC6HTcdg==}
+ '@typescript-eslint/typescript-estree@8.10.0':
+ resolution: {integrity: sha512-3OE0nlcOHaMvQ8Xu5gAfME3/tWVDpb/HxtpUZ1WeOAksZ/h/gwrBzCklaGzwZT97/lBbbxJ16dMA98JMEngW4w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '*'
@@ -1226,14 +1226,14 @@ packages:
typescript:
optional: true
- '@typescript-eslint/utils@8.8.1':
- resolution: {integrity: sha512-/QkNJDbV0bdL7H7d0/y0qBbV2HTtf0TIyjSDTvvmQEzeVx8jEImEbLuOA4EsvE8gIgqMitns0ifb5uQhMj8d9w==}
+ '@typescript-eslint/utils@8.10.0':
+ resolution: {integrity: sha512-Oq4uZ7JFr9d1ZunE/QKy5egcDRXT/FrS2z/nlxzPua2VHFtmMvFNDvpq1m/hq0ra+T52aUezfcjGRIB7vNJF9w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
- '@typescript-eslint/visitor-keys@8.8.1':
- resolution: {integrity: sha512-0/TdC3aeRAsW7MDvYRwEc1Uwm0TIBfzjPFgg60UU2Haj5qsCs9cc3zNgY71edqE3LbWfF/WoZQd3lJoDXFQpag==}
+ '@typescript-eslint/visitor-keys@8.10.0':
+ resolution: {integrity: sha512-k8nekgqwr7FadWk548Lfph6V3r9OVqjzAIVskE7orMZR23cGJjAOVazsZSJW+ElyjfTM4wx/1g88Mi70DDtG9A==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@vitejs/plugin-vue@5.1.4':
@@ -1383,8 +1383,8 @@ packages:
peerDependencies:
acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
- acorn@8.12.1:
- resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==}
+ acorn@8.13.0:
+ resolution: {integrity: sha512-8zSiw54Oxrdym50NlZ9sUusyO1Z1ZchgRLWRaK6c86XJFClyCgFKetdowBg5bKxyp/u+CDBJG4Mpp0m3HLZl9w==}
engines: {node: '>=0.4.0'}
hasBin: true
@@ -1593,8 +1593,8 @@ packages:
camunda-bpmn-moddle@7.0.1:
resolution: {integrity: sha512-Br8Diu6roMpziHdpl66Dhnm0DTnCFMrSD9zwLV08LpD52QA0UsXxU87XfHf08HjuB7ly0Hd1bvajZRpf9hbmYQ==}
- caniuse-lite@1.0.30001668:
- resolution: {integrity: sha512-nWLrdxqCdblixUO+27JtGJJE/txpJlyUy5YN1u53wLZkP0emYCo5zgS6QYft7VUYR42LGgi/S5hdLZTrnyIddw==}
+ caniuse-lite@1.0.30001669:
+ resolution: {integrity: sha512-DlWzFDJqstqtIVx1zeSpIMLjunf5SmwOw0N2Ck/QSQdS8PLS4+9HrLaYei4w8BIAL7IB/UEDu889d8vhCTPA0w==}
cfb@1.2.2:
resolution: {integrity: sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==}
@@ -1802,10 +1802,6 @@ packages:
css-select@4.3.0:
resolution: {integrity: sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==}
- css-tree@2.3.1:
- resolution: {integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==}
- engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
-
css-tree@3.0.0:
resolution: {integrity: sha512-o88DVQ6GzsABn1+6+zo2ct801dBO5OASVyxbbvA2W20ue2puSh/VOuqUj90eUeMSX/xqGqBmOKiRQN7tJOuBXw==}
engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
@@ -1946,8 +1942,8 @@ packages:
engines: {node: '>=0.10.0'}
hasBin: true
- electron-to-chromium@1.5.36:
- resolution: {integrity: sha512-HYTX8tKge/VNp6FGO+f/uVDmUkq+cEfcxYhKf15Akc4M5yxt5YmorwlAitKWjWhWQnKcDRBAQKXkhqqXMqcrjw==}
+ electron-to-chromium@1.5.41:
+ resolution: {integrity: sha512-dfdv/2xNjX0P8Vzme4cfzHqnPm5xsZXwsolTYr0eyW18IUmNyG08vL+fttvinTfhKfIKdRoqkDIC9e9iWQCNYQ==}
element-resize-detector@1.2.4:
resolution: {integrity: sha512-Fl5Ftk6WwXE0wqCgNoseKWndjzZlDCwuPTcoVZfCP9R3EHQF8qUtr3YUPNETegRBOKqQKPW3n4kiIWngGi8tKg==}
@@ -2157,8 +2153,8 @@ packages:
fast-levenshtein@2.0.6:
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
- fast-uri@3.0.2:
- resolution: {integrity: sha512-GR6f0hD7XXyNJa25Tb9BuIdN0tdr+0BMi6/CJPH3wJO1JjNG3n/VsSw38AwRdKZABm8lGbPfakLRkYzx2V9row==}
+ fast-uri@3.0.3:
+ resolution: {integrity: sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==}
fastest-levenshtein@1.0.16:
resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==}
@@ -2283,8 +2279,8 @@ packages:
resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
engines: {node: 6.* || 8.* || >= 10.*}
- get-east-asian-width@1.2.0:
- resolution: {integrity: sha512-2nk+7SIVb14QrgXFHcm84tD4bKQz0RxPuMT8Ag5KPOq7J5fEmAg0UbXdTOSHqNuHSU28k55qnceesxXRZGzKWA==}
+ get-east-asian-width@1.3.0:
+ resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==}
engines: {node: '>=18'}
get-intrinsic@1.2.4:
@@ -2764,12 +2760,12 @@ packages:
mathml-tag-names@2.1.3:
resolution: {integrity: sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==}
- mdn-data@2.0.30:
- resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==}
-
mdn-data@2.10.0:
resolution: {integrity: sha512-qq7C3EtK3yJXMwz1zAab65pjl+UhohqMOctTgcqjLOWABqmwj+me02LSsCuEUxnst9X1lCBpoE0WArGKgdGDzw==}
+ mdn-data@2.11.1:
+ resolution: {integrity: sha512-Hdx3wmyqPFrhd6YHVuSkUK2eIGAcxR0xlndcgZqjA68yMJTbfXrjJwbgsBOsNjI7LnBIVUQnmyMVSdi/ob0GpQ==}
+
meow@13.2.0:
resolution: {integrity: sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==}
engines: {node: '>=18'}
@@ -2808,8 +2804,8 @@ packages:
resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}
engines: {node: '>=18'}
- min-dash@4.2.1:
- resolution: {integrity: sha512-to+unsToePnm7cUeR9TrMzFlETHd/UXmU+ELTRfWZj5XGT41KF6X3L233o3E/GdEs3sk2Tbw/lOLD1avmWkg8A==}
+ min-dash@4.2.2:
+ resolution: {integrity: sha512-qbhSYUxk6mBaF096B3JOQSumXbKWHenmT97cSpdNzgkWwGjhjhE/KZODCoDNhI2I4C9Cb6R/Q13S4BYkUSXoXQ==}
min-dom@4.2.1:
resolution: {integrity: sha512-TMoL8SEEIhUWYgkj7XMSgxmwSyGI+4fP2KFFGnN3FbHfbGHVdsLYSz8LoIsgPhz4dWRmLvxWWSMgzZMJW5sZuA==}
@@ -3054,8 +3050,8 @@ packages:
perfect-debounce@1.0.0:
resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==}
- picocolors@1.1.0:
- resolution: {integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==}
+ picocolors@1.1.1:
+ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
picomatch@2.3.1:
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
@@ -3140,8 +3136,8 @@ packages:
resolution: {integrity: sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==}
engines: {node: ^10 || ^12 || >=14}
- preact@10.24.2:
- resolution: {integrity: sha512-1cSoF0aCC8uaARATfrlz4VCBqE8LwZwRfLgkxJOQwAlQt6ayTmi0D9OF7nXid1POI5SZidFuG9CnlXbDfLqY/Q==}
+ preact@10.24.3:
+ resolution: {integrity: sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==}
prelude-ls@1.2.1:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
@@ -3288,8 +3284,8 @@ packages:
safer-buffer@2.1.2:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
- sass@1.79.5:
- resolution: {integrity: sha512-W1h5kp6bdhqFh2tk3DsI771MoEJjvrSY/2ihJRJS4pjIyfJCw0nTsxqhnrUzaLMOJjFchj8rOvraI/YUVjtx5g==}
+ sass@1.80.2:
+ resolution: {integrity: sha512-9wXY8cGBlUmoUoT+vwOZOFCiS+naiWVjqlreN9ar9PudXbGwlMTFwCR5K9kB4dFumJ6ib98wZyAObJKsWf1nAA==}
engines: {node: '>=14.0.0'}
hasBin: true
@@ -3516,8 +3512,8 @@ packages:
peerDependencies:
stylelint: ^14.0.0 || ^15.0.0 || ^16.0.1
- stylelint-scss@6.7.0:
- resolution: {integrity: sha512-RFIa2A+pVWS5wjNT+whtK7wsbZEWazyqesCuSaPbPlZ8lh2TujwVJSnCYJijg6ChZzwI8pZPRZS1L6A9aCbXDg==}
+ stylelint-scss@6.8.1:
+ resolution: {integrity: sha512-al+5eRb72bKrFyVAY+CLWKUMX+k+wsDCgyooSfhISJA2exqnJq1PX1iIIpdrvhu3GtJgNJZl9/BIW6EVSMCxdg==}
engines: {node: '>=18.12.0'}
peerDependencies:
stylelint: ^16.0.2
@@ -3550,8 +3546,8 @@ packages:
svg-tags@1.0.0:
resolution: {integrity: sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==}
- sweetalert2@11.14.2:
- resolution: {integrity: sha512-ZJcnp+akKLFDdwTJkayZCMWfdEOxxchInuJ8gz/Xlx/nrdTfAM3Sb+NBbBNdqcfXn0h1CamN+VKDxjP8xbWqrg==}
+ sweetalert2@11.14.3:
+ resolution: {integrity: sha512-6NuBHWJCv2gtw4y8PUXLB41hty+V6U2mKZMAvydL1IRPcORR0yuyq3cjFD/+ByrCk3muEFggbZX/x6HwmbVfbA==}
synckit@0.9.2:
resolution: {integrity: sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==}
@@ -3592,8 +3588,8 @@ packages:
uglify-js:
optional: true
- terser@5.34.1:
- resolution: {integrity: sha512-FsJZ7iZLd/BXkz+4xrRTGJ26o/6VTjQytUk8b8OxkwcD2I+79VPJlz7qss1+zE7h8GNIScFqXcDyJ/KqBYZFVA==}
+ terser@5.36.0:
+ resolution: {integrity: sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==}
engines: {node: '>=10'}
hasBin: true
@@ -3606,8 +3602,8 @@ packages:
tiny-svg@3.1.3:
resolution: {integrity: sha512-9mwnPqXInRsBmH/DO6NMxBE++9LsqpVXQSSTZGc5bomoKKvL5OX/Hlotw7XVXP6XLRcHWIzZpxfovGqWKgCypQ==}
- tinyexec@0.3.0:
- resolution: {integrity: sha512-tVGE0mVJPGb0chKhqmsoosjsS+qUnJVGJpZgsHYQcGoPlG3B51R3PouqTgEGH2Dc9jjFyOqOpix6ZHNMXp1FZg==}
+ tinyexec@0.3.1:
+ resolution: {integrity: sha512-WiCJLEECkO18gwqIp6+hJg0//p23HXp4S+gGtAKu3mI2F2/sXC4FvHvXvB0zJVVaTPhx1/tOwdbRsa1sOBIKqQ==}
tmp@0.0.33:
resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==}
@@ -3630,8 +3626,8 @@ packages:
tslib@2.3.0:
resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==}
- tslib@2.7.0:
- resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==}
+ tslib@2.8.0:
+ resolution: {integrity: sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==}
type-check@0.4.0:
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
@@ -3772,8 +3768,8 @@ packages:
peerDependencies:
vite: '>=2.0.0'
- vite@5.4.8:
- resolution: {integrity: sha512-FqrItQ4DT1NC4zCUqMB4c4AZORMKIa0m8/URVCZ77OZ/QSNeJ54bU1vrFADbDsuwfIPcgknRkmqakQcgnL4GiQ==}
+ vite@5.4.9:
+ resolution: {integrity: sha512-20OVpJHh0PAM0oSOELa5GaZNWeDjcAvQjGXy2Uyr+Tp+/D2/Hdz6NLgpJLsarPTA2QJ6v8mX2P1ZfbsSKvdMkg==}
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
peerDependencies:
@@ -3992,14 +3988,14 @@ snapshots:
'@antfu/install-pkg@0.4.1':
dependencies:
package-manager-detector: 0.2.2
- tinyexec: 0.3.0
+ tinyexec: 0.3.1
'@antfu/utils@0.7.10': {}
'@babel/code-frame@7.25.7':
dependencies:
'@babel/highlight': 7.25.7
- picocolors: 1.1.0
+ picocolors: 1.1.1
'@babel/compat-data@7.25.8': {}
@@ -4078,7 +4074,7 @@ snapshots:
'@babel/helper-validator-identifier': 7.25.7
chalk: 2.4.2
js-tokens: 4.0.0
- picocolors: 1.1.0
+ picocolors: 1.1.1
'@babel/parser@7.25.8':
dependencies:
@@ -4123,16 +4119,16 @@ snapshots:
'@bpmn-io/diagram-js-ui@0.2.3':
dependencies:
htm: 3.1.1
- preact: 10.24.2
+ preact: 10.24.3
'@bpmn-io/extract-process-variables@1.0.0':
dependencies:
- min-dash: 4.2.1
+ min-dash: 4.2.2
- '@bpmn-io/feel-editor@1.9.1(@lezer/common@1.2.2)':
+ '@bpmn-io/feel-editor@1.9.1(@lezer/common@1.2.3)':
dependencies:
'@bpmn-io/feel-lint': 1.3.1
- '@codemirror/autocomplete': 6.18.1(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.2)
+ '@codemirror/autocomplete': 6.18.1(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/commands': 6.7.0
'@codemirror/language': 6.10.3
'@codemirror/lint': 6.8.2
@@ -4149,14 +4145,14 @@ snapshots:
'@codemirror/language': 6.10.3
lezer-feel: 1.3.0
- '@bpmn-io/properties-panel@3.24.1(@lezer/common@1.2.2)':
+ '@bpmn-io/properties-panel@3.24.1(@lezer/common@1.2.3)':
dependencies:
- '@bpmn-io/feel-editor': 1.9.1(@lezer/common@1.2.2)
+ '@bpmn-io/feel-editor': 1.9.1(@lezer/common@1.2.3)
'@codemirror/view': 6.34.1
classnames: 2.5.1
feelers: 1.4.0
focus-trap: 7.6.0
- min-dash: 4.2.1
+ min-dash: 4.2.2
min-dom: 4.2.1
transitivePeerDependencies:
- '@lezer/common'
@@ -4215,7 +4211,7 @@ snapshots:
mri: 1.2.0
p-limit: 2.3.0
package-manager-detector: 0.2.2
- picocolors: 1.1.0
+ picocolors: 1.1.1
resolve-from: 5.0.0
semver: 7.6.3
spawndamnit: 2.0.0
@@ -4239,7 +4235,7 @@ snapshots:
dependencies:
'@changesets/types': 6.0.0
'@manypkg/get-packages': 1.1.3
- picocolors: 1.1.0
+ picocolors: 1.1.1
semver: 7.6.3
'@changesets/get-release-plan@4.0.4':
@@ -4263,7 +4259,7 @@ snapshots:
'@changesets/logger@0.1.1':
dependencies:
- picocolors: 1.1.0
+ picocolors: 1.1.1
'@changesets/parse@0.4.0':
dependencies:
@@ -4285,7 +4281,7 @@ snapshots:
'@changesets/types': 6.0.0
fs-extra: 7.0.1
p-filter: 2.1.0
- picocolors: 1.1.0
+ picocolors: 1.1.1
'@changesets/should-skip-package@0.1.1':
dependencies:
@@ -4303,25 +4299,25 @@ snapshots:
human-id: 1.0.2
prettier: 2.8.8
- '@codemirror/autocomplete@6.18.1(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.2)':
+ '@codemirror/autocomplete@6.18.1(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)':
dependencies:
'@codemirror/language': 6.10.3
'@codemirror/state': 6.4.1
'@codemirror/view': 6.34.1
- '@lezer/common': 1.2.2
+ '@lezer/common': 1.2.3
'@codemirror/commands@6.7.0':
dependencies:
'@codemirror/language': 6.10.3
'@codemirror/state': 6.4.1
'@codemirror/view': 6.34.1
- '@lezer/common': 1.2.2
+ '@lezer/common': 1.2.3
'@codemirror/language@6.10.3':
dependencies:
'@codemirror/state': 6.4.1
'@codemirror/view': 6.34.1
- '@lezer/common': 1.2.2
+ '@lezer/common': 1.2.3
'@lezer/highlight': 1.2.1
'@lezer/lr': 1.4.2
style-mod: 4.1.2
@@ -4349,7 +4345,7 @@ snapshots:
'@commitlint/execute-rule@19.5.0':
optional: true
- '@commitlint/load@19.5.0(@types/node@22.7.5)(typescript@5.6.3)':
+ '@commitlint/load@19.5.0(@types/node@22.7.6)(typescript@5.6.3)':
dependencies:
'@commitlint/config-validator': 19.5.0
'@commitlint/execute-rule': 19.5.0
@@ -4357,7 +4353,7 @@ snapshots:
'@commitlint/types': 19.5.0
chalk: 5.3.0
cosmiconfig: 9.0.0(typescript@5.6.3)
- cosmiconfig-typescript-loader: 5.0.0(@types/node@22.7.5)(cosmiconfig@9.0.0(typescript@5.6.3))(typescript@5.6.3)
+ cosmiconfig-typescript-loader: 5.0.0(@types/node@22.7.6)(cosmiconfig@9.0.0(typescript@5.6.3))(typescript@5.6.3)
lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2
lodash.uniq: 4.5.0
@@ -4571,19 +4567,19 @@ snapshots:
'@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.5.0
- '@lezer/common@1.2.2': {}
+ '@lezer/common@1.2.3': {}
'@lezer/highlight@1.2.1':
dependencies:
- '@lezer/common': 1.2.2
+ '@lezer/common': 1.2.3
'@lezer/lr@1.4.2':
dependencies:
- '@lezer/common': 1.2.2
+ '@lezer/common': 1.2.3
'@lezer/markdown@1.3.1':
dependencies:
- '@lezer/common': 1.2.2
+ '@lezer/common': 1.2.3
'@lezer/highlight': 1.2.1
'@manypkg/find-root@1.1.0':
@@ -4604,23 +4600,23 @@ snapshots:
'@mdi/js@7.4.47': {}
- '@microsoft/api-extractor-model@7.29.6(@types/node@22.7.5)':
+ '@microsoft/api-extractor-model@7.29.6(@types/node@22.7.6)':
dependencies:
'@microsoft/tsdoc': 0.15.0
'@microsoft/tsdoc-config': 0.17.0
- '@rushstack/node-core-library': 5.7.0(@types/node@22.7.5)
+ '@rushstack/node-core-library': 5.7.0(@types/node@22.7.6)
transitivePeerDependencies:
- '@types/node'
- '@microsoft/api-extractor@7.47.7(@types/node@22.7.5)':
+ '@microsoft/api-extractor@7.47.7(@types/node@22.7.6)':
dependencies:
- '@microsoft/api-extractor-model': 7.29.6(@types/node@22.7.5)
+ '@microsoft/api-extractor-model': 7.29.6(@types/node@22.7.6)
'@microsoft/tsdoc': 0.15.0
'@microsoft/tsdoc-config': 0.17.0
- '@rushstack/node-core-library': 5.7.0(@types/node@22.7.5)
+ '@rushstack/node-core-library': 5.7.0(@types/node@22.7.6)
'@rushstack/rig-package': 0.5.3
- '@rushstack/terminal': 0.14.0(@types/node@22.7.5)
- '@rushstack/ts-command-line': 4.22.6(@types/node@22.7.5)
+ '@rushstack/terminal': 0.14.0(@types/node@22.7.6)
+ '@rushstack/ts-command-line': 4.22.6(@types/node@22.7.6)
lodash: 4.17.21
minimatch: 3.0.8
resolve: 1.22.8
@@ -4758,11 +4754,11 @@ snapshots:
'@quasar/extras@1.16.12': {}
- '@quasar/vite-plugin@1.7.0(@vitejs/plugin-vue@5.1.4(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))(vue@3.5.12(typescript@5.6.3)))(quasar@2.17.0)(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))(vue@3.5.12(typescript@5.6.3))':
+ '@quasar/vite-plugin@1.7.0(@vitejs/plugin-vue@5.1.4(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0))(vue@3.5.12(typescript@5.6.3)))(quasar@2.17.0)(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0))(vue@3.5.12(typescript@5.6.3))':
dependencies:
- '@vitejs/plugin-vue': 5.1.4(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))(vue@3.5.12(typescript@5.6.3))
+ '@vitejs/plugin-vue': 5.1.4(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0))(vue@3.5.12(typescript@5.6.3))
quasar: 2.17.0
- vite: 5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1)
+ vite: 5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0)
vue: 3.5.12(typescript@5.6.3)
'@rollup/pluginutils@4.2.1':
@@ -4826,7 +4822,7 @@ snapshots:
'@rollup/rollup-win32-x64-msvc@4.24.0':
optional: true
- '@rushstack/node-core-library@5.7.0(@types/node@22.7.5)':
+ '@rushstack/node-core-library@5.7.0(@types/node@22.7.6)':
dependencies:
ajv: 8.13.0
ajv-draft-04: 1.0.0(ajv@8.13.0)
@@ -4837,23 +4833,23 @@ snapshots:
resolve: 1.22.8
semver: 7.5.4
optionalDependencies:
- '@types/node': 22.7.5
+ '@types/node': 22.7.6
'@rushstack/rig-package@0.5.3':
dependencies:
resolve: 1.22.8
strip-json-comments: 3.1.1
- '@rushstack/terminal@0.14.0(@types/node@22.7.5)':
+ '@rushstack/terminal@0.14.0(@types/node@22.7.6)':
dependencies:
- '@rushstack/node-core-library': 5.7.0(@types/node@22.7.5)
+ '@rushstack/node-core-library': 5.7.0(@types/node@22.7.6)
supports-color: 8.1.1
optionalDependencies:
- '@types/node': 22.7.5
+ '@types/node': 22.7.6
- '@rushstack/ts-command-line@4.22.6(@types/node@22.7.5)':
+ '@rushstack/ts-command-line@4.22.6(@types/node@22.7.6)':
dependencies:
- '@rushstack/terminal': 0.14.0(@types/node@22.7.5)
+ '@rushstack/terminal': 0.14.0(@types/node@22.7.6)
'@types/argparse': 1.0.38
argparse: 1.0.10
string-argv: 0.3.2
@@ -4908,7 +4904,7 @@ snapshots:
'@types/conventional-commits-parser@5.0.0':
dependencies:
- '@types/node': 22.7.5
+ '@types/node': 22.7.6
optional: true
'@types/crypto-js@4.2.2': {}
@@ -4933,7 +4929,7 @@ snapshots:
'@types/node@13.13.52': {}
- '@types/node@22.7.5':
+ '@types/node@22.7.6':
dependencies:
undici-types: 6.19.8
@@ -4943,14 +4939,14 @@ snapshots:
'@types/web-bluetooth@0.0.20': {}
- '@typescript-eslint/eslint-plugin@8.8.1(@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3))(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)':
+ '@typescript-eslint/eslint-plugin@8.10.0(@typescript-eslint/parser@8.10.0(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3))(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)':
dependencies:
'@eslint-community/regexpp': 4.11.1
- '@typescript-eslint/parser': 8.8.1(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
- '@typescript-eslint/scope-manager': 8.8.1
- '@typescript-eslint/type-utils': 8.8.1(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
- '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
- '@typescript-eslint/visitor-keys': 8.8.1
+ '@typescript-eslint/parser': 8.10.0(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
+ '@typescript-eslint/scope-manager': 8.10.0
+ '@typescript-eslint/type-utils': 8.10.0(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
+ '@typescript-eslint/utils': 8.10.0(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
+ '@typescript-eslint/visitor-keys': 8.10.0
eslint: 9.12.0(jiti@2.3.3)
graphemer: 1.4.0
ignore: 5.3.2
@@ -4961,12 +4957,12 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)':
+ '@typescript-eslint/parser@8.10.0(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)':
dependencies:
- '@typescript-eslint/scope-manager': 8.8.1
- '@typescript-eslint/types': 8.8.1
- '@typescript-eslint/typescript-estree': 8.8.1(typescript@5.6.3)
- '@typescript-eslint/visitor-keys': 8.8.1
+ '@typescript-eslint/scope-manager': 8.10.0
+ '@typescript-eslint/types': 8.10.0
+ '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.6.3)
+ '@typescript-eslint/visitor-keys': 8.10.0
debug: 4.3.7
eslint: 9.12.0(jiti@2.3.3)
optionalDependencies:
@@ -4974,15 +4970,15 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/scope-manager@8.8.1':
+ '@typescript-eslint/scope-manager@8.10.0':
dependencies:
- '@typescript-eslint/types': 8.8.1
- '@typescript-eslint/visitor-keys': 8.8.1
+ '@typescript-eslint/types': 8.10.0
+ '@typescript-eslint/visitor-keys': 8.10.0
- '@typescript-eslint/type-utils@8.8.1(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)':
+ '@typescript-eslint/type-utils@8.10.0(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)':
dependencies:
- '@typescript-eslint/typescript-estree': 8.8.1(typescript@5.6.3)
- '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
+ '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.6.3)
+ '@typescript-eslint/utils': 8.10.0(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)
debug: 4.3.7
ts-api-utils: 1.3.0(typescript@5.6.3)
optionalDependencies:
@@ -4991,12 +4987,12 @@ snapshots:
- eslint
- supports-color
- '@typescript-eslint/types@8.8.1': {}
+ '@typescript-eslint/types@8.10.0': {}
- '@typescript-eslint/typescript-estree@8.8.1(typescript@5.6.3)':
+ '@typescript-eslint/typescript-estree@8.10.0(typescript@5.6.3)':
dependencies:
- '@typescript-eslint/types': 8.8.1
- '@typescript-eslint/visitor-keys': 8.8.1
+ '@typescript-eslint/types': 8.10.0
+ '@typescript-eslint/visitor-keys': 8.10.0
debug: 4.3.7
fast-glob: 3.3.2
is-glob: 4.0.3
@@ -5008,25 +5004,25 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/utils@8.8.1(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)':
+ '@typescript-eslint/utils@8.10.0(eslint@9.12.0(jiti@2.3.3))(typescript@5.6.3)':
dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@9.12.0(jiti@2.3.3))
- '@typescript-eslint/scope-manager': 8.8.1
- '@typescript-eslint/types': 8.8.1
- '@typescript-eslint/typescript-estree': 8.8.1(typescript@5.6.3)
+ '@typescript-eslint/scope-manager': 8.10.0
+ '@typescript-eslint/types': 8.10.0
+ '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.6.3)
eslint: 9.12.0(jiti@2.3.3)
transitivePeerDependencies:
- supports-color
- typescript
- '@typescript-eslint/visitor-keys@8.8.1':
+ '@typescript-eslint/visitor-keys@8.10.0':
dependencies:
- '@typescript-eslint/types': 8.8.1
+ '@typescript-eslint/types': 8.10.0
eslint-visitor-keys: 3.4.3
- '@vitejs/plugin-vue@5.1.4(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))(vue@3.5.12(typescript@5.6.3))':
+ '@vitejs/plugin-vue@5.1.4(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0))(vue@3.5.12(typescript@5.6.3))':
dependencies:
- vite: 5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1)
+ vite: 5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0)
vue: 3.5.12(typescript@5.6.3)
'@volar/language-core@2.4.6':
@@ -5224,15 +5220,15 @@ snapshots:
'@xtuc/long@4.2.2': {}
- acorn-import-attributes@1.9.5(acorn@8.12.1):
+ acorn-import-attributes@1.9.5(acorn@8.13.0):
dependencies:
- acorn: 8.12.1
+ acorn: 8.13.0
- acorn-jsx@5.3.2(acorn@8.12.1):
+ acorn-jsx@5.3.2(acorn@8.13.0):
dependencies:
- acorn: 8.12.1
+ acorn: 8.13.0
- acorn@8.12.1: {}
+ acorn@8.13.0: {}
adler-32@1.3.1: {}
@@ -5272,7 +5268,7 @@ snapshots:
ajv@8.17.1:
dependencies:
fast-deep-equal: 3.1.3
- fast-uri: 3.0.2
+ fast-uri: 3.0.3
json-schema-traverse: 1.0.0
require-from-string: 2.0.2
@@ -5355,22 +5351,22 @@ snapshots:
boolbase@1.0.0: {}
- bpmn-js-properties-panel@5.25.0(@bpmn-io/properties-panel@3.24.1(@lezer/common@1.2.2))(bpmn-js@17.11.1)(camunda-bpmn-js-behaviors@1.6.1(bpmn-js@17.11.1)(camunda-bpmn-moddle@7.0.1)(zeebe-bpmn-moddle@1.6.0))(diagram-js@14.11.3):
+ bpmn-js-properties-panel@5.25.0(@bpmn-io/properties-panel@3.24.1(@lezer/common@1.2.3))(bpmn-js@17.11.1)(camunda-bpmn-js-behaviors@1.6.1(bpmn-js@17.11.1)(camunda-bpmn-moddle@7.0.1)(zeebe-bpmn-moddle@1.6.0))(diagram-js@14.11.3):
dependencies:
'@bpmn-io/extract-process-variables': 1.0.0
- '@bpmn-io/properties-panel': 3.24.1(@lezer/common@1.2.2)
+ '@bpmn-io/properties-panel': 3.24.1(@lezer/common@1.2.3)
array-move: 4.0.0
bpmn-js: 17.11.1
camunda-bpmn-js-behaviors: 1.6.1(bpmn-js@17.11.1)(camunda-bpmn-moddle@7.0.1)(zeebe-bpmn-moddle@1.6.0)
diagram-js: 14.11.3
ids: 1.0.5
- min-dash: 4.2.1
+ min-dash: 4.2.2
min-dom: 4.2.1
bpmn-js-token-simulation@0.35.1:
dependencies:
inherits-browser: 0.1.0
- min-dash: 4.2.1
+ min-dash: 4.2.2
min-dom: 4.2.1
randomcolor: 0.6.2
@@ -5381,13 +5377,13 @@ snapshots:
diagram-js-direct-editing: 3.1.0(diagram-js@14.11.3)
ids: 1.0.5
inherits-browser: 0.1.0
- min-dash: 4.2.1
+ min-dash: 4.2.2
min-dom: 4.2.1
tiny-svg: 3.1.3
bpmn-moddle@8.1.0:
dependencies:
- min-dash: 4.2.1
+ min-dash: 4.2.2
moddle: 6.2.3
moddle-xml: 10.1.0
@@ -5406,8 +5402,8 @@ snapshots:
browserslist@4.24.0:
dependencies:
- caniuse-lite: 1.0.30001668
- electron-to-chromium: 1.5.36
+ caniuse-lite: 1.0.30001669
+ electron-to-chromium: 1.5.41
node-releases: 2.0.18
update-browserslist-db: 1.1.1(browserslist@4.24.0)
@@ -5448,19 +5444,19 @@ snapshots:
camel-case@4.1.2:
dependencies:
pascal-case: 3.1.2
- tslib: 2.7.0
+ tslib: 2.8.0
camunda-bpmn-js-behaviors@1.6.1(bpmn-js@17.11.1)(camunda-bpmn-moddle@7.0.1)(zeebe-bpmn-moddle@1.6.0):
dependencies:
bpmn-js: 17.11.1
camunda-bpmn-moddle: 7.0.1
ids: 1.0.5
- min-dash: 4.2.1
+ min-dash: 4.2.2
zeebe-bpmn-moddle: 1.6.0
camunda-bpmn-moddle@7.0.1: {}
- caniuse-lite@1.0.30001668: {}
+ caniuse-lite@1.0.30001669: {}
cfb@1.2.2:
dependencies:
@@ -5569,10 +5565,10 @@ snapshots:
commander@8.3.0: {}
- commitizen@4.3.1(@types/node@22.7.5)(typescript@5.6.3):
+ commitizen@4.3.1(@types/node@22.7.6)(typescript@5.6.3):
dependencies:
cachedir: 2.3.0
- cz-conventional-changelog: 3.3.0(@types/node@22.7.5)(typescript@5.6.3)
+ cz-conventional-changelog: 3.3.0(@types/node@22.7.6)(typescript@5.6.3)
dedent: 0.7.0
detect-indent: 6.1.0
find-node-modules: 2.1.3
@@ -5611,9 +5607,9 @@ snapshots:
convert-source-map@2.0.0: {}
- cosmiconfig-typescript-loader@5.0.0(@types/node@22.7.5)(cosmiconfig@9.0.0(typescript@5.6.3))(typescript@5.6.3):
+ cosmiconfig-typescript-loader@5.0.0(@types/node@22.7.6)(cosmiconfig@9.0.0(typescript@5.6.3))(typescript@5.6.3):
dependencies:
- '@types/node': 22.7.5
+ '@types/node': 22.7.6
cosmiconfig: 9.0.0(typescript@5.6.3)
jiti: 1.21.6
typescript: 5.6.3
@@ -5660,11 +5656,6 @@ snapshots:
domutils: 2.8.0
nth-check: 2.1.1
- css-tree@2.3.1:
- dependencies:
- mdn-data: 2.0.30
- source-map-js: 1.2.1
-
css-tree@3.0.0:
dependencies:
mdn-data: 2.10.0
@@ -5676,16 +5667,16 @@ snapshots:
csstype@3.1.3: {}
- cz-conventional-changelog@3.3.0(@types/node@22.7.5)(typescript@5.6.3):
+ cz-conventional-changelog@3.3.0(@types/node@22.7.6)(typescript@5.6.3):
dependencies:
chalk: 2.4.2
- commitizen: 4.3.1(@types/node@22.7.5)(typescript@5.6.3)
+ commitizen: 4.3.1(@types/node@22.7.6)(typescript@5.6.3)
conventional-commit-types: 3.0.0
lodash.map: 4.6.0
longest: 2.0.1
word-wrap: 1.2.5
optionalDependencies:
- '@commitlint/load': 19.5.0(@types/node@22.7.5)(typescript@5.6.3)
+ '@commitlint/load': 19.5.0(@types/node@22.7.6)(typescript@5.6.3)
transitivePeerDependencies:
- '@types/node'
- typescript
@@ -5729,7 +5720,7 @@ snapshots:
diagram-js-direct-editing@3.1.0(diagram-js@14.11.3):
dependencies:
diagram-js: 14.11.3
- min-dash: 4.2.1
+ min-dash: 4.2.2
min-dom: 4.2.1
diagram-js@14.11.3:
@@ -5738,7 +5729,7 @@ snapshots:
clsx: 2.1.1
didi: 10.2.2
inherits-browser: 0.1.0
- min-dash: 4.2.1
+ min-dash: 4.2.2
min-dom: 4.2.1
object-refs: 0.4.0
path-intersection: 3.1.0
@@ -5791,7 +5782,7 @@ snapshots:
dot-case@3.0.4:
dependencies:
no-case: 3.0.4
- tslib: 2.7.0
+ tslib: 2.8.0
dotenv-expand@8.0.3: {}
@@ -5806,7 +5797,7 @@ snapshots:
dependencies:
jake: 10.9.2
- electron-to-chromium@1.5.36: {}
+ electron-to-chromium@1.5.41: {}
element-resize-detector@1.2.4:
dependencies:
@@ -5978,14 +5969,14 @@ snapshots:
espree@10.2.0:
dependencies:
- acorn: 8.12.1
- acorn-jsx: 5.3.2(acorn@8.12.1)
+ acorn: 8.13.0
+ acorn-jsx: 5.3.2(acorn@8.13.0)
eslint-visitor-keys: 4.1.0
espree@9.6.1:
dependencies:
- acorn: 8.12.1
- acorn-jsx: 5.3.2(acorn@8.12.1)
+ acorn: 8.13.0
+ acorn-jsx: 5.3.2(acorn@8.13.0)
eslint-visitor-keys: 3.4.3
esprima@4.0.1: {}
@@ -6054,7 +6045,7 @@ snapshots:
fast-levenshtein@2.0.6: {}
- fast-uri@3.0.2: {}
+ fast-uri@3.0.3: {}
fastest-levenshtein@1.0.16: {}
@@ -6066,13 +6057,13 @@ snapshots:
dependencies:
'@bpmn-io/cm-theme': 0.1.0-alpha.2
'@bpmn-io/feel-lint': 1.3.1
- '@codemirror/autocomplete': 6.18.1(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.2)
+ '@codemirror/autocomplete': 6.18.1(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/commands': 6.7.0
'@codemirror/language': 6.10.3
'@codemirror/lint': 6.8.2
'@codemirror/state': 6.4.1
'@codemirror/view': 6.34.1
- '@lezer/common': 1.2.2
+ '@lezer/common': 1.2.3
'@lezer/highlight': 1.2.1
'@lezer/lr': 1.4.2
'@lezer/markdown': 1.3.1
@@ -6200,7 +6191,7 @@ snapshots:
get-caller-file@2.0.5: {}
- get-east-asian-width@1.2.0: {}
+ get-east-asian-width@1.3.0: {}
get-intrinsic@1.2.4:
dependencies:
@@ -6345,7 +6336,7 @@ snapshots:
he: 1.2.0
param-case: 3.0.4
relateurl: 0.2.7
- terser: 5.34.1
+ terser: 5.36.0
html-tags@3.3.1: {}
@@ -6440,7 +6431,7 @@ snapshots:
is-fullwidth-code-point@5.0.0:
dependencies:
- get-east-asian-width: 1.2.0
+ get-east-asian-width: 1.3.0
is-glob@4.0.3:
dependencies:
@@ -6479,7 +6470,7 @@ snapshots:
jest-worker@27.5.1:
dependencies:
- '@types/node': 22.7.5
+ '@types/node': 22.7.6
merge-stream: 2.0.0
supports-color: 8.1.1
@@ -6548,11 +6539,11 @@ snapshots:
lang-feel@2.2.0:
dependencies:
- '@codemirror/autocomplete': 6.18.1(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.2)
+ '@codemirror/autocomplete': 6.18.1(@codemirror/language@6.10.3)(@codemirror/state@6.4.1)(@codemirror/view@6.34.1)(@lezer/common@1.2.3)
'@codemirror/language': 6.10.3
'@codemirror/state': 6.4.1
'@codemirror/view': 6.34.1
- '@lezer/common': 1.2.2
+ '@lezer/common': 1.2.3
lezer-feel: 1.3.0
levn@0.4.1:
@@ -6646,7 +6637,7 @@ snapshots:
lower-case@2.0.2:
dependencies:
- tslib: 2.7.0
+ tslib: 2.8.0
lru-cache@4.1.5:
dependencies:
@@ -6669,10 +6660,10 @@ snapshots:
mathml-tag-names@2.1.3: {}
- mdn-data@2.0.30: {}
-
mdn-data@2.10.0: {}
+ mdn-data@2.11.1: {}
+
meow@13.2.0: {}
merge-stream@2.0.0: {}
@@ -6698,18 +6689,18 @@ snapshots:
mimic-function@5.0.1: {}
- min-dash@4.2.1: {}
+ min-dash@4.2.2: {}
min-dom@4.2.1:
dependencies:
component-event: 0.2.1
domify: 1.4.2
- min-dash: 4.2.1
+ min-dash: 4.2.2
min-dom@5.1.1:
dependencies:
domify: 2.0.0
- min-dash: 4.2.1
+ min-dash: 4.2.2
minimatch@3.0.8:
dependencies:
@@ -6744,20 +6735,20 @@ snapshots:
mlly@1.7.2:
dependencies:
- acorn: 8.12.1
+ acorn: 8.13.0
pathe: 1.1.2
pkg-types: 1.2.1
ufo: 1.5.4
moddle-xml@10.1.0:
dependencies:
- min-dash: 4.2.1
+ min-dash: 4.2.2
moddle: 6.2.3
saxen: 8.1.2
moddle@6.2.3:
dependencies:
- min-dash: 4.2.1
+ min-dash: 4.2.2
moment@2.30.1: {}
@@ -6778,7 +6769,7 @@ snapshots:
no-case@3.0.4:
dependencies:
lower-case: 2.0.2
- tslib: 2.7.0
+ tslib: 2.8.0
node-addon-api@7.1.1: {}
@@ -6892,7 +6883,7 @@ snapshots:
param-case@3.0.4:
dependencies:
dot-case: 3.0.4
- tslib: 2.7.0
+ tslib: 2.8.0
parent-module@1.0.1:
dependencies:
@@ -6910,7 +6901,7 @@ snapshots:
pascal-case@3.1.2:
dependencies:
no-case: 3.0.4
- tslib: 2.7.0
+ tslib: 2.8.0
path-browserify@1.0.1: {}
@@ -6936,7 +6927,7 @@ snapshots:
perfect-debounce@1.0.0: {}
- picocolors@1.1.0: {}
+ picocolors@1.1.1: {}
picomatch@2.3.1: {}
@@ -7009,10 +7000,10 @@ snapshots:
postcss@8.4.47:
dependencies:
nanoid: 3.3.7
- picocolors: 1.1.0
+ picocolors: 1.1.1
source-map-js: 1.2.1
- preact@10.24.2: {}
+ preact@10.24.3: {}
prelude-ls@1.2.1: {}
@@ -7146,13 +7137,13 @@ snapshots:
rxjs@7.8.1:
dependencies:
- tslib: 2.7.0
+ tslib: 2.8.0
safe-buffer@5.2.1: {}
safer-buffer@2.1.2: {}
- sass@1.79.5:
+ sass@1.80.2:
dependencies:
'@parcel/watcher': 2.4.1
chokidar: 4.0.1
@@ -7276,7 +7267,7 @@ snapshots:
string-width@7.2.0:
dependencies:
emoji-regex: 10.4.0
- get-east-asian-width: 1.2.0
+ get-east-asian-width: 1.3.0
strip-ansi: 7.1.0
string_decoder@1.3.0:
@@ -7324,7 +7315,7 @@ snapshots:
postcss-scss: 4.0.9(postcss@8.4.47)
stylelint: 16.10.0(typescript@5.6.3)
stylelint-config-recommended: 14.0.1(stylelint@16.10.0(typescript@5.6.3))
- stylelint-scss: 6.7.0(stylelint@16.10.0(typescript@5.6.3))
+ stylelint-scss: 6.8.1(stylelint@16.10.0(typescript@5.6.3))
optionalDependencies:
postcss: 8.4.47
@@ -7359,11 +7350,12 @@ snapshots:
postcss-sorting: 8.0.2(postcss@8.4.47)
stylelint: 16.10.0(typescript@5.6.3)
- stylelint-scss@6.7.0(stylelint@16.10.0(typescript@5.6.3)):
+ stylelint-scss@6.8.1(stylelint@16.10.0(typescript@5.6.3)):
dependencies:
- css-tree: 2.3.1
+ css-tree: 3.0.0
is-plain-object: 5.0.0
known-css-properties: 0.34.0
+ mdn-data: 2.11.1
postcss-media-query-parser: 0.2.3
postcss-resolve-nested-selector: 0.1.6
postcss-selector-parser: 6.1.2
@@ -7398,7 +7390,7 @@ snapshots:
meow: 13.2.0
micromatch: 4.0.8
normalize-path: 3.0.0
- picocolors: 1.1.0
+ picocolors: 1.1.1
postcss: 8.4.47
postcss-resolve-nested-selector: 0.1.6
postcss-safe-parser: 7.0.1(postcss@8.4.47)
@@ -7435,12 +7427,12 @@ snapshots:
svg-tags@1.0.0: {}
- sweetalert2@11.14.2: {}
+ sweetalert2@11.14.3: {}
synckit@0.9.2:
dependencies:
'@pkgr/core': 0.1.1
- tslib: 2.7.0
+ tslib: 2.8.0
tabbable@6.2.0: {}
@@ -7471,13 +7463,13 @@ snapshots:
jest-worker: 27.5.1
schema-utils: 3.3.0
serialize-javascript: 6.0.2
- terser: 5.34.1
+ terser: 5.36.0
webpack: 5.95.0
- terser@5.34.1:
+ terser@5.36.0:
dependencies:
'@jridgewell/source-map': 0.3.6
- acorn: 8.12.1
+ acorn: 8.13.0
commander: 2.20.3
source-map-support: 0.5.21
@@ -7487,7 +7479,7 @@ snapshots:
tiny-svg@3.1.3: {}
- tinyexec@0.3.0: {}
+ tinyexec@0.3.1: {}
tmp@0.0.33:
dependencies:
@@ -7505,7 +7497,7 @@ snapshots:
tslib@2.3.0: {}
- tslib@2.7.0: {}
+ tslib@2.8.0: {}
type-check@0.4.0:
dependencies:
@@ -7525,7 +7517,7 @@ snapshots:
unctx@2.3.1(webpack-sources@3.2.3):
dependencies:
- acorn: 8.12.1
+ acorn: 8.13.0
estree-walker: 3.0.3
magic-string: 0.30.12
unplugin: 1.14.1(webpack-sources@3.2.3)
@@ -7539,7 +7531,7 @@ snapshots:
unimport@3.13.1(rollup@4.24.0)(webpack-sources@3.2.3):
dependencies:
'@rollup/pluginutils': 5.1.2(rollup@4.24.0)
- acorn: 8.12.1
+ acorn: 8.13.0
escape-string-regexp: 5.0.0
estree-walker: 3.0.3
fast-glob: 3.3.2
@@ -7615,7 +7607,7 @@ snapshots:
unplugin@1.14.1(webpack-sources@3.2.3):
dependencies:
- acorn: 8.12.1
+ acorn: 8.13.0
webpack-virtual-modules: 0.6.2
optionalDependencies:
webpack-sources: 3.2.3
@@ -7636,7 +7628,7 @@ snapshots:
dependencies:
browserslist: 4.24.0
escalade: 3.2.0
- picocolors: 1.1.0
+ picocolors: 1.1.1
uri-js@4.4.1:
dependencies:
@@ -7644,18 +7636,18 @@ snapshots:
util-deprecate@1.0.2: {}
- vite-plugin-compression@0.5.1(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1)):
+ vite-plugin-compression@0.5.1(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0)):
dependencies:
chalk: 4.1.2
debug: 4.3.7
fs-extra: 10.1.0
- vite: 5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1)
+ vite: 5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0)
transitivePeerDependencies:
- supports-color
- vite-plugin-dts@4.2.4(@types/node@22.7.5)(rollup@4.24.0)(typescript@5.6.3)(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1)):
+ vite-plugin-dts@4.2.4(@types/node@22.7.6)(rollup@4.24.0)(typescript@5.6.3)(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0)):
dependencies:
- '@microsoft/api-extractor': 7.47.7(@types/node@22.7.5)
+ '@microsoft/api-extractor': 7.47.7(@types/node@22.7.6)
'@rollup/pluginutils': 5.1.2(rollup@4.24.0)
'@volar/typescript': 2.4.6
'@vue/language-core': 2.1.6(typescript@5.6.3)
@@ -7666,13 +7658,13 @@ snapshots:
magic-string: 0.30.12
typescript: 5.6.3
optionalDependencies:
- vite: 5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1)
+ vite: 5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0)
transitivePeerDependencies:
- '@types/node'
- rollup
- supports-color
- vite-plugin-html@3.2.2(vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1)):
+ vite-plugin-html@3.2.2(vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0)):
dependencies:
'@rollup/pluginutils': 4.2.1
colorette: 2.0.20
@@ -7686,18 +7678,18 @@ snapshots:
html-minifier-terser: 6.1.0
node-html-parser: 5.4.2
pathe: 0.2.0
- vite: 5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1)
+ vite: 5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0)
- vite@5.4.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1):
+ vite@5.4.9(@types/node@22.7.6)(sass@1.80.2)(terser@5.36.0):
dependencies:
esbuild: 0.21.5
postcss: 8.4.47
rollup: 4.24.0
optionalDependencies:
- '@types/node': 22.7.5
+ '@types/node': 22.7.6
fsevents: 2.3.3
- sass: 1.79.5
- terser: 5.34.1
+ sass: 1.80.2
+ terser: 5.36.0
vkbeautify@0.99.3: {}
@@ -7787,8 +7779,8 @@ snapshots:
'@webassemblyjs/ast': 1.12.1
'@webassemblyjs/wasm-edit': 1.12.1
'@webassemblyjs/wasm-parser': 1.12.1
- acorn: 8.12.1
- acorn-import-attributes: 1.9.5(acorn@8.12.1)
+ acorn: 8.13.0
+ acorn-import-attributes: 1.9.5(acorn@8.13.0)
browserslist: 4.24.0
chrome-trace-event: 1.0.4
enhanced-resolve: 5.17.1
diff --git a/shared/bpmn-designer/dist/index.es.mjs b/shared/bpmn-designer/dist/index.es.mjs
index 6ca5e0e3..64525707 100644
--- a/shared/bpmn-designer/dist/index.es.mjs
+++ b/shared/bpmn-designer/dist/index.es.mjs
@@ -769,7 +769,7 @@ function ensureArray(obj) {
throw new Error("must supply array");
}
function has$1(target, key) {
- return nativeHasOwnProperty$1.call(target, key);
+ return !isNil(target) && nativeHasOwnProperty$1.call(target, key);
}
function find(collection, matcher) {
const matchFn = toMatcher(matcher);
@@ -14687,15 +14687,15 @@ function C$1(n2) {
return C$1(n2);
}
}
-function M(n2) {
- (!n2.__d && (n2.__d = true) && i$1.push(n2) && !P.__r++ || o$1 !== l$1.debounceRendering) && ((o$1 = l$1.debounceRendering) || r$2)(P);
+function S(n2) {
+ (!n2.__d && (n2.__d = true) && i$1.push(n2) && !M.__r++ || o$1 !== l$1.debounceRendering) && ((o$1 = l$1.debounceRendering) || r$2)(M);
}
-function P() {
+function M() {
var n2, u2, t2, o2, r2, e2, c2, s2;
for (i$1.sort(f$1); n2 = i$1.shift(); ) n2.__d && (u2 = i$1.length, o2 = void 0, e2 = (r2 = (t2 = n2).__v).__e, c2 = [], s2 = [], t2.__P && ((o2 = d$1({}, r2)).__v = r2.__v + 1, l$1.vnode && l$1.vnode(o2), O(t2.__P, o2, r2, t2.__n, t2.__P.namespaceURI, 32 & r2.__u ? [e2] : null, c2, null == e2 ? x(r2) : e2, !!(32 & r2.__u), s2), o2.__v = r2.__v, o2.__.__k[o2.__i] = o2, j$1(c2, o2, s2), o2.__e != e2 && C$1(o2)), i$1.length > u2 && i$1.sort(f$1));
- P.__r = 0;
+ M.__r = 0;
}
-function S(n2, l2, u2, t2, i2, o2, r2, f2, e2, c2, s2) {
+function P(n2, l2, u2, t2, i2, o2, r2, f2, e2, c2, s2) {
var a2, p2, y2, d2, w2, _2 = t2 && t2.__k || v$1, g2 = l2.length;
for (u2.__d = e2, $(u2, l2, _2), e2 = u2.__d, a2 = 0; a2 < g2; a2++) null != (y2 = u2.__k[a2]) && (p2 = -1 === y2.__i ? h$1 : _2[y2.__i] || h$1, y2.__i = a2, O(n2, y2, p2, i2, o2, r2, f2, e2, c2, s2), d2 = y2.__e, y2.ref && p2.ref != y2.ref && (p2.ref && N(p2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), 65536 & y2.__u || p2.__k === y2.__k ? e2 = I(y2, e2, n2) : "function" == typeof y2.type && void 0 !== y2.__d ? e2 = y2.__d : d2 && (e2 = d2.nextSibling), y2.__d = void 0, y2.__u &= -196609);
u2.__d = e2, u2.__e = w2;
@@ -14764,33 +14764,33 @@ function F(n2) {
};
}
function O(n2, u2, t2, i2, o2, r2, f2, e2, c2, s2) {
- var a2, h2, v2, p2, w2, _2, g2, m2, x2, C2, M2, P2, $2, I2, H, L2, T2 = u2.type;
+ var a2, h2, v2, p2, w2, _2, g2, m2, x2, C2, S2, M2, $2, I2, H, L2, T2 = u2.type;
if (void 0 !== u2.constructor) return null;
128 & t2.__u && (c2 = !!(32 & t2.__u), r2 = [e2 = u2.__e = t2.__e]), (a2 = l$1.__b) && a2(u2);
n: if ("function" == typeof T2) try {
- if (m2 = u2.props, x2 = "prototype" in T2 && T2.prototype.render, C2 = (a2 = T2.contextType) && i2[a2.__c], M2 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? g2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (x2 ? u2.__c = h2 = new T2(m2, M2) : (u2.__c = h2 = new k$1(m2, M2), h2.constructor = T2, h2.render = q$1), C2 && C2.sub(h2), h2.props = m2, h2.state || (h2.state = {}), h2.context = M2, h2.__n = i2, v2 = h2.__d = true, h2.__h = [], h2._sb = []), x2 && null == h2.__s && (h2.__s = h2.state), x2 && null != T2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, T2.getDerivedStateFromProps(m2, h2.__s))), p2 = h2.props, w2 = h2.state, h2.__v = u2, v2) x2 && null == T2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), x2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
+ if (m2 = u2.props, x2 = "prototype" in T2 && T2.prototype.render, C2 = (a2 = T2.contextType) && i2[a2.__c], S2 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? g2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (x2 ? u2.__c = h2 = new T2(m2, S2) : (u2.__c = h2 = new k$1(m2, S2), h2.constructor = T2, h2.render = q$1), C2 && C2.sub(h2), h2.props = m2, h2.state || (h2.state = {}), h2.context = S2, h2.__n = i2, v2 = h2.__d = true, h2.__h = [], h2._sb = []), x2 && null == h2.__s && (h2.__s = h2.state), x2 && null != T2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, T2.getDerivedStateFromProps(m2, h2.__s))), p2 = h2.props, w2 = h2.state, h2.__v = u2, v2) x2 && null == T2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), x2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
else {
- if (x2 && null == T2.getDerivedStateFromProps && m2 !== p2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(m2, M2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(m2, h2.__s, M2) || u2.__v === t2.__v)) {
+ if (x2 && null == T2.getDerivedStateFromProps && m2 !== p2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(m2, S2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(m2, h2.__s, S2) || u2.__v === t2.__v)) {
for (u2.__v !== t2.__v && (h2.props = m2, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
n3 && (n3.__ = u2);
- }), P2 = 0; P2 < h2._sb.length; P2++) h2.__h.push(h2._sb[P2]);
+ }), M2 = 0; M2 < h2._sb.length; M2++) h2.__h.push(h2._sb[M2]);
h2._sb = [], h2.__h.length && f2.push(h2);
break n;
}
- null != h2.componentWillUpdate && h2.componentWillUpdate(m2, h2.__s, M2), x2 && null != h2.componentDidUpdate && h2.__h.push(function() {
+ null != h2.componentWillUpdate && h2.componentWillUpdate(m2, h2.__s, S2), x2 && null != h2.componentDidUpdate && h2.__h.push(function() {
h2.componentDidUpdate(p2, w2, _2);
});
}
- if (h2.context = M2, h2.props = m2, h2.__P = n2, h2.__e = false, $2 = l$1.__r, I2 = 0, x2) {
+ if (h2.context = S2, h2.props = m2, h2.__P = n2, h2.__e = false, $2 = l$1.__r, I2 = 0, x2) {
for (h2.state = h2.__s, h2.__d = false, $2 && $2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H = 0; H < h2._sb.length; H++) h2.__h.push(h2._sb[H]);
h2._sb = [];
} else do {
h2.__d = false, $2 && $2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
} while (h2.__d && ++I2 < 25);
- h2.state = h2.__s, null != h2.getChildContext && (i2 = d$1(d$1({}, i2), h2.getChildContext())), x2 && !v2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(p2, w2)), S(n2, y$1(L2 = null != a2 && a2.type === b && null == a2.key ? a2.props.children : a2) ? L2 : [L2], u2, t2, i2, o2, r2, f2, e2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && f2.push(h2), g2 && (h2.__E = h2.__ = null);
+ h2.state = h2.__s, null != h2.getChildContext && (i2 = d$1(d$1({}, i2), h2.getChildContext())), x2 && !v2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(p2, w2)), P(n2, y$1(L2 = null != a2 && a2.type === b && null == a2.key ? a2.props.children : a2) ? L2 : [L2], u2, t2, i2, o2, r2, f2, e2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && f2.push(h2), g2 && (h2.__E = h2.__ = null);
} catch (n3) {
if (u2.__v = null, c2 || null != r2) {
- for (u2.__u |= c2 ? 160 : 32; e2 && 8 === e2.nodeType && e2.nextSibling; ) e2 = e2.nextSibling;
+ for (u2.__u |= c2 ? 160 : 128; e2 && 8 === e2.nodeType && e2.nextSibling; ) e2 = e2.nextSibling;
r2[r2.indexOf(e2)] = null, u2.__e = e2;
} else u2.__e = t2.__e, u2.__k = t2.__k;
l$1.__e(n3, u2, t2);
@@ -14834,7 +14834,7 @@ function z$1(u2, t2, i2, o2, r2, f2, e2, c2, s2) {
}
for (a2 in k2) _2 = k2[a2], "children" == a2 ? d2 = _2 : "dangerouslySetInnerHTML" == a2 ? v2 = _2 : "value" == a2 ? g2 = _2 : "checked" == a2 ? m2 = _2 : c2 && "function" != typeof _2 || b2[a2] === _2 || A$1(u2, a2, _2, b2[a2], r2);
if (v2) c2 || p2 && (v2.__html === p2.__html || v2.__html === u2.innerHTML) || (u2.innerHTML = v2.__html), t2.__k = [];
- else if (p2 && (u2.innerHTML = ""), S(u2, y$1(d2) ? d2 : [d2], t2, i2, o2, "foreignObject" === C2 ? "http://www.w3.org/1999/xhtml" : r2, f2, e2, f2 ? f2[0] : i2.__k && x(i2, 0), c2, s2), null != f2) for (a2 = f2.length; a2--; ) w$1(f2[a2]);
+ else if (p2 && (u2.innerHTML = ""), P(u2, y$1(d2) ? d2 : [d2], t2, i2, o2, "foreignObject" === C2 ? "http://www.w3.org/1999/xhtml" : r2, f2, e2, f2 ? f2[0] : i2.__k && x(i2, 0), c2, s2), null != f2) for (a2 = f2.length; a2--; ) w$1(f2[a2]);
c2 || (a2 = "value", "progress" === C2 && null == g2 ? u2.removeAttribute("value") : void 0 !== g2 && (g2 !== u2[a2] || "progress" === C2 && !g2 || "option" === C2 && g2 !== b2[a2]) && A$1(u2, a2, g2, b2[a2], r2), a2 = "checked", void 0 !== m2 && m2 !== u2[a2] && A$1(u2, a2, m2, b2[a2], r2));
}
return u2;
@@ -14878,12 +14878,12 @@ n$1 = v$1.slice, l$1 = { __e: function(n2, l2, u2, t2) {
throw n2;
} }, u$1 = 0, k$1.prototype.setState = function(n2, l2) {
var u2;
- u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = d$1({}, this.state), "function" == typeof n2 && (n2 = n2(d$1({}, u2), this.props)), n2 && d$1(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), M(this));
+ u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = d$1({}, this.state), "function" == typeof n2 && (n2 = n2(d$1({}, u2), this.props)), n2 && d$1(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), S(this));
}, k$1.prototype.forceUpdate = function(n2) {
- this.__v && (this.__e = true, n2 && this.__h.push(n2), M(this));
+ this.__v && (this.__e = true, n2 && this.__h.push(n2), S(this));
}, k$1.prototype.render = b, i$1 = [], r$2 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f$1 = function(n2, l2) {
return n2.__v.__b - l2.__v.__b;
-}, P.__r = 0, e$2 = 0, c$1 = F(false), s$1 = F(true);
+}, M.__r = 0, e$2 = 0, c$1 = F(false), s$1 = F(true);
var n = function(t2, s2, r2, e2) {
var u2;
s2[0] = 0;
diff --git a/shared/bpmn-designer/dist/index.umd.js b/shared/bpmn-designer/dist/index.umd.js
index c0b49613..8eebf2f6 100644
--- a/shared/bpmn-designer/dist/index.umd.js
+++ b/shared/bpmn-designer/dist/index.umd.js
@@ -1,4 +1,4 @@
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("quasar"),require("vue"),require("@herodotus/components"),require("@herodotus/bpmn-apis"),require("@herodotus/core"),require("bpmn-js-properties-panel"),require("bpmn-js-token-simulation"),require("ids"),require("diagram-js")):"function"==typeof define&&define.amd?define(["exports","quasar","vue","@herodotus/components","@herodotus/bpmn-apis","@herodotus/core","bpmn-js-properties-panel","bpmn-js-token-simulation","ids","diagram-js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@herodotus/bpmn-designer"]={},e.quasar,e.vue,e.HerodotusComponents,e.HerodotusBpmnApis,e.HerodotusCore,e.BpmnJsPropertiesPanel,e.BpmnJsTokenSimulation,e.Ids,e.DiagramJs)}(this,(function(e,t,n,i,r,o,a,s,c,l){"use strict";const p=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n};const u=p(n.defineComponent({name:"HBpmnDesignerToolbar",components:{HListItem:i.HListItem,HSwitch:i.HSwitch,HTextField:i.HTextField},props:{file:{type:String,required:!0},zoom:{type:Number,default:1}},emits:["update:file","downloadXml","downloadSvg","downloadBpmn","alignLeft","alignRight","alignTop","alignBottom","alignHorizontalCenter","alignVerticalCenter","zoomMinus","zoomPlus","zoomReset","undo","redo","refresh","simulation","save"],setup(e,{emit:t}){const i=n.ref(null),r=n.ref(!1),o=n.ref(!1),a=n.ref(""),s=n.computed({get:()=>e.file,set:e=>{t("update:file",e)}}),c=n.ref(""),l=n.ref(""),p=n.ref(!1),u=n.ref(!1),d=n.ref(!1);n.watch(i,(e=>{(async e=>{if(e){const t=await e.text();a.value=e.name,t&&(s.value=t)}else s.value=""})(e)})),n.watch((()=>a.value),(e=>{e&&(c.value=e,d.value=!0)}),{immediate:!0}),n.watch(u,(e=>{e&&(p.value=!0)}),{immediate:!0});return{bpmnModelFile:i,onDownloadXml:()=>{t("downloadXml")},onDownloadSvg:()=>{t("downloadSvg")},onDownloadBpmn:()=>{t("downloadBpmn")},onAlignLeft:()=>{t("alignLeft")},onAlignRight:()=>{t("alignRight")},onAlignTop:()=>{t("alignTop")},onAlignBottom:()=>{t("alignBottom")},onAlignHorizontalCenter:()=>{t("alignHorizontalCenter")},onAlignVerticalCenter:()=>{t("alignVerticalCenter")},onZoomMinus:()=>{t("zoomMinus")},onZoomPlus:()=>{t("zoomPlus")},onZoomReset:()=>{t("zoomReset")},onUndo:()=>{t("undo")},onRedo:()=>{t("redo")},onRefresh:()=>{t("refresh")},simulation:r,onSimulation:()=>{r.value=!r.value,t("simulation")},showUploadDialog:o,onSave:()=>{o.value=!1;const e={deploymentName:c.value,enableDuplicateFiltering:p.value,deployChangedOnly:u.value,resource:s.value};t("save",e)},name:a,deploymentName:c,tenantId:l,enableDuplicateCheck:p,deployChangedOnly:u,disableNameInput:d}}}),[["render",function(e,i,r,o,a,s){const c=t.QIcon,l=t.QFile,p=t.QSeparator,u=n.resolveComponent("h-list-item"),d=t.QList,h=t.QBtnDropdown,m=n.resolveComponent("h-button"),f=t.QBtnGroup,g=t.QBtn,y=t.QCardSection,v=n.resolveComponent("h-text-field"),b=n.resolveComponent("h-switch"),x=t.QCardActions,_=t.QCard,w=t.QDialog,E=t.QToolbar,S=n.resolveDirective("close-popup");return n.openBlock(),n.createBlock(E,{class:"bg-primary text-white q-px-none"},{default:n.withCtx((()=>[n.createVNode(l,{modelValue:e.bpmnModelFile,"onUpdate:modelValue":i[0]||(i[0]=t=>e.bpmnModelFile=t),"label-color":"white","bg-color":"primary",square:"",standout:"",dense:"",clearable:"",label:"打开"},{prepend:n.withCtx((()=>[n.createVNode(c,{name:"mdi-folder-open",color:"white"})])),_:1},8,["modelValue"]),n.createVNode(p,{vertical:"",color:"white"}),n.createVNode(h,{stretch:"",flat:"",label:"下载",dense:"",icon:"mdi-download-box"},{default:n.withCtx((()=>[n.createVNode(d,null,{default:n.withCtx((()=>[n.createVNode(d,null,{default:n.withCtx((()=>[n.createVNode(u,{label:"下载为XML文件",icon:"mdi-xml",onClick:i[1]||(i[1]=t=>e.onDownloadXml())}),n.createVNode(u,{label:"下载为SVG文件",icon:"mdi-svg",onClick:i[2]||(i[2]=t=>e.onDownloadSvg())}),n.createVNode(u,{label:"下载为BPMN文件",icon:"mdi-codepen",onClick:i[3]||(i[3]=t=>e.onDownloadBpmn())})])),_:1})])),_:1})])),_:1}),n.createVNode(p,{vertical:"",color:"white"}),n.createVNode(h,{stretch:"",flat:"",label:"代码",dense:"",icon:"mdi-eye"},{default:n.withCtx((()=>[n.createVNode(d,null,{default:n.withCtx((()=>[n.createVNode(d,null,{default:n.withCtx((()=>[n.createVNode(u,{label:"预览XML",icon:"mdi-xml"}),n.createVNode(u,{label:"预览JSON",icon:"mdi-code-json"})])),_:1})])),_:1})])),_:1}),n.createVNode(p,{vertical:"",color:"white"}),n.createVNode(m,{stretch:"",flat:"",color:"primary",dense:"","text-color":"white",icon:e.simulation?"mdi-play-pause":"mdi-play",tooltip:e.simulation?"退出模拟":"开启模拟",label:e.simulation?"退出模拟":"开启模拟",onClick:i[4]||(i[4]=t=>e.onSimulation())},null,8,["icon","tooltip","label"]),n.createVNode(p,{vertical:"",color:"white"}),n.createVNode(m,{stretch:"",flat:"",color:"primary",dense:"","text-color":"white",icon:"mdi-cloud-upload",tooltip:"上传至服务器",label:"上传云端",onClick:i[5]||(i[5]=t=>e.showUploadDialog=!0)}),n.createVNode(p,{vertical:"",color:"white"}),n.createVNode(f,{class:"q-ml-sm"},{default:n.withCtx((()=>[n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-horizontal-left",tooltip:"向左对齐",onClick:i[6]||(i[6]=t=>e.onAlignLeft())}),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-horizontal-right",tooltip:"向右对齐",onClick:i[7]||(i[7]=t=>e.onAlignRight())}),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-vertical-top",tooltip:"向上对齐",onClick:i[8]||(i[8]=t=>e.onAlignTop())}),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-vertical-bottom",tooltip:"向下对齐",onClick:i[9]||(i[9]=t=>e.onAlignBottom())}),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-horizontal-center",tooltip:"水平居中",onClick:i[10]||(i[10]=t=>e.onAlignHorizontalCenter())}),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-vertical-center",tooltip:"垂直居中",onClick:i[11]||(i[11]=t=>e.onAlignVerticalCenter())})])),_:1}),n.createVNode(f,{class:"q-ml-xs"},{default:n.withCtx((()=>[n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-magnify-minus",tooltip:"缩小视图",disable:e.zoom<.2,onClick:i[12]||(i[12]=t=>e.onZoomMinus())},null,8,["disable"]),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(g,{color:"white","text-color":"grey-8",dense:"",class:"q-px-sm",label:Math.floor(10*e.zoom*10)+"%",disable:""},null,8,["label"]),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-magnify-plus",tooltip:"放大视图",disable:e.zoom>4,onClick:i[13]||(i[13]=t=>e.onZoomPlus())},null,8,["disable"]),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-magnify-scan",tooltip:"重置视图并居中",onClick:i[14]||(i[14]=t=>e.onZoomReset())})])),_:1}),n.createVNode(f,{class:"q-mx-xs"},{default:n.withCtx((()=>[n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-undo-variant",tooltip:"撤销",onClick:e.onUndo},null,8,["onClick"]),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-redo-variant",tooltip:"恢复",onClick:e.onRedo},null,8,["onClick"]),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-refresh",onClick:e.onRefresh},null,8,["onClick"])])),_:1}),n.createVNode(w,{modelValue:e.showUploadDialog,"onUpdate:modelValue":i[19]||(i[19]=t=>e.showUploadDialog=t)},{default:n.withCtx((()=>[n.createVNode(_,null,{default:n.withCtx((()=>[n.createVNode(y,null,{default:n.withCtx((()=>i[20]||(i[20]=[n.createElementVNode("div",{class:"text-h6"},"模型信息",-1)]))),_:1}),n.createVNode(p),n.createVNode(y,{style:{"max-height":"50vh"},class:"scroll"},{default:n.withCtx((()=>[n.createVNode(v,{modelValue:e.deploymentName,"onUpdate:modelValue":i[15]||(i[15]=t=>e.deploymentName=t),label:"模型名称",placeholder:"请输入模型名称",disable:e.disableNameInput},null,8,["modelValue","disable"]),n.createVNode(b,{modelValue:e.enableDuplicateCheck,"onUpdate:modelValue":i[16]||(i[16]=t=>e.enableDuplicateCheck=t),label:"开启部署重复检查"},null,8,["modelValue"]),n.createVNode(b,{modelValue:e.deployChangedOnly,"onUpdate:modelValue":i[17]||(i[17]=t=>e.deployChangedOnly=t),label:"仅在模型存在变化时部署"},null,8,["modelValue"])])),_:1}),n.createVNode(p),n.createVNode(x,{align:"right"},{default:n.withCtx((()=>[n.withDirectives(n.createVNode(g,{label:"取消",color:"red"},null,512),[[S]]),n.createVNode(g,{label:"部署",color:"primary",onClick:i[18]||(i[18]=t=>e.onSave())})])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1})}]]),d='\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n',h=(e,t)=>{const{warnings:n,message:i}=t;t(e,n,i)},m=(e,t)=>{if(e&&t){const n=document.createElement("a");n.download=t,n.href=e,n.click(),URL.revokeObjectURL(n.href)}},f=(e,t="diagram",n)=>({filename:`${t}.${e}`,href:`data:application/${"svg"===e?"text/xml":"bpmn20-xml"};charset=UTF-8,${encodeURIComponent(n)}`,data:n}),g={"Activate the create/remove space tool":"启动创建/删除空间工具","Activate the global connect tool":"启动全局连接工具","Activate the hand tool":"启动手动工具","Activate the lasso tool":"启动 Lasso 工具","Ad-hoc":"Ad-hoc子流程","Add Lane above":"添加到通道之上","Add Lane below":"添加到通道之下","Append compensation activity":"追加补偿活动","Append {type}":"追加 {type}","Business Rule Task":"规则任务","Call Activity":"引用流程","Cancel Boundary Event":"取消边界事件","Cancel End Event":"结束取消事件","Change type":"更改类型","Collapsed Pool":"折叠池","Compensation Boundary Event":"补偿边界事件","Compensation End Event":"结束补偿事件","Compensation Intermediate Throw Event":"中间补偿抛出事件","Compensation Start Event":"补偿启动事件","Complex Gateway":"复杂网关","Conditional Boundary Event (non-interrupting)":"条件边界事件 (非中断)","Conditional Boundary Event":"条件边界事件","Conditional Intermediate Catch Event":"中间条件捕获事件","Conditional Start Event (non-interrupting)":"条件启动事件 (非中断)","Conditional Start Event":"条件启动事件","Connect using Association":"文本关联","Connect using DataInputAssociation":"数据关联","Connect using Sequence/MessageFlow or Association":"消息关联","Create IntermediateThrowEvent/BoundaryEvent":"创建中间抛出/边界事件","Create Pool/Participant":"创建池/参与者","Create expanded SubProcess":"创建可折叠子流程","Create {type}":"创建 {type}","Divide into three Lanes":"分成三条通道","Divide into two Lanes":"分成两条通道","End Event":"结束事件","Error Boundary Event":"错误边界事件","Error End Event":"结束错误事件","Error Start Event":"错误启动事件","Escalation Boundary Event (non-interrupting)":"升级边界事件 (非中断)","Escalation Boundary Event":"升级边界事件","Escalation End Event":"结束升级事件","Escalation Intermediate Throw Event":"中间升级抛出事件","Escalation Start Event (non-interrupting)":"升级启动事件 (非中断)","Escalation Start Event":"升级启动事件","Event Sub Process":"事件子流程","Event based Gateway":"事件网关","Exclusive Gateway":"独占网关","Expanded Pool":"展开池","Inclusive Gateway":"包容网关","Intermediate Throw Event":"中间抛出事件","Link Intermediate Catch Event":"中间链接捕获事件","Link Intermediate Throw Event":"中间链接抛出事件",Loop:"循环","Manual Task":"手动任务","Message Boundary Event (non-interrupting)":"消息边界事件 (非中断)","Message Boundary Event":"消息边界事件","Message End Event":"结束消息事件","Message Intermediate Catch Event":"中间消息捕获事件","Message Intermediate Throw Event":"中间消息抛出事件","Message Start Event (non-interrupting)":"消息启动事件 (非中断)","Message Start Event":"消息启动事件","Parallel Gateway":"并行网关","Parallel Multi Instance":"并行多实例","Receive Task":"接受任务",Remove:"移除","Script Task":"脚本任务","Send Task":"发送任务","Sequential Multi Instance":"串行多实例","Service Task":"服务任务","Signal Boundary Event (non-interrupting)":"信号边界事件 (非中断)","Signal Boundary Event":"信号边界事件","Signal End Event":"结束信号事件","Signal Intermediate Catch Event":"中间信号捕获事件","Signal Intermediate Throw Event":"中间信号抛出事件","Signal Start Event (non-interrupting)":"信号启动事件 (非中断)","Signal Start Event":"信号启动事件","Start Event":"开始事件","Sub Process (collapsed)":"可折叠子流程","Sub Process (expanded)":"可展开子流程","Sub Process":"子流程",Task:"任务","Terminate End Event":"终止边界事件","Timer Boundary Event (non-interrupting)":"定时边界事件 (非中断)","Timer Boundary Event":"定时边界事件","Timer Intermediate Catch Event":"中间定时捕获事件","Timer Start Event (non-interrupting)":"定时启动事件 (非中断)","Timer Start Event":"定时启动事件",Transaction:"事务","User Task":"用户任务","already rendered {element}":"{element} 已呈现","diagram not part of bpmn:Definitions":"图表不是 bpmn:Definitions 的一部分","element required":"需要元素","element {element} referenced by {referenced}#{property} not yet drawn":"元素 {element} 的引用 {referenced}#{property} 尚未绘制","failed to import {element}":"{element} 导入失败","flow elements must be children of pools/participants":"元素必须是池/参与者的子级","more than {count} child lanes":"超过 {count} 条通道","no diagram to display":"没有要显示的图表","no parent for {element} in {parent}":"在 {element} 中没有父元素 {parent}","no process or collaboration to display":"没有可显示的流程或协作","no shape type specified":"未指定形状类型","out of bounds release":"越界释放","Asynchronous Continuations":"异步延续","Candidate starter":"候选发起人",create:"创建","Create new list item":"创建新列表项",Documentation:"文档",General:"常规","Execution listeners":"执行监听器","Extension properties":"扩展属性","External task":"外部任务",Forms:"表单","History cleanup":"历史清理",Inputs:"输入","Job execution":"调度执行",Outputs:"输出",Tasklist:"任务列表"};function y(e,t){t=t||{};return(e=g[e]||e).replace(/{([^}]+)}/g,(function(e,n){return t[n]||"{"+n+"}"}))}function v(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}function b(e){return Array.prototype.concat.apply([],e)}const x=Object.prototype.toString,_=Object.prototype.hasOwnProperty;function w(e){return void 0===e}function E(e){return void 0!==e}function S(e){return null==e}function C(e){return"[object Array]"===x.call(e)}function k(e){return"[object Object]"===x.call(e)}function A(e){return"[object Number]"===x.call(e)}function P(e){const t=x.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t||"[object Proxy]"===t}function R(e){return"[object String]"===x.call(e)}function M(e,t){return _.call(e,t)}function T(e,t){const n=K(t);let i;return N(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function B(e,t){const n=K(t);let i=C(e)?-1:void 0;return N(e,(function(e,t){if(n(e,t))return i=t,!1})),i}function D(e,t){const n=K(t);let i=[];return N(e,(function(e,t){n(e,t)&&i.push(e)})),i}function N(e,t){let n,i;if(w(e))return;const r=C(e)?Y:X;for(let o in e)if(M(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function O(e,t){if(w(e))return[];!function(e){if(!C(e))throw new Error("must supply array")}(e);const n=K(t);return e.filter((function(e,t){return!n(e,t)}))}function j(e,t,n){return N(e,(function(e,i){n=t(n,e,i)})),n}function L(e,t){return!!j(e,(function(e,n,i){return e&&t(n,i)}),!0)}function I(e,t){return!!T(e,t)}function $(e,t){let n=[];return N(e,(function(e,i){n.push(t(e,i))})),n}function z(e){return e&&Object.keys(e)||[]}function F(e){return $(e,(e=>e))}function H(e,t,n={}){return t=q(t),N(e,(function(e){let i=t(e)||"_",r=n[i];r||(r=n[i]=[]),r.push(e)})),n}function V(e,...t){e=q(e);let n={};return N(t,(t=>H(t,e,n))),$(n,(function(e,t){return e[0]}))}const G=V;function W(e,t){t=q(t);let n=[];return N(e,(function(e,i){let r=t(e,i),o={d:r,v:e};for(var a=0;ae.v))}function U(e){return function(t){return L(e,(function(e,n){return t[n]===e}))}}function q(e){return P(e)?e:t=>t[e]}function K(e){return P(e)?e:t=>t===e}function X(e){return e}function Y(e){return Number(e)}function Z(e,t){return e.bind(t)}function Q(e,...t){return Object.assign(e,...t)}function J(e,t){let n={},i=Object(e);return N(t,(function(t){t in i&&(n[t]=e[t])})),n}function ee(e,t){let n={};return N(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}function te(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}const ne=Object.prototype.toString,ie=Object.prototype.hasOwnProperty;function re(e,t){return ie.call(e,t)}function oe(e,t){let n,i;if(void 0===e)return;const r=function(e){return"[object Array]"===ne.call(e)}(e)?se:ae;for(let o in e)if(re(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function ae(e){return e}function se(e){return Number(e)}function ce(e,...t){const n=e.style;return oe(t,(function(e){e&&oe(e,(function(e,t){n[t]=e}))})),e}function le(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)}const pe=Object.prototype.toString;function ue(e){return new de(e)}function de(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function he(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function me(e,t,n){var i=n?e:e.parentNode;return i&&"function"==typeof i.closest&&i.closest(t)||null}de.prototype.add=function(e){return this.list.add(e),this},de.prototype.remove=function(e){return"[object RegExp]"==pe.call(e)?this.removeMatching(e):(this.list.remove(e),this)},de.prototype.removeMatching=function(e){const t=this.array();for(let n=0;na',Ce=!we.getElementsByTagName("link").length,we=void 0);var ke={legend:[1,""],tr:[2,""],col:[2,""],_default:Ce?[1,"X","
"]:[0,"",""]};ke.td=ke.th=[3,""],ke.option=ke.optgroup=[1,'"],ke.thead=ke.tbody=ke.colgroup=ke.caption=ke.tfoot=[1,""],ke.polyline=ke.ellipse=ke.polygon=ke.circle=ke.text=ke.line=ke.path=ke.rect=ke.g=[1,'"];var Ae=Se;function Pe(e,t){return e&&"function"==typeof e.matches&&e.matches(t)||!1}function Re(e,t){return(t=t||document).querySelector(e)}function Me(e,t){return(t=t||document).querySelectorAll(e)}function Te(e){e.parentNode&&e.parentNode.removeChild(e)}function Be(e,t){return function(e,t){t.appendChild(function(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch(n){}return e}(e,t))}(t,e),e}var De={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":2,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":2,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Ne(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=De[i];r?(2===r&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function Oe(e,t,n){if("string"==typeof t){if(void 0===n)return function(e,t){return De[t]?e.style[t]:e.getAttributeNS(null,t)}(e,t);Ne(e,t,n)}else!function(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)Ne(e,i,t[i])}(e,t);return e}const je=Object.prototype.toString;function Le(e){return new Ie(e)}function Ie(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function $e(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function ze(e){return e.cloneNode(!0)}Ie.prototype.add=function(e){return this.list.add(e),this},Ie.prototype.remove=function(e){return"[object RegExp]"==je.call(e)?this.removeMatching(e):(this.list.remove(e),this)},Ie.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n"+e+"",t=!0);var n=function(e){var t;return(t=new DOMParser).async=!1,t.parseFromString(e,"text/xml")}(e);if(!t)return n;for(var i=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function Ge(e,t){var n;return"<"===(e=e.trim()).charAt(0)?(n=Ve(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(Fe,e),t&&Oe(n,t),n}var We=null;function Ue(e){return(null===We&&(We=Ge("svg")),We).createSVGTransform()}var qe=/([&<>]{1})/g,Ke=/([&<>\n\r"]{1})/g,Xe={"&":"&","<":"<",">":">",'"':"'"};function Ye(e,t){return e.replace(t,(function(e,t){return Xe[t]||t}))}function Ze(e,t){var n,i,r,o,a;switch(e.nodeType){case 3:t.push(Ye(e.textContent,qe));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(r=e.attributes).length;n"),n=0,i=(a=e.childNodes).length;n")}else t.push("/>");break;case 8:t.push("\x3c!--",Ye(e.nodeValue,qe),"--\x3e");break;case 4:t.push("");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function Qe(e,t){return function(e){for(var t=e.firstChild,n=[];t;)Ze(t,n),t=t.nextSibling;return n.join("")}(e)}function Je(e){var t=e.parentNode;return t&&t.removeChild(e),e}function et(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function tt(e,t){var n=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),function(e,t){var n,i;for(e.clear(),n=0;i=t[n];n++)e.appendItem(et(e,i))}(n,t)),n.consolidate()}function nt(){}function it(e,t){this.model=e,this.properties=t}nt.prototype.get=function(e){return this.$model.properties.get(this,e)},nt.prototype.set=function(e,t){this.$model.properties.set(this,e,t)},it.prototype.createType=function(e){var t=this.model,n=this.properties,i=Object.create(nt.prototype);N(e.properties,(function(e){e.isMany||void 0===e.default||(i[e.name]=e.default)})),n.defineModel(i,t),n.defineDescriptor(i,e);var r=e.ns.name;function o(e){n.define(this,"$type",{value:r,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),N(e,Z((function(e,t){this.set(t,e)}),this))}return o.prototype=i,o.hasType=i.$instanceOf=this.model.hasType,n.defineModel(o,t),n.defineDescriptor(o,e),o};var rt={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},ot={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function at(e,t){var n=ot[e];return n?n(t):t}function st(e){return!!rt[e]}function ct(e){return!!ot[e]}function lt(e,t){var n,i,r=e.split(/:/);if(1===r.length)n=e,i=t;else{if(2!==r.length)throw new Error("expected or , got "+e);n=r[1],i=r[0]}return{name:e=(i?i+":":"")+n,prefix:i,localName:n}}function pt(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function ut(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,N(e,Z(this.registerPackage,this))}function dt(e,t,n){var i=t[n];if(i in e)throw new Error("package with "+n+" <"+i+"> already defined")}function ht(e){this.model=e}function mt(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function ft(e){return e.replace(/^:/,"")}function gt(e,t={}){this.properties=new ht(this),this.factory=new it(this,this.properties),this.registry=new ut(e,this.properties),this.typeCache={},this.config=t}pt.prototype.build=function(){return J(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},pt.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},pt.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=r.indexOf(e);if(-1===s)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(t,n?void 0:s,a),o[i.name]=o[i.localName]=t},pt.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),o=lt(r[0],i),a=lt(r[1],o.prefix).name,s=this.propertiesByName[a];if(!s)throw new Error("refined property <"+a+"> not found");this.replaceProperty(s,e,n),delete e.redefines},pt.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},pt.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},pt.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},pt.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},pt.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},pt.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},pt.prototype.hasProperty=function(e){return this.propertiesByName[e]},pt.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var n=this.allTypesByName,i=this.allTypes,r=e.name;r in n||(N(e.properties,Z((function(n){n=Q({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,r=n.redefines;i||r?this.redefineProperty(n,i||r,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))}),this)),i.push(e),n[r]=e)},ut.prototype.getPackage=function(e){return this.packageMap[e]},ut.prototype.getPackages=function(){return this.packages},ut.prototype.registerPackage=function(e){e=Q({},e);var t=this.packageMap;dt(t,e,"prefix"),dt(t,e,"uri"),N(e.types,Z((function(t){this.registerType(t,e)}),this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},ut.prototype.registerType=function(e,t){var n=lt((e=Q({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:Q(e.meta||{})})).name,t.prefix),i=n.name,r={};N(e.properties,Z((function(e){var t=lt(e.name,n.prefix),i=t.name;st(e.type)||(e.type=lt(e.type,t.prefix).name),Q(e,{ns:t,name:i}),r[i]=e}),this)),Q(e,{ns:n,name:i,propertiesByName:r}),N(e.extends,Z((function(e){var t=lt(e,n.prefix),r=this.typeMap[t.name];r.traits=r.traits||[],r.traits.push(i)}),this)),this.definePackage(e,t),this.typeMap[i]=e},ut.prototype.mapTypes=function(e,t,n){var i=st(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(n,i){var o=lt(n,st(n)?"":e.prefix);r.mapTypes(o,t,i)}function a(e){return o(e,!0)}if(!i)throw new Error("unknown type <"+e.name+">");N(i.superClass,n?a:function(e){return o(e,!1)}),t(i,!n),N(i.traits,a)},ut.prototype.getEffectiveDescriptor=function(e){var t=lt(e),n=new pt(t);this.mapTypes(t,(function(e,t){n.addTrait(e,t)}));var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},ut.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})},ht.prototype.set=function(e,t,n){if(!R(t)||!t.length)throw new TypeError("property name must be a non-empty string");var i=this.getProperty(e,t),r=i&&i.name;void 0===n?i?delete e[r]:delete e.$attrs[ft(t)]:i?r in e?e[r]=n:mt(e,i,n):e.$attrs[ft(t)]=n},ht.prototype.get=function(e,t){var n=this.getProperty(e,t);if(!n)return e.$attrs[ft(t)];var i=n.name;return!e[i]&&n.isMany&&mt(e,n,[]),e[i]},ht.prototype.define=function(e,t,n){if(!n.writable){var i=n.value;delete(n=Q({},n,{get:function(){return i}})).value}Object.defineProperty(e,t,n)},ht.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},ht.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},ht.prototype.getProperty=function(e,t){var n=this.model,i=n.getPropertyDescriptor(e,t);if(i)return i;if(t.includes(":"))return null;const r=n.config.strict;if(void 0!==r){const n=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(r)throw n}return null},gt.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},gt.prototype.getType=function(e){var t=this.typeCache,n=R(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},gt.prototype.createAny=function(e,t,n){var i=lt(e),r={$type:e,$instanceOf:function(e){return e===this.$type},get:function(e){return this[e]},set:function(e,t){!function(e,t,n){let i=e;N(t,(function(e,r){if("number"!=typeof e&&"string"!=typeof e)throw new Error("illegal key type: "+typeof e+". Key should be of type number or string.");if("constructor"===e)throw new Error("illegal key: constructor");if("__proto__"===e)throw new Error("illegal key: __proto__");let o=t[r+1],a=i[e];E(o)&&S(a)&&(a=i[e]=isNaN(+o)?{}:[]),w(o)?w(n)?delete i[e]:i[e]=n:i=a}))}(this,[e],t)}},o={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:t}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),N(n,(function(e,t){k(e)&&void 0!==e.value?r[e.name]=e.value:r[t]=e})),r},gt.prototype.getPackage=function(e){return this.registry.getPackage(e)},gt.prototype.getPackages=function(){return this.registry.getPackages()},gt.prototype.getElementDescriptor=function(e){return e.$descriptor},gt.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},gt.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},gt.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var yt=String.fromCharCode,vt=Object.prototype.hasOwnProperty,bt=/(\d+);|([0-9a-f]+);|&(\w+);/gi,xt={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function _t(e,t,n,i){return i?vt.call(xt,i)?xt[i]:"&"+i+";":yt(t||parseInt(n,16))}function wt(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(bt,_t):e}Object.keys(xt).forEach((function(e){xt[e.toUpperCase()]=xt[e]}));var Et="xsi:type",St="non-whitespace outside of root node";function Ct(e){return new Error(e)}function kt(e){return"missing namespace for prefix <"+e+">"}function At(e){return{get:e,enumerable:!0}}function Pt(e){var t,n={};for(t in e)n[t]=e[t];return n}function Rt(e){return e+"$uri"}function Mt(){return{line:0,column:0}}function Tt(e){throw e}function Bt(e){if(!this)return new Bt(e);var t,n,i,r,o,a,s,c,l,p=e&&e.proxy,u=Tt,d=Mt,h=!1,m=!1,f=null,g=!1;function y(e){e instanceof Error||(e=Ct(e)),f=e,u(e,d)}function v(e){o&&(e instanceof Error||(e=Ct(e)),o(e,d))}this.on=function(e,l){if("function"!=typeof l)throw Ct("required args ");switch(e){case"openTag":n=l;break;case"text":t=l;break;case"closeTag":i=l;break;case"error":u=l;break;case"warn":o=l;break;case"cdata":r=l;break;case"attention":c=l;break;case"question":s=l;break;case"comment":a=l;break;default:throw Ct("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw Ct("required args ");var t,n={};for(t in e)n[t]=e[t];return n["http://www.w3.org/2001/XMLSchema-instance"]="xsi",m=!0,l=n,this},this.parse=function(e){if("string"!=typeof e)throw Ct("required args ");return f=null,function(e){var o,u,f,b,x,_,w,E,S,C,k,A=m?[]:null,P=m?function(e){var t,n,i={};for(t in e)i[n=e[t]]=n,i[Rt(n)]=t;return i}(l):null,R=[],M=0,T=!1,B=!1,D=0,N=0,O="",j=0;function L(){if(null!==k)return k;var e,t,n,i,r,o,a,s,c,p,u,d=m&&P.xmlns,f=m&&h?[]:null,g=j,y=O,b=y.length,x={},_={};e:for(;g8)){for((p<65||p>122||p>90&&p<97)&&95!==p&&58!==p&&(v("illegal first char attribute name"),c=!0),u=g+1;u96&&p<123||p>64&&p<91||p>47&&p<59||46===p||45===p||95===p)){if(32===p||p<14&&p>8){v("missing attribute value"),g=u;continue e}if(61===p)break;v("illegal attribute name char"),c=!0}if("xmlns:xmlns"===(s=y.substring(g,u))&&(v("illegal declaration of xmlns"),c=!0),34===(p=y.charCodeAt(u+1)))-1===(u=y.indexOf('"',g=u+2))&&-1!==(u=y.indexOf("'",g))&&(v("attribute value quote missmatch"),c=!0);else if(39===p)-1===(u=y.indexOf("'",g=u+2))&&-1!==(u=y.indexOf('"',g))&&(v("attribute value quote missmatch"),c=!0);else for(v("missing attribute value quotes"),c=!0,u+=1;u8);u++);for(-1===u&&(v("missing closing quotes"),u=b,c=!0),c||(o=y.substring(g,u)),g=u;u+18);u++)g===u&&(v("illegal character after attribute end"),c=!0);if(g=u+1,!c)if(s in _)v("attribute <"+s+"> already defined");else if(_[s]=!0,m)if(h){if(null!==(r="xmlns"===s?"xmlns":120===s.charCodeAt(0)&&"xmlns:"===s.substr(0,6)?s.substr(6):null)){if(e=wt(o),t=Rt(r),!(a=l[e])){if("xmlns"===r||t in P&&P[t]!==e)do{a="ns"+M++}while(void 0!==P[a]);else a=r;l[e]=a}P[r]!==a&&(i||(P=Pt(P),i=!0),P[r]=a,"xmlns"===r&&(P[Rt(a)]=e,d=a),P[t]=e),x[s]=o;continue}f.push(s,o)}else-1!==(p=s.indexOf(":"))?(n=P[s.substring(0,p)])?((s=d===n?s.substr(p+1):n+s.substr(p))===Et&&(-1!==(p=o.indexOf(":"))?(n=o.substring(0,p),o=(n=P[n]||n)+o.substring(p)):o=d+":"+o),x[s]=o):v(kt(s.substring(0,p))):x[s]=o;else x[s]=o}if(h)for(g=0,b=f.length;g=a&&(t=i.exec(e))&&!((s=t[0].length+t.index)>D);)r+=1,a=s;return-1==D?(o=s,n=e.substring(N)):0===N?n=e.substring(N,D):(o=D-a,n=-1==N?e.substring(D):e.substring(D,N+1)),{data:n,line:r,column:o}}d=I,p&&(C=Object.create({},{name:At((function(){return E})),originalName:At((function(){return S})),attrs:At(L),ns:At((function(){return P}))}));for(;-1!==N;){if(-1===(D=60===e.charCodeAt(N)?N:e.indexOf("<",N)))return R.length?y("unexpected end of file"):0===N?y("missing start tag"):void(N",D)))return y("unclosed cdata");if(r&&(r(e.substring(D+9,N),d),g))return;N+=3;continue}if(45===b&&45===e.charCodeAt(D+3)){if(-1===(N=e.indexOf("--\x3e",D)))return y("unclosed comment");if(a&&(a(e.substring(D+4,N),wt,d),g))return;N+=3;continue}}if(63!==x){for(u=D+1;;u++){if(_=e.charCodeAt(u),isNaN(_))return N=-1,y("unclosed tag");if(34===_)u=-1!==(b=e.indexOf('"',u+1))?b:u;else if(39===_)u=-1!==(b=e.indexOf("'",u+1))?b:u;else if(62===_){N=u;break}}if(33!==x){if(k={},47===x){if(T=!1,B=!0,!R.length)return y("missing open tag");if(u=E=R.pop(),b=D+2+u.length,e.substring(D+2,b)!==u)return y("closing tag mismatch");for(;b8&&x<14))return y("close tag")}else{if(47===e.charCodeAt(N-1)?(u=E=e.substring(D+1,N-1),T=!0,B=!0):(u=E=e.substring(D+1,N),T=!0,B=!1),!(x>96&&x<123||x>64&&x<91||95===x||58===x))return y("illegal first char nodeName");for(b=1,f=u.length;b96&&x<123||x>64&&x<91||x>47&&x<59||45===x||95===x||46==x)){if(32===x||x<14&&x>8){E=u.substring(0,b),k=null;break}return y("invalid nodeName")}B||R.push(E)}if(m){if(o=P,T&&(B||A.push(o),null===k&&(h=-1!==u.indexOf("xmlns",b))&&(j=b,O=u,L(),h=!1)),S=E,-1!==(x=E.indexOf(":"))){if(!(w=P[E.substring(0,x)]))return y("missing namespace on <"+S+">");E=E.substr(x+1)}else w=P.xmlns;w&&(E=w+":"+E)}if(T&&(j=b,O=u,n&&(p?n(C,wt,B,d):n(E,L,wt,B,d),g)))return;if(B){if(i&&(i(p?C:E,wt,T,d),g))return;m&&(P=T?o:A.pop())}N+=1}else{if(c&&(c(e.substring(D,N+1),wt,d),g))return;N+=1}}else{if(-1===(N=e.indexOf("?>",D)))return y("unclosed question");if(s&&(s(e.substring(D,N+2),d),g))return;N+=2}}}(e),d=Mt,g=!1,f},this.stop=function(){g=!0}}function Dt(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var Nt={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Ot="xsi:type";function jt(e){return e.xml&&e.xml.serialize}function Lt(e){return jt(e)===Ot}function It(e,t){return Dt(t)?e.prefix+":"+((n=e.localName).charAt(0).toUpperCase()+n.slice(1)):e.name;var n}function $t(e){return new Error(e)}function zt(e){return e.$descriptor}function Ft(e){Q(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw $t("expected element");var t,n=this.elementsById,i=zt(e).idProperty;if(i&&(t=e.get(i.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(t))throw new Error("illegal ID <"+t+">");if(n[t])throw $t("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function Ht(){}function Vt(){}function Gt(){}function Wt(e,t){this.property=e,this.context=t}function Ut(e,t){this.element=t,this.propertyDesc=e}function qt(){}function Kt(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function Xt(e,t,n){Kt.call(this,e,t,n)}function Yt(e,t,n){this.model=e,this.context=n}function Zt(e){e instanceof gt&&(e={model:e}),Q(this,{lax:!1},e)}Ht.prototype.handleEnd=function(){},Ht.prototype.handleText=function(){},Ht.prototype.handleNode=function(){},Vt.prototype=Object.create(Ht.prototype),Vt.prototype.handleNode=function(){return this},Gt.prototype=Object.create(Ht.prototype),Gt.prototype.handleText=function(e){this.body=(this.body||"")+e},Wt.prototype=Object.create(Gt.prototype),Wt.prototype.handleNode=function(e){if(this.element)throw $t("expected no sub nodes");return this.element=this.createReference(e),this},Wt.prototype.handleEnd=function(){this.element.id=this.body},Wt.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},Ut.prototype=Object.create(Gt.prototype),Ut.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=at(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},qt.prototype=Object.create(Gt.prototype),qt.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},Kt.prototype=Object.create(qt.prototype),Kt.prototype.addReference=function(e){this.context.addReference(e)},Kt.prototype.handleText=function(e){if(!zt(this.element).bodyProperty)throw $t("unexpected body text <"+e+">");Gt.prototype.handleText.call(this,e)},Kt.prototype.handleEnd=function(){var e=this.body,t=this.element,n=zt(t).bodyProperty;n&&void 0!==e&&(e=at(n.type,e),t.set(n.name,e))},Kt.prototype.createElement=function(e){var t,n=e.attributes,i=this.type,r=zt(i),o=this.context,a=new i({}),s=this.model;return N(n,(function(e,n){var i=r.propertiesByName[n];i&&i.isReference?i.isMany?N(e.split(" "),(function(e){o.addReference({element:a,property:i.ns.name,id:e})})):o.addReference({element:a,property:i.ns.name,id:e}):(i?e=at(i.type,e):"xmlns"!==n&&(t=lt(n,r.ns.prefix),s.getPackage(t.prefix)&&o.addWarning({message:"unknown attribute <"+n+">",element:a,property:n,value:e})),a.set(n,e))})),a},Kt.prototype.getPropertyForNode=function(e){var t,n,i=lt(e.name),r=this.type,o=this.model,a=zt(r),s=i.name,c=a.propertiesByName[s];if(c&&!c.isAttr)return Lt(c)&&(t=e.attributes[Ot])?(t=function(e,t){var n=lt(e);return function(e,t){var n=e.name,i=e.localName,r=t.xml&&t.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):n}(n,t.getPackage(n.prefix))}(t,o),Q({},c,{effectiveType:zt(n=o.getType(t)).name})):c;var l=o.getPackage(i.prefix);if(l){if(t=It(i,l),n=o.getType(t),c=T(a.properties,(function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)})))return Q({},c,{effectiveType:zt(n).name})}else if(c=T(a.properties,(function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type})))return c;throw $t("unrecognized element <"+i.name+">")},Kt.prototype.toString=function(){return"ElementDescriptor["+zt(this.type).name+"]"},Kt.prototype.valueHandler=function(e,t){return new Ut(e,t)},Kt.prototype.referenceHandler=function(e){return new Wt(e,this.context)},Kt.prototype.handler=function(e){return"Element"===e?new Yt(this.model,e,this.context):new Kt(this.model,e,this.context)},Kt.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,ct(n=t.effectiveType||t.type))return this.valueHandler(t,i);var o=(r=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==o&&(t.isMany?i.get(t.name).push(o):i.set(t.name,o),t.isReference?(Q(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},Xt.prototype=Object.create(Kt.prototype),Xt.prototype.createElement=function(e){var t=e.name,n=lt(t),i=this.model,r=this.type,o=i.getPackage(n.prefix),a=o&&It(n,o)||t;if(!r.hasType(a))throw $t("unexpected element <"+e.originalName+">");return Kt.prototype.createElement.call(this,e)},Yt.prototype=Object.create(qt.prototype),Yt.prototype.createElement=function(e){var t=e.name,n=lt(t).prefix,i=e.ns[n+"$uri"],r=e.attributes;return this.model.createAny(t,i,r)},Yt.prototype.handleChild=function(e){var t=new Yt(this.model,"Element",this.context).handleNode(e),n=this.element,i=t.element;return void 0!==i&&((n.$children=n.$children||[]).push(i),i.$parent=n),t},Yt.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},Zt.prototype.fromXML=function(e,t,n){var i=t.rootHandler;t instanceof Kt?(i=t,t={}):"string"==typeof t?(i=this.handler(t),t={}):"string"==typeof i&&(i=this.handler(i));var r=this.model,o=this.lax,a=new Ft(Q({},t,{rootHandler:i})),s=new Bt({proxy:!0}),c=function(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}();function l(e,t,n){var i=t(),r=i.line,o=i.column,s=i.data;"<"===s.charAt(0)&&-1!==s.indexOf(" ")&&(s=s.slice(0,s.indexOf(" "))+">");var c="unparsable content "+(s?s+" ":"")+"detected\n\tline: "+r+"\n\tcolumn: "+o+"\n\tnested error: "+e.message;if(n)return a.addWarning({message:c,error:e}),!0;throw $t(c)}function p(e,t){return l(e,t,!0)}i.context=a,c.push(i);var u=/^<\?xml /i,d=/ encoding="([^"]+)"/i,h=/^utf-8$/i;function m(e,t){try{c.peek().handleText(e)}catch(n){p(n,t)}}var f=r.getPackages().reduce((function(e,t){return e[t.uri]=t.prefix,e}),{"http://www.w3.org/XML/1998/namespace":"xml"});return s.ns(f).on("openTag",(function(e,t,n,i){var r=e.attrs||{},a=Object.keys(r).reduce((function(e,n){var i=t(r[n]);return e[n]=i,e}),{});!function(e,t){var n=c.peek();try{c.push(n.handleNode(e))}catch(i){l(i,t,o)&&c.push(new Vt)}}({name:e.name,originalName:e.originalName,attributes:a,ns:e.ns},i)})).on("question",(function(e){if(u.test(e)){var t=d.exec(e),n=t&&t[1];n&&!h.test(n)&&a.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}})).on("closeTag",(function(){c.pop().handleEnd()})).on("cdata",m).on("text",(function(e,t,n){!function(e,t){e.trim()&&m(e,t)}(t(e),n)})).on("error",l).on("warn",p),new Promise((function(t,n){var r;try{s.parse(e),function(){var e,t,n=a.elementsById,i=a.references;for(e=0;t=i[e];e++){var r=t.element,o=n[t.id],s=zt(r).propertiesByName[t.property];if(o||a.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),s.isMany){var c=r.get(s.name),l=c.indexOf(t);-1===l&&(l=c.length),o?c[l]=o:c.splice(l,1)}else r.set(s.name,o)}}()}catch(u){r=u}var o=i.element;r||o||(r=$t("failed to parse document as <"+i.type.$descriptor.name+">"));var c=a.warnings,l=a.references,p=a.elementsById;return r?(r.warnings=c,n(r)):t({rootElement:o,elementsById:p,references:l,warnings:c})}))},Zt.prototype.handler=function(e){return new Xt(this.model,e)};var Qt=/<|>|'|"|&|\n\r|\n/g,Jt=/<|>|&/g;function en(e){var t={},n={},i={},r=[],o=[];this.byUri=function(t){return n[t]||e&&e.byUri(t)},this.add=function(e,t){n[e.uri]=e,t?r.push(e):o.push(e),this.mapPrefix(e.prefix,e.uri)},this.uriByPrefix=function(e){return t[e||"xmlns"]},this.mapPrefix=function(e,n){t[e||"xmlns"]=n},this.getNSKey=function(e){return void 0!==e.prefix?e.uri+"|"+e.prefix:e.uri},this.logUsed=function(t){var n=t.uri,r=this.getNSKey(t);i[r]=this.byUri(n),e&&e.logUsed(t)},this.getUsed=function(e){var t=this;return[].concat(r,o).filter((function(e){var n=t.getNSKey(e);return i[n]}))}}function tn(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function nn(e){return R(e)?e:(e.prefix?e.prefix+":":"")+e.localName}var rn={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},on={"<":"lt",">":"gt","&":"amp"};function an(e,t,n){return(e=R(e)?e:""+e).replace(t,(function(e){return"&"+n[e]+";"}))}function sn(e){this.tagName=e}function cn(){}function ln(e){this.tagName=e}function pn(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}function un(e,t){pn.call(this,e,t)}function dn(){this.value="",this.write=function(e){this.value+=e}}function hn(e,t){var n=[""];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write("\n"),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function mn(e){return e=Q({format:!1,preamble:!0},e||{}),{toXML:function(t,n){var i=n||new dn,r=new hn(i,e.format);if(e.preamble&&r.append('\n'),(new pn).build(t).serializeTo(r),!n)return i.value}}}function fn(e,t){gt.call(this,e,t)}sn.prototype.build=function(e){return this.element=e,this},sn.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+""+this.tagName+">").appendNewLine()},cn.prototype.serializeValue=cn.prototype.serializeTo=function(e){e.append(this.escape?an(this.value,Jt,on):this.value)},cn.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(Jt)&&(this.escape=!0),this},tn(ln,cn),ln.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append(""+this.tagName+">").appendNewLine()},pn.prototype.build=function(e){this.element=e;var t,n,i=e.$descriptor,r=this.propertyDescriptor,o=i.isGeneric;return t=o?this.parseGeneric(e):this.parseNsAttributes(e),this.ns=r?this.nsPropertyTagName(r):this.nsTagName(i),this.tagName=this.addTagName(this.ns),o||(n=function(e){return D(e.$descriptor.properties,(function(t){var n=t.name;if(t.isVirtual)return!1;if(!M(e,n))return!1;var i=e[n];return i!==t.default&&null!==i&&(!t.isMany||i.length)}))}(e),this.parseAttributes(D(n,(function(e){return e.isAttr}))),this.parseContainments(function(e){return D(e,(function(e){return!e.isAttr}))}(n))),this.parseGenericAttributes(e,t),this},pn.prototype.nsTagName=function(e){return function(e,t){return t.isGeneric?Q({localName:t.ns.localName},e):Q({localName:(n=t.ns.localName,i=t.$pkg,Dt(i)?(r=n).charAt(0).toLowerCase()+r.slice(1):n)},e);var n,i,r}(this.logNamespaceUsed(e.ns),e)},pn.prototype.nsPropertyTagName=function(e){return function(e,t){return Q({localName:t.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},pn.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},pn.prototype.nsAttributeName=function(e){var t;if(t=R(e)?lt(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:Q({localName:t.localName},n)},pn.prototype.parseGeneric=function(e){var t=this,n=this.body,i=[];return N(e,(function(r,o){"$body"===o?n.push((new cn).build({type:"String"},r)):"$children"===o?N(r,(function(e){n.push(new pn(t).build(e))})):0!==o.indexOf("$")&&t.parseNsAttribute(e,o,r)&&i.push({name:o,value:r})})),i},pn.prototype.parseNsAttribute=function(e,t,n){var i,r=e.$model,o=lt(t);if("xmlns"===o.prefix&&(i={prefix:o.localName,uri:n}),o.prefix||"xmlns"!==o.localName||(i={uri:n}),!i)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(i,!0,!0);else{var a=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(a)}},pn.prototype.parseNsAttributes=function(e,t){var n=this,i=e.$attrs,r=[];return N(i,(function(t,i){var o=n.parseNsAttribute(e,i,t);o&&r.push(o)})),r},pn.prototype.parseGenericAttributes=function(e,t){var n=this;N(t,(function(e){if(e.name!==Ot)try{n.addAttribute(n.nsAttributeName(e.name),e.value)}catch(t){}}))},pn.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;N(e,(function(e){var r=i.get(e.name),o=e.isReference;if(e.isMany||(r=[r]),e.isBody)n.push((new cn).build(e,r[0]));else if(ct(e.type))N(r,(function(i){n.push(new ln(t.addTagName(t.nsPropertyTagName(e))).build(e,i))}));else if(o)N(r,(function(i){n.push(new sn(t.addTagName(t.nsPropertyTagName(e))).build(i))}));else{var a=Lt(e),s=function(e){return"property"===jt(e)}(e);N(r,(function(i){var r;r=a?new un(t,e):s?new pn(t,e):new pn(t),n.push(r.build(i))}))}}))},pn.prototype.getNamespaces=function(e){var t,n=this.namespaces,i=this.parent;return n||(t=i&&i.getNamespaces(),e||!t?this.namespaces=n=new en(t):n=t),n},pn.prototype.logNamespace=function(e,t,n){var i=this.getNamespaces(n),r=e.uri,o=e.prefix;return i.byUri(r)&&!n||i.add(e,t),i.mapPrefix(o,r),e},pn.prototype.logNamespaceUsed=function(e,t){var n,i,r,o=this.element.$model,a=this.getNamespaces(t),s=e.prefix,c=e.uri;if(!s&&!c)return{localName:e.localName};if(r=Nt[s]||o&&(o.getPackage(s)||{}).uri,!(c=c||r||a.uriByPrefix(s)))throw new Error("no namespace uri given for prefix <"+s+">");if(!(e=a.byUri(c))){for(n=s,i=1;a.uriByPrefix(n);)n=s+"_"+i++;e=this.logNamespace({prefix:n,uri:c},r===c)}return s&&a.mapPrefix(s,c),e},pn.prototype.parseAttributes=function(e){var t=this,n=this.element;N(e,(function(e){var i=n.get(e.name);if(e.isReference)if(e.isMany){var r=[];N(i,(function(e){r.push(e.id)})),i=r.join(" ")}else i=i.id;t.addAttribute(t.nsAttributeName(e),i)}))},pn.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),nn(e)},pn.prototype.addAttribute=function(e,t){var n=this.attrs;R(t)&&(t=an(t,Qt,rn));var i=B(n,(function(t){return t.name.localName===e.localName&&t.name.uri===e.uri&&t.name.prefix===e.prefix})),r={name:e,value:t};-1!==i?n.splice(i,1,r):n.push(r)},pn.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=function(e){return e.getUsed().filter((function(e){return"xml"!==e.prefix})).map((function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}))}(n).concat(t)),N(t,(function(t){e.append(" ").append(nn(t.name)).append('="').append(t.value).append('"')}))},pn.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==cn;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),N(this.body,(function(t){t.serializeTo(e)})),n&&e.unindent().appendIndent(),e.append(""+this.tagName+">")),e.appendNewLine()},tn(un,pn),un.prototype.parseNsAttributes=function(e){var t=pn.prototype.parseNsAttributes.call(this,e),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var i=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(Ot),(i.prefix?i.prefix+":":"")+o+n.ns.localName),t},un.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},fn.prototype=Object.create(gt.prototype),fn.prototype.fromXML=function(e,t,n){R(t)||(n=t,t="bpmn:Definitions");var i=new Zt(Q({model:this,lax:!0},n)),r=i.handler(t);return i.fromXML(e,r)},fn.prototype.toXML=function(e,t){var n=new mn(t);return new Promise((function(t,i){try{return t({xml:n.toXML(e)})}catch(r){return i(r)}}))};var gn={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};function yn(e,t){return new fn(Q({},gn,e),t)}function vn(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':""}function bn(e){M(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error("Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472")}})}function xn(e,t){return e.$instanceOf(t)}function _n(e){var t={},n=[],i={};function r(e,t){return function(n){e(n,t)}}function o(e){t[e.id]=e}function a(t,n){try{var r=i[t.id]&&function(t,n){if(t.gfx)throw new Error(`already rendered ${vn(t)}`);return e.element(t,i[t.id],n)}(t,n);return o(t),r}catch(a){s(a.message,{element:t,error:a})}}function s(t,n){e.error(t,n)}var c=this.registerDi=function(e){var t=e.bpmnElement;t?i[t.id]?s(`multiple DI elements defined for ${vn(t)}`,{element:t}):(i[t.id]=e,bn(t)):s(`no bpmnElement referenced in ${vn(e)}`,{element:e})};function l(e){var t;t=e.plane,c(t),N(t.planeElement,p)}function p(e){c(e)}this.handleDefinitions=function(o,a){var p=o.diagrams;if(a&&-1===p.indexOf(a))throw new Error("diagram not part of ");if(!a&&p&&p.length&&(a=p[0]),!a)throw new Error("no diagram to display");i={},l(a);var m=a.plane;if(!m)throw new Error(`no plane for ${vn(a)}`);var f=m.bpmnElement;if(!f){if(f=function(e){return T(e.rootElements,(function(e){return xn(e,"bpmn:Process")||xn(e,"bpmn:Collaboration")}))}(o),!f)throw new Error("no process or collaboration to display");s(`correcting missing bpmnElement on ${vn(m)} to ${vn(f)}`),m.bpmnElement=f,c(m)}var g,y,b=function(t,n){return e.root(t,i[t.id],n)}(f,m);if(xn(f,"bpmn:Process")||xn(f,"bpmn:SubProcess"))d(f,b);else{if(!xn(f,"bpmn:Collaboration"))throw new Error(`unsupported bpmnElement for ${vn(m)}: ${vn(f)}`);y=b,N((g=f).participants,r(k,y)),v(g.artifacts,y),n.push((function(){!function(e,t){N(e,r(h,t))}(g.messageFlows,y)})),function(e,n){D(e,(function(e){return!t[e.id]&&xn(e,"bpmn:Process")&&e.laneSets})).forEach(r(d,n))}(o.rootElements,b)}u(n)};var u=this.handleDeferred=function(){for(;n.length;)n.shift()()};function d(e,t){C(e,t),b(e.ioSpecification,t),v(e.artifacts,t),o(e)}function h(e,t){a(e,t)}function m(e,t){a(e,t)}function f(e,t){a(e,t)}function g(e,t){a(e,t)}function y(e,t){a(e,t)}function v(e,t){N(e,(function(e){xn(e,"bpmn:Association")?n.push((function(){y(e,t)})):y(e,t)}))}function b(e,t){e&&(N(e.dataInputs,r(f,t)),N(e.dataOutputs,r(g,t)))}var x=this.handleSubProcess=function(e,t){C(e,t),v(e.artifacts,t)};function _(e,t){var i=a(e,t);xn(e,"bpmn:SubProcess")&&x(e,i||t),xn(e,"bpmn:Activity")&&b(e.ioSpecification,t),n.push((function(){N(e.dataInputAssociations,r(m,t)),N(e.dataOutputAssociations,r(m,t))}))}function w(e,t){a(e,t)}function E(e,t){n.push((function(){var n=a(e,t);e.childLaneSet&&S(e.childLaneSet,n||t),function(e){N(e.flowNodeRef,(function(t){var n=t.get("lanes");n&&n.push(e)}))}(e)}))}function S(e,t){N(e.lanes,r(E,t))}function C(e,t){!function(e,t){N(e,(function(e){xn(e,"bpmn:SequenceFlow")?n.push((function(){!function(e,t){a(e,t)}(e,t)})):xn(e,"bpmn:BoundaryEvent")?n.unshift((function(){_(e,t)})):xn(e,"bpmn:FlowNode")?_(e,t):xn(e,"bpmn:DataObject")||(xn(e,"bpmn:DataStoreReference")||xn(e,"bpmn:DataObjectReference")?w(e,t):s(`unrecognized flowElement ${vn(e)} in context ${vn(t&&t.businessObject)}`,{element:e,context:t}))}))}(e.flowElements,t),e.laneSets&&function(e,t){N(e,r(S,t))}(e.laneSets,t)}function k(e,t){var n=a(e,t),i=e.processRef;i&&d(i,n||t)}}function wn(e,t){var n=Sn(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function En(e,t){return I(t,(function(t){return wn(e,t)}))}function Sn(e){return e&&e.businessObject||e}function Cn(e){return e&&e.di}function kn(e,t,n){var i,r,o,a=[];function s(e,t){var n=new _n({root:function(e,t){return i.add(e,t)},element:function(e,t,n){return i.add(e,t,n)},error:function(e,t){a.push({message:e,context:t})}});t=t||e.diagrams&&e.diagrams[0];var r=function(e,t){if(!t||!t.plane)return;var n,i=t.plane.bpmnElement,r=i;wn(i,"bpmn:Process")||wn(i,"bpmn:Collaboration")||(r=function(e){var t=e;for(;t;){if(wn(t,"bpmn:Process"))return t;t=t.$parent}}(i));n=wn(r,"bpmn:Collaboration")?r:T(e.rootElements,(function(e){if(wn(e,"bpmn:Collaboration"))return T(e.participants,(function(e){return e.processRef===r}))}));var o=[r];n&&(o=$(n.participants,(function(e){return e.processRef}))).push(n);var a=An(o),s=[t],c=[i];return N(e.diagrams,(function(e){if(e.plane){var t=e.plane.bpmnElement;-1!==a.indexOf(t)&&-1===c.indexOf(t)&&(s.push(e),c.push(t))}})),s}(e,t);if(!r)throw new Error("no diagram to display");N(r,(function(t){n.handleDefinitions(e,t)}));var s=t.plane.bpmnElement.id;o.setRootElement(o.findRoot(s+"_plane")||o.findRoot(s))}return new Promise((function(c,l){try{return i=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("canvas"),r.fire("import.render.start",{definitions:t}),s(t,n),r.fire("import.render.complete",{error:undefined,warnings:a}),c({warnings:a})}catch(p){return p.warnings=a,l(p)}}))}function An(e){var t=[];return N(e,(function(e){e&&(t.push(e),t=t.concat(An(e.flowElements)))})),t}var Pn,Rn='',Mn={verticalAlign:"middle"},Tn={color:"#404040"},Bn={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Dn={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Nn={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},On=''+Rn+'Web-based tooling for BPMN, DMN and forms powered by bpmn.io. ';function jn(){Pn||(ce(Pn=Ae(On),Bn),ce(Re("svg",Pn),Mn),ce(Re(".backdrop",Pn),Dn),ce(Re(".notice",Pn),Nn),ce(Re(".link",Pn),Tn,{margin:"15px 20px 15px 10px",alignSelf:"center"}),Ee.bind(Pn,".backdrop","click",(function(e){document.body.removeChild(Pn)}))),document.body.appendChild(Pn)}function Ln(e){e=Q({},$n,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),function(e){const t=Ae(''+Rn+"");ce(Re("svg",t),Mn),ce(t,Tn,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(t),xe.bind(t,"click",(function(e){jn(),e.preventDefault()}))}(this._container),this._init(this._container,this._moddle,e)}function In(e,t){return e.warnings=t,e}v(Ln,l),Ln.prototype.importXML=async function(e,t){const n=this;let i=[];try{let a;e=this._emit("import.parse.start",{xml:e})||e;try{a=await this._moddle.fromXML(e,"bpmn:Definitions")}catch(o){throw this._emit("import.parse.complete",{error:o}),o}let s=a.rootElement;const c=a.references,l=a.warnings,p=a.elementsById;i=i.concat(l),s=this._emit("import.parse.complete",(r={error:null,definitions:s,elementsById:p,references:c,warnings:i},n.get("eventBus").createEvent(r)))||s;const u=await this.importDefinitions(s,t);return i=i.concat(u.warnings),this._emit("import.done",{error:null,warnings:i}),{warnings:i}}catch(a){let e=a;throw i=i.concat(e.warnings||[]),In(e,i),e=function(e){const t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]);return e}(e),this._emit("import.done",{error:e,warnings:e.warnings}),e}var r},Ln.prototype.importDefinitions=async function(e,t){this._setDefinitions(e);return{warnings:(await this.open(t)).warnings}},Ln.prototype.open=async function(e){const t=this._definitions;let n=e;if(!t){const e=new Error("no XML imported");throw In(e,[]),e}if("string"==typeof e&&(n=function(e,t){if(!t)return null;return T(e.diagrams,(function(e){return e.id===t}))||null}(t,e),!n)){const t=new Error("BPMNDiagram <"+e+"> not found");throw In(t,[]),t}try{this.clear()}catch(r){throw In(r,[]),r}const{warnings:i}=await kn(this,t,n);return{warnings:i}},Ln.prototype.saveXML=async function(e){e=e||{};let t,n,i=this._definitions;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i;n=(await this._moddle.toXML(i,e)).xml,n=this._emit("saveXML.serialized",{xml:n})||n}catch(o){t=o}const r=t?{error:t}:{xml:n};if(this._emit("saveXML.done",r),t)throw t;return r},Ln.prototype.saveSVG=async function(){let e,t;this._emit("saveSVG.start");try{const t=this.get("canvas"),n=t.getActiveLayer(),i=Re(":scope > defs",t._svg),r=Qe(n),o=i?""+Qe(i)+"":"",a=n.getBBox();e='\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n\n"}catch(n){t=n}if(this._emit("saveSVG.done",{error:t,svg:e}),t)throw t;return{svg:e}},Ln.prototype._setDefinitions=function(e){this._definitions=e},Ln.prototype.getModules=function(){return this._modules},Ln.prototype.clear=function(){this.getDefinitions()&&l.prototype.clear.call(this)},Ln.prototype.destroy=function(){l.prototype.destroy.call(this),Te(this._container)},Ln.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},Ln.prototype.off=function(e,t){this.get("eventBus").off(e,t)},Ln.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=Re(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},Ln.prototype.getDefinitions=function(){return this._definitions},Ln.prototype.detach=function(){const e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},Ln.prototype._init=function(e,t,n){const i=n.modules||this.getModules(n),r=n.additionalModules||[],o=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,r),a=Q(ee(n,["additionalModules"]),{canvas:Q({},n.canvas,{container:e}),modules:o});l.call(this,a),n&&n.container&&this.attachTo(n.container)},Ln.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},Ln.prototype._createContainer=function(e){const t=Ae('');return ce(t,{width:zn(e.width),height:zn(e.height),position:e.position}),t},Ln.prototype._createModdle=function(e){return new yn(Q({},this._moddleExtensions,e.moddleExtensions))},Ln.prototype._modules=[];const $n={width:"100%",height:"100%",position:"relative"};function zn(e){return e+(A(e)?"px":"")}function Fn(e){Ln.call(this,e),this.on("import.parse.complete",(function(e){e.error||this._collectIds(e.definitions,e.elementsById)}),this),this.on("diagram.destroy",(function(){this.get("moddle").ids.clear()}),this)}v(Fn,Ln),Fn.prototype._createModdle=function(e){var t=Ln.prototype._createModdle.call(this,e);return t.ids=new c([32,36,1]),t},Fn.prototype._collectIds=function(e,t){var n,i=e.$model.ids;for(n in i.clear(),t)i.claim(n,t[n])};function Hn(e,t){var n=this;t=t||1e3,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,r=t.element,o=t.gfx,a=t.attrs;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r,a):n.drawConnection(o,r,a)})),e.on(["render.getShapePath","render.getConnectionPath"],t,(function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)}))}function Vn(e,t){return!wn(e,"bpmn:CallActivity")&&(wn(e,"bpmn:SubProcess")?!(!(t=t||Cn(e))||!wn(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded:!wn(e,"bpmn:Participant")||!!Sn(e).processRef)}function Gn(e){if(wn(e,"bpmn:Participant")||wn(e,"bpmn:Lane")){var t=Cn(e).isHorizontal;return void 0===t||t}}function Wn(e){return e&&!!Sn(e).triggeredByEvent}function Un(e,t){return I(Sn(e).eventDefinitions,(function(e){return wn(e,t)}))}function qn(e){return k(e)&&M(e,"waypoints")}function Kn(e){return k(e)&&M(e,"labelTarget")}Hn.prototype.canRender=function(e){},Hn.prototype.drawShape=function(e,t){},Hn.prototype.drawConnection=function(e,t){},Hn.prototype.getShapePath=function(e){},Hn.prototype.getConnectionPath=function(e){};var Xn={width:90,height:20};function Yn(e){return wn(e,"bpmn:Event")||wn(e,"bpmn:Gateway")||wn(e,"bpmn:DataStoreReference")||wn(e,"bpmn:DataObjectReference")||wn(e,"bpmn:DataInput")||wn(e,"bpmn:DataOutput")||wn(e,"bpmn:SequenceFlow")||wn(e,"bpmn:MessageFlow")||wn(e,"bpmn:Group")}function Zn(e){return Kn(e.label)}function Qn(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],r=function(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)];return{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2}}(e),o=Math.atan((i.y-n.y)/(i.x-n.x)),a=r.x,s=r.y;return Math.abs(o) defs",a);c||Be(a,c=Ge("defs")),Be(c,s)}function h(e,t,n,i){var r=xi.nextPrefixed("marker-");return function(e,t,n,i,r){if("sequenceflow-end"===n){d(t,{element:Ge("path",{d:"M 1 5 L 11 10 L 1 15 Z",...p({fill:r,stroke:r,strokeWidth:1})}),ref:{x:11,y:10},scale:.5,parentGfx:e})}if("messageflow-start"===n){d(t,{element:Ge("circle",{cx:6,cy:6,r:3.5,...p({fill:i,stroke:r,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:6,y:6},parentGfx:e})}if("messageflow-end"===n){d(t,{element:Ge("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...p({fill:i,stroke:r,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:8.5,y:5},parentGfx:e})}if("association-start"===n){d(t,{element:Ge("path",{d:"M 11 5 L 1 10 L 11 15",...u({fill:"none",stroke:r,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:1,y:10},scale:.5,parentGfx:e})}if("association-end"===n){d(t,{element:Ge("path",{d:"M 1 5 L 11 10 L 1 15",...u({fill:"none",stroke:r,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:11,y:10},scale:.5,parentGfx:e})}if("conditional-flow-marker"===n){d(t,{element:Ge("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...p({fill:i,stroke:r})}),ref:{x:-1,y:10},scale:.5,parentGfx:e})}if("conditional-default-flow-marker"===n){d(t,{element:Ge("path",{d:"M 6 4 L 10 16",...p({stroke:r,fill:"none"})}),ref:{x:0,y:10},scale:.5,parentGfx:e})}}(e,r,t,n,i),"url(#"+r+")"}function m(e,t,n,i,r={}){k(i)&&(r=i,i=0),i=i||0,r=p(r);var o=Ge("circle",{cx:t/2,cy:n/2,r:Math.round((t+n)/4-i),...r});return Be(e,o),o}function f(e,t,n,i,r,o){k(r)&&(o=r,r=0),r=r||0,o=p(o);var a=Ge("rect",{x:r,y:r,width:t-2*r,height:n-2*r,rx:i,ry:i,...o});return Be(e,a),a}function g(e,t,n,i){var r=si(t,n=u(n),i);return Be(e,r),r}function y(e,t,n){return g(e,t,n,5)}function v(e,t,n){n=u(n);var i=Ge("path",{...n,d:t});return Be(e,i),i}function b(e,t,n,i){return v(t,n,Q({"data-marker":e},i))}function x(e){return Z[e]}function _(e){return function(t,n,i){return x(e)(t,n,i)}}var w=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.235,my:.315}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:r?ui(t,s,n.fill):di(t,c,n.stroke),strokeWidth:1})},E=function(e,t,n={}){var r=m(e,t.width,t.height,.2*t.height,{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:2});v(e,i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{stroke:di(t,c,n.stroke),strokeWidth:2});for(var o=0;o<12;o++){var a=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),l=t.width/2,p=t.height/2;v(e,a,{strokeWidth:1,stroke:di(t,c,n.stroke),transform:"rotate("+30*o+","+p+","+l+")"})}return r},S=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},C=function(e,t,n={}){return v(e,i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.222}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},A=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.57,my:.263}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},P=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.2,my:.722}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},R=function(e,t,n={},r){var o=v(e,i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.638,my:-.055}}),{fill:r?di(t,c,n.stroke):"none",stroke:di(t,c,n.stroke),strokeWidth:1});return bi(o,45),o},M=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.22,my:.5}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},T=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},B=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.222,my:.36}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),strokeWidth:1})},D=function(e,t,n={}){return v(e,i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:t.width,containerHeight:t.height,position:{mx:.458,my:.194}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},O=function(e,t,n={}){return m(e,t.width,t.height,8,{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:4})};function j(e,t,n={}){var i,r=Sn(e),o="bpmn:IntermediateThrowEvent"===(i=r).$type||"bpmn:EndEvent"===i.$type;return r.get("eventDefinitions")&&r.get("eventDefinitions").length>1?r.get("parallelMultiple")?D(t,e,n,o):B(t,e,n,o):pi(r,"bpmn:MessageEventDefinition")?w(t,e,n,o):pi(r,"bpmn:TimerEventDefinition")?E(t,e,n,o):pi(r,"bpmn:ConditionalEventDefinition")?C(t,e,n,o):pi(r,"bpmn:SignalEventDefinition")?T(t,e,n,o):pi(r,"bpmn:EscalationEventDefinition")?S(t,e,n,o):pi(r,"bpmn:LinkEventDefinition")?A(t,e,n,o):pi(r,"bpmn:ErrorEventDefinition")?P(t,e,n,o):pi(r,"bpmn:CancelEventDefinition")?R(t,e,n,o):pi(r,"bpmn:CompensateEventDefinition")?M(t,e,n,o):pi(r,"bpmn:TerminateEventDefinition")?O(t,e,n,o):null}var L={ParticipantMultiplicityMarker:function(e,t,n={}){var r=fi(t,n),o=gi(t,n);b("participant-multiplicity",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2-6)/r,my:(o-15)/o}}),{strokeWidth:2,fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},SubProcessMarker:function(e,t,n={}){vi(f(e,14,14,0,{strokeWidth:1,fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)}),t.width/2-7.5,t.height-20),b("sub-process",e,i.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2-7.5)/t.width,my:(t.height-20)/t.height}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},ParallelMarker:function(e,t,n){var r=fi(t,n),o=gi(t,n);b("parallel",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.parallel)/r,my:(o-20)/o}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},SequentialMarker:function(e,t,n){b("sequential",e,i.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.seq)/t.width,my:(t.height-19)/t.height}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},CompensationMarker:function(e,t,n){b("compensation",e,i.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.compensation)/t.width,my:(t.height-13)/t.height}}),{strokeWidth:1,fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},LoopMarker:function(e,t,n){var r=fi(t,n),o=gi(t,n);b("loop",e,i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.loop)/r,my:(o-7)/o}}),{strokeWidth:1.5,fill:"none",stroke:di(t,c,n.stroke),strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){var r=fi(t,n),o=gi(t,n);b("adhoc",e,i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.adhoc)/r,my:(o-15)/o}}),{strokeWidth:1,fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke)})}};function I(e,t,n,i){L[e](t,n,i)}function $(e,t,n,i={}){i={fill:i.fill,stroke:i.stroke,width:fi(t,i),height:gi(t,i)};var r=Sn(t),o=n&&n.includes("SubProcessMarker");i=o?{...i,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{...i,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},N(n,(function(n){I(n,e,t,i)})),r.get("isForCompensation")&&I("CompensationMarker",e,t,i),wn(r,"bpmn:AdHocSubProcess")&&I("AdhocMarker",e,t,i);var a=r.get("loopCharacteristics"),s=a&&a.get("isSequential");a&&(void 0===s&&I("LoopMarker",e,t,i),!1===s&&I("ParallelMarker",e,t,i),!0===s&&I("SequentialMarker",e,t,i))}function z(e,t,n={}){n=Q({size:{width:100}},n);var i=o.createText(t||"",n);return Le(i).add("djs-label"),Be(e,i),i}function F(e,t,n,i={}){var r=Sn(t),o=mi({x:t.x,y:t.y,width:t.width,height:t.height},i);return z(e,r.name,{align:n,box:o,padding:7,style:{fill:hi(t,l,c,i.stroke)}})}function H(e,t,n,i={}){var r=Gn(n),o=z(e,t,{box:{height:30,width:r?gi(n,i):fi(n,i)},align:"center-middle",style:{fill:hi(n,l,c,i.stroke)}});r&&yi(o,0,-(-1*gi(n,i)),270)}function V(e,t,n={}){var{width:i,height:r}=mi(t,n);return f(e,i,r,10,{...n,fill:ui(t,s,n.fill),fillOpacity:_i,stroke:di(t,c,n.stroke)})}function G(e,t,n={}){var i=Sn(t),r=ui(t,s,n.fill),o=di(t,c,n.stroke);return"One"!==i.get("associationDirection")&&"Both"!==i.get("associationDirection")||(n.markerEnd=h(e,"association-end",r,o)),"Both"===i.get("associationDirection")&&(n.markerStart=h(e,"association-start",r,o)),n=Ei(n,["markerStart","markerEnd"]),y(e,t.waypoints,{...n,stroke:o,strokeDasharray:"0, 5"})}function W(e,t,n={}){var r=ui(t,s,n.fill),o=di(t,c,n.stroke),a=v(e,i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:r,fillOpacity:_i,stroke:o});(function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection})(Sn(t))&&v(e,i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.33,my:(t.height-18)/t.height}}),{strokeWidth:2,fill:r,stroke:o});return a}function U(e,t,n={}){return m(e,t.width,t.height,{fillOpacity:_i,...n,fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})}function q(e,t,n={}){return function(e,t,n,i){var r=t/2,o=n/2,a=[{x:r,y:0},{x:t,y:o},{x:r,y:n},{x:0,y:o}].map((function(e){return e.x+","+e.y})).join(" ");i=p(i);var s=Ge("polygon",{...i,points:a});return Be(e,s),s}(e,t.width,t.height,{fill:ui(t,s,n.fill),fillOpacity:_i,stroke:di(t,c,n.stroke)})}function K(e,t,n={}){var i=f(e,fi(t,n),gi(t,n),0,{fill:ui(t,s,n.fill),fillOpacity:n.fillOpacity||_i,stroke:di(t,c,n.stroke),strokeWidth:1.5}),r=Sn(t);wn(r,"bpmn:Lane")&&H(e,r.get("name"),t,n);return i}function X(e,t,n={}){var i=V(e,t,n);Wn(t)&&Oe(i,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var r=Vn(t);return F(e,t,r?"center-top":"center-middle",n),$(e,t,r?void 0:["SubProcessMarker"],n),i}function Y(e,t,n={}){var i=V(e,t,n);return F(e,t,"center-middle",n),$(e,t,void 0,n),i}var Z=this.handlers={"bpmn:AdHocSubProcess":function(e,t,n={}){return X(e,t,n=Vn(t)?Ei(n,["fill","stroke","width","height"]):Ei(n,["fill","stroke"]))},"bpmn:Association":function(e,t,n={}){return G(e,t,n=Ei(n,["fill","stroke"]))},"bpmn:BoundaryEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Ei(n,["fill","stroke"]);var r=Sn(t).get("cancelActivity");n={strokeWidth:1.5,fill:ui(t,s,n.fill),fillOpacity:1,stroke:di(t,c,n.stroke)},r||(n.strokeDasharray="6");var o=U(e,t,n);return m(e,t.width,t.height,3,{...n,fill:"none"}),i&&j(t,e,n),o},"bpmn:BusinessRuleTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return Oe(v(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}})),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),Oe(v(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}})),{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:CallActivity":function(e,t,n={}){return n=Ei(n,["fill","stroke"]),X(e,t,{strokeWidth:5,...n})},"bpmn:ComplexGateway":function(e,t,n={}){var r=q(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:DataInput":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var r=i.getRawPath("DATA_ARROW"),o=W(e,t,n);return v(e,r,{fill:"none",stroke:di(t,c,n.stroke),strokeWidth:1}),o},"bpmn:DataInputAssociation":function(e,t,n={}){return n=Ei(n,["fill","stroke"]),G(e,t,{...n,markerEnd:h(e,"association-end",ui(t,s,n.fill),di(t,c,n.stroke))})},"bpmn:DataObject":function(e,t,n={}){return W(e,t,n=Ei(n,["fill","stroke"]))},"bpmn:DataObjectReference":_("bpmn:DataObject"),"bpmn:DataOutput":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var r=i.getRawPath("DATA_ARROW"),o=W(e,t,n);return v(e,r,{strokeWidth:1,fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)}),o},"bpmn:DataOutputAssociation":function(e,t,n={}){return n=Ei(n,["fill","stroke"]),G(e,t,{...n,markerEnd:h(e,"association-end",ui(t,s,n.fill),di(t,c,n.stroke))})},"bpmn:DataStoreReference":function(e,t,n={}){return n=Ei(n,["fill","stroke"]),v(e,i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{fill:ui(t,s,n.fill),fillOpacity:_i,stroke:di(t,c,n.stroke),strokeWidth:2})},"bpmn:EndEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Ei(n,["fill","stroke"]);var r=U(e,t,{...n,strokeWidth:4});return i&&j(t,e,n),r},"bpmn:EventBasedGateway":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var r=Sn(t),o=q(e,t,n);m(e,t.width,t.height,.2*t.height,{fill:ui(t,"none",n.fill),stroke:di(t,c,n.stroke),strokeWidth:1});var a,s=r.get("eventGatewayType"),l=!!r.get("instantiate");if("Parallel"===s){var p=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}});v(e,p,{fill:"none",stroke:di(t,c,n.stroke),strokeWidth:1})}else"Exclusive"===s&&(l||m(e,t.width,t.height,.26*t.height,{fill:"none",stroke:di(t,c,n.stroke),strokeWidth:1}),a=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:t.width,containerHeight:t.height,position:{mx:.36,my:.44}}),v(e,a,{fill:"none",stroke:di(t,c,n.stroke),strokeWidth:2}));return o},"bpmn:ExclusiveGateway":function(e,t,n={}){var r=q(e,t,n=Ei(n,["fill","stroke"])),o=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return Cn(t).get("isMarkerVisible")&&v(e,o,{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:Gateway":function(e,t,n={}){return q(e,t,n=Ei(n,["fill","stroke"]))},"bpmn:Group":function(e,t,n={}){return n=Ei(n,["fill","stroke","width","height"]),f(e,t.width,t.height,10,{stroke:di(t,c,n.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:fi(t,n),height:gi(t,n)})},"bpmn:InclusiveGateway":function(e,t,n={}){var i=q(e,t,n=Ei(n,["fill","stroke"]));return m(e,t.width,t.height,.24*t.height,{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:2.5}),i},"bpmn:IntermediateEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Ei(n,["fill","stroke"]);var r=U(e,t,{...n,strokeWidth:1.5});return m(e,t.width,t.height,3,{fill:"none",stroke:di(t,c,n.stroke),strokeWidth:1.5}),i&&j(t,e,n),r},"bpmn:IntermediateCatchEvent":_("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":_("bpmn:IntermediateEvent"),"bpmn:Lane":function(e,t,n={}){return n=Ei(n,["fill","stroke","width","height"]),K(e,t,{...n,fillOpacity:.25})},"bpmn:ManualTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:.5}),r},"bpmn:MessageFlow":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var r=Sn(t),o=Cn(t),a=ui(t,s,n.fill),l=di(t,c,n.stroke),p=y(e,t.waypoints,{markerEnd:h(e,"messageflow-end",a,l),markerStart:h(e,"messageflow-start",a,l),stroke:l,strokeDasharray:"10, 11",strokeWidth:1.5});if(r.get("messageRef")){var u=p.getPointAtLength(p.getTotalLength()/2),d=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:u.x,y:u.y}}),m={strokeWidth:1};"initiating"===o.get("messageVisibleKind")?(m.fill=a,m.stroke=l):(m.fill=l,m.stroke=a);var f=v(e,d,m),g=z(e,r.get("messageRef").get("name"),{align:"center-top",fitBox:!0,style:{fill:l}}),b=f.getBBox(),x=g.getBBox();yi(g,u.x-x.width/2,u.y+b.height/2+10,0)}return p},"bpmn:ParallelGateway":function(e,t,n={}){var r=q(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:Participant":function(e,t,n={}){var i=K(e,t,n=Ei(n,["fill","stroke","width","height"])),r=Vn(t),o=Gn(t),a=Sn(t),s=a.get("name");if(r){g(e,o?[{x:30,y:0},{x:30,y:gi(t,n)}]:[{x:0,y:30},{x:fi(t,n),y:30}],{stroke:di(t,c,n.stroke),strokeWidth:1.5}),H(e,s,t,n)}else{var p=mi(t,n);o||(p.height=fi(t,n),p.width=gi(t,n));var u=z(e,s,{box:p,align:"center-middle",style:{fill:hi(t,l,c,n.stroke)}});if(!o)yi(u,0,-(-1*gi(t,n)),270)}return a.get("participantMultiplicity")&&I("ParticipantMultiplicityMarker",e,t,n),i},"bpmn:ReceiveTask":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var r,o=Sn(t),a=Y(e,t,n);return o.get("instantiate")?(m(e,28,28,4.4,{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),r=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):r=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),v(e,r,{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),a},"bpmn:ScriptTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:SendTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{fill:di(t,c,n.stroke),stroke:ui(t,s,n.fill),strokeWidth:1}),r},"bpmn:SequenceFlow":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var i=ui(t,s,n.fill),r=di(t,c,n.stroke),o=y(e,t.waypoints,{markerEnd:h(e,"sequenceflow-end",i,r),stroke:r}),a=Sn(t),{source:l}=t;if(l){var p=Sn(l);a.get("conditionExpression")&&wn(p,"bpmn:Activity")&&Oe(o,{markerStart:h(e,"conditional-flow-marker",i,r)}),p.get("default")&&(wn(p,"bpmn:Gateway")||wn(p,"bpmn:Activity"))&&p.get("default")===a&&Oe(o,{markerStart:h(e,"conditional-default-flow-marker",i,r)})}return o},"bpmn:ServiceTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return m(e,10,10,{fill:ui(t,s,n.fill),stroke:"none",transform:"translate(6, 6)"}),v(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),m(e,10,10,{fill:ui(t,s,n.fill),stroke:"none",transform:"translate(11, 10)"}),v(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:StartEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Ei(n,["fill","stroke"]),Sn(t).get("isInterrupting")||(n={...n,strokeDasharray:"6"});var r=U(e,t,n);return i&&j(t,e,n),r},"bpmn:SubProcess":function(e,t,n={}){return X(e,t,n=Vn(t)?Ei(n,["fill","stroke","width","height"]):Ei(n,["fill","stroke"]))},"bpmn:Task":function(e,t,n={}){return Y(e,t,n=Ei(n,["fill","stroke"]))},"bpmn:TextAnnotation":function(e,t,n={}){n=Ei(n,["fill","stroke","width","height"]);var{width:r,height:o}=mi(t,n),a=f(e,r,o,0,0,{fill:"none",stroke:"none"});return v(e,i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:0,my:0}}),{stroke:di(t,c,n.stroke)}),z(e,Sn(t).get("text")||"",{align:"left-top",box:mi(t,n),padding:7,style:{fill:hi(t,l,c,n.stroke)}}),a},"bpmn:Transaction":function(e,t,i={}){i=Vn(t)?Ei(i,["fill","stroke","width","height"]):Ei(i,["fill","stroke"]);var r=X(e,t,{strokeWidth:1.5,...i}),o=n.style(["no-fill","no-events"],{stroke:di(t,c,i.stroke),strokeWidth:1.5});return Vn(t)||(i={}),f(e,fi(t,i),gi(t,i),7,3,o),r},"bpmn:UserTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:.5}),v(e,i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:.5}),v(e,i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:.5}),r},label:function(e,t,n={}){return function(e,t,n={}){var i={width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y};return z(e,ti(t),{box:i,fitBox:!0,style:Q({},o.getExternalStyle(),{fill:hi(t,l,c,n.stroke)})})}(e,t,n)}};this._drawPath=v,this._renderer=x}function Ei(e,t=[]){return t.reduce(((t,n)=>(e[n]&&(t[n]=e[n]),t)),{})}v(wi,Hn),wi.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],wi.prototype.canRender=function(e){return wn(e,"bpmn:BaseElement")},wi.prototype.drawShape=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},wi.prototype.drawConnection=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},wi.prototype.getShapePath=function(e){return wn(e,"bpmn:Event")?function(e){var t=e.x+e.width/2,n=e.y+e.height/2,i=e.width/2;return ni([["M",t,n],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]])}(e):wn(e,"bpmn:Activity")?function(e,t){var n=e.x,i=e.y,r=e.width,o=e.height;return ni([["M",n+t,i],["l",r-2*t,0],["a",t,t,0,0,1,t,t],["l",0,o-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-r,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-o],["a",t,t,0,0,1,t,-t],["z"]])}(e,10):wn(e,"bpmn:Gateway")?function(e){var t=e.width/2,n=e.height/2;return ni([["M",e.x+t,e.y],["l",t,n],["l",-t,n],["l",-t,-n],["z"]])}(e):function(e){var t=e.x,n=e.y,i=e.width;return ni([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])}(e)};var Si={width:150,height:50};function Ci(e,t){var n;t.textContent=e;try{var i,r=""===e;return t.textContent=r?"dummy":e,i={width:(n=t.getBBox()).width+2*n.x,height:n.height},r&&(i.width=0),i}catch(o){return{width:0,height:0}}}function ki(e,t,n){for(var i,r=e.shift(),o=r;;){if((i=Ci(o,n)).width=o?i.width:0," "===o||""===o||i.width1)for(;n=i.shift();){if(!(n.length+oe?t.width:e}),0),m=o.top;"middle"===r.vertical&&(m+=(n.height-d)/2),m-=(s||l[0].height)/4;var f=Ge("text");return Oe(f,i),N(l,(function(e){var t;switch(m+=s||e.height,r.horizontal){case"left":t=o.left;break;case"right":t=(a?h:p)-o.right-e.width;break;default:t=Math.max(((a?h:p)-e.width)/2+o.left,0)}var n=Ge("tspan");Oe(n,{x:t,y:m}),n.textContent=e.text,Be(f,n)})),Je(u),{dimensions:{width:h,height:d},element:f}};function Ti(e){var t=Q({fontFamily:"Arial, sans-serif",fontSize:12,fontWeight:"normal",lineHeight:1.2},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=Q({},t,{fontSize:n},e&&e.externalStyle||{}),r=new Mi({style:t});this.getExternalLabelBounds=function(e,t){var n=r.getDimensions(t,{box:{width:90,height:30},style:i});return{x:Math.round(e.x+e.width/2-n.width/2),y:Math.round(e.y),width:Math.ceil(n.width),height:Math.ceil(n.height)}},this.getTextAnnotationBounds=function(e,n){var i=r.getDimensions(n,{box:e,style:t,align:"left-top",padding:5});return{x:e.x,y:e.y,width:e.width,height:Math.max(30,Math.round(i.height))}},this.createText=function(e,t){return r.createText(e,t||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}Ti.$inject=["config.textRenderer"];var Bi=/\{([^{}]+)\}/g,Di=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;const Ni={__init__:["bpmnRenderer"],bpmnRenderer:["type",wi],textRenderer:["type",Ti],pathMap:["type",function(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,i,r=this.pathMap[e];t.abspos?(n=t.abspos.x,i=t.abspos.y):(n=t.containerWidth*t.position.mx,i=t.containerHeight*t.position.my);var o,a,s={};if(t.position){for(var c=t.containerHeight/r.height*t.yScaleFactor,l=t.containerWidth/r.width*t.xScaleFactor,p=0;pt.x-n&&e.y>t.y-n&&e.x=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function cr(e,t,n,i,r){return e*(e*(-3*t+9*n-9*i+3*r)+6*t-12*n+6*i)-3*t+3*n}function lr(e,t,n,i,r,o,a,s,c){null==c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,h=0;h<12;h++){var m=l*p[h]+l,f=cr(m,e,n,r,a),g=cr(m,t,i,o,s),y=f*f+g*g;d+=u[h]*Gi.sqrt(y)}return l*d}function pr(e,t,n,i,r,o,a,s){if(!(qi(e,n)qi(r,a)||qi(t,i)qi(o,s))){var c=(e*i-t*n)*(o-s)-(t-i)*(r*s-o*a),l=(e-n)*(o-s)-(t-i)*(r-a);if(l){var p=ur(((e*i-t*n)*(r-a)-(e-n)*(r*s-o*a))/l),u=ur(c/l),d=+p.toFixed(2),h=+u.toFixed(2);if(!(d<+Ui(e,n).toFixed(2)||d>+qi(e,n).toFixed(2)||d<+Ui(r,a).toFixed(2)||d>+qi(r,a).toFixed(2)||h<+Ui(t,i).toFixed(2)||h>+qi(t,i).toFixed(2)||h<+Ui(o,s).toFixed(2)||h>+qi(o,s).toFixed(2)))return{x:p,y:u}}}}function ur(e){return Math.round(1e11*e)/1e11}function dr(e,t,n){if(!function(e,t){return e=nr(e),sr(t=nr(t),e.x,e.y)||sr(t,e.x2,e.y)||sr(t,e.x,e.y2)||sr(t,e.x2,e.y2)||sr(e,t.x,t.y)||sr(e,t.x2,t.y)||sr(e,t.x,t.y2)||sr(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)}(ar(e),ar(t)))return n?0:[];for(var i=lr(...e),r=lr(...t),o=fr(e)?1:~~(i/5)||1,a=fr(t)?1:~~(r/5)||1,s=[],c=[],l={},p=n?0:[],u=0;u=0&&w<=1&&E>=0&&E<=1&&(n?p++:p.push({x:_.x,y:_.y,t1:w,t2:E}))}}return p}function hr(e,t,n){e=br(e),t=br(t);for(var i,r,o,a,s,c,l,p,u,d,h=n?0:[],m=0,f=e.length;m2&&(i.push([t,...o.splice(0,2)]),a="l",t="m"==t?"l":"L");o.length>=n[a]&&(i.push([t,...o.splice(0,n[a])]),n[a]););})),i.toString=tr.toString,t.arr=er(i),i}(e)),!e||!e.length)return[["M",0,0]];var n,i=[],r=0,o=0,a=0,s=0,c=0;"M"==e[0][0]&&(a=r=+e[0][1],s=o=+e[0][2],c++,i[0]=["M",r,o]);for(var l,p,u=c,d=e.length;u=1e3&&delete i[r.shift()],r.push(n),i[n]=e(...arguments),i[n])}}((function(e,t,n){return{x:e*Gi.cos(n)-t*Gi.sin(n),y:e*Gi.sin(n)+t*Gi.cos(n)}}));if(l)E=l[0],S=l[1],_=l[2],w=l[3];else{e=(p=m(e,t,-d)).x,t=p.y;var f=(e-(s=(p=m(s,c,-d)).x))/2,g=(t-(c=p.y))/2,y=f*f/(n*n)+g*g/(i*i);y>1&&(n*=y=Gi.sqrt(y),i*=y);var v=n*n,b=i*i,x=(o==a?-1:1)*Gi.sqrt(Xi((v*b-v*g*g-b*f*f)/(v*g*g+b*f*f))),_=x*n*g/i+(e+s)/2,w=x*-i*f/n+(t+c)/2,E=Gi.asin(((t-w)/i).toFixed(9)),S=Gi.asin(((c-w)/i).toFixed(9));(E=e<_?Wi-E:E)<0&&(E=2*Wi+E),(S=s<_?Wi-S:S)<0&&(S=2*Wi+S),a&&E>S&&(E-=2*Wi),!a&&S>E&&(S-=2*Wi)}var C=S-E;if(Xi(C)>u){var k=S,A=s,P=c;S=E+u*(a&&S>E?1:-1),h=vr(s=_+n*Gi.cos(S),c=w+i*Gi.sin(S),n,i,r,0,a,A,P,[S,k,_,w])}C=S-E;var R=Gi.cos(E),M=Gi.sin(E),T=Gi.cos(S),B=Gi.sin(S),D=Gi.tan(C/4),N=4/3*n*D,O=4/3*i*D,j=[e,t],L=[e+N*M,t-O*R],I=[s+N*B,c-O*T],$=[s,c];if(L[0]=2*j[0]-L[0],L[1]=2*j[1]-L[1],l)return[L,I,$].concat(h);for(var z=[],F=0,H=(h=[L,I,$].concat(h).join().split(",")).length;F7){e[t].shift();for(var i=e[t];i.length;)a[t]="A",e.splice(t++,0,["C",...i.splice(0,6)]);e.splice(t,1),p=n.length}},a=[],s="",c="",l=0,p=n.length;l=r.right,s=i.top-n.y>=r.bottom,c=o?"top":s?"bottom":null,l=i.right+n.x<=r.left?"left":a?"right":null;return l&&c?c+"-"+l:l||c||"intersect"}function Ar(e,t,n){var i=hr(e,t);return 1===i.length||2===i.length&&ji(i[0],i[1])<1?_r(i[0]):i.length>1?_r((i=W(i,(function(e){var t=Math.floor(100*e.t2)||1;return t=((t=100-t)<10?"0":"")+t,e.segment2+"#"+t})))[n?0:i.length-1]):null}function Pr(e,t,n){return Q({id:e.id,type:e.$type,businessObject:e,di:t},n)}function Rr(e,t,n){var i=e.waypoint;return!i||i.length<2?[Cr(t),Cr(n)]:i.map((function(e){return{x:e.x,y:e.y}}))}function Mr(e,t,n){return new Error(`element ${vn(t)} referenced by ${vn(e)}#${n} not yet drawn`)}function Tr(e,t,n,i,r){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._textRenderer=r}Tr.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],Tr.prototype.add=function(e,t,n){var i,r,o,a,s,c,l;if(wn(t,"bpmndi:BPMNPlane")){var p=wn(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(Pr(e,t,p)),this._canvas.addRootElement(i)}else if(wn(t,"bpmndi:BPMNShape")){var u=!Vn(e,t),d=function(e){return wn(e,"bpmn:Group")}(e);r=n&&(n.hidden||n.collapsed);var h=t.bounds;i=this._elementFactory.createShape(Pr(e,t,{collapsed:u,hidden:r,x:Math.round(h.x),y:Math.round(h.y),width:Math.round(h.width),height:Math.round(h.height),isFrame:d})),wn(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),wn(e,"bpmn:Lane")&&(o=0),wn(e,"bpmn:DataStoreReference")&&(a=n,s=Cr(h),c=s.x,l=s.y,c>=a.x&&c<=a.x+a.width&&l>=a.y&&l<=a.y+a.height||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,o)}else{if(!wn(t,"bpmndi:BPMNEdge"))throw new Error(`unknown di ${vn(t)} for element ${vn(e)}`);var m=this._getSource(e),f=this._getTarget(e);r=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(Pr(e,t,{hidden:r,source:m,target:f,waypoints:Rr(t,m,f)})),wn(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(i,n,o)}return Yn(e)&&ti(i)&&this.addLabel(e,t,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},Tr.prototype._attachBoundary=function(e,t){var n=e.attachedToRef;if(!n)throw new Error(`missing ${vn(e)}#attachedToRef`);var i=this._elementRegistry.get(n.id),r=i&&i.attachers;if(!i)throw Mr(e,n,"attachedToRef");t.host=i,r||(i.attachers=r=[]),-1===r.indexOf(t)&&r.push(t)},Tr.prototype.addLabel=function(e,t,n){var i,r,o;return i=function(e,t){var n,i,r,o=e.label;return o&&o.bounds?(r=o.bounds,i={width:Math.max(Xn.width,r.width),height:r.height},n={x:r.x+r.width/2,y:r.y+r.height/2}):(n=Jn(t),i=Xn),Q({x:n.x-i.width/2,y:n.y-i.height/2},i)}(t,n),(r=ti(n))&&(i=this._textRenderer.getExternalLabelBounds(i,r)),o=this._elementFactory.createLabel(Pr(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!ti(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(o,n.parent)},Tr.prototype._getConnectedElement=function(e,t){var n,i,r=e.$type;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===r||"target"===t&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?Mr(e,i,t+"Ref"):new Error(`${vn(e)}#${t} Ref not specified`)},Tr.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},Tr.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},Tr.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};const Br={__depends__:[Ni,{__depends__:[Oi],bpmnImporter:["type",Tr]}]};function Dr(e){return D(e,(function(t){return!T(e,(function(e){return e!==t&&Nr(t,e)}))}))}function Nr(e,t){if(t){if(e===t)return t;if(e.parent)return Nr(e.parent,t)}}function Or(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function jr(e,t,n){n=n||0,C(e)||(e=[e]),N(e,(function(e,i){var r=t(e,i,n);C(r)&&r.length&&jr(r,t,n+1)}))}function Lr(e,t){return function(e,t){var n=[],i=[];return jr(e,(function(e,r,o){Or(n,e,t);var a=e.children;if(a&&Or(i,a,t))return a})),n}(e,!t)}function Ir(e,t){var n,i,r,o;return t=!!t,C(e)||(e=[e]),N(e,(function(e){var a=e;e.waypoints&&!t&&(a=Ir(e.waypoints,!0));var s=a.x,c=a.y,l=a.height||0,p=a.width||0;(sr||void 0===r)&&(r=s+p),(c+l>o||void 0===o)&&(o=c+l)})),{x:n,y:i,height:o-i,width:r-n}}function $r(e,t){return Q({},e||{},t||{})}function zr(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}zr.prototype.next=function(){return this._prefix+ ++this._counter};var Fr=new zr("ov");function Hr(e,t,n,i){var r,o;this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=Fr,this._overlayDefaults=Q({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(r=n.getContainer(),ce(o=Ae(''),{position:"absolute",width:0,height:0}),r.insertBefore(o,r.firstChild),o),this._init()}function Vr(e,t,n){ce(e,{left:t+"px",top:n+"px"})}function Gr(e,t){e.style.display=!1===t?"none":""}function Wr(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}Hr.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Hr.prototype.get=function(e){if(R(e)&&(e={id:e}),R(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?D(t.overlays,U({type:e.type})):t.overlays.slice():[]}return e.type?D(this._overlays,U({type:e.type})):e.id?this._overlays[e.id]:null},Hr.prototype.add=function(e,t,n){if(k(t)&&(n=t,t=null),e.id||(e=this._elementRegistry.get(e)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return n=Q({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},Hr.prototype.remove=function(e){var t=this.get(e)||[];C(t)||(t=[t]);var n=this;N(t,(function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(Te(e.html),Te(e.htmlContainer),delete e.htmlContainer,delete e.element,delete n._overlays[e.id]),t){var i=t.overlays.indexOf(e);-1!==i&&t.overlays.splice(i,1)}}))},Hr.prototype.isShown=function(){return"none"!==this._overlayRoot.style.display},Hr.prototype.show=function(){Gr(this._overlayRoot)},Hr.prototype.hide=function(){Gr(this._overlayRoot,!1)},Hr.prototype.clear=function(){this._overlays={},this._overlayContainers=[],he(this._overlayRoot)},Hr.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,r=t.y;if(t.waypoints){var o=Ir(t);i=o.x,r=o.y}Vr(n,i,r),le(e.html,"data-container-id",t.id)},Hr.prototype._updateOverlay=function(e){var t,n,i=e.position,r=e.htmlContainer,o=e.element,a=i.left,s=i.top;void 0!==i.right&&(t=o.waypoints?Ir(o).width:o.width,a=-1*i.right+t);void 0!==i.bottom&&(n=o.waypoints?Ir(o).height:o.height,s=-1*i.bottom+n);Vr(r,a||0,s||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Hr.prototype._createOverlayContainer=function(e){var t=Ae('');ce(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},Hr.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Wr(this._overlayRoot,n)},Hr.prototype._getOverlayContainer=function(e,t){var n=T(this._overlayContainers,(function(t){return t.element===e}));return n||t?n:this._createOverlayContainer(e)},Hr.prototype._addOverlay=function(e){var t,n,i=e.id,r=e.element,o=e.html;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),R(o)&&(o=Ae(o)),n=this._getOverlayContainer(r),ce(t=Ae(''),{position:"absolute"}),t.appendChild(o),e.type&&ue(t).add("djs-overlay-"+e.type),Gr(t,this._canvas.findRoot(r)===this._canvas.getRootElement()),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Hr.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=this._canvas.findRoot(e.element),r=n&&n.minZoom,o=n&&n.maxZoom,a=e.htmlContainer,s=!0;(i!==this._canvas.getRootElement()||n&&(E(r)&&r>t.scale||E(o)&&o
i&&(r=(1/t.scale||1)*i)),E(r)&&(s="scale("+r+","+r+")"),Wr(a,s)},Hr.prototype._updateOverlaysVisibilty=function(e){var t=this;N(this._overlays,(function(n){t._updateOverlayVisibilty(n,e)}))},Hr.prototype._init=function(){var e=this._eventBus,t=this;e.on("canvas.viewbox.changing",(function(e){t.hide()})),e.on("canvas.viewbox.changed",(function(e){var n;n=e.viewbox,t._updateRoot(n),t._updateOverlaysVisibilty(n),t.show()})),e.on(["shape.remove","connection.remove"],(function(e){var n=e.element;N(t.get({element:n}),(function(e){t.remove(e.id)}));var i=t._getOverlayContainer(n);if(i){Te(i.html);var r=t._overlayContainers.indexOf(i);-1!==r&&t._overlayContainers.splice(r,1)}})),e.on("element.changed",500,(function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(N(i.overlays,(function(e){t._updateOverlay(e)})),t._updateOverlayContainer(i))})),e.on("element.marker.update",(function(e){var n=t._getOverlayContainer(e.element,!0);n&&ue(n.html)[e.add?"add":"remove"](e.marker)})),e.on("root.set",(function(){t._updateOverlaysVisibilty(t._canvas.viewbox())})),e.on("diagram.clear",this.clear,this)};const Ur={__init__:["overlays"],overlays:["type",Hr]};function qr(e,t,n,i){e.on("element.changed",(function(i){var r=i.element;(r.parent||r===t.getRootElement())&&(i.gfx=n.getGraphics(r)),i.gfx&&e.fire(function(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}(r)+".changed",i)})),e.on("elements.changed",(function(t){var n=t.elements;n.forEach((function(t){e.fire("element.changed",{element:t})})),i.updateContainments(n)})),e.on("shape.changed",(function(e){i.update("shape",e.element,e.gfx)})),e.on("connection.changed",(function(e){i.update("connection",e.element,e.gfx)}))}qr.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const Kr={__init__:["changeSupport"],changeSupport:["type",qr]};function Xr(e){this._eventBus=e}function Yr(e){return function(t,n,i,r,o){(P(t)||A(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}}function Zr(e,t){t.invoke(Xr,this),this.executed((function(t){var n=t.context;n.rootElement?e.setRootElement(n.rootElement):n.rootElement=e.getRootElement()})),this.revert((function(t){var n=t.context;n.rootElement&&e.setRootElement(n.rootElement)}))}Xr.$inject=["eventBus"],Xr.prototype.on=function(e,t,n,i,r,o){if((P(t)||A(t))&&(o=r,r=i,i=n,n=t,t=null),P(n)&&(o=r,r=i,i=n,n=1e3),k(r)&&(o=r,r=!1),!P(i))throw new Error("handlerFn must be a function");C(e)||(e=[e]);var a=this._eventBus;N(e,(function(e){var s=["commandStack",e,t].filter((function(e){return e})).join(".");a.on(s,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,o):i,o)}))},Xr.prototype.canExecute=Yr("canExecute"),Xr.prototype.preExecute=Yr("preExecute"),Xr.prototype.preExecuted=Yr("preExecuted"),Xr.prototype.execute=Yr("execute"),Xr.prototype.executed=Yr("executed"),Xr.prototype.postExecute=Yr("postExecute"),Xr.prototype.postExecuted=Yr("postExecuted"),Xr.prototype.revert=Yr("revert"),Xr.prototype.reverted=Yr("reverted"),v(Zr,Xr),Zr.$inject=["canvas","injector"];const Qr={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Zr]};function Jr(e){return CSS.escape(e)}var eo={"&":"&","<":"<",">":">",'"':""","'":"'"};function to(e){return(e=""+e)&&e.replace(/[&<>"']/g,(function(e){return eo[e]}))}var no="_plane";function io(e){return function(e){return e.replace(new RegExp(no+"$"),"")}(e.id)}function ro(e){var t=e.id;return wn(e,"bpmn:SubProcess")?so(t):t}function oo(e){return so(e)}function ao(e){return wn(Cn(e),"bpmndi:BPMNPlane")}function so(e){return e+no}function co(e,t,n){var i=Ae(''),r=n.getContainer(),o=ue(r);r.appendChild(i);var a=[];function s(e){e&&(a=function(e){for(var t=Sn(e),n=[],i=t;i;i=i.$parent)(wn(i,"bpmn:SubProcess")||wn(i,"bpmn:Process"))&&n.push(i);return n.reverse()}(e));var r=a.flatMap((function(e){var i=n.findRoot(ro(e))||n.findRoot(e.id);if(!i&&wn(e,"bpmn:Process")){var r=t.find((function(t){var n=Sn(t);return n&&n.get("processRef")===e}));i=r&&n.findRoot(r.id)}if(!i)return[];var o=to(e.name||e.id),a=Ae(''+o+"");return a.addEventListener("click",(function(){n.setRootElement(i)})),a}));i.innerHTML="";var s=r.length>1;o.toggle("bjs-breadcrumbs-shown",s),r.forEach((function(e){i.appendChild(e)}))}e.on("element.changed",(function(e){var t=Sn(e.element);T(a,(function(e){return e===t}))&&s()})),e.on("root.set",(function(e){s(e.element)}))}function lo(e,t){var n=null,i=new po;e.on("root.set",(function(e){var r=e.element,o=t.viewbox(),a=i.get(r);if(i.set(n,{x:o.x,y:o.y,zoom:o.scale}),n=r,wn(r,"bpmn:SubProcess")||a){a=a||{x:0,y:0,zoom:1};var s=(o.x-a.x)*o.scale,c=(o.y-a.y)*o.scale;0===s&&0===c||t.scroll({dx:s,dy:c}),a.zoom!==o.scale&&t.zoom(a.zoom,{x:0,y:0})}})),e.on("diagram.clear",(function(){i.clear(),n=null}))}function po(){this._entries=[],this.set=function(e,t){var n=!1;for(var i in this._entries)if(this._entries[i][0]===e){this._entries[i][1]=t,n=!0;break}n||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var n in this._entries)if(this._entries[n][0]===e){t=n;break}-1!==t&&this._entries.splice(t,1)}}co.$inject=["eventBus","elementRegistry","canvas"],lo.$inject=["eventBus","canvas"];var uo=180,ho=160;function mo(e,t){this._eventBus=e,this._moddle=t;var n=this;e.on("import.render.start",1500,(function(e,t){n._handleImport(t.definitions)}))}function fo(e){return wn(e,"bpmndi:BPMNDiagram")?e:fo(e.$parent)}mo.prototype._handleImport=function(e){if(e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach((function(e){e.plane&&e.plane.bpmnElement&&(t._processToDiagramMap[e.plane.bpmnElement.id]=e)})),e.diagrams.filter((e=>e.plane)).flatMap((e=>t._createNewDiagrams(e.plane))).forEach((function(e){t._movePlaneElementsToOrigin(e.plane)}))}},mo.prototype._createNewDiagrams=function(e){var t=this,n=[],i=[];e.get("planeElement").forEach((function(t){var r=t.bpmnElement;if(r){var o=r.$parent;wn(r,"bpmn:SubProcess")&&!t.isExpanded&&n.push(r),function(e,t){var n=e.$parent;if(!wn(n,"bpmn:SubProcess")||n===t.bpmnElement)return!1;if(En(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))return!1;return!0}(r,e)&&i.push({diElement:t,parent:o})}}));var r=[];return n.forEach((function(e){if(!t._processToDiagramMap[e.id]){var n=t._createDiagram(e);t._processToDiagramMap[e.id]=n,r.push(n)}})),i.forEach((function(e){for(var i=e.diElement,r=e.parent;r&&-1===n.indexOf(r);)r=r.$parent;if(r){var o=t._processToDiagramMap[r.id];t._moveToDiPlane(i,o.plane)}})),r},mo.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),n=function(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach((function(e){if(e.bounds){var n=wr(e.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}})),Er(t)}(e),i=n.x-uo,r=n.y-ho;t.forEach((function(e){e.waypoint?e.waypoint.forEach((function(e){e.x=e.x-i,e.y=e.y-r})):e.bounds&&(e.bounds.x=e.bounds.x-i,e.bounds.y=e.bounds.y-r)}))},mo.prototype._moveToDiPlane=function(e,t){var n=fo(e).plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},mo.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),n=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=n,t.bpmnElement=e,n.$parent=this._definitions,this._definitions.diagrams.push(n),n},mo.$inject=["eventBus","moddle"];var go=250;function yo(e,t,n,i,r){Xr.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=i,this._translate=r;var o=this;this.executed("shape.toggleCollapse",go,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.reverted("shape.toggleCollapse",go,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.executed(["shape.create","shape.move","shape.delete"],go,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;o._canDrillDown(i)&&o._addOverlay(i),o._updateDrilldownOverlay(t),o._updateDrilldownOverlay(n),o._updateDrilldownOverlay(i)}),!0),this.reverted(["shape.create","shape.move","shape.delete"],go,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;o._canDrillDown(i)&&o._addOverlay(i),o._updateDrilldownOverlay(t),o._updateDrilldownOverlay(n),o._updateDrilldownOverlay(i)}),!0),t.on("import.render.complete",(function(){n.filter((function(e){return o._canDrillDown(e)})).map((function(e){o._addOverlay(e)}))}))}v(yo,Xr),yo.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this._updateOverlayVisibility(n)}},yo.prototype._canDrillDown=function(e){var t=this._canvas;return wn(e,"bpmn:SubProcess")&&t.findRoot(ro(e))},yo.prototype._updateOverlayVisibility=function(e){var t=this._overlays,n=Sn(e),i=t.get({element:n.id,type:"drilldown"})[0];if(i){var r=n&&n.get("flowElements")&&n.get("flowElements").length;ue(i.html).toggle("bjs-drilldown-empty",!r)}},yo.prototype._addOverlay=function(e){var t=this._canvas,n=this._overlays,i=Sn(e);n.get({element:e,type:"drilldown"}).length&&this._removeOverlay(e);var r=Ae(''),o=i.get("name")||i.get("id"),a=this._translate("Open {element}",{element:o});r.setAttribute("title",a),r.addEventListener("click",(function(){t.setRootElement(t.findRoot(ro(e)))})),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:r}),this._updateOverlayVisibility(e)},yo.prototype._removeOverlay=function(e){this._overlays.remove({element:e,type:"drilldown"})},yo.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const vo={__depends__:[Ur,Kr,Qr],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",co],drilldownCentering:["type",lo],drilldownOverlayBehavior:["type",yo],subprocessCompatibility:["type",mo]};function bo(e,t){this._eventBus=e,this.offset=5;var n=t.cls("djs-outline",["no-fill"]),i=this;function r(e){var t=Ge("rect");return Oe(t,Q({x:0,y:0,rx:4,width:100,height:100},n)),t}e.on(["shape.added","shape.changed"],500,(function(e){var t=e.element,n=e.gfx,o=Re(".djs-outline",n);o||Be(n,o=i.getOutline(t)||r()),i.updateShapeOutline(o,t)})),e.on(["connection.added","connection.changed"],(function(e){var t=e.element,n=e.gfx,o=Re(".djs-outline",n);o||Be(n,o=r()),i.updateConnectionOutline(o,t)}))}bo.prototype.updateShapeOutline=function(e,t){var n=!1,i=this._getProviders();i.length&&N(i,(function(i){n=n||i.updateOutline(t,e)})),n||Oe(e,{x:-this.offset,y:-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},bo.prototype.updateConnectionOutline=function(e,t){var n=Ir(t);Oe(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},bo.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("outline.getProviders",e,(function(e){e.providers.push(t)}))},bo.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},bo.prototype.getOutline=function(e){var t;return N(this._getProviders(),(function(n){P(n.getOutline)&&(t=t||n.getOutline(e))})),t},bo.$inject=["eventBus","styles","elementRegistry"];const xo={__init__:["outline"],outline:["type",bo]},_o={width:36,height:50},wo={width:50,height:50};function Eo(e,t,n){return Ge("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}function So(e,t){this._styles=t,e.registerProvider(this)}function Co(e,t){var n;return"bpmn:DataObjectReference"===t?n=_o:"bpmn:DataStoreReference"===t&&(n=wo),e.width===n.width&&e.height===n.height}So.$inject=["outline","styles"],So.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(!Kn(e))return wn(e,"bpmn:Gateway")?(Q((n=Ge("rect")).style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),Oe(n,Q({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):En(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?Oe(n=Ge("rect"),Q({x:-5,y:-5,rx:14,width:e.width+10,height:e.height+10},t)):wn(e,"bpmn:EndEvent")?Oe(n=Ge("circle"),Q({cx:e.width/2,cy:e.height/2,r:e.width/2+5+1},t)):wn(e,"bpmn:Event")?Oe(n=Ge("circle"),Q({cx:e.width/2,cy:e.height/2,r:e.width/2+5},t)):wn(e,"bpmn:DataObjectReference")&&Co(e,"bpmn:DataObjectReference")?n=Eo("M44.7648 11.3263L36.9892 2.64074C36.0451 1.58628 34.5651 0.988708 33.1904 0.988708H5.98667C3.22688 0.988708 0.989624 3.34892 0.989624 6.26039V55.0235C0.989624 57.9349 3.22688 60.2952 5.98667 60.2952H40.966C43.7257 60.2952 45.963 57.9349 45.963 55.0235V14.9459C45.963 13.5998 45.6407 12.3048 44.7648 11.3263Z",{x:-6,y:-6},t):wn(e,"bpmn:DataStoreReference")&&Co(e,"bpmn:DataStoreReference")&&(n=Eo("M1.03845 48.1347C1.03845 49.3511 1.07295 50.758 1.38342 52.064C1.69949 53.3938 2.32428 54.7154 3.56383 55.6428C6.02533 57.4841 10.1161 58.7685 14.8212 59.6067C19.5772 60.4538 25.1388 60.8738 30.6831 60.8738C36.2276 60.8738 41.7891 60.4538 46.545 59.6067C51.2504 58.7687 55.3412 57.4842 57.8028 55.6429C59.0424 54.7156 59.6673 53.3938 59.9834 52.064C60.2938 50.7579 60.3285 49.351 60.3285 48.1344V13.8415C60.3285 12.6249 60.2938 11.218 59.9834 9.91171C59.6673 8.58194 59.0423 7.2602 57.8027 6.33294C55.341 4.49168 51.2503 3.20723 46.545 2.36914C41.7891 1.522 36.2276 1.10204 30.6831 1.10205C25.1388 1.10206 19.5772 1.52206 14.8213 2.36923C10.1162 3.20734 6.02543 4.49183 3.5639 6.33314C2.32433 7.26038 1.69951 8.58206 1.38343 9.91181C1.07295 11.2179 1.03845 12.6247 1.03845 13.8411V48.1347Z",{x:-6,y:-6},t)),n},So.prototype.updateOutline=function(e,t){if(!Kn(e))return En(e,["bpmn:SubProcess","bpmn:Group"])?(Oe(t,{width:e.width+10,height:e.height+10}),!0):!!En(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};const ko={__depends__:[xo],__init__:["outlineProvider"],outlineProvider:["type",So]};function Ao(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()}function Po(e){return e.originalEvent||e.srcEvent}function Ro(e){Ao(e),Ao(Po(e))}function Mo(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function To(){return/mac/i.test(navigator.platform)}function Bo(e,t){return(Po(e)||e).button===t}function Do(e){return Bo(e,0)}function No(e){var t=Po(e)||e;return!!Do(e)&&(To()?t.metaKey:t.ctrlKey)}function Oo(e){var t=Po(e)||e;return Do(e)&&t.shiftKey}function jo(e){return!0}function Lo(e){return Do(e)||function(e){return Bo(e,1)}(e)}function Io(e,t,n){var i=this;function r(n,i,r){var o,a;(function(e,t){return!(c[e]||Do)(t)})(n,i)||(r?a=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(a=o,r=t.get(a)),a&&r&&!1===e.fire(n,{element:r,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function a(e){return o[e]}var s={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},c={"element.contextmenu":jo,"element.mousedown":Lo,"element.mouseup":Lo,"element.click":Lo,"element.dblclick":Lo};function l(e,t,n,i){var a=o[n]=function(e){r(n,e)};i&&(c[n]=i),a.$delegate=Ee.bind(e,"svg, .djs-element",t,a)}function p(e,t,n){var i=a(n);i&&Ee.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,N(s,(function(e,n){p(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,N(s,(function(e,n){l(t,n,e)}))})),e.on(["shape.added","connection.added"],(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.createHit",{element:n,gfx:i})})),e.on(["shape.changed","connection.changed"],500,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",500,(function(e){var t=e.element,n=e.gfx;i.createDefaultHit(t,n)})),e.on("interactionEvents.updateHit",(function(e){var t=e.element,n=e.gfx;i.updateDefaultHit(t,n)}));var u=m("djs-hit djs-hit-stroke"),d=m("djs-hit djs-hit-click-stroke"),h={all:m("djs-hit djs-hit-all"),"click-stroke":d,stroke:u,"no-move":m("djs-hit djs-hit-no-move")};function m(e,t){return t=Q({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function f(e,t){var n=h[t];if(!n)throw new Error("invalid hit type <"+t+">");return Oe(e,n),e}function g(e,t){Be(e,t)}this.removeHits=function(e){N(Me(".djs-hit",e),Je)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,r=e.isFrame;return i?this.createWaypointsHit(t,i):(n=r?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n=si(t);return f(n,"stroke"),g(e,n),n},this.createBoxHit=function(e,t,n){n=Q({x:0,y:0},n);var i=Ge("rect");return f(i,t),Oe(i,n),g(e,i),i},this.updateDefaultHit=function(e,t){var n=Re(".djs-hit",t);if(n)return e.waypoints?ci(n,e.waypoints):Oe(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=s[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=a,this.registerEvent=l,this.unregisterEvent=p}Io.$inject=["eventBus","elementRegistry","styles"];const $o={__init__:["interactionEvents"],interactionEvents:["type",Io]};function zo(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var n=this;e.on(["shape.remove","connection.remove"],(function(e){var t=e.element;n.deselect(t)})),e.on(["diagram.clear","root.set"],(function(e){n.select(null)}))}zo.$inject=["eventBus","canvas"],zo.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(-1!==n){var i=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})}},zo.prototype.get=function(){return this._selectedElements},zo.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},zo.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();C(e)||(e=e?[e]:[]);var r=this._canvas,o=r.getRootElement();e=e.filter((function(e){var t=r.findRoot(e);return o===t})),t?N(e,(function(e){-1===n.indexOf(e)&&n.push(e)})):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})};var Fo="hover",Ho="selected";function Vo(e,t,n){this._canvas=e;var i=this;function r(t,n){e.addMarker(t,n)}function o(t,n){e.removeMarker(t,n)}this._multiSelectionBox=null,t.on("element.hover",(function(e){r(e.element,Fo)})),t.on("element.out",(function(e){o(e.element,Fo)})),t.on("selection.changed",(function(e){var t=e.oldSelection,n=e.newSelection;N(t,(function(e){-1===n.indexOf(e)&&o(e,Ho)})),N(n,(function(e){-1===t.indexOf(e)&&r(e,Ho)})),i._updateSelectionOutline(n)})),t.on("element.changed",(function(e){n.isSelected(e.element)&&i._updateSelectionOutline(n.get())}))}function Go(e,t,n,i){e.on("create.end",500,(function(e){var n=e.context,i=n.canExecute,r=n.elements,o=(n.hints||{}).autoSelect;if(i){if(!1===o)return;C(o)?t.select(o):t.select(r.filter(Wo))}})),e.on("connect.end",500,(function(e){var n=e.context.connection;n&&t.select(n)})),e.on("shape.move.end",500,(function(e){var n=e.previousSelection||[],r=i.get(e.context.shape.id);T(n,(function(e){return r.id===e.id}))||t.select(r)})),e.on("element.click",(function(e){if(Do(e)){var i=e.element;i===n.getRootElement()&&(i=null);var r=t.isSelected(i),o=t.get().length>1,a=Oo(e);if(r&&o)return a?t.deselect(i):t.select(i);r?t.deselect(i):t.select(i,a)}}))}function Wo(e){return!e.hidden}Vo.$inject=["canvas","eventBus","selection"],Vo.prototype._updateSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");$e(t);var n=e.length>1;if(Le(this._canvas.getContainer())[n?"add":"remove"]("djs-multi-select"),n){var i=function(e){return{x:e.x-6,y:e.y-6,width:e.width+12,height:e.height+12}}(Ir(e)),r=Ge("rect");Oe(r,Q({rx:3},i)),Le(r).add("djs-selection-outline"),Be(t,r)}},Go.$inject=["eventBus","selection","canvas","elementRegistry"];const Uo={__init__:["selectionVisuals","selectionBehavior"],__depends__:[$o,xo],selection:["type",zo],selectionVisuals:["type",Vo],selectionBehavior:["type",Go]};function qo(e){Ln.call(this,e)}v(qo,Ln),qo.prototype._modules=[Br,vo,ko,Ur,Uo,Oi],qo.prototype._moddleExtensions={};var Ko=["c","C"],Xo=["v","V"],Yo=["y","Y"],Zo=["z","Z"];function Qo(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function Jo(e,t){return-1!==(e=C(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.code)}function ea(e){return e.shiftKey}var ta="keyboard.keydown",na="input-handle-modified-keys";function ia(e,t){var n=this;this._config=e||{},this._eventBus=t,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),t.on("diagram.destroy",(function(){n._fire("destroy"),n.unbind()})),t.on("diagram.init",(function(){n._fire("init")})),t.on("attach",(function(){e&&e.bindTo&&n.bind(e.bindTo)})),t.on("detach",(function(){n.unbind()}))}ia.$inject=["config.keyboard","eventBus"],ia.prototype._keydownHandler=function(e){this._keyHandler(e,ta)},ia.prototype._keyupHandler=function(e){this._keyHandler(e,"keyboard.keyup")},ia.prototype._keyHandler=function(e,t){if(!this._isEventIgnored(e)){var n={keyEvent:e};this._eventBus.fire(t||ta,n)&&e.preventDefault()}},ia.prototype._isEventIgnored=function(e){return!!e.defaultPrevented||((t=e.target)&&(Pe(t,"input, textarea")||"true"===t.contentEditable)||function(e){return e&&Pe(e,"button, input[type=submit], input[type=button], a[href], [aria-role=button]")}(e.target)&&Jo([" ","Enter"],e))&&this._isModifiedKeyIgnored(e);var t},ia.prototype._isModifiedKeyIgnored=function(e){return!Qo(e)||-1===this._getAllowedModifiers(e.target).indexOf(e.key)},ia.prototype._getAllowedModifiers=function(e){var t=me(e,"["+na+"]",!0);return!t||this._node&&!this._node.contains(t)?[]:t.getAttribute(na).split(",")},ia.prototype.bind=function(e){this.unbind(),this._node=e,xe.bind(e,"keydown",this._keydownHandler),xe.bind(e,"keyup",this._keyupHandler),this._fire("bind")},ia.prototype.getBinding=function(){return this._node},ia.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),xe.unbind(e,"keydown",this._keydownHandler),xe.unbind(e,"keyup",this._keyupHandler)),this._node=null},ia.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},ia.prototype.addListener=function(e,t,n){P(e)&&(n=t,t=e,e=1e3),this._eventBus.on(n||ta,e,t)},ia.prototype.removeListener=function(e,t){this._eventBus.off(t||ta,e)},ia.prototype.hasModifier=function(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},ia.prototype.isCmd=Qo,ia.prototype.isShift=ea,ia.prototype.isKey=Jo;function ra(e,t){var n=this;e.on("editorActions.init",500,(function(e){var i=e.editorActions;n.registerBindings(t,i)}))}ra.$inject=["eventBus","keyboard"],ra.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}n("undo",(function(e){if(function(e){return Qo(e)&&!ea(e)&&Jo(Zo,e)}(e.keyEvent))return t.trigger("undo"),!0})),n("redo",(function(e){if(function(e){return Qo(e)&&(Jo(Yo,e)||Jo(Zo,e)&&ea(e))}(e.keyEvent))return t.trigger("redo"),!0})),n("copy",(function(e){if(function(e){return Qo(e)&&Jo(Ko,e)}(e.keyEvent))return t.trigger("copy"),!0})),n("paste",(function(e){if(function(e){return Qo(e)&&Jo(Xo,e)}(e.keyEvent))return t.trigger("paste"),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(Jo(["+","Add","="],n)&&Qo(n))return t.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(Jo(["-","Subtract"],n)&&Qo(n))return t.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(e){var n=e.keyEvent;if(Jo("0",n)&&Qo(n))return t.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(e){if(Jo(["Backspace","Delete","Del"],e.keyEvent))return t.trigger("removeSelection"),!0}))};const oa={__init__:["keyboard","keyboardBindings"],keyboard:["type",ia],keyboardBindings:["type",ra]};var aa={moveSpeed:50,moveSpeedAccelerated:200};function sa(e,t,n){var i=this;this._config=Q({},aa,e||{}),t.addListener((function(e){var n=e.keyEvent,r=i._config;if(!t.isCmd(n))return;if(t.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],n)){var o,a=t.isShift(n)?r.moveSpeedAccelerated:r.moveSpeed;switch(n.key){case"ArrowLeft":case"Left":o="left";break;case"ArrowUp":case"Up":o="up";break;case"ArrowRight":case"Right":o="right";break;case"ArrowDown":case"Down":o="down"}return i.moveCanvas({speed:a,direction:o}),!0}})),this.moveCanvas=function(e){var t=0,i=0,r=e.speed/Math.min(Math.sqrt(n.viewbox().scale),1);switch(e.direction){case"left":t=r;break;case"up":i=r;break;case"right":t=-r;break;case"down":i=-r}n.scroll({dx:t,dy:i})}}sa.$inject=["config.keyboardMove","keyboard","canvas"];const ca={__depends__:[oa],__init__:["keyboardMove"],keyboardMove:["type",sa]};var la=/^djs-cursor-.*$/;function pa(e){var t=ue(document.body);t.removeMatching(la),e&&t.add("djs-cursor-"+e)}function ua(){pa(null)}function da(e,t){function n(){return!1}return t=t||"element.click",e.once(t,5e3,n),function(){e.off(t,n)}}function ha(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function ma(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fa(e,t){var n;function i(i){var r,o=n.start,a=n.button,s=Mo(i),c=ma(s,o);(!n.dragging&&(r=c,Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))>15)&&(n.dragging=!0,0===a&&da(e),pa("grab")),n.dragging)&&(c=ma(s,n.last||n.start),t.scroll({dx:c.x,dy:c.y}),n.last=s);i.preventDefault()}function r(e){xe.unbind(document,"mousemove",i),xe.unbind(document,"mouseup",r),n=null,ua()}e.on("element.mousedown",500,(function(e){return function(e){if(me(e.target,".djs-draggable"))return;var t=e.button;if(t>=2||e.ctrlKey||e.shiftKey||e.altKey)return;return n={button:t,start:Mo(e)},xe.bind(document,"mousemove",i),xe.bind(document,"mouseup",r),!0}(e.originalEvent)})),this.isActive=function(){return!!n}}fa.$inject=["eventBus","canvas"];const ga={__init__:["moveCanvas"],moveCanvas:["type",fa]};function ya(e){return Math.log(e)/Math.log(10)}function va(e,t){var n=ya(e.min),i=ya(e.max);return(Math.abs(n)+Math.abs(i))/t}var ba=Math.sign||function(e){return e>=0?1:-1},xa={min:.2,max:4};function _a(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=Z(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||.75;var i=this;t.on("canvas.init",(function(t){i._init(!1!==e.enabled)}))}_a.$inject=["config.zoomScroll","eventBus","canvas"],_a.prototype.scroll=function(e){this._canvas.scroll(e)},_a.prototype.reset=function(){this._canvas.zoom("fit-viewport")},_a.prototype.zoom=function(e,t){var n=va(xa,20);this._totalDelta+=e,Math.abs(this._totalDelta)>.1&&(this._zoom(e,t,n),this._totalDelta=0)},_a.prototype._handleWheel=function(e){if(!me(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,i=e.ctrlKey||To()&&e.metaKey,r=e.shiftKey,o=-1*this._scale;if(o*=i?0===e.deltaMode?.02:.32:0===e.deltaMode?1:16,i){var a=t.getBoundingClientRect(),s={x:e.clientX-a.left,y:e.clientY-a.top};n=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*ba(e.deltaY)*o,this.zoom(n,s)}else n=r?{dx:o*e.deltaY,dy:0}:{dx:o*e.deltaX,dy:o*e.deltaY},this.scroll(n)}},_a.prototype.stepZoom=function(e,t){var n=va(xa,10);this._zoom(e,t,n)},_a.prototype._zoom=function(e,t,n){var i=this._canvas,r=e>0?1:-1,o=ya(i.zoom()),a=Math.round(o/n)*n;a+=n*r;var s,c,l=Math.pow(10,a);i.zoom((s=xa,c=l,Math.max(s.min,Math.min(s.max,c))),t)},_a.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,i=this._enabled;return void 0===e&&(e=!i),i!==e&&xe[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e,e},_a.prototype._init=function(e){this.toggle(e)};const wa={__init__:["zoomScroll"],zoomScroll:["type",_a]};function Ea(e){qo.call(this,e)}function Sa(e){return e&&e[e.length-1]}function Ca(e){return e.y}function ka(e){return e.x}v(Ea,qo),Ea.prototype._navigationModules=[ca,ga,wa],Ea.prototype._modules=[].concat(qo.prototype._modules,Ea.prototype._navigationModules);var Aa={left:ka,center:ka,right:function(e){return e.x+e.width},top:Ca,middle:Ca,bottom:function(e){return e.y+e.height}};function Pa(e,t){this._modeling=e,this._rules=t}Pa.$inject=["modeling","rules"],Pa.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},Pa.prototype._isType=function(e,t){return-1!==t.indexOf(e)},Pa.prototype._alignmentPosition=function(e,t){var n,i,r,o,a,s=this._getOrientationDetails(e),c=s.axis,l=s.dimension,p={},u={},d=!1;if(this._isType(e,["left","top"]))p[e]=t[0][c];else if(this._isType(e,["right","bottom"]))r=Sa(t),p[e]=r[c]+r[l];else if(this._isType(e,["center","middle"])){if(N(t,(function(e){var t=e[c]+Math.round(e[l]/2);u[t]?u[t].elements.push(e):u[t]={elements:[e],center:t}})),n=W(u,(function(e){return e.elements.length>1&&(d=!0),e.elements.length})),d)return p[e]=Sa(n).center,p;i=t[0],r=Sa(t=W(t,(function(e){return e[c]+e[l]}))),p[e]=(o=i,a=r,Math.round((o[c]+a[c]+a[l])/2))}return p},Pa.prototype.trigger=function(e,t){var n,i=this._modeling,r=D(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(C(n=this._rules.allowed("elements.align",{elements:r}))&&(r=n),!(r.length<2)&&n){var o=W(r,Aa[t]),a=this._alignmentPosition(t,o);i.alignElements(o,a)}};const Ra={__init__:["alignElements"],alignElements:["type",Pa]},Ma=new zr;function Ta(e){this._scheduled={},e.on("diagram.destroy",(()=>{Object.keys(this._scheduled).forEach((e=>{this.cancel(e)}))}))}Ta.$inject=["eventBus"],Ta.prototype.schedule=function(e,t=Ma.next()){this.cancel(t);const n=this._schedule(e,t);return this._scheduled[t]=n,n.promise},Ta.prototype._schedule=function(e,t){const{promise:n,resolve:i,reject:r}=function(){let e,t;const n=new Promise(((n,i)=>{e=n,t=i}));return{promise:n,resolve:e,reject:t}}();return{executionId:requestAnimationFrame((()=>{try{i(e())}catch(t){r(t)}})),promise:n}},Ta.prototype.cancel=function(e){const t=this._scheduled[e];t&&(this._cancel(t),this._scheduled[e]=null)},Ta.prototype._cancel=function(e){cancelAnimationFrame(e.executionId)};const Ba={scheduler:["type",Ta]};var Da=".entry";function Na(e,t,n,i){this._canvas=e,this._elementRegistry=t,this._eventBus=n,this._scheduler=i,this._current=null,this._init()}Na.$inject=["canvas","elementRegistry","eventBus","scheduler"],Na.prototype._init=function(){var e=this;this._eventBus.on("selection.changed",(function(t){var n=t.newSelection,i=n.length?1===n.length?n[0]:n:null;i?e.open(i,!0):e.close()})),this._eventBus.on("elements.changed",(function(t){var n=t.elements,i=e._current;if(i){var r=i.target,o=C(r)?r:[r];if(o.filter((function(e){return n.includes(e)})).length){e.close();var a=o.filter((function(t){return e._elementRegistry.get(t.id)}));a.length&&e._updateAndOpen(a.length>1?a:a[0])}}})),this._eventBus.on("canvas.viewbox.changed",(function(){e._updatePosition()})),this._eventBus.on("element.marker.update",(function(t){if(e.isOpen()){var n=t.element,i=e._current;(C(i.target)?i.target:[i.target]).includes(n)&&e._updateVisibility()}})),this._container=this._createContainer()},Na.prototype._createContainer=function(){var e=Ae('');return this._canvas.getContainer().appendChild(e),e},Na.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},Na.prototype.getEntries=function(e){var t=this._getProviders(),n=C(e)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return N(t,(function(t){if(P(t[n])){var r=t[n](e);P(r)?i=r(i):N(r,(function(e,t){i[t]=e}))}})),i},Na.prototype.trigger=function(e,t,n){var i,r,o=this,a=t.delegateTarget||t.target;return a?(i=le(a,"data-action"),r=t.originalEvent||t,"mouseover"!==e?"mouseout"===e?(clearTimeout(this._timeout),void(this._mouseout&&(this._mouseout(),this._mouseout=null))):this.triggerEntry(i,e,r,n):void(this._timeout=setTimeout((function(){o._mouseout=o.triggerEntry(i,"hover",r,n)}),300))):t.preventDefault()},Na.prototype.triggerEntry=function(e,t,n,i){if(this.isShown()){var r=this._current.target,o=this._current.entries[e];if(o){var a=o.action;if(!1!==this._eventBus.fire("contextPad.trigger",{entry:o,event:n})){if(P(a)){if("click"===t)return a(n,r,i)}else if(a[t])return a[t](n,r,i);n.preventDefault()}}}},Na.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},Na.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Na.prototype._updateAndOpen=function(e){var t,n=this.getEntries(e),i=this._createHtml(e);N(n,(function(e,n){var r,o,a,s,c=e.group||"default",l=Ae(e.html||'');le(l,"data-action",n),(r=Re("[data-group="+Jr(c)+"]",i))||(le(r=Ae(''),"data-group",c),i.appendChild(r)),r.appendChild(l),e.className&&(o=l,a=e.className,s=ue(o),(a=C(a)?a:a.split(/\s+/g)).forEach((function(e){s.add(e)}))),e.title&&le(l,"title",e.title),e.imageUrl&&(le(t=Ae(""),"src",e.imageUrl),t.style.width="100%",t.style.height="100%",l.appendChild(t))})),ue(i).add("open"),this._current={entries:n,html:i,target:e},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})},Na.prototype._createHtml=function(e){var t=this,n=Ae('');return Ee.bind(n,Da,"click",(function(e){t.trigger("click",e)})),Ee.bind(n,Da,"dragstart",(function(e){t.trigger("dragstart",e)})),Ee.bind(n,Da,"mouseover",(function(e){t.trigger("mouseover",e)})),Ee.bind(n,Da,"mouseout",(function(e){t.trigger("mouseout",e)})),xe.bind(n,"mousedown",(function(e){e.stopPropagation()})),this._container.appendChild(n),this._eventBus.fire("contextPad.create",{target:e,pad:n}),n},Na.prototype.getPad=function(e){let t;return t=this.isOpen()&&function(e,t){return e=C(e)?e:[e],t=C(t)?t:[t],e.length===t.length&&L(e,(function(e){return t.includes(e)}))}(this._current.target,e)?this._current.html:this._createHtml(e),{html:t}},Na.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},Na.prototype.isOpen=function(e){var t=this._current;if(!t)return!1;if(!e)return!0;var n=t.target;return C(e)===C(n)&&(C(e)?e.length===n.length&&L(e,(function(e){return n.includes(e)})):n===e)},Na.prototype.isShown=function(){return this.isOpen()&&ue(this._current.html).has("open")},Na.prototype.show=function(){this.isOpen()&&(ue(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))},Na.prototype.hide=function(){this.isOpen()&&(ue(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))},Na.prototype._getPosition=function(e){if(!C(e)&&qn(e)){var t=this._canvas.viewbox(),n=(o=e).waypoints[o.waypoints.length-1],i=n.x*t.scale-t.x*t.scale,r=n.y*t.scale-t.y*t.scale;return{left:i+8*this._canvas.zoom(),top:r}}var o,a=this._canvas.getContainer().getBoundingClientRect(),s=this._getTargetBounds(e);return{left:s.right-a.left+8*this._canvas.zoom(),top:s.top-a.top}},Na.prototype._updatePosition=function(){this._scheduler.schedule((()=>{if(this.isOpen()){var e=this._current.html,t=this._getPosition(this._current.target);"x"in t&&"y"in t?(e.style.left=t.x+"px",e.style.top=t.y+"px"):["top","right","bottom","left"].forEach((function(n){n in t&&(e.style[n]=t[n]+"px")}))}}),"ContextPad#_updatePosition")},Na.prototype._updateVisibility=function(){this._scheduler.schedule((()=>{if(this.isOpen()){var e=this,t=this._current.target;(C(t)?t:[t]).some((function(t){return e._canvas.hasMarker(t,"djs-element-hidden")}))?e.hide():e.show()}}),"ContextPad#_updateVisibility")},Na.prototype._getTargetBounds=function(e){var t=this;return(C(e)?e:[e]).map((function(e){return t._canvas.getGraphics(e)})).reduce((function(e,t){const n=t.getBoundingClientRect();return e.top=Math.min(e.top,n.top),e.right=Math.max(e.right,n.right),e.bottom=Math.max(e.bottom,n.bottom),e.left=Math.min(e.left,n.left),e.x=e.left,e.y=e.top,e.width=e.right-e.left,e.height=e.bottom-e.top,e}),{top:1/0,right:-1/0,bottom:-1/0,left:1/0})};const Oa={__depends__:[$o,Ba,Ur],contextPad:["type",Na]};var ja,La,Ia,$a,za,Fa,Ha,Va,Ga,Wa,Ua={},qa=[],Ka=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xa=Array.isArray;function Ya(e,t){for(var n in t)e[n]=t[n];return e}function Za(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Qa(e,t,n){var i,r,o,a={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ja.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return Ja(e,a,i,r,null)}function Ja(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++Ia:r,__i:-1,__u:0};return null==r&&null!=La.vnode&&La.vnode(o),o}function es(e){return e.children}function ts(e,t){this.props=e,this.context=t}function ns(e,t){if(null==t)return e.__?ns(e.__,e.__i+1):null;for(var n;tt&&$a.sort(Ha));os.__r=0}function as(e,t,n,i,r,o,a,s,c,l,p){var u,d,h,m,f,g=i&&i.__k||qa,y=t.length;for(n.__d=c,function(e,t,n){var i,r,o,a,s,c=t.length,l=n.length,p=l,u=0;for(e.__k=[],i=0;i0?Ja(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=e,r.__b=e.__b+1,o=null,-1!==(s=r.__i=cs(r,n,a,p))&&(p--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&u--,"function"!=typeof r.type&&(r.__u|=65536)):s!==a&&(s==a-1?u--:s==a+1?u++:(s>a?u--:u++,r.__u|=65536))):r=e.__k[i]=null;if(p)for(i=0;i(null==c||131072&c.__u?0:1))for(;a>=0||s=0){if((c=t[a])&&!(131072&c.__u)&&r==c.key&&o===c.type)return a;a--}if(s=5&&((r||!e&&5===i)&&(a.push(i,0,r,n),i=6),e&&(a.push(i,e,0,n),i=6)),r=""},c=0;c"===t?(i=1,r=""):r=t+r[0]:o?t===o?o="":r+=t:'"'===t||"'"===t?o=t:">"===t?(s(),i=1):i&&("="===t?(i=5,n=r,r=""):"/"===t&&(i<5||">"===e[c][l+1])?(s(),3===i&&(a=a[0]),i=a,(a=a[0]).push(2,0,i),i=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(s(),i=2):r+=t),3===i&&"!--"===r&&(i=4,a=a[0])}return s(),a}(e)),t),arguments,[])).length>1?t:t[0]}.bind(Qa),Cs=0,ks=[],As=La,Ps=As.__b,Rs=As.__r,Ms=As.diffed,Ts=As.__c,Bs=As.unmount,Ds=As.__;function Ns(e,t){As.__h&&As.__h(_s,e,Cs||t),Cs=0;var n=_s.__H||(_s.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Os(e){return Cs=1,function(e,t){var n=Ns(xs++,2);if(n.t=e,!n.__c&&(n.__=[qs(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],i=n.t(t,e);t!==i&&(n.__N=[i,n.__[1]],n.__c.setState({}))}],n.__c=_s,!_s.u)){var i=function(e,t,i){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!r||r.call(this,e,t,i);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&n.__c.props===e)&&(!r||r.call(this,e,t,i))};_s.u=!0;var r=_s.shouldComponentUpdate,o=_s.componentWillUpdate;_s.componentWillUpdate=function(e,t,n){if(this.__e){var a=r;r=void 0,i(e,t,n),r=a}o&&o.call(this,e,t,n)},_s.shouldComponentUpdate=i}return n.__N||n.__}(qs,e)}function js(e,t){var n=Ns(xs++,3);!As.__s&&Us(n.__H,t)&&(n.__=e,n.i=t,_s.__H.__h.push(n))}function Ls(e,t){var n=Ns(xs++,4);!As.__s&&Us(n.__H,t)&&(n.__=e,n.i=t,_s.__h.push(n))}function Is(e){return Cs=5,$s((function(){return{current:e}}),[])}function $s(e,t){var n=Ns(xs++,7);return Us(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function zs(e,t){return Cs=8,$s((function(){return e}),t)}function Fs(){for(var e;e=ks.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Gs),e.__H.__h.forEach(Ws),e.__H.__h=[]}catch(t){e.__H.__h=[],As.__e(t,e.__v)}}As.__b=function(e){_s=null,Ps&&Ps(e)},As.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ds&&Ds(e,t)},As.__r=function(e){Rs&&Rs(e),xs=0;var t=(_s=e.__c).__H;t&&(ws===_s?(t.__h=[],_s.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Gs),t.__h.forEach(Ws),t.__h=[],xs=0)),ws=_s},As.diffed=function(e){Ms&&Ms(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ks.push(t)&&Es===As.requestAnimationFrame||((Es=As.requestAnimationFrame)||Vs)(Fs)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),ws=_s=null},As.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Gs),e.__h=e.__h.filter((function(e){return!e.__||Ws(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],As.__e(n,e.__v)}})),Ts&&Ts(e,t)},As.unmount=function(e){Bs&&Bs(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Gs(e)}catch(n){t=n}})),n.__H=void 0,t&&As.__e(t,n.__v))};var Hs="function"==typeof requestAnimationFrame;function Vs(e){var t,n=function(){clearTimeout(i),Hs&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);Hs&&(t=requestAnimationFrame(n))}function Gs(e){var t=_s,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),_s=t}function Ws(e){var t=_s;e.__c=e.__(),_s=t}function Us(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function qs(e,t){return"function"==typeof t?t(e):t}function Ks(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;tt.reduce(((e,t)=>{const n=t.group||"default",i=e.find((e=>e.id===n));return i?i.entries.push(t):e.push({id:n,entries:[t]}),e}),[])),[t]);return Ss`
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("quasar"),require("vue"),require("@herodotus/components"),require("@herodotus/bpmn-apis"),require("@herodotus/core"),require("bpmn-js-properties-panel"),require("bpmn-js-token-simulation"),require("ids"),require("diagram-js")):"function"==typeof define&&define.amd?define(["exports","quasar","vue","@herodotus/components","@herodotus/bpmn-apis","@herodotus/core","bpmn-js-properties-panel","bpmn-js-token-simulation","ids","diagram-js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@herodotus/bpmn-designer"]={},e.quasar,e.vue,e.HerodotusComponents,e.HerodotusBpmnApis,e.HerodotusCore,e.BpmnJsPropertiesPanel,e.BpmnJsTokenSimulation,e.Ids,e.DiagramJs)}(this,(function(e,t,n,i,r,o,a,s,c,l){"use strict";const p=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n};const u=p(n.defineComponent({name:"HBpmnDesignerToolbar",components:{HListItem:i.HListItem,HSwitch:i.HSwitch,HTextField:i.HTextField},props:{file:{type:String,required:!0},zoom:{type:Number,default:1}},emits:["update:file","downloadXml","downloadSvg","downloadBpmn","alignLeft","alignRight","alignTop","alignBottom","alignHorizontalCenter","alignVerticalCenter","zoomMinus","zoomPlus","zoomReset","undo","redo","refresh","simulation","save"],setup(e,{emit:t}){const i=n.ref(null),r=n.ref(!1),o=n.ref(!1),a=n.ref(""),s=n.computed({get:()=>e.file,set:e=>{t("update:file",e)}}),c=n.ref(""),l=n.ref(""),p=n.ref(!1),u=n.ref(!1),d=n.ref(!1);n.watch(i,(e=>{(async e=>{if(e){const t=await e.text();a.value=e.name,t&&(s.value=t)}else s.value=""})(e)})),n.watch((()=>a.value),(e=>{e&&(c.value=e,d.value=!0)}),{immediate:!0}),n.watch(u,(e=>{e&&(p.value=!0)}),{immediate:!0});return{bpmnModelFile:i,onDownloadXml:()=>{t("downloadXml")},onDownloadSvg:()=>{t("downloadSvg")},onDownloadBpmn:()=>{t("downloadBpmn")},onAlignLeft:()=>{t("alignLeft")},onAlignRight:()=>{t("alignRight")},onAlignTop:()=>{t("alignTop")},onAlignBottom:()=>{t("alignBottom")},onAlignHorizontalCenter:()=>{t("alignHorizontalCenter")},onAlignVerticalCenter:()=>{t("alignVerticalCenter")},onZoomMinus:()=>{t("zoomMinus")},onZoomPlus:()=>{t("zoomPlus")},onZoomReset:()=>{t("zoomReset")},onUndo:()=>{t("undo")},onRedo:()=>{t("redo")},onRefresh:()=>{t("refresh")},simulation:r,onSimulation:()=>{r.value=!r.value,t("simulation")},showUploadDialog:o,onSave:()=>{o.value=!1;const e={deploymentName:c.value,enableDuplicateFiltering:p.value,deployChangedOnly:u.value,resource:s.value};t("save",e)},name:a,deploymentName:c,tenantId:l,enableDuplicateCheck:p,deployChangedOnly:u,disableNameInput:d}}}),[["render",function(e,i,r,o,a,s){const c=t.QIcon,l=t.QFile,p=t.QSeparator,u=n.resolveComponent("h-list-item"),d=t.QList,h=t.QBtnDropdown,m=n.resolveComponent("h-button"),f=t.QBtnGroup,g=t.QBtn,y=t.QCardSection,v=n.resolveComponent("h-text-field"),b=n.resolveComponent("h-switch"),x=t.QCardActions,_=t.QCard,w=t.QDialog,E=t.QToolbar,S=n.resolveDirective("close-popup");return n.openBlock(),n.createBlock(E,{class:"bg-primary text-white q-px-none"},{default:n.withCtx((()=>[n.createVNode(l,{modelValue:e.bpmnModelFile,"onUpdate:modelValue":i[0]||(i[0]=t=>e.bpmnModelFile=t),"label-color":"white","bg-color":"primary",square:"",standout:"",dense:"",clearable:"",label:"打开"},{prepend:n.withCtx((()=>[n.createVNode(c,{name:"mdi-folder-open",color:"white"})])),_:1},8,["modelValue"]),n.createVNode(p,{vertical:"",color:"white"}),n.createVNode(h,{stretch:"",flat:"",label:"下载",dense:"",icon:"mdi-download-box"},{default:n.withCtx((()=>[n.createVNode(d,null,{default:n.withCtx((()=>[n.createVNode(d,null,{default:n.withCtx((()=>[n.createVNode(u,{label:"下载为XML文件",icon:"mdi-xml",onClick:i[1]||(i[1]=t=>e.onDownloadXml())}),n.createVNode(u,{label:"下载为SVG文件",icon:"mdi-svg",onClick:i[2]||(i[2]=t=>e.onDownloadSvg())}),n.createVNode(u,{label:"下载为BPMN文件",icon:"mdi-codepen",onClick:i[3]||(i[3]=t=>e.onDownloadBpmn())})])),_:1})])),_:1})])),_:1}),n.createVNode(p,{vertical:"",color:"white"}),n.createVNode(h,{stretch:"",flat:"",label:"代码",dense:"",icon:"mdi-eye"},{default:n.withCtx((()=>[n.createVNode(d,null,{default:n.withCtx((()=>[n.createVNode(d,null,{default:n.withCtx((()=>[n.createVNode(u,{label:"预览XML",icon:"mdi-xml"}),n.createVNode(u,{label:"预览JSON",icon:"mdi-code-json"})])),_:1})])),_:1})])),_:1}),n.createVNode(p,{vertical:"",color:"white"}),n.createVNode(m,{stretch:"",flat:"",color:"primary",dense:"","text-color":"white",icon:e.simulation?"mdi-play-pause":"mdi-play",tooltip:e.simulation?"退出模拟":"开启模拟",label:e.simulation?"退出模拟":"开启模拟",onClick:i[4]||(i[4]=t=>e.onSimulation())},null,8,["icon","tooltip","label"]),n.createVNode(p,{vertical:"",color:"white"}),n.createVNode(m,{stretch:"",flat:"",color:"primary",dense:"","text-color":"white",icon:"mdi-cloud-upload",tooltip:"上传至服务器",label:"上传云端",onClick:i[5]||(i[5]=t=>e.showUploadDialog=!0)}),n.createVNode(p,{vertical:"",color:"white"}),n.createVNode(f,{class:"q-ml-sm"},{default:n.withCtx((()=>[n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-horizontal-left",tooltip:"向左对齐",onClick:i[6]||(i[6]=t=>e.onAlignLeft())}),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-horizontal-right",tooltip:"向右对齐",onClick:i[7]||(i[7]=t=>e.onAlignRight())}),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-vertical-top",tooltip:"向上对齐",onClick:i[8]||(i[8]=t=>e.onAlignTop())}),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-vertical-bottom",tooltip:"向下对齐",onClick:i[9]||(i[9]=t=>e.onAlignBottom())}),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-horizontal-center",tooltip:"水平居中",onClick:i[10]||(i[10]=t=>e.onAlignHorizontalCenter())}),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-align-vertical-center",tooltip:"垂直居中",onClick:i[11]||(i[11]=t=>e.onAlignVerticalCenter())})])),_:1}),n.createVNode(f,{class:"q-ml-xs"},{default:n.withCtx((()=>[n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-magnify-minus",tooltip:"缩小视图",disable:e.zoom<.2,onClick:i[12]||(i[12]=t=>e.onZoomMinus())},null,8,["disable"]),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(g,{color:"white","text-color":"grey-8",dense:"",class:"q-px-sm",label:Math.floor(10*e.zoom*10)+"%",disable:""},null,8,["label"]),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-magnify-plus",tooltip:"放大视图",disable:e.zoom>4,onClick:i[13]||(i[13]=t=>e.onZoomPlus())},null,8,["disable"]),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-magnify-scan",tooltip:"重置视图并居中",onClick:i[14]||(i[14]=t=>e.onZoomReset())})])),_:1}),n.createVNode(f,{class:"q-mx-xs"},{default:n.withCtx((()=>[n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-undo-variant",tooltip:"撤销",onClick:e.onUndo},null,8,["onClick"]),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-redo-variant",tooltip:"恢复",onClick:e.onRedo},null,8,["onClick"]),n.createVNode(p,{vertical:"",color:"grey-6"}),n.createVNode(m,{color:"white","text-color":"grey-8",class:"q-px-sm",dense:"",icon:"mdi-refresh",onClick:e.onRefresh},null,8,["onClick"])])),_:1}),n.createVNode(w,{modelValue:e.showUploadDialog,"onUpdate:modelValue":i[19]||(i[19]=t=>e.showUploadDialog=t)},{default:n.withCtx((()=>[n.createVNode(_,null,{default:n.withCtx((()=>[n.createVNode(y,null,{default:n.withCtx((()=>i[20]||(i[20]=[n.createElementVNode("div",{class:"text-h6"},"模型信息",-1)]))),_:1}),n.createVNode(p),n.createVNode(y,{style:{"max-height":"50vh"},class:"scroll"},{default:n.withCtx((()=>[n.createVNode(v,{modelValue:e.deploymentName,"onUpdate:modelValue":i[15]||(i[15]=t=>e.deploymentName=t),label:"模型名称",placeholder:"请输入模型名称",disable:e.disableNameInput},null,8,["modelValue","disable"]),n.createVNode(b,{modelValue:e.enableDuplicateCheck,"onUpdate:modelValue":i[16]||(i[16]=t=>e.enableDuplicateCheck=t),label:"开启部署重复检查"},null,8,["modelValue"]),n.createVNode(b,{modelValue:e.deployChangedOnly,"onUpdate:modelValue":i[17]||(i[17]=t=>e.deployChangedOnly=t),label:"仅在模型存在变化时部署"},null,8,["modelValue"])])),_:1}),n.createVNode(p),n.createVNode(x,{align:"right"},{default:n.withCtx((()=>[n.withDirectives(n.createVNode(g,{label:"取消",color:"red"},null,512),[[S]]),n.createVNode(g,{label:"部署",color:"primary",onClick:i[18]||(i[18]=t=>e.onSave())})])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1})}]]),d='\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n',h=(e,t)=>{const{warnings:n,message:i}=t;t(e,n,i)},m=(e,t)=>{if(e&&t){const n=document.createElement("a");n.download=t,n.href=e,n.click(),URL.revokeObjectURL(n.href)}},f=(e,t="diagram",n)=>({filename:`${t}.${e}`,href:`data:application/${"svg"===e?"text/xml":"bpmn20-xml"};charset=UTF-8,${encodeURIComponent(n)}`,data:n}),g={"Activate the create/remove space tool":"启动创建/删除空间工具","Activate the global connect tool":"启动全局连接工具","Activate the hand tool":"启动手动工具","Activate the lasso tool":"启动 Lasso 工具","Ad-hoc":"Ad-hoc子流程","Add Lane above":"添加到通道之上","Add Lane below":"添加到通道之下","Append compensation activity":"追加补偿活动","Append {type}":"追加 {type}","Business Rule Task":"规则任务","Call Activity":"引用流程","Cancel Boundary Event":"取消边界事件","Cancel End Event":"结束取消事件","Change type":"更改类型","Collapsed Pool":"折叠池","Compensation Boundary Event":"补偿边界事件","Compensation End Event":"结束补偿事件","Compensation Intermediate Throw Event":"中间补偿抛出事件","Compensation Start Event":"补偿启动事件","Complex Gateway":"复杂网关","Conditional Boundary Event (non-interrupting)":"条件边界事件 (非中断)","Conditional Boundary Event":"条件边界事件","Conditional Intermediate Catch Event":"中间条件捕获事件","Conditional Start Event (non-interrupting)":"条件启动事件 (非中断)","Conditional Start Event":"条件启动事件","Connect using Association":"文本关联","Connect using DataInputAssociation":"数据关联","Connect using Sequence/MessageFlow or Association":"消息关联","Create IntermediateThrowEvent/BoundaryEvent":"创建中间抛出/边界事件","Create Pool/Participant":"创建池/参与者","Create expanded SubProcess":"创建可折叠子流程","Create {type}":"创建 {type}","Divide into three Lanes":"分成三条通道","Divide into two Lanes":"分成两条通道","End Event":"结束事件","Error Boundary Event":"错误边界事件","Error End Event":"结束错误事件","Error Start Event":"错误启动事件","Escalation Boundary Event (non-interrupting)":"升级边界事件 (非中断)","Escalation Boundary Event":"升级边界事件","Escalation End Event":"结束升级事件","Escalation Intermediate Throw Event":"中间升级抛出事件","Escalation Start Event (non-interrupting)":"升级启动事件 (非中断)","Escalation Start Event":"升级启动事件","Event Sub Process":"事件子流程","Event based Gateway":"事件网关","Exclusive Gateway":"独占网关","Expanded Pool":"展开池","Inclusive Gateway":"包容网关","Intermediate Throw Event":"中间抛出事件","Link Intermediate Catch Event":"中间链接捕获事件","Link Intermediate Throw Event":"中间链接抛出事件",Loop:"循环","Manual Task":"手动任务","Message Boundary Event (non-interrupting)":"消息边界事件 (非中断)","Message Boundary Event":"消息边界事件","Message End Event":"结束消息事件","Message Intermediate Catch Event":"中间消息捕获事件","Message Intermediate Throw Event":"中间消息抛出事件","Message Start Event (non-interrupting)":"消息启动事件 (非中断)","Message Start Event":"消息启动事件","Parallel Gateway":"并行网关","Parallel Multi Instance":"并行多实例","Receive Task":"接受任务",Remove:"移除","Script Task":"脚本任务","Send Task":"发送任务","Sequential Multi Instance":"串行多实例","Service Task":"服务任务","Signal Boundary Event (non-interrupting)":"信号边界事件 (非中断)","Signal Boundary Event":"信号边界事件","Signal End Event":"结束信号事件","Signal Intermediate Catch Event":"中间信号捕获事件","Signal Intermediate Throw Event":"中间信号抛出事件","Signal Start Event (non-interrupting)":"信号启动事件 (非中断)","Signal Start Event":"信号启动事件","Start Event":"开始事件","Sub Process (collapsed)":"可折叠子流程","Sub Process (expanded)":"可展开子流程","Sub Process":"子流程",Task:"任务","Terminate End Event":"终止边界事件","Timer Boundary Event (non-interrupting)":"定时边界事件 (非中断)","Timer Boundary Event":"定时边界事件","Timer Intermediate Catch Event":"中间定时捕获事件","Timer Start Event (non-interrupting)":"定时启动事件 (非中断)","Timer Start Event":"定时启动事件",Transaction:"事务","User Task":"用户任务","already rendered {element}":"{element} 已呈现","diagram not part of bpmn:Definitions":"图表不是 bpmn:Definitions 的一部分","element required":"需要元素","element {element} referenced by {referenced}#{property} not yet drawn":"元素 {element} 的引用 {referenced}#{property} 尚未绘制","failed to import {element}":"{element} 导入失败","flow elements must be children of pools/participants":"元素必须是池/参与者的子级","more than {count} child lanes":"超过 {count} 条通道","no diagram to display":"没有要显示的图表","no parent for {element} in {parent}":"在 {element} 中没有父元素 {parent}","no process or collaboration to display":"没有可显示的流程或协作","no shape type specified":"未指定形状类型","out of bounds release":"越界释放","Asynchronous Continuations":"异步延续","Candidate starter":"候选发起人",create:"创建","Create new list item":"创建新列表项",Documentation:"文档",General:"常规","Execution listeners":"执行监听器","Extension properties":"扩展属性","External task":"外部任务",Forms:"表单","History cleanup":"历史清理",Inputs:"输入","Job execution":"调度执行",Outputs:"输出",Tasklist:"任务列表"};function y(e,t){t=t||{};return(e=g[e]||e).replace(/{([^}]+)}/g,(function(e,n){return t[n]||"{"+n+"}"}))}function v(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}function b(e){return Array.prototype.concat.apply([],e)}const x=Object.prototype.toString,_=Object.prototype.hasOwnProperty;function w(e){return void 0===e}function E(e){return void 0!==e}function S(e){return null==e}function C(e){return"[object Array]"===x.call(e)}function k(e){return"[object Object]"===x.call(e)}function A(e){return"[object Number]"===x.call(e)}function P(e){const t=x.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t||"[object Proxy]"===t}function R(e){return"[object String]"===x.call(e)}function M(e,t){return!S(e)&&_.call(e,t)}function T(e,t){const n=K(t);let i;return N(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function B(e,t){const n=K(t);let i=C(e)?-1:void 0;return N(e,(function(e,t){if(n(e,t))return i=t,!1})),i}function D(e,t){const n=K(t);let i=[];return N(e,(function(e,t){n(e,t)&&i.push(e)})),i}function N(e,t){let n,i;if(w(e))return;const r=C(e)?Y:X;for(let o in e)if(M(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function O(e,t){if(w(e))return[];!function(e){if(!C(e))throw new Error("must supply array")}(e);const n=K(t);return e.filter((function(e,t){return!n(e,t)}))}function j(e,t,n){return N(e,(function(e,i){n=t(n,e,i)})),n}function L(e,t){return!!j(e,(function(e,n,i){return e&&t(n,i)}),!0)}function I(e,t){return!!T(e,t)}function $(e,t){let n=[];return N(e,(function(e,i){n.push(t(e,i))})),n}function z(e){return e&&Object.keys(e)||[]}function F(e){return $(e,(e=>e))}function H(e,t,n={}){return t=q(t),N(e,(function(e){let i=t(e)||"_",r=n[i];r||(r=n[i]=[]),r.push(e)})),n}function V(e,...t){e=q(e);let n={};return N(t,(t=>H(t,e,n))),$(n,(function(e,t){return e[0]}))}const G=V;function W(e,t){t=q(t);let n=[];return N(e,(function(e,i){let r=t(e,i),o={d:r,v:e};for(var a=0;ae.v))}function U(e){return function(t){return L(e,(function(e,n){return t[n]===e}))}}function q(e){return P(e)?e:t=>t[e]}function K(e){return P(e)?e:t=>t===e}function X(e){return e}function Y(e){return Number(e)}function Z(e,t){return e.bind(t)}function Q(e,...t){return Object.assign(e,...t)}function J(e,t){let n={},i=Object(e);return N(t,(function(t){t in i&&(n[t]=e[t])})),n}function ee(e,t){let n={};return N(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}function te(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}const ne=Object.prototype.toString,ie=Object.prototype.hasOwnProperty;function re(e,t){return ie.call(e,t)}function oe(e,t){let n,i;if(void 0===e)return;const r=function(e){return"[object Array]"===ne.call(e)}(e)?se:ae;for(let o in e)if(re(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function ae(e){return e}function se(e){return Number(e)}function ce(e,...t){const n=e.style;return oe(t,(function(e){e&&oe(e,(function(e,t){n[t]=e}))})),e}function le(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)}const pe=Object.prototype.toString;function ue(e){return new de(e)}function de(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function he(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function me(e,t,n){var i=n?e:e.parentNode;return i&&"function"==typeof i.closest&&i.closest(t)||null}de.prototype.add=function(e){return this.list.add(e),this},de.prototype.remove=function(e){return"[object RegExp]"==pe.call(e)?this.removeMatching(e):(this.list.remove(e),this)},de.prototype.removeMatching=function(e){const t=this.array();for(let n=0;na',Ce=!we.getElementsByTagName("link").length,we=void 0);var ke={legend:[1,""],tr:[2,""],col:[2,""],_default:Ce?[1,"X","
"]:[0,"",""]};ke.td=ke.th=[3,""],ke.option=ke.optgroup=[1,'"],ke.thead=ke.tbody=ke.colgroup=ke.caption=ke.tfoot=[1,""],ke.polyline=ke.ellipse=ke.polygon=ke.circle=ke.text=ke.line=ke.path=ke.rect=ke.g=[1,'"];var Ae=Se;function Pe(e,t){return e&&"function"==typeof e.matches&&e.matches(t)||!1}function Re(e,t){return(t=t||document).querySelector(e)}function Me(e,t){return(t=t||document).querySelectorAll(e)}function Te(e){e.parentNode&&e.parentNode.removeChild(e)}function Be(e,t){return function(e,t){t.appendChild(function(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch(n){}return e}(e,t))}(t,e),e}var De={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":2,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":2,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Ne(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=De[i];r?(2===r&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function Oe(e,t,n){if("string"==typeof t){if(void 0===n)return function(e,t){return De[t]?e.style[t]:e.getAttributeNS(null,t)}(e,t);Ne(e,t,n)}else!function(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)Ne(e,i,t[i])}(e,t);return e}const je=Object.prototype.toString;function Le(e){return new Ie(e)}function Ie(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function $e(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function ze(e){return e.cloneNode(!0)}Ie.prototype.add=function(e){return this.list.add(e),this},Ie.prototype.remove=function(e){return"[object RegExp]"==je.call(e)?this.removeMatching(e):(this.list.remove(e),this)},Ie.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n"+e+"",t=!0);var n=function(e){var t;return(t=new DOMParser).async=!1,t.parseFromString(e,"text/xml")}(e);if(!t)return n;for(var i=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function Ge(e,t){var n;return"<"===(e=e.trim()).charAt(0)?(n=Ve(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(Fe,e),t&&Oe(n,t),n}var We=null;function Ue(e){return(null===We&&(We=Ge("svg")),We).createSVGTransform()}var qe=/([&<>]{1})/g,Ke=/([&<>\n\r"]{1})/g,Xe={"&":"&","<":"<",">":">",'"':"'"};function Ye(e,t){return e.replace(t,(function(e,t){return Xe[t]||t}))}function Ze(e,t){var n,i,r,o,a;switch(e.nodeType){case 3:t.push(Ye(e.textContent,qe));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(r=e.attributes).length;n"),n=0,i=(a=e.childNodes).length;n")}else t.push("/>");break;case 8:t.push("\x3c!--",Ye(e.nodeValue,qe),"--\x3e");break;case 4:t.push("");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function Qe(e,t){return function(e){for(var t=e.firstChild,n=[];t;)Ze(t,n),t=t.nextSibling;return n.join("")}(e)}function Je(e){var t=e.parentNode;return t&&t.removeChild(e),e}function et(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function tt(e,t){var n=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),function(e,t){var n,i;for(e.clear(),n=0;i=t[n];n++)e.appendItem(et(e,i))}(n,t)),n.consolidate()}function nt(){}function it(e,t){this.model=e,this.properties=t}nt.prototype.get=function(e){return this.$model.properties.get(this,e)},nt.prototype.set=function(e,t){this.$model.properties.set(this,e,t)},it.prototype.createType=function(e){var t=this.model,n=this.properties,i=Object.create(nt.prototype);N(e.properties,(function(e){e.isMany||void 0===e.default||(i[e.name]=e.default)})),n.defineModel(i,t),n.defineDescriptor(i,e);var r=e.ns.name;function o(e){n.define(this,"$type",{value:r,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),N(e,Z((function(e,t){this.set(t,e)}),this))}return o.prototype=i,o.hasType=i.$instanceOf=this.model.hasType,n.defineModel(o,t),n.defineDescriptor(o,e),o};var rt={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},ot={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function at(e,t){var n=ot[e];return n?n(t):t}function st(e){return!!rt[e]}function ct(e){return!!ot[e]}function lt(e,t){var n,i,r=e.split(/:/);if(1===r.length)n=e,i=t;else{if(2!==r.length)throw new Error("expected or , got "+e);n=r[1],i=r[0]}return{name:e=(i?i+":":"")+n,prefix:i,localName:n}}function pt(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function ut(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,N(e,Z(this.registerPackage,this))}function dt(e,t,n){var i=t[n];if(i in e)throw new Error("package with "+n+" <"+i+"> already defined")}function ht(e){this.model=e}function mt(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function ft(e){return e.replace(/^:/,"")}function gt(e,t={}){this.properties=new ht(this),this.factory=new it(this,this.properties),this.registry=new ut(e,this.properties),this.typeCache={},this.config=t}pt.prototype.build=function(){return J(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},pt.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},pt.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=r.indexOf(e);if(-1===s)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(t,n?void 0:s,a),o[i.name]=o[i.localName]=t},pt.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),o=lt(r[0],i),a=lt(r[1],o.prefix).name,s=this.propertiesByName[a];if(!s)throw new Error("refined property <"+a+"> not found");this.replaceProperty(s,e,n),delete e.redefines},pt.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},pt.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},pt.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},pt.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},pt.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},pt.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},pt.prototype.hasProperty=function(e){return this.propertiesByName[e]},pt.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var n=this.allTypesByName,i=this.allTypes,r=e.name;r in n||(N(e.properties,Z((function(n){n=Q({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,r=n.redefines;i||r?this.redefineProperty(n,i||r,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))}),this)),i.push(e),n[r]=e)},ut.prototype.getPackage=function(e){return this.packageMap[e]},ut.prototype.getPackages=function(){return this.packages},ut.prototype.registerPackage=function(e){e=Q({},e);var t=this.packageMap;dt(t,e,"prefix"),dt(t,e,"uri"),N(e.types,Z((function(t){this.registerType(t,e)}),this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},ut.prototype.registerType=function(e,t){var n=lt((e=Q({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:Q(e.meta||{})})).name,t.prefix),i=n.name,r={};N(e.properties,Z((function(e){var t=lt(e.name,n.prefix),i=t.name;st(e.type)||(e.type=lt(e.type,t.prefix).name),Q(e,{ns:t,name:i}),r[i]=e}),this)),Q(e,{ns:n,name:i,propertiesByName:r}),N(e.extends,Z((function(e){var t=lt(e,n.prefix),r=this.typeMap[t.name];r.traits=r.traits||[],r.traits.push(i)}),this)),this.definePackage(e,t),this.typeMap[i]=e},ut.prototype.mapTypes=function(e,t,n){var i=st(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(n,i){var o=lt(n,st(n)?"":e.prefix);r.mapTypes(o,t,i)}function a(e){return o(e,!0)}if(!i)throw new Error("unknown type <"+e.name+">");N(i.superClass,n?a:function(e){return o(e,!1)}),t(i,!n),N(i.traits,a)},ut.prototype.getEffectiveDescriptor=function(e){var t=lt(e),n=new pt(t);this.mapTypes(t,(function(e,t){n.addTrait(e,t)}));var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},ut.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})},ht.prototype.set=function(e,t,n){if(!R(t)||!t.length)throw new TypeError("property name must be a non-empty string");var i=this.getProperty(e,t),r=i&&i.name;void 0===n?i?delete e[r]:delete e.$attrs[ft(t)]:i?r in e?e[r]=n:mt(e,i,n):e.$attrs[ft(t)]=n},ht.prototype.get=function(e,t){var n=this.getProperty(e,t);if(!n)return e.$attrs[ft(t)];var i=n.name;return!e[i]&&n.isMany&&mt(e,n,[]),e[i]},ht.prototype.define=function(e,t,n){if(!n.writable){var i=n.value;delete(n=Q({},n,{get:function(){return i}})).value}Object.defineProperty(e,t,n)},ht.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},ht.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},ht.prototype.getProperty=function(e,t){var n=this.model,i=n.getPropertyDescriptor(e,t);if(i)return i;if(t.includes(":"))return null;const r=n.config.strict;if(void 0!==r){const n=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(r)throw n}return null},gt.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},gt.prototype.getType=function(e){var t=this.typeCache,n=R(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},gt.prototype.createAny=function(e,t,n){var i=lt(e),r={$type:e,$instanceOf:function(e){return e===this.$type},get:function(e){return this[e]},set:function(e,t){!function(e,t,n){let i=e;N(t,(function(e,r){if("number"!=typeof e&&"string"!=typeof e)throw new Error("illegal key type: "+typeof e+". Key should be of type number or string.");if("constructor"===e)throw new Error("illegal key: constructor");if("__proto__"===e)throw new Error("illegal key: __proto__");let o=t[r+1],a=i[e];E(o)&&S(a)&&(a=i[e]=isNaN(+o)?{}:[]),w(o)?w(n)?delete i[e]:i[e]=n:i=a}))}(this,[e],t)}},o={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:t}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),N(n,(function(e,t){k(e)&&void 0!==e.value?r[e.name]=e.value:r[t]=e})),r},gt.prototype.getPackage=function(e){return this.registry.getPackage(e)},gt.prototype.getPackages=function(){return this.registry.getPackages()},gt.prototype.getElementDescriptor=function(e){return e.$descriptor},gt.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},gt.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},gt.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var yt=String.fromCharCode,vt=Object.prototype.hasOwnProperty,bt=/(\d+);|([0-9a-f]+);|&(\w+);/gi,xt={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function _t(e,t,n,i){return i?vt.call(xt,i)?xt[i]:"&"+i+";":yt(t||parseInt(n,16))}function wt(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(bt,_t):e}Object.keys(xt).forEach((function(e){xt[e.toUpperCase()]=xt[e]}));var Et="xsi:type",St="non-whitespace outside of root node";function Ct(e){return new Error(e)}function kt(e){return"missing namespace for prefix <"+e+">"}function At(e){return{get:e,enumerable:!0}}function Pt(e){var t,n={};for(t in e)n[t]=e[t];return n}function Rt(e){return e+"$uri"}function Mt(){return{line:0,column:0}}function Tt(e){throw e}function Bt(e){if(!this)return new Bt(e);var t,n,i,r,o,a,s,c,l,p=e&&e.proxy,u=Tt,d=Mt,h=!1,m=!1,f=null,g=!1;function y(e){e instanceof Error||(e=Ct(e)),f=e,u(e,d)}function v(e){o&&(e instanceof Error||(e=Ct(e)),o(e,d))}this.on=function(e,l){if("function"!=typeof l)throw Ct("required args ");switch(e){case"openTag":n=l;break;case"text":t=l;break;case"closeTag":i=l;break;case"error":u=l;break;case"warn":o=l;break;case"cdata":r=l;break;case"attention":c=l;break;case"question":s=l;break;case"comment":a=l;break;default:throw Ct("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw Ct("required args ");var t,n={};for(t in e)n[t]=e[t];return n["http://www.w3.org/2001/XMLSchema-instance"]="xsi",m=!0,l=n,this},this.parse=function(e){if("string"!=typeof e)throw Ct("required args ");return f=null,function(e){var o,u,f,b,x,_,w,E,S,C,k,A=m?[]:null,P=m?function(e){var t,n,i={};for(t in e)i[n=e[t]]=n,i[Rt(n)]=t;return i}(l):null,R=[],M=0,T=!1,B=!1,D=0,N=0,O="",j=0;function L(){if(null!==k)return k;var e,t,n,i,r,o,a,s,c,p,u,d=m&&P.xmlns,f=m&&h?[]:null,g=j,y=O,b=y.length,x={},_={};e:for(;g8)){for((p<65||p>122||p>90&&p<97)&&95!==p&&58!==p&&(v("illegal first char attribute name"),c=!0),u=g+1;u96&&p<123||p>64&&p<91||p>47&&p<59||46===p||45===p||95===p)){if(32===p||p<14&&p>8){v("missing attribute value"),g=u;continue e}if(61===p)break;v("illegal attribute name char"),c=!0}if("xmlns:xmlns"===(s=y.substring(g,u))&&(v("illegal declaration of xmlns"),c=!0),34===(p=y.charCodeAt(u+1)))-1===(u=y.indexOf('"',g=u+2))&&-1!==(u=y.indexOf("'",g))&&(v("attribute value quote missmatch"),c=!0);else if(39===p)-1===(u=y.indexOf("'",g=u+2))&&-1!==(u=y.indexOf('"',g))&&(v("attribute value quote missmatch"),c=!0);else for(v("missing attribute value quotes"),c=!0,u+=1;u8);u++);for(-1===u&&(v("missing closing quotes"),u=b,c=!0),c||(o=y.substring(g,u)),g=u;u+18);u++)g===u&&(v("illegal character after attribute end"),c=!0);if(g=u+1,!c)if(s in _)v("attribute <"+s+"> already defined");else if(_[s]=!0,m)if(h){if(null!==(r="xmlns"===s?"xmlns":120===s.charCodeAt(0)&&"xmlns:"===s.substr(0,6)?s.substr(6):null)){if(e=wt(o),t=Rt(r),!(a=l[e])){if("xmlns"===r||t in P&&P[t]!==e)do{a="ns"+M++}while(void 0!==P[a]);else a=r;l[e]=a}P[r]!==a&&(i||(P=Pt(P),i=!0),P[r]=a,"xmlns"===r&&(P[Rt(a)]=e,d=a),P[t]=e),x[s]=o;continue}f.push(s,o)}else-1!==(p=s.indexOf(":"))?(n=P[s.substring(0,p)])?((s=d===n?s.substr(p+1):n+s.substr(p))===Et&&(-1!==(p=o.indexOf(":"))?(n=o.substring(0,p),o=(n=P[n]||n)+o.substring(p)):o=d+":"+o),x[s]=o):v(kt(s.substring(0,p))):x[s]=o;else x[s]=o}if(h)for(g=0,b=f.length;g=a&&(t=i.exec(e))&&!((s=t[0].length+t.index)>D);)r+=1,a=s;return-1==D?(o=s,n=e.substring(N)):0===N?n=e.substring(N,D):(o=D-a,n=-1==N?e.substring(D):e.substring(D,N+1)),{data:n,line:r,column:o}}d=I,p&&(C=Object.create({},{name:At((function(){return E})),originalName:At((function(){return S})),attrs:At(L),ns:At((function(){return P}))}));for(;-1!==N;){if(-1===(D=60===e.charCodeAt(N)?N:e.indexOf("<",N)))return R.length?y("unexpected end of file"):0===N?y("missing start tag"):void(N",D)))return y("unclosed cdata");if(r&&(r(e.substring(D+9,N),d),g))return;N+=3;continue}if(45===b&&45===e.charCodeAt(D+3)){if(-1===(N=e.indexOf("--\x3e",D)))return y("unclosed comment");if(a&&(a(e.substring(D+4,N),wt,d),g))return;N+=3;continue}}if(63!==x){for(u=D+1;;u++){if(_=e.charCodeAt(u),isNaN(_))return N=-1,y("unclosed tag");if(34===_)u=-1!==(b=e.indexOf('"',u+1))?b:u;else if(39===_)u=-1!==(b=e.indexOf("'",u+1))?b:u;else if(62===_){N=u;break}}if(33!==x){if(k={},47===x){if(T=!1,B=!0,!R.length)return y("missing open tag");if(u=E=R.pop(),b=D+2+u.length,e.substring(D+2,b)!==u)return y("closing tag mismatch");for(;b8&&x<14))return y("close tag")}else{if(47===e.charCodeAt(N-1)?(u=E=e.substring(D+1,N-1),T=!0,B=!0):(u=E=e.substring(D+1,N),T=!0,B=!1),!(x>96&&x<123||x>64&&x<91||95===x||58===x))return y("illegal first char nodeName");for(b=1,f=u.length;b96&&x<123||x>64&&x<91||x>47&&x<59||45===x||95===x||46==x)){if(32===x||x<14&&x>8){E=u.substring(0,b),k=null;break}return y("invalid nodeName")}B||R.push(E)}if(m){if(o=P,T&&(B||A.push(o),null===k&&(h=-1!==u.indexOf("xmlns",b))&&(j=b,O=u,L(),h=!1)),S=E,-1!==(x=E.indexOf(":"))){if(!(w=P[E.substring(0,x)]))return y("missing namespace on <"+S+">");E=E.substr(x+1)}else w=P.xmlns;w&&(E=w+":"+E)}if(T&&(j=b,O=u,n&&(p?n(C,wt,B,d):n(E,L,wt,B,d),g)))return;if(B){if(i&&(i(p?C:E,wt,T,d),g))return;m&&(P=T?o:A.pop())}N+=1}else{if(c&&(c(e.substring(D,N+1),wt,d),g))return;N+=1}}else{if(-1===(N=e.indexOf("?>",D)))return y("unclosed question");if(s&&(s(e.substring(D,N+2),d),g))return;N+=2}}}(e),d=Mt,g=!1,f},this.stop=function(){g=!0}}function Dt(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var Nt={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Ot="xsi:type";function jt(e){return e.xml&&e.xml.serialize}function Lt(e){return jt(e)===Ot}function It(e,t){return Dt(t)?e.prefix+":"+((n=e.localName).charAt(0).toUpperCase()+n.slice(1)):e.name;var n}function $t(e){return new Error(e)}function zt(e){return e.$descriptor}function Ft(e){Q(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw $t("expected element");var t,n=this.elementsById,i=zt(e).idProperty;if(i&&(t=e.get(i.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(t))throw new Error("illegal ID <"+t+">");if(n[t])throw $t("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function Ht(){}function Vt(){}function Gt(){}function Wt(e,t){this.property=e,this.context=t}function Ut(e,t){this.element=t,this.propertyDesc=e}function qt(){}function Kt(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function Xt(e,t,n){Kt.call(this,e,t,n)}function Yt(e,t,n){this.model=e,this.context=n}function Zt(e){e instanceof gt&&(e={model:e}),Q(this,{lax:!1},e)}Ht.prototype.handleEnd=function(){},Ht.prototype.handleText=function(){},Ht.prototype.handleNode=function(){},Vt.prototype=Object.create(Ht.prototype),Vt.prototype.handleNode=function(){return this},Gt.prototype=Object.create(Ht.prototype),Gt.prototype.handleText=function(e){this.body=(this.body||"")+e},Wt.prototype=Object.create(Gt.prototype),Wt.prototype.handleNode=function(e){if(this.element)throw $t("expected no sub nodes");return this.element=this.createReference(e),this},Wt.prototype.handleEnd=function(){this.element.id=this.body},Wt.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},Ut.prototype=Object.create(Gt.prototype),Ut.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=at(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},qt.prototype=Object.create(Gt.prototype),qt.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},Kt.prototype=Object.create(qt.prototype),Kt.prototype.addReference=function(e){this.context.addReference(e)},Kt.prototype.handleText=function(e){if(!zt(this.element).bodyProperty)throw $t("unexpected body text <"+e+">");Gt.prototype.handleText.call(this,e)},Kt.prototype.handleEnd=function(){var e=this.body,t=this.element,n=zt(t).bodyProperty;n&&void 0!==e&&(e=at(n.type,e),t.set(n.name,e))},Kt.prototype.createElement=function(e){var t,n=e.attributes,i=this.type,r=zt(i),o=this.context,a=new i({}),s=this.model;return N(n,(function(e,n){var i=r.propertiesByName[n];i&&i.isReference?i.isMany?N(e.split(" "),(function(e){o.addReference({element:a,property:i.ns.name,id:e})})):o.addReference({element:a,property:i.ns.name,id:e}):(i?e=at(i.type,e):"xmlns"!==n&&(t=lt(n,r.ns.prefix),s.getPackage(t.prefix)&&o.addWarning({message:"unknown attribute <"+n+">",element:a,property:n,value:e})),a.set(n,e))})),a},Kt.prototype.getPropertyForNode=function(e){var t,n,i=lt(e.name),r=this.type,o=this.model,a=zt(r),s=i.name,c=a.propertiesByName[s];if(c&&!c.isAttr)return Lt(c)&&(t=e.attributes[Ot])?(t=function(e,t){var n=lt(e);return function(e,t){var n=e.name,i=e.localName,r=t.xml&&t.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):n}(n,t.getPackage(n.prefix))}(t,o),Q({},c,{effectiveType:zt(n=o.getType(t)).name})):c;var l=o.getPackage(i.prefix);if(l){if(t=It(i,l),n=o.getType(t),c=T(a.properties,(function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)})))return Q({},c,{effectiveType:zt(n).name})}else if(c=T(a.properties,(function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type})))return c;throw $t("unrecognized element <"+i.name+">")},Kt.prototype.toString=function(){return"ElementDescriptor["+zt(this.type).name+"]"},Kt.prototype.valueHandler=function(e,t){return new Ut(e,t)},Kt.prototype.referenceHandler=function(e){return new Wt(e,this.context)},Kt.prototype.handler=function(e){return"Element"===e?new Yt(this.model,e,this.context):new Kt(this.model,e,this.context)},Kt.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,ct(n=t.effectiveType||t.type))return this.valueHandler(t,i);var o=(r=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==o&&(t.isMany?i.get(t.name).push(o):i.set(t.name,o),t.isReference?(Q(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},Xt.prototype=Object.create(Kt.prototype),Xt.prototype.createElement=function(e){var t=e.name,n=lt(t),i=this.model,r=this.type,o=i.getPackage(n.prefix),a=o&&It(n,o)||t;if(!r.hasType(a))throw $t("unexpected element <"+e.originalName+">");return Kt.prototype.createElement.call(this,e)},Yt.prototype=Object.create(qt.prototype),Yt.prototype.createElement=function(e){var t=e.name,n=lt(t).prefix,i=e.ns[n+"$uri"],r=e.attributes;return this.model.createAny(t,i,r)},Yt.prototype.handleChild=function(e){var t=new Yt(this.model,"Element",this.context).handleNode(e),n=this.element,i=t.element;return void 0!==i&&((n.$children=n.$children||[]).push(i),i.$parent=n),t},Yt.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},Zt.prototype.fromXML=function(e,t,n){var i=t.rootHandler;t instanceof Kt?(i=t,t={}):"string"==typeof t?(i=this.handler(t),t={}):"string"==typeof i&&(i=this.handler(i));var r=this.model,o=this.lax,a=new Ft(Q({},t,{rootHandler:i})),s=new Bt({proxy:!0}),c=function(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}();function l(e,t,n){var i=t(),r=i.line,o=i.column,s=i.data;"<"===s.charAt(0)&&-1!==s.indexOf(" ")&&(s=s.slice(0,s.indexOf(" "))+">");var c="unparsable content "+(s?s+" ":"")+"detected\n\tline: "+r+"\n\tcolumn: "+o+"\n\tnested error: "+e.message;if(n)return a.addWarning({message:c,error:e}),!0;throw $t(c)}function p(e,t){return l(e,t,!0)}i.context=a,c.push(i);var u=/^<\?xml /i,d=/ encoding="([^"]+)"/i,h=/^utf-8$/i;function m(e,t){try{c.peek().handleText(e)}catch(n){p(n,t)}}var f=r.getPackages().reduce((function(e,t){return e[t.uri]=t.prefix,e}),{"http://www.w3.org/XML/1998/namespace":"xml"});return s.ns(f).on("openTag",(function(e,t,n,i){var r=e.attrs||{},a=Object.keys(r).reduce((function(e,n){var i=t(r[n]);return e[n]=i,e}),{});!function(e,t){var n=c.peek();try{c.push(n.handleNode(e))}catch(i){l(i,t,o)&&c.push(new Vt)}}({name:e.name,originalName:e.originalName,attributes:a,ns:e.ns},i)})).on("question",(function(e){if(u.test(e)){var t=d.exec(e),n=t&&t[1];n&&!h.test(n)&&a.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}})).on("closeTag",(function(){c.pop().handleEnd()})).on("cdata",m).on("text",(function(e,t,n){!function(e,t){e.trim()&&m(e,t)}(t(e),n)})).on("error",l).on("warn",p),new Promise((function(t,n){var r;try{s.parse(e),function(){var e,t,n=a.elementsById,i=a.references;for(e=0;t=i[e];e++){var r=t.element,o=n[t.id],s=zt(r).propertiesByName[t.property];if(o||a.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),s.isMany){var c=r.get(s.name),l=c.indexOf(t);-1===l&&(l=c.length),o?c[l]=o:c.splice(l,1)}else r.set(s.name,o)}}()}catch(u){r=u}var o=i.element;r||o||(r=$t("failed to parse document as <"+i.type.$descriptor.name+">"));var c=a.warnings,l=a.references,p=a.elementsById;return r?(r.warnings=c,n(r)):t({rootElement:o,elementsById:p,references:l,warnings:c})}))},Zt.prototype.handler=function(e){return new Xt(this.model,e)};var Qt=/<|>|'|"|&|\n\r|\n/g,Jt=/<|>|&/g;function en(e){var t={},n={},i={},r=[],o=[];this.byUri=function(t){return n[t]||e&&e.byUri(t)},this.add=function(e,t){n[e.uri]=e,t?r.push(e):o.push(e),this.mapPrefix(e.prefix,e.uri)},this.uriByPrefix=function(e){return t[e||"xmlns"]},this.mapPrefix=function(e,n){t[e||"xmlns"]=n},this.getNSKey=function(e){return void 0!==e.prefix?e.uri+"|"+e.prefix:e.uri},this.logUsed=function(t){var n=t.uri,r=this.getNSKey(t);i[r]=this.byUri(n),e&&e.logUsed(t)},this.getUsed=function(e){var t=this;return[].concat(r,o).filter((function(e){var n=t.getNSKey(e);return i[n]}))}}function tn(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function nn(e){return R(e)?e:(e.prefix?e.prefix+":":"")+e.localName}var rn={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},on={"<":"lt",">":"gt","&":"amp"};function an(e,t,n){return(e=R(e)?e:""+e).replace(t,(function(e){return"&"+n[e]+";"}))}function sn(e){this.tagName=e}function cn(){}function ln(e){this.tagName=e}function pn(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}function un(e,t){pn.call(this,e,t)}function dn(){this.value="",this.write=function(e){this.value+=e}}function hn(e,t){var n=[""];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write("\n"),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function mn(e){return e=Q({format:!1,preamble:!0},e||{}),{toXML:function(t,n){var i=n||new dn,r=new hn(i,e.format);if(e.preamble&&r.append('\n'),(new pn).build(t).serializeTo(r),!n)return i.value}}}function fn(e,t){gt.call(this,e,t)}sn.prototype.build=function(e){return this.element=e,this},sn.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+""+this.tagName+">").appendNewLine()},cn.prototype.serializeValue=cn.prototype.serializeTo=function(e){e.append(this.escape?an(this.value,Jt,on):this.value)},cn.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(Jt)&&(this.escape=!0),this},tn(ln,cn),ln.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append(""+this.tagName+">").appendNewLine()},pn.prototype.build=function(e){this.element=e;var t,n,i=e.$descriptor,r=this.propertyDescriptor,o=i.isGeneric;return t=o?this.parseGeneric(e):this.parseNsAttributes(e),this.ns=r?this.nsPropertyTagName(r):this.nsTagName(i),this.tagName=this.addTagName(this.ns),o||(n=function(e){return D(e.$descriptor.properties,(function(t){var n=t.name;if(t.isVirtual)return!1;if(!M(e,n))return!1;var i=e[n];return i!==t.default&&null!==i&&(!t.isMany||i.length)}))}(e),this.parseAttributes(D(n,(function(e){return e.isAttr}))),this.parseContainments(function(e){return D(e,(function(e){return!e.isAttr}))}(n))),this.parseGenericAttributes(e,t),this},pn.prototype.nsTagName=function(e){return function(e,t){return t.isGeneric?Q({localName:t.ns.localName},e):Q({localName:(n=t.ns.localName,i=t.$pkg,Dt(i)?(r=n).charAt(0).toLowerCase()+r.slice(1):n)},e);var n,i,r}(this.logNamespaceUsed(e.ns),e)},pn.prototype.nsPropertyTagName=function(e){return function(e,t){return Q({localName:t.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},pn.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},pn.prototype.nsAttributeName=function(e){var t;if(t=R(e)?lt(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:Q({localName:t.localName},n)},pn.prototype.parseGeneric=function(e){var t=this,n=this.body,i=[];return N(e,(function(r,o){"$body"===o?n.push((new cn).build({type:"String"},r)):"$children"===o?N(r,(function(e){n.push(new pn(t).build(e))})):0!==o.indexOf("$")&&t.parseNsAttribute(e,o,r)&&i.push({name:o,value:r})})),i},pn.prototype.parseNsAttribute=function(e,t,n){var i,r=e.$model,o=lt(t);if("xmlns"===o.prefix&&(i={prefix:o.localName,uri:n}),o.prefix||"xmlns"!==o.localName||(i={uri:n}),!i)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(i,!0,!0);else{var a=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(a)}},pn.prototype.parseNsAttributes=function(e,t){var n=this,i=e.$attrs,r=[];return N(i,(function(t,i){var o=n.parseNsAttribute(e,i,t);o&&r.push(o)})),r},pn.prototype.parseGenericAttributes=function(e,t){var n=this;N(t,(function(e){if(e.name!==Ot)try{n.addAttribute(n.nsAttributeName(e.name),e.value)}catch(t){}}))},pn.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;N(e,(function(e){var r=i.get(e.name),o=e.isReference;if(e.isMany||(r=[r]),e.isBody)n.push((new cn).build(e,r[0]));else if(ct(e.type))N(r,(function(i){n.push(new ln(t.addTagName(t.nsPropertyTagName(e))).build(e,i))}));else if(o)N(r,(function(i){n.push(new sn(t.addTagName(t.nsPropertyTagName(e))).build(i))}));else{var a=Lt(e),s=function(e){return"property"===jt(e)}(e);N(r,(function(i){var r;r=a?new un(t,e):s?new pn(t,e):new pn(t),n.push(r.build(i))}))}}))},pn.prototype.getNamespaces=function(e){var t,n=this.namespaces,i=this.parent;return n||(t=i&&i.getNamespaces(),e||!t?this.namespaces=n=new en(t):n=t),n},pn.prototype.logNamespace=function(e,t,n){var i=this.getNamespaces(n),r=e.uri,o=e.prefix;return i.byUri(r)&&!n||i.add(e,t),i.mapPrefix(o,r),e},pn.prototype.logNamespaceUsed=function(e,t){var n,i,r,o=this.element.$model,a=this.getNamespaces(t),s=e.prefix,c=e.uri;if(!s&&!c)return{localName:e.localName};if(r=Nt[s]||o&&(o.getPackage(s)||{}).uri,!(c=c||r||a.uriByPrefix(s)))throw new Error("no namespace uri given for prefix <"+s+">");if(!(e=a.byUri(c))){for(n=s,i=1;a.uriByPrefix(n);)n=s+"_"+i++;e=this.logNamespace({prefix:n,uri:c},r===c)}return s&&a.mapPrefix(s,c),e},pn.prototype.parseAttributes=function(e){var t=this,n=this.element;N(e,(function(e){var i=n.get(e.name);if(e.isReference)if(e.isMany){var r=[];N(i,(function(e){r.push(e.id)})),i=r.join(" ")}else i=i.id;t.addAttribute(t.nsAttributeName(e),i)}))},pn.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),nn(e)},pn.prototype.addAttribute=function(e,t){var n=this.attrs;R(t)&&(t=an(t,Qt,rn));var i=B(n,(function(t){return t.name.localName===e.localName&&t.name.uri===e.uri&&t.name.prefix===e.prefix})),r={name:e,value:t};-1!==i?n.splice(i,1,r):n.push(r)},pn.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=function(e){return e.getUsed().filter((function(e){return"xml"!==e.prefix})).map((function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}))}(n).concat(t)),N(t,(function(t){e.append(" ").append(nn(t.name)).append('="').append(t.value).append('"')}))},pn.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==cn;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),N(this.body,(function(t){t.serializeTo(e)})),n&&e.unindent().appendIndent(),e.append(""+this.tagName+">")),e.appendNewLine()},tn(un,pn),un.prototype.parseNsAttributes=function(e){var t=pn.prototype.parseNsAttributes.call(this,e),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var i=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(Ot),(i.prefix?i.prefix+":":"")+o+n.ns.localName),t},un.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},fn.prototype=Object.create(gt.prototype),fn.prototype.fromXML=function(e,t,n){R(t)||(n=t,t="bpmn:Definitions");var i=new Zt(Q({model:this,lax:!0},n)),r=i.handler(t);return i.fromXML(e,r)},fn.prototype.toXML=function(e,t){var n=new mn(t);return new Promise((function(t,i){try{return t({xml:n.toXML(e)})}catch(r){return i(r)}}))};var gn={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};function yn(e,t){return new fn(Q({},gn,e),t)}function vn(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':""}function bn(e){M(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error("Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472")}})}function xn(e,t){return e.$instanceOf(t)}function _n(e){var t={},n=[],i={};function r(e,t){return function(n){e(n,t)}}function o(e){t[e.id]=e}function a(t,n){try{var r=i[t.id]&&function(t,n){if(t.gfx)throw new Error(`already rendered ${vn(t)}`);return e.element(t,i[t.id],n)}(t,n);return o(t),r}catch(a){s(a.message,{element:t,error:a})}}function s(t,n){e.error(t,n)}var c=this.registerDi=function(e){var t=e.bpmnElement;t?i[t.id]?s(`multiple DI elements defined for ${vn(t)}`,{element:t}):(i[t.id]=e,bn(t)):s(`no bpmnElement referenced in ${vn(e)}`,{element:e})};function l(e){var t;t=e.plane,c(t),N(t.planeElement,p)}function p(e){c(e)}this.handleDefinitions=function(o,a){var p=o.diagrams;if(a&&-1===p.indexOf(a))throw new Error("diagram not part of ");if(!a&&p&&p.length&&(a=p[0]),!a)throw new Error("no diagram to display");i={},l(a);var m=a.plane;if(!m)throw new Error(`no plane for ${vn(a)}`);var f=m.bpmnElement;if(!f){if(f=function(e){return T(e.rootElements,(function(e){return xn(e,"bpmn:Process")||xn(e,"bpmn:Collaboration")}))}(o),!f)throw new Error("no process or collaboration to display");s(`correcting missing bpmnElement on ${vn(m)} to ${vn(f)}`),m.bpmnElement=f,c(m)}var g,y,b=function(t,n){return e.root(t,i[t.id],n)}(f,m);if(xn(f,"bpmn:Process")||xn(f,"bpmn:SubProcess"))d(f,b);else{if(!xn(f,"bpmn:Collaboration"))throw new Error(`unsupported bpmnElement for ${vn(m)}: ${vn(f)}`);y=b,N((g=f).participants,r(k,y)),v(g.artifacts,y),n.push((function(){!function(e,t){N(e,r(h,t))}(g.messageFlows,y)})),function(e,n){D(e,(function(e){return!t[e.id]&&xn(e,"bpmn:Process")&&e.laneSets})).forEach(r(d,n))}(o.rootElements,b)}u(n)};var u=this.handleDeferred=function(){for(;n.length;)n.shift()()};function d(e,t){C(e,t),b(e.ioSpecification,t),v(e.artifacts,t),o(e)}function h(e,t){a(e,t)}function m(e,t){a(e,t)}function f(e,t){a(e,t)}function g(e,t){a(e,t)}function y(e,t){a(e,t)}function v(e,t){N(e,(function(e){xn(e,"bpmn:Association")?n.push((function(){y(e,t)})):y(e,t)}))}function b(e,t){e&&(N(e.dataInputs,r(f,t)),N(e.dataOutputs,r(g,t)))}var x=this.handleSubProcess=function(e,t){C(e,t),v(e.artifacts,t)};function _(e,t){var i=a(e,t);xn(e,"bpmn:SubProcess")&&x(e,i||t),xn(e,"bpmn:Activity")&&b(e.ioSpecification,t),n.push((function(){N(e.dataInputAssociations,r(m,t)),N(e.dataOutputAssociations,r(m,t))}))}function w(e,t){a(e,t)}function E(e,t){n.push((function(){var n=a(e,t);e.childLaneSet&&S(e.childLaneSet,n||t),function(e){N(e.flowNodeRef,(function(t){var n=t.get("lanes");n&&n.push(e)}))}(e)}))}function S(e,t){N(e.lanes,r(E,t))}function C(e,t){!function(e,t){N(e,(function(e){xn(e,"bpmn:SequenceFlow")?n.push((function(){!function(e,t){a(e,t)}(e,t)})):xn(e,"bpmn:BoundaryEvent")?n.unshift((function(){_(e,t)})):xn(e,"bpmn:FlowNode")?_(e,t):xn(e,"bpmn:DataObject")||(xn(e,"bpmn:DataStoreReference")||xn(e,"bpmn:DataObjectReference")?w(e,t):s(`unrecognized flowElement ${vn(e)} in context ${vn(t&&t.businessObject)}`,{element:e,context:t}))}))}(e.flowElements,t),e.laneSets&&function(e,t){N(e,r(S,t))}(e.laneSets,t)}function k(e,t){var n=a(e,t),i=e.processRef;i&&d(i,n||t)}}function wn(e,t){var n=Sn(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function En(e,t){return I(t,(function(t){return wn(e,t)}))}function Sn(e){return e&&e.businessObject||e}function Cn(e){return e&&e.di}function kn(e,t,n){var i,r,o,a=[];function s(e,t){var n=new _n({root:function(e,t){return i.add(e,t)},element:function(e,t,n){return i.add(e,t,n)},error:function(e,t){a.push({message:e,context:t})}});t=t||e.diagrams&&e.diagrams[0];var r=function(e,t){if(!t||!t.plane)return;var n,i=t.plane.bpmnElement,r=i;wn(i,"bpmn:Process")||wn(i,"bpmn:Collaboration")||(r=function(e){var t=e;for(;t;){if(wn(t,"bpmn:Process"))return t;t=t.$parent}}(i));n=wn(r,"bpmn:Collaboration")?r:T(e.rootElements,(function(e){if(wn(e,"bpmn:Collaboration"))return T(e.participants,(function(e){return e.processRef===r}))}));var o=[r];n&&(o=$(n.participants,(function(e){return e.processRef}))).push(n);var a=An(o),s=[t],c=[i];return N(e.diagrams,(function(e){if(e.plane){var t=e.plane.bpmnElement;-1!==a.indexOf(t)&&-1===c.indexOf(t)&&(s.push(e),c.push(t))}})),s}(e,t);if(!r)throw new Error("no diagram to display");N(r,(function(t){n.handleDefinitions(e,t)}));var s=t.plane.bpmnElement.id;o.setRootElement(o.findRoot(s+"_plane")||o.findRoot(s))}return new Promise((function(c,l){try{return i=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("canvas"),r.fire("import.render.start",{definitions:t}),s(t,n),r.fire("import.render.complete",{error:undefined,warnings:a}),c({warnings:a})}catch(p){return p.warnings=a,l(p)}}))}function An(e){var t=[];return N(e,(function(e){e&&(t.push(e),t=t.concat(An(e.flowElements)))})),t}var Pn,Rn='',Mn={verticalAlign:"middle"},Tn={color:"#404040"},Bn={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Dn={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Nn={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},On=''+Rn+'Web-based tooling for BPMN, DMN and forms powered by bpmn.io. ';function jn(){Pn||(ce(Pn=Ae(On),Bn),ce(Re("svg",Pn),Mn),ce(Re(".backdrop",Pn),Dn),ce(Re(".notice",Pn),Nn),ce(Re(".link",Pn),Tn,{margin:"15px 20px 15px 10px",alignSelf:"center"}),Ee.bind(Pn,".backdrop","click",(function(e){document.body.removeChild(Pn)}))),document.body.appendChild(Pn)}function Ln(e){e=Q({},$n,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),function(e){const t=Ae(''+Rn+"");ce(Re("svg",t),Mn),ce(t,Tn,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(t),xe.bind(t,"click",(function(e){jn(),e.preventDefault()}))}(this._container),this._init(this._container,this._moddle,e)}function In(e,t){return e.warnings=t,e}v(Ln,l),Ln.prototype.importXML=async function(e,t){const n=this;let i=[];try{let a;e=this._emit("import.parse.start",{xml:e})||e;try{a=await this._moddle.fromXML(e,"bpmn:Definitions")}catch(o){throw this._emit("import.parse.complete",{error:o}),o}let s=a.rootElement;const c=a.references,l=a.warnings,p=a.elementsById;i=i.concat(l),s=this._emit("import.parse.complete",(r={error:null,definitions:s,elementsById:p,references:c,warnings:i},n.get("eventBus").createEvent(r)))||s;const u=await this.importDefinitions(s,t);return i=i.concat(u.warnings),this._emit("import.done",{error:null,warnings:i}),{warnings:i}}catch(a){let e=a;throw i=i.concat(e.warnings||[]),In(e,i),e=function(e){const t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]);return e}(e),this._emit("import.done",{error:e,warnings:e.warnings}),e}var r},Ln.prototype.importDefinitions=async function(e,t){this._setDefinitions(e);return{warnings:(await this.open(t)).warnings}},Ln.prototype.open=async function(e){const t=this._definitions;let n=e;if(!t){const e=new Error("no XML imported");throw In(e,[]),e}if("string"==typeof e&&(n=function(e,t){if(!t)return null;return T(e.diagrams,(function(e){return e.id===t}))||null}(t,e),!n)){const t=new Error("BPMNDiagram <"+e+"> not found");throw In(t,[]),t}try{this.clear()}catch(r){throw In(r,[]),r}const{warnings:i}=await kn(this,t,n);return{warnings:i}},Ln.prototype.saveXML=async function(e){e=e||{};let t,n,i=this._definitions;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i;n=(await this._moddle.toXML(i,e)).xml,n=this._emit("saveXML.serialized",{xml:n})||n}catch(o){t=o}const r=t?{error:t}:{xml:n};if(this._emit("saveXML.done",r),t)throw t;return r},Ln.prototype.saveSVG=async function(){let e,t;this._emit("saveSVG.start");try{const t=this.get("canvas"),n=t.getActiveLayer(),i=Re(":scope > defs",t._svg),r=Qe(n),o=i?""+Qe(i)+"":"",a=n.getBBox();e='\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n\n"}catch(n){t=n}if(this._emit("saveSVG.done",{error:t,svg:e}),t)throw t;return{svg:e}},Ln.prototype._setDefinitions=function(e){this._definitions=e},Ln.prototype.getModules=function(){return this._modules},Ln.prototype.clear=function(){this.getDefinitions()&&l.prototype.clear.call(this)},Ln.prototype.destroy=function(){l.prototype.destroy.call(this),Te(this._container)},Ln.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},Ln.prototype.off=function(e,t){this.get("eventBus").off(e,t)},Ln.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=Re(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},Ln.prototype.getDefinitions=function(){return this._definitions},Ln.prototype.detach=function(){const e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},Ln.prototype._init=function(e,t,n){const i=n.modules||this.getModules(n),r=n.additionalModules||[],o=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,r),a=Q(ee(n,["additionalModules"]),{canvas:Q({},n.canvas,{container:e}),modules:o});l.call(this,a),n&&n.container&&this.attachTo(n.container)},Ln.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},Ln.prototype._createContainer=function(e){const t=Ae('');return ce(t,{width:zn(e.width),height:zn(e.height),position:e.position}),t},Ln.prototype._createModdle=function(e){return new yn(Q({},this._moddleExtensions,e.moddleExtensions))},Ln.prototype._modules=[];const $n={width:"100%",height:"100%",position:"relative"};function zn(e){return e+(A(e)?"px":"")}function Fn(e){Ln.call(this,e),this.on("import.parse.complete",(function(e){e.error||this._collectIds(e.definitions,e.elementsById)}),this),this.on("diagram.destroy",(function(){this.get("moddle").ids.clear()}),this)}v(Fn,Ln),Fn.prototype._createModdle=function(e){var t=Ln.prototype._createModdle.call(this,e);return t.ids=new c([32,36,1]),t},Fn.prototype._collectIds=function(e,t){var n,i=e.$model.ids;for(n in i.clear(),t)i.claim(n,t[n])};function Hn(e,t){var n=this;t=t||1e3,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,r=t.element,o=t.gfx,a=t.attrs;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r,a):n.drawConnection(o,r,a)})),e.on(["render.getShapePath","render.getConnectionPath"],t,(function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)}))}function Vn(e,t){return!wn(e,"bpmn:CallActivity")&&(wn(e,"bpmn:SubProcess")?!(!(t=t||Cn(e))||!wn(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded:!wn(e,"bpmn:Participant")||!!Sn(e).processRef)}function Gn(e){if(wn(e,"bpmn:Participant")||wn(e,"bpmn:Lane")){var t=Cn(e).isHorizontal;return void 0===t||t}}function Wn(e){return e&&!!Sn(e).triggeredByEvent}function Un(e,t){return I(Sn(e).eventDefinitions,(function(e){return wn(e,t)}))}function qn(e){return k(e)&&M(e,"waypoints")}function Kn(e){return k(e)&&M(e,"labelTarget")}Hn.prototype.canRender=function(e){},Hn.prototype.drawShape=function(e,t){},Hn.prototype.drawConnection=function(e,t){},Hn.prototype.getShapePath=function(e){},Hn.prototype.getConnectionPath=function(e){};var Xn={width:90,height:20};function Yn(e){return wn(e,"bpmn:Event")||wn(e,"bpmn:Gateway")||wn(e,"bpmn:DataStoreReference")||wn(e,"bpmn:DataObjectReference")||wn(e,"bpmn:DataInput")||wn(e,"bpmn:DataOutput")||wn(e,"bpmn:SequenceFlow")||wn(e,"bpmn:MessageFlow")||wn(e,"bpmn:Group")}function Zn(e){return Kn(e.label)}function Qn(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],r=function(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)];return{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2}}(e),o=Math.atan((i.y-n.y)/(i.x-n.x)),a=r.x,s=r.y;return Math.abs(o) defs",a);c||Be(a,c=Ge("defs")),Be(c,s)}function h(e,t,n,i){var r=xi.nextPrefixed("marker-");return function(e,t,n,i,r){if("sequenceflow-end"===n){d(t,{element:Ge("path",{d:"M 1 5 L 11 10 L 1 15 Z",...p({fill:r,stroke:r,strokeWidth:1})}),ref:{x:11,y:10},scale:.5,parentGfx:e})}if("messageflow-start"===n){d(t,{element:Ge("circle",{cx:6,cy:6,r:3.5,...p({fill:i,stroke:r,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:6,y:6},parentGfx:e})}if("messageflow-end"===n){d(t,{element:Ge("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...p({fill:i,stroke:r,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:8.5,y:5},parentGfx:e})}if("association-start"===n){d(t,{element:Ge("path",{d:"M 11 5 L 1 10 L 11 15",...u({fill:"none",stroke:r,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:1,y:10},scale:.5,parentGfx:e})}if("association-end"===n){d(t,{element:Ge("path",{d:"M 1 5 L 11 10 L 1 15",...u({fill:"none",stroke:r,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:11,y:10},scale:.5,parentGfx:e})}if("conditional-flow-marker"===n){d(t,{element:Ge("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...p({fill:i,stroke:r})}),ref:{x:-1,y:10},scale:.5,parentGfx:e})}if("conditional-default-flow-marker"===n){d(t,{element:Ge("path",{d:"M 6 4 L 10 16",...p({stroke:r,fill:"none"})}),ref:{x:0,y:10},scale:.5,parentGfx:e})}}(e,r,t,n,i),"url(#"+r+")"}function m(e,t,n,i,r={}){k(i)&&(r=i,i=0),i=i||0,r=p(r);var o=Ge("circle",{cx:t/2,cy:n/2,r:Math.round((t+n)/4-i),...r});return Be(e,o),o}function f(e,t,n,i,r,o){k(r)&&(o=r,r=0),r=r||0,o=p(o);var a=Ge("rect",{x:r,y:r,width:t-2*r,height:n-2*r,rx:i,ry:i,...o});return Be(e,a),a}function g(e,t,n,i){var r=si(t,n=u(n),i);return Be(e,r),r}function y(e,t,n){return g(e,t,n,5)}function v(e,t,n){n=u(n);var i=Ge("path",{...n,d:t});return Be(e,i),i}function b(e,t,n,i){return v(t,n,Q({"data-marker":e},i))}function x(e){return Z[e]}function _(e){return function(t,n,i){return x(e)(t,n,i)}}var w=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.235,my:.315}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:r?ui(t,s,n.fill):di(t,c,n.stroke),strokeWidth:1})},E=function(e,t,n={}){var r=m(e,t.width,t.height,.2*t.height,{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:2});v(e,i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{stroke:di(t,c,n.stroke),strokeWidth:2});for(var o=0;o<12;o++){var a=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),l=t.width/2,p=t.height/2;v(e,a,{strokeWidth:1,stroke:di(t,c,n.stroke),transform:"rotate("+30*o+","+p+","+l+")"})}return r},S=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},C=function(e,t,n={}){return v(e,i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.222}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},A=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.57,my:.263}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},P=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.2,my:.722}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},R=function(e,t,n={},r){var o=v(e,i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.638,my:-.055}}),{fill:r?di(t,c,n.stroke):"none",stroke:di(t,c,n.stroke),strokeWidth:1});return bi(o,45),o},M=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.22,my:.5}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},T=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:r?di(t,c,n.stroke):ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},B=function(e,t,n={},r){return v(e,i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.222,my:.36}}),{fill:r?di(t,c,n.stroke):ui(t,s,n.fill),strokeWidth:1})},D=function(e,t,n={}){return v(e,i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:t.width,containerHeight:t.height,position:{mx:.458,my:.194}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1})},O=function(e,t,n={}){return m(e,t.width,t.height,8,{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:4})};function j(e,t,n={}){var i,r=Sn(e),o="bpmn:IntermediateThrowEvent"===(i=r).$type||"bpmn:EndEvent"===i.$type;return r.get("eventDefinitions")&&r.get("eventDefinitions").length>1?r.get("parallelMultiple")?D(t,e,n,o):B(t,e,n,o):pi(r,"bpmn:MessageEventDefinition")?w(t,e,n,o):pi(r,"bpmn:TimerEventDefinition")?E(t,e,n,o):pi(r,"bpmn:ConditionalEventDefinition")?C(t,e,n,o):pi(r,"bpmn:SignalEventDefinition")?T(t,e,n,o):pi(r,"bpmn:EscalationEventDefinition")?S(t,e,n,o):pi(r,"bpmn:LinkEventDefinition")?A(t,e,n,o):pi(r,"bpmn:ErrorEventDefinition")?P(t,e,n,o):pi(r,"bpmn:CancelEventDefinition")?R(t,e,n,o):pi(r,"bpmn:CompensateEventDefinition")?M(t,e,n,o):pi(r,"bpmn:TerminateEventDefinition")?O(t,e,n,o):null}var L={ParticipantMultiplicityMarker:function(e,t,n={}){var r=fi(t,n),o=gi(t,n);b("participant-multiplicity",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2-6)/r,my:(o-15)/o}}),{strokeWidth:2,fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},SubProcessMarker:function(e,t,n={}){vi(f(e,14,14,0,{strokeWidth:1,fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)}),t.width/2-7.5,t.height-20),b("sub-process",e,i.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2-7.5)/t.width,my:(t.height-20)/t.height}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},ParallelMarker:function(e,t,n){var r=fi(t,n),o=gi(t,n);b("parallel",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.parallel)/r,my:(o-20)/o}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},SequentialMarker:function(e,t,n){b("sequential",e,i.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.seq)/t.width,my:(t.height-19)/t.height}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},CompensationMarker:function(e,t,n){b("compensation",e,i.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.compensation)/t.width,my:(t.height-13)/t.height}}),{strokeWidth:1,fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})},LoopMarker:function(e,t,n){var r=fi(t,n),o=gi(t,n);b("loop",e,i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.loop)/r,my:(o-7)/o}}),{strokeWidth:1.5,fill:"none",stroke:di(t,c,n.stroke),strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){var r=fi(t,n),o=gi(t,n);b("adhoc",e,i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.adhoc)/r,my:(o-15)/o}}),{strokeWidth:1,fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke)})}};function I(e,t,n,i){L[e](t,n,i)}function $(e,t,n,i={}){i={fill:i.fill,stroke:i.stroke,width:fi(t,i),height:gi(t,i)};var r=Sn(t),o=n&&n.includes("SubProcessMarker");i=o?{...i,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{...i,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},N(n,(function(n){I(n,e,t,i)})),r.get("isForCompensation")&&I("CompensationMarker",e,t,i),wn(r,"bpmn:AdHocSubProcess")&&I("AdhocMarker",e,t,i);var a=r.get("loopCharacteristics"),s=a&&a.get("isSequential");a&&(void 0===s&&I("LoopMarker",e,t,i),!1===s&&I("ParallelMarker",e,t,i),!0===s&&I("SequentialMarker",e,t,i))}function z(e,t,n={}){n=Q({size:{width:100}},n);var i=o.createText(t||"",n);return Le(i).add("djs-label"),Be(e,i),i}function F(e,t,n,i={}){var r=Sn(t),o=mi({x:t.x,y:t.y,width:t.width,height:t.height},i);return z(e,r.name,{align:n,box:o,padding:7,style:{fill:hi(t,l,c,i.stroke)}})}function H(e,t,n,i={}){var r=Gn(n),o=z(e,t,{box:{height:30,width:r?gi(n,i):fi(n,i)},align:"center-middle",style:{fill:hi(n,l,c,i.stroke)}});r&&yi(o,0,-(-1*gi(n,i)),270)}function V(e,t,n={}){var{width:i,height:r}=mi(t,n);return f(e,i,r,10,{...n,fill:ui(t,s,n.fill),fillOpacity:_i,stroke:di(t,c,n.stroke)})}function G(e,t,n={}){var i=Sn(t),r=ui(t,s,n.fill),o=di(t,c,n.stroke);return"One"!==i.get("associationDirection")&&"Both"!==i.get("associationDirection")||(n.markerEnd=h(e,"association-end",r,o)),"Both"===i.get("associationDirection")&&(n.markerStart=h(e,"association-start",r,o)),n=Ei(n,["markerStart","markerEnd"]),y(e,t.waypoints,{...n,stroke:o,strokeDasharray:"0, 5"})}function W(e,t,n={}){var r=ui(t,s,n.fill),o=di(t,c,n.stroke),a=v(e,i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:r,fillOpacity:_i,stroke:o});(function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection})(Sn(t))&&v(e,i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.33,my:(t.height-18)/t.height}}),{strokeWidth:2,fill:r,stroke:o});return a}function U(e,t,n={}){return m(e,t.width,t.height,{fillOpacity:_i,...n,fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)})}function q(e,t,n={}){return function(e,t,n,i){var r=t/2,o=n/2,a=[{x:r,y:0},{x:t,y:o},{x:r,y:n},{x:0,y:o}].map((function(e){return e.x+","+e.y})).join(" ");i=p(i);var s=Ge("polygon",{...i,points:a});return Be(e,s),s}(e,t.width,t.height,{fill:ui(t,s,n.fill),fillOpacity:_i,stroke:di(t,c,n.stroke)})}function K(e,t,n={}){var i=f(e,fi(t,n),gi(t,n),0,{fill:ui(t,s,n.fill),fillOpacity:n.fillOpacity||_i,stroke:di(t,c,n.stroke),strokeWidth:1.5}),r=Sn(t);wn(r,"bpmn:Lane")&&H(e,r.get("name"),t,n);return i}function X(e,t,n={}){var i=V(e,t,n);Wn(t)&&Oe(i,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var r=Vn(t);return F(e,t,r?"center-top":"center-middle",n),$(e,t,r?void 0:["SubProcessMarker"],n),i}function Y(e,t,n={}){var i=V(e,t,n);return F(e,t,"center-middle",n),$(e,t,void 0,n),i}var Z=this.handlers={"bpmn:AdHocSubProcess":function(e,t,n={}){return X(e,t,n=Vn(t)?Ei(n,["fill","stroke","width","height"]):Ei(n,["fill","stroke"]))},"bpmn:Association":function(e,t,n={}){return G(e,t,n=Ei(n,["fill","stroke"]))},"bpmn:BoundaryEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Ei(n,["fill","stroke"]);var r=Sn(t).get("cancelActivity");n={strokeWidth:1.5,fill:ui(t,s,n.fill),fillOpacity:1,stroke:di(t,c,n.stroke)},r||(n.strokeDasharray="6");var o=U(e,t,n);return m(e,t.width,t.height,3,{...n,fill:"none"}),i&&j(t,e,n),o},"bpmn:BusinessRuleTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return Oe(v(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}})),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),Oe(v(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}})),{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:CallActivity":function(e,t,n={}){return n=Ei(n,["fill","stroke"]),X(e,t,{strokeWidth:5,...n})},"bpmn:ComplexGateway":function(e,t,n={}){var r=q(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:DataInput":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var r=i.getRawPath("DATA_ARROW"),o=W(e,t,n);return v(e,r,{fill:"none",stroke:di(t,c,n.stroke),strokeWidth:1}),o},"bpmn:DataInputAssociation":function(e,t,n={}){return n=Ei(n,["fill","stroke"]),G(e,t,{...n,markerEnd:h(e,"association-end",ui(t,s,n.fill),di(t,c,n.stroke))})},"bpmn:DataObject":function(e,t,n={}){return W(e,t,n=Ei(n,["fill","stroke"]))},"bpmn:DataObjectReference":_("bpmn:DataObject"),"bpmn:DataOutput":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var r=i.getRawPath("DATA_ARROW"),o=W(e,t,n);return v(e,r,{strokeWidth:1,fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke)}),o},"bpmn:DataOutputAssociation":function(e,t,n={}){return n=Ei(n,["fill","stroke"]),G(e,t,{...n,markerEnd:h(e,"association-end",ui(t,s,n.fill),di(t,c,n.stroke))})},"bpmn:DataStoreReference":function(e,t,n={}){return n=Ei(n,["fill","stroke"]),v(e,i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{fill:ui(t,s,n.fill),fillOpacity:_i,stroke:di(t,c,n.stroke),strokeWidth:2})},"bpmn:EndEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Ei(n,["fill","stroke"]);var r=U(e,t,{...n,strokeWidth:4});return i&&j(t,e,n),r},"bpmn:EventBasedGateway":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var r=Sn(t),o=q(e,t,n);m(e,t.width,t.height,.2*t.height,{fill:ui(t,"none",n.fill),stroke:di(t,c,n.stroke),strokeWidth:1});var a,s=r.get("eventGatewayType"),l=!!r.get("instantiate");if("Parallel"===s){var p=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}});v(e,p,{fill:"none",stroke:di(t,c,n.stroke),strokeWidth:1})}else"Exclusive"===s&&(l||m(e,t.width,t.height,.26*t.height,{fill:"none",stroke:di(t,c,n.stroke),strokeWidth:1}),a=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:t.width,containerHeight:t.height,position:{mx:.36,my:.44}}),v(e,a,{fill:"none",stroke:di(t,c,n.stroke),strokeWidth:2}));return o},"bpmn:ExclusiveGateway":function(e,t,n={}){var r=q(e,t,n=Ei(n,["fill","stroke"])),o=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return Cn(t).get("isMarkerVisible")&&v(e,o,{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:Gateway":function(e,t,n={}){return q(e,t,n=Ei(n,["fill","stroke"]))},"bpmn:Group":function(e,t,n={}){return n=Ei(n,["fill","stroke","width","height"]),f(e,t.width,t.height,10,{stroke:di(t,c,n.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:fi(t,n),height:gi(t,n)})},"bpmn:InclusiveGateway":function(e,t,n={}){var i=q(e,t,n=Ei(n,["fill","stroke"]));return m(e,t.width,t.height,.24*t.height,{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:2.5}),i},"bpmn:IntermediateEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Ei(n,["fill","stroke"]);var r=U(e,t,{...n,strokeWidth:1.5});return m(e,t.width,t.height,3,{fill:"none",stroke:di(t,c,n.stroke),strokeWidth:1.5}),i&&j(t,e,n),r},"bpmn:IntermediateCatchEvent":_("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":_("bpmn:IntermediateEvent"),"bpmn:Lane":function(e,t,n={}){return n=Ei(n,["fill","stroke","width","height"]),K(e,t,{...n,fillOpacity:.25})},"bpmn:ManualTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:.5}),r},"bpmn:MessageFlow":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var r=Sn(t),o=Cn(t),a=ui(t,s,n.fill),l=di(t,c,n.stroke),p=y(e,t.waypoints,{markerEnd:h(e,"messageflow-end",a,l),markerStart:h(e,"messageflow-start",a,l),stroke:l,strokeDasharray:"10, 11",strokeWidth:1.5});if(r.get("messageRef")){var u=p.getPointAtLength(p.getTotalLength()/2),d=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:u.x,y:u.y}}),m={strokeWidth:1};"initiating"===o.get("messageVisibleKind")?(m.fill=a,m.stroke=l):(m.fill=l,m.stroke=a);var f=v(e,d,m),g=z(e,r.get("messageRef").get("name"),{align:"center-top",fitBox:!0,style:{fill:l}}),b=f.getBBox(),x=g.getBBox();yi(g,u.x-x.width/2,u.y+b.height/2+10,0)}return p},"bpmn:ParallelGateway":function(e,t,n={}){var r=q(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:Participant":function(e,t,n={}){var i=K(e,t,n=Ei(n,["fill","stroke","width","height"])),r=Vn(t),o=Gn(t),a=Sn(t),s=a.get("name");if(r){g(e,o?[{x:30,y:0},{x:30,y:gi(t,n)}]:[{x:0,y:30},{x:fi(t,n),y:30}],{stroke:di(t,c,n.stroke),strokeWidth:1.5}),H(e,s,t,n)}else{var p=mi(t,n);o||(p.height=fi(t,n),p.width=gi(t,n));var u=z(e,s,{box:p,align:"center-middle",style:{fill:hi(t,l,c,n.stroke)}});if(!o)yi(u,0,-(-1*gi(t,n)),270)}return a.get("participantMultiplicity")&&I("ParticipantMultiplicityMarker",e,t,n),i},"bpmn:ReceiveTask":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var r,o=Sn(t),a=Y(e,t,n);return o.get("instantiate")?(m(e,28,28,4.4,{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),r=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):r=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),v(e,r,{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),a},"bpmn:ScriptTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:SendTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{fill:di(t,c,n.stroke),stroke:ui(t,s,n.fill),strokeWidth:1}),r},"bpmn:SequenceFlow":function(e,t,n={}){n=Ei(n,["fill","stroke"]);var i=ui(t,s,n.fill),r=di(t,c,n.stroke),o=y(e,t.waypoints,{markerEnd:h(e,"sequenceflow-end",i,r),stroke:r}),a=Sn(t),{source:l}=t;if(l){var p=Sn(l);a.get("conditionExpression")&&wn(p,"bpmn:Activity")&&Oe(o,{markerStart:h(e,"conditional-flow-marker",i,r)}),p.get("default")&&(wn(p,"bpmn:Gateway")||wn(p,"bpmn:Activity"))&&p.get("default")===a&&Oe(o,{markerStart:h(e,"conditional-default-flow-marker",i,r)})}return o},"bpmn:ServiceTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return m(e,10,10,{fill:ui(t,s,n.fill),stroke:"none",transform:"translate(6, 6)"}),v(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),m(e,10,10,{fill:ui(t,s,n.fill),stroke:"none",transform:"translate(11, 10)"}),v(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:1}),r},"bpmn:StartEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Ei(n,["fill","stroke"]),Sn(t).get("isInterrupting")||(n={...n,strokeDasharray:"6"});var r=U(e,t,n);return i&&j(t,e,n),r},"bpmn:SubProcess":function(e,t,n={}){return X(e,t,n=Vn(t)?Ei(n,["fill","stroke","width","height"]):Ei(n,["fill","stroke"]))},"bpmn:Task":function(e,t,n={}){return Y(e,t,n=Ei(n,["fill","stroke"]))},"bpmn:TextAnnotation":function(e,t,n={}){n=Ei(n,["fill","stroke","width","height"]);var{width:r,height:o}=mi(t,n),a=f(e,r,o,0,0,{fill:"none",stroke:"none"});return v(e,i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:0,my:0}}),{stroke:di(t,c,n.stroke)}),z(e,Sn(t).get("text")||"",{align:"left-top",box:mi(t,n),padding:7,style:{fill:hi(t,l,c,n.stroke)}}),a},"bpmn:Transaction":function(e,t,i={}){i=Vn(t)?Ei(i,["fill","stroke","width","height"]):Ei(i,["fill","stroke"]);var r=X(e,t,{strokeWidth:1.5,...i}),o=n.style(["no-fill","no-events"],{stroke:di(t,c,i.stroke),strokeWidth:1.5});return Vn(t)||(i={}),f(e,fi(t,i),gi(t,i),7,3,o),r},"bpmn:UserTask":function(e,t,n={}){var r=Y(e,t,n=Ei(n,["fill","stroke"]));return v(e,i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:.5}),v(e,i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{fill:ui(t,s,n.fill),stroke:di(t,c,n.stroke),strokeWidth:.5}),v(e,i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{fill:di(t,c,n.stroke),stroke:di(t,c,n.stroke),strokeWidth:.5}),r},label:function(e,t,n={}){return function(e,t,n={}){var i={width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y};return z(e,ti(t),{box:i,fitBox:!0,style:Q({},o.getExternalStyle(),{fill:hi(t,l,c,n.stroke)})})}(e,t,n)}};this._drawPath=v,this._renderer=x}function Ei(e,t=[]){return t.reduce(((t,n)=>(e[n]&&(t[n]=e[n]),t)),{})}v(wi,Hn),wi.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],wi.prototype.canRender=function(e){return wn(e,"bpmn:BaseElement")},wi.prototype.drawShape=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},wi.prototype.drawConnection=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},wi.prototype.getShapePath=function(e){return wn(e,"bpmn:Event")?function(e){var t=e.x+e.width/2,n=e.y+e.height/2,i=e.width/2;return ni([["M",t,n],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]])}(e):wn(e,"bpmn:Activity")?function(e,t){var n=e.x,i=e.y,r=e.width,o=e.height;return ni([["M",n+t,i],["l",r-2*t,0],["a",t,t,0,0,1,t,t],["l",0,o-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-r,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-o],["a",t,t,0,0,1,t,-t],["z"]])}(e,10):wn(e,"bpmn:Gateway")?function(e){var t=e.width/2,n=e.height/2;return ni([["M",e.x+t,e.y],["l",t,n],["l",-t,n],["l",-t,-n],["z"]])}(e):function(e){var t=e.x,n=e.y,i=e.width;return ni([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])}(e)};var Si={width:150,height:50};function Ci(e,t){var n;t.textContent=e;try{var i,r=""===e;return t.textContent=r?"dummy":e,i={width:(n=t.getBBox()).width+2*n.x,height:n.height},r&&(i.width=0),i}catch(o){return{width:0,height:0}}}function ki(e,t,n){for(var i,r=e.shift(),o=r;;){if((i=Ci(o,n)).width=o?i.width:0," "===o||""===o||i.width1)for(;n=i.shift();){if(!(n.length+oe?t.width:e}),0),m=o.top;"middle"===r.vertical&&(m+=(n.height-d)/2),m-=(s||l[0].height)/4;var f=Ge("text");return Oe(f,i),N(l,(function(e){var t;switch(m+=s||e.height,r.horizontal){case"left":t=o.left;break;case"right":t=(a?h:p)-o.right-e.width;break;default:t=Math.max(((a?h:p)-e.width)/2+o.left,0)}var n=Ge("tspan");Oe(n,{x:t,y:m}),n.textContent=e.text,Be(f,n)})),Je(u),{dimensions:{width:h,height:d},element:f}};function Ti(e){var t=Q({fontFamily:"Arial, sans-serif",fontSize:12,fontWeight:"normal",lineHeight:1.2},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=Q({},t,{fontSize:n},e&&e.externalStyle||{}),r=new Mi({style:t});this.getExternalLabelBounds=function(e,t){var n=r.getDimensions(t,{box:{width:90,height:30},style:i});return{x:Math.round(e.x+e.width/2-n.width/2),y:Math.round(e.y),width:Math.ceil(n.width),height:Math.ceil(n.height)}},this.getTextAnnotationBounds=function(e,n){var i=r.getDimensions(n,{box:e,style:t,align:"left-top",padding:5});return{x:e.x,y:e.y,width:e.width,height:Math.max(30,Math.round(i.height))}},this.createText=function(e,t){return r.createText(e,t||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}Ti.$inject=["config.textRenderer"];var Bi=/\{([^{}]+)\}/g,Di=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;const Ni={__init__:["bpmnRenderer"],bpmnRenderer:["type",wi],textRenderer:["type",Ti],pathMap:["type",function(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,i,r=this.pathMap[e];t.abspos?(n=t.abspos.x,i=t.abspos.y):(n=t.containerWidth*t.position.mx,i=t.containerHeight*t.position.my);var o,a,s={};if(t.position){for(var c=t.containerHeight/r.height*t.yScaleFactor,l=t.containerWidth/r.width*t.xScaleFactor,p=0;pt.x-n&&e.y>t.y-n&&e.x=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function cr(e,t,n,i,r){return e*(e*(-3*t+9*n-9*i+3*r)+6*t-12*n+6*i)-3*t+3*n}function lr(e,t,n,i,r,o,a,s,c){null==c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,h=0;h<12;h++){var m=l*p[h]+l,f=cr(m,e,n,r,a),g=cr(m,t,i,o,s),y=f*f+g*g;d+=u[h]*Gi.sqrt(y)}return l*d}function pr(e,t,n,i,r,o,a,s){if(!(qi(e,n)qi(r,a)||qi(t,i)qi(o,s))){var c=(e*i-t*n)*(o-s)-(t-i)*(r*s-o*a),l=(e-n)*(o-s)-(t-i)*(r-a);if(l){var p=ur(((e*i-t*n)*(r-a)-(e-n)*(r*s-o*a))/l),u=ur(c/l),d=+p.toFixed(2),h=+u.toFixed(2);if(!(d<+Ui(e,n).toFixed(2)||d>+qi(e,n).toFixed(2)||d<+Ui(r,a).toFixed(2)||d>+qi(r,a).toFixed(2)||h<+Ui(t,i).toFixed(2)||h>+qi(t,i).toFixed(2)||h<+Ui(o,s).toFixed(2)||h>+qi(o,s).toFixed(2)))return{x:p,y:u}}}}function ur(e){return Math.round(1e11*e)/1e11}function dr(e,t,n){if(!function(e,t){return e=nr(e),sr(t=nr(t),e.x,e.y)||sr(t,e.x2,e.y)||sr(t,e.x,e.y2)||sr(t,e.x2,e.y2)||sr(e,t.x,t.y)||sr(e,t.x2,t.y)||sr(e,t.x,t.y2)||sr(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)}(ar(e),ar(t)))return n?0:[];for(var i=lr(...e),r=lr(...t),o=fr(e)?1:~~(i/5)||1,a=fr(t)?1:~~(r/5)||1,s=[],c=[],l={},p=n?0:[],u=0;u=0&&w<=1&&E>=0&&E<=1&&(n?p++:p.push({x:_.x,y:_.y,t1:w,t2:E}))}}return p}function hr(e,t,n){e=br(e),t=br(t);for(var i,r,o,a,s,c,l,p,u,d,h=n?0:[],m=0,f=e.length;m2&&(i.push([t,...o.splice(0,2)]),a="l",t="m"==t?"l":"L");o.length>=n[a]&&(i.push([t,...o.splice(0,n[a])]),n[a]););})),i.toString=tr.toString,t.arr=er(i),i}(e)),!e||!e.length)return[["M",0,0]];var n,i=[],r=0,o=0,a=0,s=0,c=0;"M"==e[0][0]&&(a=r=+e[0][1],s=o=+e[0][2],c++,i[0]=["M",r,o]);for(var l,p,u=c,d=e.length;u=1e3&&delete i[r.shift()],r.push(n),i[n]=e(...arguments),i[n])}}((function(e,t,n){return{x:e*Gi.cos(n)-t*Gi.sin(n),y:e*Gi.sin(n)+t*Gi.cos(n)}}));if(l)E=l[0],S=l[1],_=l[2],w=l[3];else{e=(p=m(e,t,-d)).x,t=p.y;var f=(e-(s=(p=m(s,c,-d)).x))/2,g=(t-(c=p.y))/2,y=f*f/(n*n)+g*g/(i*i);y>1&&(n*=y=Gi.sqrt(y),i*=y);var v=n*n,b=i*i,x=(o==a?-1:1)*Gi.sqrt(Xi((v*b-v*g*g-b*f*f)/(v*g*g+b*f*f))),_=x*n*g/i+(e+s)/2,w=x*-i*f/n+(t+c)/2,E=Gi.asin(((t-w)/i).toFixed(9)),S=Gi.asin(((c-w)/i).toFixed(9));(E=e<_?Wi-E:E)<0&&(E=2*Wi+E),(S=s<_?Wi-S:S)<0&&(S=2*Wi+S),a&&E>S&&(E-=2*Wi),!a&&S>E&&(S-=2*Wi)}var C=S-E;if(Xi(C)>u){var k=S,A=s,P=c;S=E+u*(a&&S>E?1:-1),h=vr(s=_+n*Gi.cos(S),c=w+i*Gi.sin(S),n,i,r,0,a,A,P,[S,k,_,w])}C=S-E;var R=Gi.cos(E),M=Gi.sin(E),T=Gi.cos(S),B=Gi.sin(S),D=Gi.tan(C/4),N=4/3*n*D,O=4/3*i*D,j=[e,t],L=[e+N*M,t-O*R],I=[s+N*B,c-O*T],$=[s,c];if(L[0]=2*j[0]-L[0],L[1]=2*j[1]-L[1],l)return[L,I,$].concat(h);for(var z=[],F=0,H=(h=[L,I,$].concat(h).join().split(",")).length;F7){e[t].shift();for(var i=e[t];i.length;)a[t]="A",e.splice(t++,0,["C",...i.splice(0,6)]);e.splice(t,1),p=n.length}},a=[],s="",c="",l=0,p=n.length;l=r.right,s=i.top-n.y>=r.bottom,c=o?"top":s?"bottom":null,l=i.right+n.x<=r.left?"left":a?"right":null;return l&&c?c+"-"+l:l||c||"intersect"}function Ar(e,t,n){var i=hr(e,t);return 1===i.length||2===i.length&&ji(i[0],i[1])<1?_r(i[0]):i.length>1?_r((i=W(i,(function(e){var t=Math.floor(100*e.t2)||1;return t=((t=100-t)<10?"0":"")+t,e.segment2+"#"+t})))[n?0:i.length-1]):null}function Pr(e,t,n){return Q({id:e.id,type:e.$type,businessObject:e,di:t},n)}function Rr(e,t,n){var i=e.waypoint;return!i||i.length<2?[Cr(t),Cr(n)]:i.map((function(e){return{x:e.x,y:e.y}}))}function Mr(e,t,n){return new Error(`element ${vn(t)} referenced by ${vn(e)}#${n} not yet drawn`)}function Tr(e,t,n,i,r){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._textRenderer=r}Tr.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],Tr.prototype.add=function(e,t,n){var i,r,o,a,s,c,l;if(wn(t,"bpmndi:BPMNPlane")){var p=wn(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(Pr(e,t,p)),this._canvas.addRootElement(i)}else if(wn(t,"bpmndi:BPMNShape")){var u=!Vn(e,t),d=function(e){return wn(e,"bpmn:Group")}(e);r=n&&(n.hidden||n.collapsed);var h=t.bounds;i=this._elementFactory.createShape(Pr(e,t,{collapsed:u,hidden:r,x:Math.round(h.x),y:Math.round(h.y),width:Math.round(h.width),height:Math.round(h.height),isFrame:d})),wn(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),wn(e,"bpmn:Lane")&&(o=0),wn(e,"bpmn:DataStoreReference")&&(a=n,s=Cr(h),c=s.x,l=s.y,c>=a.x&&c<=a.x+a.width&&l>=a.y&&l<=a.y+a.height||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,o)}else{if(!wn(t,"bpmndi:BPMNEdge"))throw new Error(`unknown di ${vn(t)} for element ${vn(e)}`);var m=this._getSource(e),f=this._getTarget(e);r=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(Pr(e,t,{hidden:r,source:m,target:f,waypoints:Rr(t,m,f)})),wn(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(i,n,o)}return Yn(e)&&ti(i)&&this.addLabel(e,t,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},Tr.prototype._attachBoundary=function(e,t){var n=e.attachedToRef;if(!n)throw new Error(`missing ${vn(e)}#attachedToRef`);var i=this._elementRegistry.get(n.id),r=i&&i.attachers;if(!i)throw Mr(e,n,"attachedToRef");t.host=i,r||(i.attachers=r=[]),-1===r.indexOf(t)&&r.push(t)},Tr.prototype.addLabel=function(e,t,n){var i,r,o;return i=function(e,t){var n,i,r,o=e.label;return o&&o.bounds?(r=o.bounds,i={width:Math.max(Xn.width,r.width),height:r.height},n={x:r.x+r.width/2,y:r.y+r.height/2}):(n=Jn(t),i=Xn),Q({x:n.x-i.width/2,y:n.y-i.height/2},i)}(t,n),(r=ti(n))&&(i=this._textRenderer.getExternalLabelBounds(i,r)),o=this._elementFactory.createLabel(Pr(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!ti(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(o,n.parent)},Tr.prototype._getConnectedElement=function(e,t){var n,i,r=e.$type;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===r||"target"===t&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?Mr(e,i,t+"Ref"):new Error(`${vn(e)}#${t} Ref not specified`)},Tr.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},Tr.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},Tr.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};const Br={__depends__:[Ni,{__depends__:[Oi],bpmnImporter:["type",Tr]}]};function Dr(e){return D(e,(function(t){return!T(e,(function(e){return e!==t&&Nr(t,e)}))}))}function Nr(e,t){if(t){if(e===t)return t;if(e.parent)return Nr(e.parent,t)}}function Or(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function jr(e,t,n){n=n||0,C(e)||(e=[e]),N(e,(function(e,i){var r=t(e,i,n);C(r)&&r.length&&jr(r,t,n+1)}))}function Lr(e,t){return function(e,t){var n=[],i=[];return jr(e,(function(e,r,o){Or(n,e,t);var a=e.children;if(a&&Or(i,a,t))return a})),n}(e,!t)}function Ir(e,t){var n,i,r,o;return t=!!t,C(e)||(e=[e]),N(e,(function(e){var a=e;e.waypoints&&!t&&(a=Ir(e.waypoints,!0));var s=a.x,c=a.y,l=a.height||0,p=a.width||0;(sr||void 0===r)&&(r=s+p),(c+l>o||void 0===o)&&(o=c+l)})),{x:n,y:i,height:o-i,width:r-n}}function $r(e,t){return Q({},e||{},t||{})}function zr(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}zr.prototype.next=function(){return this._prefix+ ++this._counter};var Fr=new zr("ov");function Hr(e,t,n,i){var r,o;this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=Fr,this._overlayDefaults=Q({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(r=n.getContainer(),ce(o=Ae(''),{position:"absolute",width:0,height:0}),r.insertBefore(o,r.firstChild),o),this._init()}function Vr(e,t,n){ce(e,{left:t+"px",top:n+"px"})}function Gr(e,t){e.style.display=!1===t?"none":""}function Wr(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}Hr.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Hr.prototype.get=function(e){if(R(e)&&(e={id:e}),R(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?D(t.overlays,U({type:e.type})):t.overlays.slice():[]}return e.type?D(this._overlays,U({type:e.type})):e.id?this._overlays[e.id]:null},Hr.prototype.add=function(e,t,n){if(k(t)&&(n=t,t=null),e.id||(e=this._elementRegistry.get(e)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return n=Q({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},Hr.prototype.remove=function(e){var t=this.get(e)||[];C(t)||(t=[t]);var n=this;N(t,(function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(Te(e.html),Te(e.htmlContainer),delete e.htmlContainer,delete e.element,delete n._overlays[e.id]),t){var i=t.overlays.indexOf(e);-1!==i&&t.overlays.splice(i,1)}}))},Hr.prototype.isShown=function(){return"none"!==this._overlayRoot.style.display},Hr.prototype.show=function(){Gr(this._overlayRoot)},Hr.prototype.hide=function(){Gr(this._overlayRoot,!1)},Hr.prototype.clear=function(){this._overlays={},this._overlayContainers=[],he(this._overlayRoot)},Hr.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,r=t.y;if(t.waypoints){var o=Ir(t);i=o.x,r=o.y}Vr(n,i,r),le(e.html,"data-container-id",t.id)},Hr.prototype._updateOverlay=function(e){var t,n,i=e.position,r=e.htmlContainer,o=e.element,a=i.left,s=i.top;void 0!==i.right&&(t=o.waypoints?Ir(o).width:o.width,a=-1*i.right+t);void 0!==i.bottom&&(n=o.waypoints?Ir(o).height:o.height,s=-1*i.bottom+n);Vr(r,a||0,s||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Hr.prototype._createOverlayContainer=function(e){var t=Ae('');ce(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},Hr.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Wr(this._overlayRoot,n)},Hr.prototype._getOverlayContainer=function(e,t){var n=T(this._overlayContainers,(function(t){return t.element===e}));return n||t?n:this._createOverlayContainer(e)},Hr.prototype._addOverlay=function(e){var t,n,i=e.id,r=e.element,o=e.html;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),R(o)&&(o=Ae(o)),n=this._getOverlayContainer(r),ce(t=Ae(''),{position:"absolute"}),t.appendChild(o),e.type&&ue(t).add("djs-overlay-"+e.type),Gr(t,this._canvas.findRoot(r)===this._canvas.getRootElement()),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Hr.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=this._canvas.findRoot(e.element),r=n&&n.minZoom,o=n&&n.maxZoom,a=e.htmlContainer,s=!0;(i!==this._canvas.getRootElement()||n&&(E(r)&&r>t.scale||E(o)&&o
i&&(r=(1/t.scale||1)*i)),E(r)&&(s="scale("+r+","+r+")"),Wr(a,s)},Hr.prototype._updateOverlaysVisibilty=function(e){var t=this;N(this._overlays,(function(n){t._updateOverlayVisibilty(n,e)}))},Hr.prototype._init=function(){var e=this._eventBus,t=this;e.on("canvas.viewbox.changing",(function(e){t.hide()})),e.on("canvas.viewbox.changed",(function(e){var n;n=e.viewbox,t._updateRoot(n),t._updateOverlaysVisibilty(n),t.show()})),e.on(["shape.remove","connection.remove"],(function(e){var n=e.element;N(t.get({element:n}),(function(e){t.remove(e.id)}));var i=t._getOverlayContainer(n);if(i){Te(i.html);var r=t._overlayContainers.indexOf(i);-1!==r&&t._overlayContainers.splice(r,1)}})),e.on("element.changed",500,(function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(N(i.overlays,(function(e){t._updateOverlay(e)})),t._updateOverlayContainer(i))})),e.on("element.marker.update",(function(e){var n=t._getOverlayContainer(e.element,!0);n&&ue(n.html)[e.add?"add":"remove"](e.marker)})),e.on("root.set",(function(){t._updateOverlaysVisibilty(t._canvas.viewbox())})),e.on("diagram.clear",this.clear,this)};const Ur={__init__:["overlays"],overlays:["type",Hr]};function qr(e,t,n,i){e.on("element.changed",(function(i){var r=i.element;(r.parent||r===t.getRootElement())&&(i.gfx=n.getGraphics(r)),i.gfx&&e.fire(function(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}(r)+".changed",i)})),e.on("elements.changed",(function(t){var n=t.elements;n.forEach((function(t){e.fire("element.changed",{element:t})})),i.updateContainments(n)})),e.on("shape.changed",(function(e){i.update("shape",e.element,e.gfx)})),e.on("connection.changed",(function(e){i.update("connection",e.element,e.gfx)}))}qr.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const Kr={__init__:["changeSupport"],changeSupport:["type",qr]};function Xr(e){this._eventBus=e}function Yr(e){return function(t,n,i,r,o){(P(t)||A(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}}function Zr(e,t){t.invoke(Xr,this),this.executed((function(t){var n=t.context;n.rootElement?e.setRootElement(n.rootElement):n.rootElement=e.getRootElement()})),this.revert((function(t){var n=t.context;n.rootElement&&e.setRootElement(n.rootElement)}))}Xr.$inject=["eventBus"],Xr.prototype.on=function(e,t,n,i,r,o){if((P(t)||A(t))&&(o=r,r=i,i=n,n=t,t=null),P(n)&&(o=r,r=i,i=n,n=1e3),k(r)&&(o=r,r=!1),!P(i))throw new Error("handlerFn must be a function");C(e)||(e=[e]);var a=this._eventBus;N(e,(function(e){var s=["commandStack",e,t].filter((function(e){return e})).join(".");a.on(s,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,o):i,o)}))},Xr.prototype.canExecute=Yr("canExecute"),Xr.prototype.preExecute=Yr("preExecute"),Xr.prototype.preExecuted=Yr("preExecuted"),Xr.prototype.execute=Yr("execute"),Xr.prototype.executed=Yr("executed"),Xr.prototype.postExecute=Yr("postExecute"),Xr.prototype.postExecuted=Yr("postExecuted"),Xr.prototype.revert=Yr("revert"),Xr.prototype.reverted=Yr("reverted"),v(Zr,Xr),Zr.$inject=["canvas","injector"];const Qr={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Zr]};function Jr(e){return CSS.escape(e)}var eo={"&":"&","<":"<",">":">",'"':""","'":"'"};function to(e){return(e=""+e)&&e.replace(/[&<>"']/g,(function(e){return eo[e]}))}var no="_plane";function io(e){return function(e){return e.replace(new RegExp(no+"$"),"")}(e.id)}function ro(e){var t=e.id;return wn(e,"bpmn:SubProcess")?so(t):t}function oo(e){return so(e)}function ao(e){return wn(Cn(e),"bpmndi:BPMNPlane")}function so(e){return e+no}function co(e,t,n){var i=Ae(''),r=n.getContainer(),o=ue(r);r.appendChild(i);var a=[];function s(e){e&&(a=function(e){for(var t=Sn(e),n=[],i=t;i;i=i.$parent)(wn(i,"bpmn:SubProcess")||wn(i,"bpmn:Process"))&&n.push(i);return n.reverse()}(e));var r=a.flatMap((function(e){var i=n.findRoot(ro(e))||n.findRoot(e.id);if(!i&&wn(e,"bpmn:Process")){var r=t.find((function(t){var n=Sn(t);return n&&n.get("processRef")===e}));i=r&&n.findRoot(r.id)}if(!i)return[];var o=to(e.name||e.id),a=Ae(''+o+"");return a.addEventListener("click",(function(){n.setRootElement(i)})),a}));i.innerHTML="";var s=r.length>1;o.toggle("bjs-breadcrumbs-shown",s),r.forEach((function(e){i.appendChild(e)}))}e.on("element.changed",(function(e){var t=Sn(e.element);T(a,(function(e){return e===t}))&&s()})),e.on("root.set",(function(e){s(e.element)}))}function lo(e,t){var n=null,i=new po;e.on("root.set",(function(e){var r=e.element,o=t.viewbox(),a=i.get(r);if(i.set(n,{x:o.x,y:o.y,zoom:o.scale}),n=r,wn(r,"bpmn:SubProcess")||a){a=a||{x:0,y:0,zoom:1};var s=(o.x-a.x)*o.scale,c=(o.y-a.y)*o.scale;0===s&&0===c||t.scroll({dx:s,dy:c}),a.zoom!==o.scale&&t.zoom(a.zoom,{x:0,y:0})}})),e.on("diagram.clear",(function(){i.clear(),n=null}))}function po(){this._entries=[],this.set=function(e,t){var n=!1;for(var i in this._entries)if(this._entries[i][0]===e){this._entries[i][1]=t,n=!0;break}n||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var n in this._entries)if(this._entries[n][0]===e){t=n;break}-1!==t&&this._entries.splice(t,1)}}co.$inject=["eventBus","elementRegistry","canvas"],lo.$inject=["eventBus","canvas"];var uo=180,ho=160;function mo(e,t){this._eventBus=e,this._moddle=t;var n=this;e.on("import.render.start",1500,(function(e,t){n._handleImport(t.definitions)}))}function fo(e){return wn(e,"bpmndi:BPMNDiagram")?e:fo(e.$parent)}mo.prototype._handleImport=function(e){if(e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach((function(e){e.plane&&e.plane.bpmnElement&&(t._processToDiagramMap[e.plane.bpmnElement.id]=e)})),e.diagrams.filter((e=>e.plane)).flatMap((e=>t._createNewDiagrams(e.plane))).forEach((function(e){t._movePlaneElementsToOrigin(e.plane)}))}},mo.prototype._createNewDiagrams=function(e){var t=this,n=[],i=[];e.get("planeElement").forEach((function(t){var r=t.bpmnElement;if(r){var o=r.$parent;wn(r,"bpmn:SubProcess")&&!t.isExpanded&&n.push(r),function(e,t){var n=e.$parent;if(!wn(n,"bpmn:SubProcess")||n===t.bpmnElement)return!1;if(En(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))return!1;return!0}(r,e)&&i.push({diElement:t,parent:o})}}));var r=[];return n.forEach((function(e){if(!t._processToDiagramMap[e.id]){var n=t._createDiagram(e);t._processToDiagramMap[e.id]=n,r.push(n)}})),i.forEach((function(e){for(var i=e.diElement,r=e.parent;r&&-1===n.indexOf(r);)r=r.$parent;if(r){var o=t._processToDiagramMap[r.id];t._moveToDiPlane(i,o.plane)}})),r},mo.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),n=function(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach((function(e){if(e.bounds){var n=wr(e.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}})),Er(t)}(e),i=n.x-uo,r=n.y-ho;t.forEach((function(e){e.waypoint?e.waypoint.forEach((function(e){e.x=e.x-i,e.y=e.y-r})):e.bounds&&(e.bounds.x=e.bounds.x-i,e.bounds.y=e.bounds.y-r)}))},mo.prototype._moveToDiPlane=function(e,t){var n=fo(e).plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},mo.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),n=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=n,t.bpmnElement=e,n.$parent=this._definitions,this._definitions.diagrams.push(n),n},mo.$inject=["eventBus","moddle"];var go=250;function yo(e,t,n,i,r){Xr.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=i,this._translate=r;var o=this;this.executed("shape.toggleCollapse",go,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.reverted("shape.toggleCollapse",go,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.executed(["shape.create","shape.move","shape.delete"],go,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;o._canDrillDown(i)&&o._addOverlay(i),o._updateDrilldownOverlay(t),o._updateDrilldownOverlay(n),o._updateDrilldownOverlay(i)}),!0),this.reverted(["shape.create","shape.move","shape.delete"],go,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;o._canDrillDown(i)&&o._addOverlay(i),o._updateDrilldownOverlay(t),o._updateDrilldownOverlay(n),o._updateDrilldownOverlay(i)}),!0),t.on("import.render.complete",(function(){n.filter((function(e){return o._canDrillDown(e)})).map((function(e){o._addOverlay(e)}))}))}v(yo,Xr),yo.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this._updateOverlayVisibility(n)}},yo.prototype._canDrillDown=function(e){var t=this._canvas;return wn(e,"bpmn:SubProcess")&&t.findRoot(ro(e))},yo.prototype._updateOverlayVisibility=function(e){var t=this._overlays,n=Sn(e),i=t.get({element:n.id,type:"drilldown"})[0];if(i){var r=n&&n.get("flowElements")&&n.get("flowElements").length;ue(i.html).toggle("bjs-drilldown-empty",!r)}},yo.prototype._addOverlay=function(e){var t=this._canvas,n=this._overlays,i=Sn(e);n.get({element:e,type:"drilldown"}).length&&this._removeOverlay(e);var r=Ae(''),o=i.get("name")||i.get("id"),a=this._translate("Open {element}",{element:o});r.setAttribute("title",a),r.addEventListener("click",(function(){t.setRootElement(t.findRoot(ro(e)))})),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:r}),this._updateOverlayVisibility(e)},yo.prototype._removeOverlay=function(e){this._overlays.remove({element:e,type:"drilldown"})},yo.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const vo={__depends__:[Ur,Kr,Qr],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",co],drilldownCentering:["type",lo],drilldownOverlayBehavior:["type",yo],subprocessCompatibility:["type",mo]};function bo(e,t){this._eventBus=e,this.offset=5;var n=t.cls("djs-outline",["no-fill"]),i=this;function r(e){var t=Ge("rect");return Oe(t,Q({x:0,y:0,rx:4,width:100,height:100},n)),t}e.on(["shape.added","shape.changed"],500,(function(e){var t=e.element,n=e.gfx,o=Re(".djs-outline",n);o||Be(n,o=i.getOutline(t)||r()),i.updateShapeOutline(o,t)})),e.on(["connection.added","connection.changed"],(function(e){var t=e.element,n=e.gfx,o=Re(".djs-outline",n);o||Be(n,o=r()),i.updateConnectionOutline(o,t)}))}bo.prototype.updateShapeOutline=function(e,t){var n=!1,i=this._getProviders();i.length&&N(i,(function(i){n=n||i.updateOutline(t,e)})),n||Oe(e,{x:-this.offset,y:-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},bo.prototype.updateConnectionOutline=function(e,t){var n=Ir(t);Oe(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},bo.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("outline.getProviders",e,(function(e){e.providers.push(t)}))},bo.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},bo.prototype.getOutline=function(e){var t;return N(this._getProviders(),(function(n){P(n.getOutline)&&(t=t||n.getOutline(e))})),t},bo.$inject=["eventBus","styles","elementRegistry"];const xo={__init__:["outline"],outline:["type",bo]},_o={width:36,height:50},wo={width:50,height:50};function Eo(e,t,n){return Ge("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}function So(e,t){this._styles=t,e.registerProvider(this)}function Co(e,t){var n;return"bpmn:DataObjectReference"===t?n=_o:"bpmn:DataStoreReference"===t&&(n=wo),e.width===n.width&&e.height===n.height}So.$inject=["outline","styles"],So.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(!Kn(e))return wn(e,"bpmn:Gateway")?(Q((n=Ge("rect")).style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),Oe(n,Q({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):En(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?Oe(n=Ge("rect"),Q({x:-5,y:-5,rx:14,width:e.width+10,height:e.height+10},t)):wn(e,"bpmn:EndEvent")?Oe(n=Ge("circle"),Q({cx:e.width/2,cy:e.height/2,r:e.width/2+5+1},t)):wn(e,"bpmn:Event")?Oe(n=Ge("circle"),Q({cx:e.width/2,cy:e.height/2,r:e.width/2+5},t)):wn(e,"bpmn:DataObjectReference")&&Co(e,"bpmn:DataObjectReference")?n=Eo("M44.7648 11.3263L36.9892 2.64074C36.0451 1.58628 34.5651 0.988708 33.1904 0.988708H5.98667C3.22688 0.988708 0.989624 3.34892 0.989624 6.26039V55.0235C0.989624 57.9349 3.22688 60.2952 5.98667 60.2952H40.966C43.7257 60.2952 45.963 57.9349 45.963 55.0235V14.9459C45.963 13.5998 45.6407 12.3048 44.7648 11.3263Z",{x:-6,y:-6},t):wn(e,"bpmn:DataStoreReference")&&Co(e,"bpmn:DataStoreReference")&&(n=Eo("M1.03845 48.1347C1.03845 49.3511 1.07295 50.758 1.38342 52.064C1.69949 53.3938 2.32428 54.7154 3.56383 55.6428C6.02533 57.4841 10.1161 58.7685 14.8212 59.6067C19.5772 60.4538 25.1388 60.8738 30.6831 60.8738C36.2276 60.8738 41.7891 60.4538 46.545 59.6067C51.2504 58.7687 55.3412 57.4842 57.8028 55.6429C59.0424 54.7156 59.6673 53.3938 59.9834 52.064C60.2938 50.7579 60.3285 49.351 60.3285 48.1344V13.8415C60.3285 12.6249 60.2938 11.218 59.9834 9.91171C59.6673 8.58194 59.0423 7.2602 57.8027 6.33294C55.341 4.49168 51.2503 3.20723 46.545 2.36914C41.7891 1.522 36.2276 1.10204 30.6831 1.10205C25.1388 1.10206 19.5772 1.52206 14.8213 2.36923C10.1162 3.20734 6.02543 4.49183 3.5639 6.33314C2.32433 7.26038 1.69951 8.58206 1.38343 9.91181C1.07295 11.2179 1.03845 12.6247 1.03845 13.8411V48.1347Z",{x:-6,y:-6},t)),n},So.prototype.updateOutline=function(e,t){if(!Kn(e))return En(e,["bpmn:SubProcess","bpmn:Group"])?(Oe(t,{width:e.width+10,height:e.height+10}),!0):!!En(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};const ko={__depends__:[xo],__init__:["outlineProvider"],outlineProvider:["type",So]};function Ao(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()}function Po(e){return e.originalEvent||e.srcEvent}function Ro(e){Ao(e),Ao(Po(e))}function Mo(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function To(){return/mac/i.test(navigator.platform)}function Bo(e,t){return(Po(e)||e).button===t}function Do(e){return Bo(e,0)}function No(e){var t=Po(e)||e;return!!Do(e)&&(To()?t.metaKey:t.ctrlKey)}function Oo(e){var t=Po(e)||e;return Do(e)&&t.shiftKey}function jo(e){return!0}function Lo(e){return Do(e)||function(e){return Bo(e,1)}(e)}function Io(e,t,n){var i=this;function r(n,i,r){var o,a;(function(e,t){return!(c[e]||Do)(t)})(n,i)||(r?a=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(a=o,r=t.get(a)),a&&r&&!1===e.fire(n,{element:r,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function a(e){return o[e]}var s={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},c={"element.contextmenu":jo,"element.mousedown":Lo,"element.mouseup":Lo,"element.click":Lo,"element.dblclick":Lo};function l(e,t,n,i){var a=o[n]=function(e){r(n,e)};i&&(c[n]=i),a.$delegate=Ee.bind(e,"svg, .djs-element",t,a)}function p(e,t,n){var i=a(n);i&&Ee.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,N(s,(function(e,n){p(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,N(s,(function(e,n){l(t,n,e)}))})),e.on(["shape.added","connection.added"],(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.createHit",{element:n,gfx:i})})),e.on(["shape.changed","connection.changed"],500,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",500,(function(e){var t=e.element,n=e.gfx;i.createDefaultHit(t,n)})),e.on("interactionEvents.updateHit",(function(e){var t=e.element,n=e.gfx;i.updateDefaultHit(t,n)}));var u=m("djs-hit djs-hit-stroke"),d=m("djs-hit djs-hit-click-stroke"),h={all:m("djs-hit djs-hit-all"),"click-stroke":d,stroke:u,"no-move":m("djs-hit djs-hit-no-move")};function m(e,t){return t=Q({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function f(e,t){var n=h[t];if(!n)throw new Error("invalid hit type <"+t+">");return Oe(e,n),e}function g(e,t){Be(e,t)}this.removeHits=function(e){N(Me(".djs-hit",e),Je)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,r=e.isFrame;return i?this.createWaypointsHit(t,i):(n=r?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n=si(t);return f(n,"stroke"),g(e,n),n},this.createBoxHit=function(e,t,n){n=Q({x:0,y:0},n);var i=Ge("rect");return f(i,t),Oe(i,n),g(e,i),i},this.updateDefaultHit=function(e,t){var n=Re(".djs-hit",t);if(n)return e.waypoints?ci(n,e.waypoints):Oe(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=s[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=a,this.registerEvent=l,this.unregisterEvent=p}Io.$inject=["eventBus","elementRegistry","styles"];const $o={__init__:["interactionEvents"],interactionEvents:["type",Io]};function zo(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var n=this;e.on(["shape.remove","connection.remove"],(function(e){var t=e.element;n.deselect(t)})),e.on(["diagram.clear","root.set"],(function(e){n.select(null)}))}zo.$inject=["eventBus","canvas"],zo.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(-1!==n){var i=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})}},zo.prototype.get=function(){return this._selectedElements},zo.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},zo.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();C(e)||(e=e?[e]:[]);var r=this._canvas,o=r.getRootElement();e=e.filter((function(e){var t=r.findRoot(e);return o===t})),t?N(e,(function(e){-1===n.indexOf(e)&&n.push(e)})):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})};var Fo="hover",Ho="selected";function Vo(e,t,n){this._canvas=e;var i=this;function r(t,n){e.addMarker(t,n)}function o(t,n){e.removeMarker(t,n)}this._multiSelectionBox=null,t.on("element.hover",(function(e){r(e.element,Fo)})),t.on("element.out",(function(e){o(e.element,Fo)})),t.on("selection.changed",(function(e){var t=e.oldSelection,n=e.newSelection;N(t,(function(e){-1===n.indexOf(e)&&o(e,Ho)})),N(n,(function(e){-1===t.indexOf(e)&&r(e,Ho)})),i._updateSelectionOutline(n)})),t.on("element.changed",(function(e){n.isSelected(e.element)&&i._updateSelectionOutline(n.get())}))}function Go(e,t,n,i){e.on("create.end",500,(function(e){var n=e.context,i=n.canExecute,r=n.elements,o=(n.hints||{}).autoSelect;if(i){if(!1===o)return;C(o)?t.select(o):t.select(r.filter(Wo))}})),e.on("connect.end",500,(function(e){var n=e.context.connection;n&&t.select(n)})),e.on("shape.move.end",500,(function(e){var n=e.previousSelection||[],r=i.get(e.context.shape.id);T(n,(function(e){return r.id===e.id}))||t.select(r)})),e.on("element.click",(function(e){if(Do(e)){var i=e.element;i===n.getRootElement()&&(i=null);var r=t.isSelected(i),o=t.get().length>1,a=Oo(e);if(r&&o)return a?t.deselect(i):t.select(i);r?t.deselect(i):t.select(i,a)}}))}function Wo(e){return!e.hidden}Vo.$inject=["canvas","eventBus","selection"],Vo.prototype._updateSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");$e(t);var n=e.length>1;if(Le(this._canvas.getContainer())[n?"add":"remove"]("djs-multi-select"),n){var i=function(e){return{x:e.x-6,y:e.y-6,width:e.width+12,height:e.height+12}}(Ir(e)),r=Ge("rect");Oe(r,Q({rx:3},i)),Le(r).add("djs-selection-outline"),Be(t,r)}},Go.$inject=["eventBus","selection","canvas","elementRegistry"];const Uo={__init__:["selectionVisuals","selectionBehavior"],__depends__:[$o,xo],selection:["type",zo],selectionVisuals:["type",Vo],selectionBehavior:["type",Go]};function qo(e){Ln.call(this,e)}v(qo,Ln),qo.prototype._modules=[Br,vo,ko,Ur,Uo,Oi],qo.prototype._moddleExtensions={};var Ko=["c","C"],Xo=["v","V"],Yo=["y","Y"],Zo=["z","Z"];function Qo(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function Jo(e,t){return-1!==(e=C(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.code)}function ea(e){return e.shiftKey}var ta="keyboard.keydown",na="input-handle-modified-keys";function ia(e,t){var n=this;this._config=e||{},this._eventBus=t,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),t.on("diagram.destroy",(function(){n._fire("destroy"),n.unbind()})),t.on("diagram.init",(function(){n._fire("init")})),t.on("attach",(function(){e&&e.bindTo&&n.bind(e.bindTo)})),t.on("detach",(function(){n.unbind()}))}ia.$inject=["config.keyboard","eventBus"],ia.prototype._keydownHandler=function(e){this._keyHandler(e,ta)},ia.prototype._keyupHandler=function(e){this._keyHandler(e,"keyboard.keyup")},ia.prototype._keyHandler=function(e,t){if(!this._isEventIgnored(e)){var n={keyEvent:e};this._eventBus.fire(t||ta,n)&&e.preventDefault()}},ia.prototype._isEventIgnored=function(e){return!!e.defaultPrevented||((t=e.target)&&(Pe(t,"input, textarea")||"true"===t.contentEditable)||function(e){return e&&Pe(e,"button, input[type=submit], input[type=button], a[href], [aria-role=button]")}(e.target)&&Jo([" ","Enter"],e))&&this._isModifiedKeyIgnored(e);var t},ia.prototype._isModifiedKeyIgnored=function(e){return!Qo(e)||-1===this._getAllowedModifiers(e.target).indexOf(e.key)},ia.prototype._getAllowedModifiers=function(e){var t=me(e,"["+na+"]",!0);return!t||this._node&&!this._node.contains(t)?[]:t.getAttribute(na).split(",")},ia.prototype.bind=function(e){this.unbind(),this._node=e,xe.bind(e,"keydown",this._keydownHandler),xe.bind(e,"keyup",this._keyupHandler),this._fire("bind")},ia.prototype.getBinding=function(){return this._node},ia.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),xe.unbind(e,"keydown",this._keydownHandler),xe.unbind(e,"keyup",this._keyupHandler)),this._node=null},ia.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},ia.prototype.addListener=function(e,t,n){P(e)&&(n=t,t=e,e=1e3),this._eventBus.on(n||ta,e,t)},ia.prototype.removeListener=function(e,t){this._eventBus.off(t||ta,e)},ia.prototype.hasModifier=function(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},ia.prototype.isCmd=Qo,ia.prototype.isShift=ea,ia.prototype.isKey=Jo;function ra(e,t){var n=this;e.on("editorActions.init",500,(function(e){var i=e.editorActions;n.registerBindings(t,i)}))}ra.$inject=["eventBus","keyboard"],ra.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}n("undo",(function(e){if(function(e){return Qo(e)&&!ea(e)&&Jo(Zo,e)}(e.keyEvent))return t.trigger("undo"),!0})),n("redo",(function(e){if(function(e){return Qo(e)&&(Jo(Yo,e)||Jo(Zo,e)&&ea(e))}(e.keyEvent))return t.trigger("redo"),!0})),n("copy",(function(e){if(function(e){return Qo(e)&&Jo(Ko,e)}(e.keyEvent))return t.trigger("copy"),!0})),n("paste",(function(e){if(function(e){return Qo(e)&&Jo(Xo,e)}(e.keyEvent))return t.trigger("paste"),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(Jo(["+","Add","="],n)&&Qo(n))return t.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(Jo(["-","Subtract"],n)&&Qo(n))return t.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(e){var n=e.keyEvent;if(Jo("0",n)&&Qo(n))return t.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(e){if(Jo(["Backspace","Delete","Del"],e.keyEvent))return t.trigger("removeSelection"),!0}))};const oa={__init__:["keyboard","keyboardBindings"],keyboard:["type",ia],keyboardBindings:["type",ra]};var aa={moveSpeed:50,moveSpeedAccelerated:200};function sa(e,t,n){var i=this;this._config=Q({},aa,e||{}),t.addListener((function(e){var n=e.keyEvent,r=i._config;if(!t.isCmd(n))return;if(t.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],n)){var o,a=t.isShift(n)?r.moveSpeedAccelerated:r.moveSpeed;switch(n.key){case"ArrowLeft":case"Left":o="left";break;case"ArrowUp":case"Up":o="up";break;case"ArrowRight":case"Right":o="right";break;case"ArrowDown":case"Down":o="down"}return i.moveCanvas({speed:a,direction:o}),!0}})),this.moveCanvas=function(e){var t=0,i=0,r=e.speed/Math.min(Math.sqrt(n.viewbox().scale),1);switch(e.direction){case"left":t=r;break;case"up":i=r;break;case"right":t=-r;break;case"down":i=-r}n.scroll({dx:t,dy:i})}}sa.$inject=["config.keyboardMove","keyboard","canvas"];const ca={__depends__:[oa],__init__:["keyboardMove"],keyboardMove:["type",sa]};var la=/^djs-cursor-.*$/;function pa(e){var t=ue(document.body);t.removeMatching(la),e&&t.add("djs-cursor-"+e)}function ua(){pa(null)}function da(e,t){function n(){return!1}return t=t||"element.click",e.once(t,5e3,n),function(){e.off(t,n)}}function ha(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function ma(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fa(e,t){var n;function i(i){var r,o=n.start,a=n.button,s=Mo(i),c=ma(s,o);(!n.dragging&&(r=c,Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))>15)&&(n.dragging=!0,0===a&&da(e),pa("grab")),n.dragging)&&(c=ma(s,n.last||n.start),t.scroll({dx:c.x,dy:c.y}),n.last=s);i.preventDefault()}function r(e){xe.unbind(document,"mousemove",i),xe.unbind(document,"mouseup",r),n=null,ua()}e.on("element.mousedown",500,(function(e){return function(e){if(me(e.target,".djs-draggable"))return;var t=e.button;if(t>=2||e.ctrlKey||e.shiftKey||e.altKey)return;return n={button:t,start:Mo(e)},xe.bind(document,"mousemove",i),xe.bind(document,"mouseup",r),!0}(e.originalEvent)})),this.isActive=function(){return!!n}}fa.$inject=["eventBus","canvas"];const ga={__init__:["moveCanvas"],moveCanvas:["type",fa]};function ya(e){return Math.log(e)/Math.log(10)}function va(e,t){var n=ya(e.min),i=ya(e.max);return(Math.abs(n)+Math.abs(i))/t}var ba=Math.sign||function(e){return e>=0?1:-1},xa={min:.2,max:4};function _a(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=Z(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||.75;var i=this;t.on("canvas.init",(function(t){i._init(!1!==e.enabled)}))}_a.$inject=["config.zoomScroll","eventBus","canvas"],_a.prototype.scroll=function(e){this._canvas.scroll(e)},_a.prototype.reset=function(){this._canvas.zoom("fit-viewport")},_a.prototype.zoom=function(e,t){var n=va(xa,20);this._totalDelta+=e,Math.abs(this._totalDelta)>.1&&(this._zoom(e,t,n),this._totalDelta=0)},_a.prototype._handleWheel=function(e){if(!me(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,i=e.ctrlKey||To()&&e.metaKey,r=e.shiftKey,o=-1*this._scale;if(o*=i?0===e.deltaMode?.02:.32:0===e.deltaMode?1:16,i){var a=t.getBoundingClientRect(),s={x:e.clientX-a.left,y:e.clientY-a.top};n=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*ba(e.deltaY)*o,this.zoom(n,s)}else n=r?{dx:o*e.deltaY,dy:0}:{dx:o*e.deltaX,dy:o*e.deltaY},this.scroll(n)}},_a.prototype.stepZoom=function(e,t){var n=va(xa,10);this._zoom(e,t,n)},_a.prototype._zoom=function(e,t,n){var i=this._canvas,r=e>0?1:-1,o=ya(i.zoom()),a=Math.round(o/n)*n;a+=n*r;var s,c,l=Math.pow(10,a);i.zoom((s=xa,c=l,Math.max(s.min,Math.min(s.max,c))),t)},_a.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,i=this._enabled;return void 0===e&&(e=!i),i!==e&&xe[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e,e},_a.prototype._init=function(e){this.toggle(e)};const wa={__init__:["zoomScroll"],zoomScroll:["type",_a]};function Ea(e){qo.call(this,e)}function Sa(e){return e&&e[e.length-1]}function Ca(e){return e.y}function ka(e){return e.x}v(Ea,qo),Ea.prototype._navigationModules=[ca,ga,wa],Ea.prototype._modules=[].concat(qo.prototype._modules,Ea.prototype._navigationModules);var Aa={left:ka,center:ka,right:function(e){return e.x+e.width},top:Ca,middle:Ca,bottom:function(e){return e.y+e.height}};function Pa(e,t){this._modeling=e,this._rules=t}Pa.$inject=["modeling","rules"],Pa.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},Pa.prototype._isType=function(e,t){return-1!==t.indexOf(e)},Pa.prototype._alignmentPosition=function(e,t){var n,i,r,o,a,s=this._getOrientationDetails(e),c=s.axis,l=s.dimension,p={},u={},d=!1;if(this._isType(e,["left","top"]))p[e]=t[0][c];else if(this._isType(e,["right","bottom"]))r=Sa(t),p[e]=r[c]+r[l];else if(this._isType(e,["center","middle"])){if(N(t,(function(e){var t=e[c]+Math.round(e[l]/2);u[t]?u[t].elements.push(e):u[t]={elements:[e],center:t}})),n=W(u,(function(e){return e.elements.length>1&&(d=!0),e.elements.length})),d)return p[e]=Sa(n).center,p;i=t[0],r=Sa(t=W(t,(function(e){return e[c]+e[l]}))),p[e]=(o=i,a=r,Math.round((o[c]+a[c]+a[l])/2))}return p},Pa.prototype.trigger=function(e,t){var n,i=this._modeling,r=D(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(C(n=this._rules.allowed("elements.align",{elements:r}))&&(r=n),!(r.length<2)&&n){var o=W(r,Aa[t]),a=this._alignmentPosition(t,o);i.alignElements(o,a)}};const Ra={__init__:["alignElements"],alignElements:["type",Pa]},Ma=new zr;function Ta(e){this._scheduled={},e.on("diagram.destroy",(()=>{Object.keys(this._scheduled).forEach((e=>{this.cancel(e)}))}))}Ta.$inject=["eventBus"],Ta.prototype.schedule=function(e,t=Ma.next()){this.cancel(t);const n=this._schedule(e,t);return this._scheduled[t]=n,n.promise},Ta.prototype._schedule=function(e,t){const{promise:n,resolve:i,reject:r}=function(){let e,t;const n=new Promise(((n,i)=>{e=n,t=i}));return{promise:n,resolve:e,reject:t}}();return{executionId:requestAnimationFrame((()=>{try{i(e())}catch(t){r(t)}})),promise:n}},Ta.prototype.cancel=function(e){const t=this._scheduled[e];t&&(this._cancel(t),this._scheduled[e]=null)},Ta.prototype._cancel=function(e){cancelAnimationFrame(e.executionId)};const Ba={scheduler:["type",Ta]};var Da=".entry";function Na(e,t,n,i){this._canvas=e,this._elementRegistry=t,this._eventBus=n,this._scheduler=i,this._current=null,this._init()}Na.$inject=["canvas","elementRegistry","eventBus","scheduler"],Na.prototype._init=function(){var e=this;this._eventBus.on("selection.changed",(function(t){var n=t.newSelection,i=n.length?1===n.length?n[0]:n:null;i?e.open(i,!0):e.close()})),this._eventBus.on("elements.changed",(function(t){var n=t.elements,i=e._current;if(i){var r=i.target,o=C(r)?r:[r];if(o.filter((function(e){return n.includes(e)})).length){e.close();var a=o.filter((function(t){return e._elementRegistry.get(t.id)}));a.length&&e._updateAndOpen(a.length>1?a:a[0])}}})),this._eventBus.on("canvas.viewbox.changed",(function(){e._updatePosition()})),this._eventBus.on("element.marker.update",(function(t){if(e.isOpen()){var n=t.element,i=e._current;(C(i.target)?i.target:[i.target]).includes(n)&&e._updateVisibility()}})),this._container=this._createContainer()},Na.prototype._createContainer=function(){var e=Ae('');return this._canvas.getContainer().appendChild(e),e},Na.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},Na.prototype.getEntries=function(e){var t=this._getProviders(),n=C(e)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return N(t,(function(t){if(P(t[n])){var r=t[n](e);P(r)?i=r(i):N(r,(function(e,t){i[t]=e}))}})),i},Na.prototype.trigger=function(e,t,n){var i,r,o=this,a=t.delegateTarget||t.target;return a?(i=le(a,"data-action"),r=t.originalEvent||t,"mouseover"!==e?"mouseout"===e?(clearTimeout(this._timeout),void(this._mouseout&&(this._mouseout(),this._mouseout=null))):this.triggerEntry(i,e,r,n):void(this._timeout=setTimeout((function(){o._mouseout=o.triggerEntry(i,"hover",r,n)}),300))):t.preventDefault()},Na.prototype.triggerEntry=function(e,t,n,i){if(this.isShown()){var r=this._current.target,o=this._current.entries[e];if(o){var a=o.action;if(!1!==this._eventBus.fire("contextPad.trigger",{entry:o,event:n})){if(P(a)){if("click"===t)return a(n,r,i)}else if(a[t])return a[t](n,r,i);n.preventDefault()}}}},Na.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},Na.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Na.prototype._updateAndOpen=function(e){var t,n=this.getEntries(e),i=this._createHtml(e);N(n,(function(e,n){var r,o,a,s,c=e.group||"default",l=Ae(e.html||'');le(l,"data-action",n),(r=Re("[data-group="+Jr(c)+"]",i))||(le(r=Ae(''),"data-group",c),i.appendChild(r)),r.appendChild(l),e.className&&(o=l,a=e.className,s=ue(o),(a=C(a)?a:a.split(/\s+/g)).forEach((function(e){s.add(e)}))),e.title&&le(l,"title",e.title),e.imageUrl&&(le(t=Ae(""),"src",e.imageUrl),t.style.width="100%",t.style.height="100%",l.appendChild(t))})),ue(i).add("open"),this._current={entries:n,html:i,target:e},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})},Na.prototype._createHtml=function(e){var t=this,n=Ae('');return Ee.bind(n,Da,"click",(function(e){t.trigger("click",e)})),Ee.bind(n,Da,"dragstart",(function(e){t.trigger("dragstart",e)})),Ee.bind(n,Da,"mouseover",(function(e){t.trigger("mouseover",e)})),Ee.bind(n,Da,"mouseout",(function(e){t.trigger("mouseout",e)})),xe.bind(n,"mousedown",(function(e){e.stopPropagation()})),this._container.appendChild(n),this._eventBus.fire("contextPad.create",{target:e,pad:n}),n},Na.prototype.getPad=function(e){let t;return t=this.isOpen()&&function(e,t){return e=C(e)?e:[e],t=C(t)?t:[t],e.length===t.length&&L(e,(function(e){return t.includes(e)}))}(this._current.target,e)?this._current.html:this._createHtml(e),{html:t}},Na.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},Na.prototype.isOpen=function(e){var t=this._current;if(!t)return!1;if(!e)return!0;var n=t.target;return C(e)===C(n)&&(C(e)?e.length===n.length&&L(e,(function(e){return n.includes(e)})):n===e)},Na.prototype.isShown=function(){return this.isOpen()&&ue(this._current.html).has("open")},Na.prototype.show=function(){this.isOpen()&&(ue(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))},Na.prototype.hide=function(){this.isOpen()&&(ue(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))},Na.prototype._getPosition=function(e){if(!C(e)&&qn(e)){var t=this._canvas.viewbox(),n=(o=e).waypoints[o.waypoints.length-1],i=n.x*t.scale-t.x*t.scale,r=n.y*t.scale-t.y*t.scale;return{left:i+8*this._canvas.zoom(),top:r}}var o,a=this._canvas.getContainer().getBoundingClientRect(),s=this._getTargetBounds(e);return{left:s.right-a.left+8*this._canvas.zoom(),top:s.top-a.top}},Na.prototype._updatePosition=function(){this._scheduler.schedule((()=>{if(this.isOpen()){var e=this._current.html,t=this._getPosition(this._current.target);"x"in t&&"y"in t?(e.style.left=t.x+"px",e.style.top=t.y+"px"):["top","right","bottom","left"].forEach((function(n){n in t&&(e.style[n]=t[n]+"px")}))}}),"ContextPad#_updatePosition")},Na.prototype._updateVisibility=function(){this._scheduler.schedule((()=>{if(this.isOpen()){var e=this,t=this._current.target;(C(t)?t:[t]).some((function(t){return e._canvas.hasMarker(t,"djs-element-hidden")}))?e.hide():e.show()}}),"ContextPad#_updateVisibility")},Na.prototype._getTargetBounds=function(e){var t=this;return(C(e)?e:[e]).map((function(e){return t._canvas.getGraphics(e)})).reduce((function(e,t){const n=t.getBoundingClientRect();return e.top=Math.min(e.top,n.top),e.right=Math.max(e.right,n.right),e.bottom=Math.max(e.bottom,n.bottom),e.left=Math.min(e.left,n.left),e.x=e.left,e.y=e.top,e.width=e.right-e.left,e.height=e.bottom-e.top,e}),{top:1/0,right:-1/0,bottom:-1/0,left:1/0})};const Oa={__depends__:[$o,Ba,Ur],contextPad:["type",Na]};var ja,La,Ia,$a,za,Fa,Ha,Va,Ga,Wa,Ua={},qa=[],Ka=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xa=Array.isArray;function Ya(e,t){for(var n in t)e[n]=t[n];return e}function Za(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Qa(e,t,n){var i,r,o,a={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ja.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return Ja(e,a,i,r,null)}function Ja(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++Ia:r,__i:-1,__u:0};return null==r&&null!=La.vnode&&La.vnode(o),o}function es(e){return e.children}function ts(e,t){this.props=e,this.context=t}function ns(e,t){if(null==t)return e.__?ns(e.__,e.__i+1):null;for(var n;tt&&$a.sort(Ha));os.__r=0}function as(e,t,n,i,r,o,a,s,c,l,p){var u,d,h,m,f,g=i&&i.__k||qa,y=t.length;for(n.__d=c,function(e,t,n){var i,r,o,a,s,c=t.length,l=n.length,p=l,u=0;for(e.__k=[],i=0;i0?Ja(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=e,r.__b=e.__b+1,o=null,-1!==(s=r.__i=cs(r,n,a,p))&&(p--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&u--,"function"!=typeof r.type&&(r.__u|=65536)):s!==a&&(s==a-1?u--:s==a+1?u++:(s>a?u--:u++,r.__u|=65536))):r=e.__k[i]=null;if(p)for(i=0;i(null==c||131072&c.__u?0:1))for(;a>=0||s=0){if((c=t[a])&&!(131072&c.__u)&&r==c.key&&o===c.type)return a;a--}if(s=5&&((r||!e&&5===i)&&(a.push(i,0,r,n),i=6),e&&(a.push(i,e,0,n),i=6)),r=""},c=0;c"===t?(i=1,r=""):r=t+r[0]:o?t===o?o="":r+=t:'"'===t||"'"===t?o=t:">"===t?(s(),i=1):i&&("="===t?(i=5,n=r,r=""):"/"===t&&(i<5||">"===e[c][l+1])?(s(),3===i&&(a=a[0]),i=a,(a=a[0]).push(2,0,i),i=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(s(),i=2):r+=t),3===i&&"!--"===r&&(i=4,a=a[0])}return s(),a}(e)),t),arguments,[])).length>1?t:t[0]}.bind(Qa),Cs=0,ks=[],As=La,Ps=As.__b,Rs=As.__r,Ms=As.diffed,Ts=As.__c,Bs=As.unmount,Ds=As.__;function Ns(e,t){As.__h&&As.__h(_s,e,Cs||t),Cs=0;var n=_s.__H||(_s.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Os(e){return Cs=1,function(e,t){var n=Ns(xs++,2);if(n.t=e,!n.__c&&(n.__=[qs(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],i=n.t(t,e);t!==i&&(n.__N=[i,n.__[1]],n.__c.setState({}))}],n.__c=_s,!_s.u)){var i=function(e,t,i){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!r||r.call(this,e,t,i);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&n.__c.props===e)&&(!r||r.call(this,e,t,i))};_s.u=!0;var r=_s.shouldComponentUpdate,o=_s.componentWillUpdate;_s.componentWillUpdate=function(e,t,n){if(this.__e){var a=r;r=void 0,i(e,t,n),r=a}o&&o.call(this,e,t,n)},_s.shouldComponentUpdate=i}return n.__N||n.__}(qs,e)}function js(e,t){var n=Ns(xs++,3);!As.__s&&Us(n.__H,t)&&(n.__=e,n.i=t,_s.__H.__h.push(n))}function Ls(e,t){var n=Ns(xs++,4);!As.__s&&Us(n.__H,t)&&(n.__=e,n.i=t,_s.__h.push(n))}function Is(e){return Cs=5,$s((function(){return{current:e}}),[])}function $s(e,t){var n=Ns(xs++,7);return Us(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function zs(e,t){return Cs=8,$s((function(){return e}),t)}function Fs(){for(var e;e=ks.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Gs),e.__H.__h.forEach(Ws),e.__H.__h=[]}catch(t){e.__H.__h=[],As.__e(t,e.__v)}}As.__b=function(e){_s=null,Ps&&Ps(e)},As.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ds&&Ds(e,t)},As.__r=function(e){Rs&&Rs(e),xs=0;var t=(_s=e.__c).__H;t&&(ws===_s?(t.__h=[],_s.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Gs),t.__h.forEach(Ws),t.__h=[],xs=0)),ws=_s},As.diffed=function(e){Ms&&Ms(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ks.push(t)&&Es===As.requestAnimationFrame||((Es=As.requestAnimationFrame)||Vs)(Fs)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),ws=_s=null},As.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Gs),e.__h=e.__h.filter((function(e){return!e.__||Ws(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],As.__e(n,e.__v)}})),Ts&&Ts(e,t)},As.unmount=function(e){Bs&&Bs(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Gs(e)}catch(n){t=n}})),n.__H=void 0,t&&As.__e(t,n.__v))};var Hs="function"==typeof requestAnimationFrame;function Vs(e){var t,n=function(){clearTimeout(i),Hs&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);Hs&&(t=requestAnimationFrame(n))}function Gs(e){var t=_s,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),_s=t}function Ws(e){var t=_s;e.__c=e.__(),_s=t}function Us(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function qs(e,t){return"function"==typeof t?t(e):t}function Ks(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;tt.reduce(((e,t)=>{const n=t.group||"default",i=e.find((e=>e.id===n));return i?i.entries.push(t):e.push({id:n,entries:[t]}),e}),[])),[t]);return Ss`