From 1090e61c7a1621764b76a78b13d3b5697824601b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=81=E5=8C=A0=E5=90=9B?= Date: Sun, 19 May 2024 13:31:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(v3.3.0.0-rc5):=20=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 18 +- packages/ui/container/herodotus/ui.yml | 2 +- packages/ui/package.json | 6 +- pnpm-lock.yaml | 599 ++++++++++++------------- shared/bpmn-designer/dist/index.es.mjs | 380 ++++++++-------- shared/bpmn-designer/dist/index.umd.js | 2 +- shared/bpmn-designer/package.json | 2 +- shared/components/package.json | 8 +- shared/form-designer/package.json | 2 +- 9 files changed, 507 insertions(+), 512 deletions(-) diff --git a/package.json b/package.json index 3fc5a6db..0089a2eb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "herodotus-cloud-ui", "private": true, - "version": "3.3.0.0-RC4", + "version": "3.3.0.0-RC5", "type": "module", "scripts": { "preinstall": "npx only-allow pnpm", @@ -32,24 +32,24 @@ "pinia": "^2.1.7", "pinia-plugin-persistedstate": "^3.2.1", "qs": "^6.12.1", - "quasar": "^2.16.2", + "quasar": "^2.16.4", "vue": "^3.4.27", "vue-i18n": "^9.13.1" }, "devDependencies": { - "@changesets/cli": "^2.27.1", + "@changesets/cli": "^2.27.2", "@quasar/vite-plugin": "^1.7.0", "@types/lodash-es": "^4.17.12", - "@types/node": "^20.12.11", + "@types/node": "^20.12.12", "@types/qs": "^6.9.15", - "@typescript-eslint/eslint-plugin": "^7.8.0", - "@typescript-eslint/parser": "^7.8.0", + "@typescript-eslint/eslint-plugin": "^7.9.0", + "@typescript-eslint/parser": "^7.9.0", "@vitejs/plugin-vue": "^5.0.4", "commitizen": "^4.3.0", "cross-env": "^7.0.3", "cz-conventional-changelog": "^3.3.0", "dotenv": "^16.4.5", - "eslint": "^9.2.0", + "eslint": "^9.3.0", "eslint-config-prettier": "^9.1.0", "eslint-define-config": "^2.1.0", "eslint-plugin-prettier": "^5.1.3", @@ -62,7 +62,7 @@ "prettier": "^3.2.5", "rollup": "4.17.2", "rollup-plugin-visualizer": "^5.12.0", - "sass": "^1.77.1", + "sass": "^1.77.2", "stylelint": "^16.5.0", "stylelint-config-recess-order": "^5.0.1", "stylelint-config-recommended-vue": "^1.5.0", @@ -77,6 +77,6 @@ "vite-plugin-dts": "3.9.1", "vite-plugin-html": "^3.2.2", "vite-plugin-node-polyfills": "^0.21.0", - "vue-tsc": "^2.0.17" + "vue-tsc": "^2.0.19" } } diff --git a/packages/ui/container/herodotus/ui.yml b/packages/ui/container/herodotus/ui.yml index 7339dc90..a966d2f9 100644 --- a/packages/ui/container/herodotus/ui.yml +++ b/packages/ui/container/herodotus/ui.yml @@ -1,7 +1,7 @@ version: '3.9' services: ui: - image: herodotus-cloud-ui:3.3.0.0-RC4 + image: herodotus-cloud-ui:3.3.0.0-RC5 build: context: ../context dockerfile: Dockerfile diff --git a/packages/ui/package.json b/packages/ui/package.json index 8f7cbdb9..2dc87973 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@dante/ui", - "version": "3.3.0.0-RC4", + "version": "3.3.0.0-RC5", "description": "", "keywords": [], "author": "", @@ -40,10 +40,10 @@ "vue-cookies": "^1.8.4", "vue-i18n": "^9.13.1", "vue-router": "^4.3.2", - "vue-simple-uploader": "^1.0.2", + "vue-simple-uploader": "^1.0.3", "xlsx": "^0.18.5" }, "devDependencies": { - "@types/node": "20.12.11" + "@types/node": "20.12.12" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c300c9f..1bcc2363 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,8 @@ importers: specifier: ^6.12.1 version: 6.12.1 quasar: - specifier: ^2.16.2 - version: 2.16.2 + specifier: ^2.16.4 + version: 2.16.4 vue: specifier: ^3.4.27 version: 3.4.27(typescript@5.4.5) @@ -34,59 +34,59 @@ importers: version: 9.13.1(vue@3.4.27(typescript@5.4.5)) devDependencies: '@changesets/cli': - specifier: ^2.27.1 - version: 2.27.1 + specifier: ^2.27.2 + version: 2.27.2 '@quasar/vite-plugin': specifier: ^1.7.0 - version: 1.7.0(@vitejs/plugin-vue@5.0.4(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)))(quasar@2.16.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) + version: 1.7.0(@vitejs/plugin-vue@5.0.4(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)))(quasar@2.16.4)(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) '@types/lodash-es': specifier: ^4.17.12 version: 4.17.12 '@types/node': - specifier: ^20.12.11 - version: 20.12.11 + specifier: ^20.12.12 + version: 20.12.12 '@types/qs': specifier: ^6.9.15 version: 6.9.15 '@typescript-eslint/eslint-plugin': - specifier: ^7.8.0 - version: 7.8.0(@typescript-eslint/parser@7.8.0(eslint@9.2.0)(typescript@5.4.5))(eslint@9.2.0)(typescript@5.4.5) + specifier: ^7.9.0 + version: 7.9.0(@typescript-eslint/parser@7.9.0(eslint@9.3.0)(typescript@5.4.5))(eslint@9.3.0)(typescript@5.4.5) '@typescript-eslint/parser': - specifier: ^7.8.0 - version: 7.8.0(eslint@9.2.0)(typescript@5.4.5) + specifier: ^7.9.0 + version: 7.9.0(eslint@9.3.0)(typescript@5.4.5) '@vitejs/plugin-vue': specifier: ^5.0.4 - version: 5.0.4(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) + version: 5.0.4(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) commitizen: specifier: ^4.3.0 - version: 4.3.0(@types/node@20.12.11)(typescript@5.4.5) + version: 4.3.0(@types/node@20.12.12)(typescript@5.4.5) cross-env: specifier: ^7.0.3 version: 7.0.3 cz-conventional-changelog: specifier: ^3.3.0 - version: 3.3.0(@types/node@20.12.11)(typescript@5.4.5) + version: 3.3.0(@types/node@20.12.12)(typescript@5.4.5) dotenv: specifier: ^16.4.5 version: 16.4.5 eslint: - specifier: ^9.2.0 - version: 9.2.0 + specifier: ^9.3.0 + version: 9.3.0 eslint-config-prettier: specifier: ^9.1.0 - version: 9.1.0(eslint@9.2.0) + version: 9.1.0(eslint@9.3.0) eslint-define-config: specifier: ^2.1.0 version: 2.1.0 eslint-plugin-prettier: specifier: ^5.1.3 - version: 5.1.3(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.2.0))(eslint@9.2.0)(prettier@3.2.5) + version: 5.1.3(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.3.0))(eslint@9.3.0)(prettier@3.2.5) eslint-plugin-quasar: specifier: ^1.1.0 version: 1.1.0 eslint-plugin-vue: specifier: ^9.26.0 - version: 9.26.0(eslint@9.2.0) + version: 9.26.0(eslint@9.3.0) husky: specifier: ^9.0.11 version: 9.0.11 @@ -109,8 +109,8 @@ importers: specifier: ^5.12.0 version: 5.12.0(rollup@4.17.2) sass: - specifier: ^1.77.1 - version: 1.77.1 + specifier: ^1.77.2 + version: 1.77.2 stylelint: specifier: ^16.5.0 version: 16.5.0(typescript@5.4.5) @@ -140,22 +140,22 @@ importers: version: 0.27.0(@babel/parser@7.24.5)(rollup@4.17.2)(vue@3.4.27(typescript@5.4.5)) vite: specifier: ^5.2.11 - version: 5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0) + version: 5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0) vite-plugin-compression: specifier: ^0.5.1 - version: 0.5.1(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + version: 0.5.1(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0)) vite-plugin-dts: specifier: 3.9.1 - version: 3.9.1(@types/node@20.12.11)(rollup@4.17.2)(typescript@5.4.5)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + version: 3.9.1(@types/node@20.12.12)(rollup@4.17.2)(typescript@5.4.5)(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0)) vite-plugin-html: specifier: ^3.2.2 - version: 3.2.2(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + version: 3.2.2(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0)) vite-plugin-node-polyfills: specifier: ^0.21.0 - version: 0.21.0(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + version: 0.21.0(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0)) vue-tsc: - specifier: ^2.0.17 - version: 2.0.17(typescript@5.4.5) + specifier: ^2.0.19 + version: 2.0.19(typescript@5.4.5) packages/ui: dependencies: @@ -241,15 +241,15 @@ importers: specifier: ^4.3.2 version: 4.3.2(vue@3.4.27(typescript@5.4.5)) vue-simple-uploader: - specifier: ^1.0.2 - version: 1.0.2(vue@3.4.27(typescript@5.4.5)) + specifier: ^1.0.3 + version: 1.0.3(vue@3.4.27(typescript@5.4.5)) xlsx: specifier: ^0.18.5 version: 0.18.5 devDependencies: '@types/node': - specifier: 20.12.11 - version: 20.12.11 + specifier: 20.12.12 + version: 20.12.12 shared/apis: dependencies: @@ -335,8 +335,8 @@ importers: specifier: ^2.1.7 version: 2.1.7(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5)) preact: - specifier: ^10.21.0 - version: 10.21.0 + specifier: ^10.22.0 + version: 10.22.0 vue: specifier: ^3.4.27 version: 3.4.27(typescript@5.4.5) @@ -357,17 +357,17 @@ importers: specifier: ^7.4.47 version: 7.4.47 '@tsparticles/basic': - specifier: ^3.3.0 - version: 3.3.0 + specifier: ^3.4.0 + version: 3.4.0 '@tsparticles/engine': - specifier: ^3.3.0 - version: 3.3.0 + specifier: ^3.4.0 + version: 3.4.0 '@tsparticles/interaction-particles-links': - specifier: ^3.3.0 - version: 3.3.0 + specifier: ^3.4.0 + version: 3.4.0 quasar: - specifier: ^2.16.2 - version: 2.16.2 + specifier: ^2.16.4 + version: 2.16.4 shared/core: dependencies: @@ -424,8 +424,8 @@ importers: specifier: workspace:^ version: link:../form-engine quasar: - specifier: ^2.16.2 - version: 2.16.2 + specifier: ^2.16.4 + version: 2.16.4 vue: specifier: ^3.4.27 version: 3.4.27(typescript@5.4.5) @@ -503,8 +503,8 @@ packages: '@bpmn-io/extract-process-variables@0.8.0': resolution: {integrity: sha512-yAS7ZYX+D56K+luC36u96eRMLb4VHcPUwTUqMZ/Z/Je2gou2DJLRbuBTHAB4jjKt4wFCHSG4B8Y+TrBciEYf4w==, tarball: https://registry.npmmirror.com/@bpmn-io/extract-process-variables/-/extract-process-variables-0.8.0.tgz} - '@bpmn-io/feel-editor@1.3.0': - resolution: {integrity: sha512-FuNEICeLuRHFWM7OQ0iBMXhd/iuzitbdSQlOfr0DqswVDsVUq24vV/ZTM1UnjdPp4J2gwhMuYi6a2LaiVNzRKQ==, tarball: https://registry.npmmirror.com/@bpmn-io/feel-editor/-/feel-editor-1.3.0.tgz} + '@bpmn-io/feel-editor@1.4.0': + resolution: {integrity: sha512-xfkvacymlQhS45Y4HF5PKmN0O1VMp5KDzBps4JSKEfNfIFEcvpAbOwYcXSmg3nqv6s+Rdyor4lPLgwiA+bqC8Q==, tarball: https://registry.npmmirror.com/@bpmn-io/feel-editor/-/feel-editor-1.4.0.tgz} engines: {node: '>= 16'} '@bpmn-io/feel-lint@1.2.0': @@ -516,8 +516,8 @@ packages: '@bpmn-io/properties-panel@3.18.2': resolution: {integrity: sha512-IQ6NUZ4McSmr6KLyptnhnKxBind5Oz+FSZ5u8MJX/s/10RRj+RIVYCBS2UnfCKHZCE9YMWTdCHdA7XQ4lIjuzw==, tarball: https://registry.npmmirror.com/@bpmn-io/properties-panel/-/properties-panel-3.18.2.tgz} - '@changesets/apply-release-plan@7.0.0': - resolution: {integrity: sha512-vfi69JR416qC9hWmFGSxj7N6wA5J222XNBmezSVATPWDVPIF7gkd4d8CpbEbXmRWbVrkoli3oerGS6dcL/BGsQ==, tarball: https://registry.npmmirror.com/@changesets/apply-release-plan/-/apply-release-plan-7.0.0.tgz} + '@changesets/apply-release-plan@7.0.1': + resolution: {integrity: sha512-aPdSq/R++HOyfEeBGjEe6LNG8gs0KMSyRETD/J2092OkNq8mOioAxyKjMbvVUdzgr/HTawzMOz7lfw339KnsCA==, tarball: https://registry.npmmirror.com/@changesets/apply-release-plan/-/apply-release-plan-7.0.1.tgz} '@changesets/assemble-release-plan@6.0.0': resolution: {integrity: sha512-4QG7NuisAjisbW4hkLCmGW2lRYdPrKzro+fCtZaILX+3zdUELSvYjpL4GTv0E4aM9Mef3PuIQp89VmHJ4y2bfw==, tarball: https://registry.npmmirror.com/@changesets/assemble-release-plan/-/assemble-release-plan-6.0.0.tgz} @@ -525,8 +525,8 @@ packages: '@changesets/changelog-git@0.2.0': resolution: {integrity: sha512-bHOx97iFI4OClIT35Lok3sJAwM31VbUM++gnMBV16fdbtBhgYu4dxsphBF/0AZZsyAHMrnM0yFcj5gZM1py6uQ==, tarball: https://registry.npmmirror.com/@changesets/changelog-git/-/changelog-git-0.2.0.tgz} - '@changesets/cli@2.27.1': - resolution: {integrity: sha512-iJ91xlvRnnrJnELTp4eJJEOPjgpF3NOh4qeQehM6Ugiz9gJPRZ2t+TsXun6E3AMN4hScZKjqVXl0TX+C7AB3ZQ==, tarball: https://registry.npmmirror.com/@changesets/cli/-/cli-2.27.1.tgz} + '@changesets/cli@2.27.2': + resolution: {integrity: sha512-6/kADjKMOrlLwNr/Y5HAq7T9oGOA2Lq5A59AGtwQCCiXuSGp4EgszzdJFeBiF8pdz7Wn1HaLzSUBhAaNToEJqg==, tarball: https://registry.npmmirror.com/@changesets/cli/-/cli-2.27.2.tgz} hasBin: true '@changesets/config@3.0.0': @@ -565,8 +565,8 @@ packages: '@changesets/types@6.0.0': resolution: {integrity: sha512-b1UkfNulgKoWfqyHtzKS5fOZYSJO+77adgL7DLRDr+/7jhChN+QcHnbjiQVOz/U+Ts3PGNySq7diAItzDgugfQ==, tarball: https://registry.npmmirror.com/@changesets/types/-/types-6.0.0.tgz} - '@changesets/write@0.3.0': - resolution: {integrity: sha512-slGLb21fxZVUYbyea+94uFiD6ntQW0M2hIKNznFizDhZPDgn2c/fv1UzzlW43RVzh1BEDuIqW6hzlJ1OflNmcw==, tarball: https://registry.npmmirror.com/@changesets/write/-/write-0.3.0.tgz} + '@changesets/write@0.3.1': + resolution: {integrity: sha512-SyGtMXzH3qFqlHKcvFY2eX+6b0NGiFcNav8AFsYwy5l8hejOeoeTDemu5Yjmke2V5jpzY+pBvM0vCCQ3gdZpfw==, tarball: https://registry.npmmirror.com/@changesets/write/-/write-0.3.1.tgz} '@codemirror/autocomplete@6.16.0': resolution: {integrity: sha512-P/LeCTtZHRTCU4xQsa89vSKWecYv1ZqwzOd5topheGRf+qtacFgBeIMQi3eL8Kt/BUNvxUWkx+5qP2jlGoARrg==, tarball: https://registry.npmmirror.com/@codemirror/autocomplete/-/autocomplete-6.16.0.tgz} @@ -582,8 +582,8 @@ packages: '@codemirror/language@6.10.1': resolution: {integrity: sha512-5GrXzrhq6k+gL5fjkAwt90nYDmjlzTIJV8THnxNFtNKWotMIlzzN+CpqxqwXOECnUdOndmSeWntVrVcv5axWRQ==, tarball: https://registry.npmmirror.com/@codemirror/language/-/language-6.10.1.tgz} - '@codemirror/lint@6.7.0': - resolution: {integrity: sha512-LTLOL2nT41ADNSCCCCw8Q/UmdAFzB23OUYSjsHTdsVaH0XEo+orhuqbDNWzrzodm14w6FOxqxpmy4LF8Lixqjw==, tarball: https://registry.npmmirror.com/@codemirror/lint/-/lint-6.7.0.tgz} + '@codemirror/lint@6.7.1': + resolution: {integrity: sha512-rELba6QJD20/bNXWP/cKTGLrwVEcpa2ViwULCV03ONcY1Je85++7sczVRUlnE4TJMjatx3IJTz6HX4NXi+moXw==, tarball: https://registry.npmmirror.com/@codemirror/lint/-/lint-6.7.1.tgz} '@codemirror/state@6.4.1': resolution: {integrity: sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==, tarball: https://registry.npmmirror.com/@codemirror/state/-/state-6.4.1.tgz} @@ -628,8 +628,8 @@ packages: '@csstools/css-parser-algorithms': ^2.6.3 '@csstools/css-tokenizer': ^2.3.1 - '@csstools/selector-specificity@3.1.0': - resolution: {integrity: sha512-tGDFEHZ4XJeIt5NF7/nAfLGqPckmDZSnYne5gl67p4agQolE5s4rofdQ3e+VkeukfR91lVtSQ/Jt9DqM1ICiIQ==, tarball: https://registry.npmmirror.com/@csstools/selector-specificity/-/selector-specificity-3.1.0.tgz} + '@csstools/selector-specificity@3.1.1': + resolution: {integrity: sha512-a7cxGcJ2wIlMFLlh8z2ONm+715QkPHiyJcxwQlKOz/03GPw1COpfhcmC9wm4xlZfp//jWHNNMwzjtqHXVWU9KA==, tarball: https://registry.npmmirror.com/@csstools/selector-specificity/-/selector-specificity-3.1.1.tgz} engines: {node: ^14 || ^16 || >=18} peerDependencies: postcss-selector-parser: ^6.0.13 @@ -785,12 +785,12 @@ packages: resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==, tarball: https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint/eslintrc@3.0.2': - resolution: {integrity: sha512-wV19ZEGEMAC1eHgrS7UQPqsdEiCIbTKTasEfcXAigzoXICcqZSjBZEHlZwNVvKg6UBCjSlos84XiLqsRJnIcIg==, tarball: https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-3.0.2.tgz} + '@eslint/eslintrc@3.1.0': + resolution: {integrity: sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==, tarball: https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-3.1.0.tgz} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.2.0': - resolution: {integrity: sha512-ESiIudvhoYni+MdsI8oD7skpprZ89qKocwRM2KEvhhBJ9nl5MRh7BXU5GTod7Mdygq+AUl+QzId6iWJKR/wABA==, tarball: https://registry.npmmirror.com/@eslint/js/-/js-9.2.0.tgz} + '@eslint/js@9.3.0': + resolution: {integrity: sha512-niBqk8iwv96+yuTwjM6bWg8ovzAPF9qkICsGtcoa5/dmqcEMfdwNAX7+/OHcJHc7wj7XqPxH98oAHytFYlw6Sw==, tarball: https://registry.npmmirror.com/@eslint/js/-/js-9.3.0.tgz} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@highlightjs/vue-plugin@2.1.0': @@ -810,8 +810,8 @@ packages: '@humanwhocodes/object-schema@2.0.3': resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==, tarball: https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz} - '@humanwhocodes/retry@0.2.4': - resolution: {integrity: sha512-Ttl/jHpxfS3st5sxwICYfk4pOH0WrLI1SpW283GgQL7sCWU7EHIOhX4b4fkIxr3tkfzwg8+FNojtzsIEE7Ecgg==, tarball: https://registry.npmmirror.com/@humanwhocodes/retry/-/retry-0.2.4.tgz} + '@humanwhocodes/retry@0.3.0': + resolution: {integrity: sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==, tarball: https://registry.npmmirror.com/@humanwhocodes/retry/-/retry-0.3.0.tgz} engines: {node: '>=18.18'} '@iconify/types@2.0.0': @@ -1061,32 +1061,32 @@ packages: '@stomp/stompjs@7.0.0': resolution: {integrity: sha512-fGdq4wPDnSV/KyOsjq4P+zLc8MFWC3lMmP5FBgLWKPJTYcuCbAIrnRGjB7q2jHZdYCOD5vxLuFoKIYLy5/u8Pw==, tarball: https://registry.npmmirror.com/@stomp/stompjs/-/stompjs-7.0.0.tgz} - '@tsparticles/basic@3.3.0': - resolution: {integrity: sha512-YB6+pFnkby6hnHhDqH2Q7+Y6Zcm7RAgZLQ8gkecHQxywD0RFItpYQfxpIf82mOTZ39NoeVdH6AF3mydgxVNAMQ==, tarball: https://registry.npmmirror.com/@tsparticles/basic/-/basic-3.3.0.tgz} + '@tsparticles/basic@3.4.0': + resolution: {integrity: sha512-a0HxG0GOhXof7NDqcqdyu9XpmCAQ0M402YECz/jsH4CkBpz3ut0BrgnyjT6Xcqna3pR1Kv1m516/sV2fwNnnQw==, tarball: https://registry.npmmirror.com/@tsparticles/basic/-/basic-3.4.0.tgz} - '@tsparticles/engine@3.3.0': - resolution: {integrity: sha512-Sr24epYquTelGrUbMaknXTscib8IMQJrbmShJnEemU+wpZNIPtAh09sQgGtq1pUxrGQRUSQIgaybYuXcNgk8rg==, tarball: https://registry.npmmirror.com/@tsparticles/engine/-/engine-3.3.0.tgz} + '@tsparticles/engine@3.4.0': + resolution: {integrity: sha512-OqoMZYJCoiihNnexnnSmInEMNXr0Z8CmE1HSiFVeifgK1qUlonTFe2G09KdvNT8ZdvmIC513yTpFJNDbnMZYRQ==, tarball: https://registry.npmmirror.com/@tsparticles/engine/-/engine-3.4.0.tgz} - '@tsparticles/interaction-particles-links@3.3.0': - resolution: {integrity: sha512-m2cqciwsolCwrzPMcFOzruuCxqxEmofGoKHzPzN5XAUaCDNGj2lsfKHOSgk3orAQQZUmiYoJBr1rIFGEzIGvvg==, tarball: https://registry.npmmirror.com/@tsparticles/interaction-particles-links/-/interaction-particles-links-3.3.0.tgz} + '@tsparticles/interaction-particles-links@3.4.0': + resolution: {integrity: sha512-2UhzNsZCSF69L0PGwlJARNx3qrMdSrl5p/TgO5Q5w7iwBU1x/W27O+TDQvNdMHsOLPPUomUI+jJfRXY2snqp3Q==, tarball: https://registry.npmmirror.com/@tsparticles/interaction-particles-links/-/interaction-particles-links-3.4.0.tgz} - '@tsparticles/move-base@3.3.0': - resolution: {integrity: sha512-yxfynO0CHWYlhyXy53/HzsN8zyD+v1RX0wT9X1Wry5lgnxhJoFTAP/Pk+srgyLOdaD0WwoRjB3yA/0f/haBWkg==, tarball: https://registry.npmmirror.com/@tsparticles/move-base/-/move-base-3.3.0.tgz} + '@tsparticles/move-base@3.4.0': + resolution: {integrity: sha512-4P9CzgVN7INogAvqkg/cEA+6WKeGUAtsgljJ2rUADgNBiScW1oJZAw/004AZiOlonLRiUZujUCNS4zlAg62ZvQ==, tarball: https://registry.npmmirror.com/@tsparticles/move-base/-/move-base-3.4.0.tgz} - '@tsparticles/shape-circle@3.3.0': - resolution: {integrity: sha512-m/T3SbZf8Zrn0m4Rd+8KTCMy54cofkaXa1Z7oikQYr/gPigT2C7Bo4vwQpiP8HKU+Xh5CEHFyc0s6ogfOaA2fA==, tarball: https://registry.npmmirror.com/@tsparticles/shape-circle/-/shape-circle-3.3.0.tgz} + '@tsparticles/shape-circle@3.4.0': + resolution: {integrity: sha512-X1ynt8h7bO+xep12Vkxeo2fImbKzLMEZr0qY3vKZzhHcy0/lxoo505pwyVL2+V98eZNOu9fmQM7vlIt/0FGTcg==, tarball: https://registry.npmmirror.com/@tsparticles/shape-circle/-/shape-circle-3.4.0.tgz} - '@tsparticles/updater-color@3.3.0': - resolution: {integrity: sha512-4ZggZr4jTXXOCLXqMXkH/jfhylf9wLt2G7D/F9ZZPihh8l8F2x0YM/JvzRePynhIFXfZaMD1PRfdXNTr6HnFFQ==, tarball: https://registry.npmmirror.com/@tsparticles/updater-color/-/updater-color-3.3.0.tgz} + '@tsparticles/updater-color@3.4.0': + resolution: {integrity: sha512-joT5O/78p7n3jBq1aiFEp4wMevv8WtfjBJnODwEUO7aiHRozs9tA05djVLYZ7kjH0bLymJoPwxM46SEGSTsh+g==, tarball: https://registry.npmmirror.com/@tsparticles/updater-color/-/updater-color-3.4.0.tgz} - '@tsparticles/updater-opacity@3.3.0': - resolution: {integrity: sha512-aQZJheqvoD69YYPiSlcRuWU7yEPs9dSmeOALP+fcaQwUQbVvr+wNJSUVkVNzeawtv4tPwou4QnytoWaBmZoqog==, tarball: https://registry.npmmirror.com/@tsparticles/updater-opacity/-/updater-opacity-3.3.0.tgz} + '@tsparticles/updater-opacity@3.4.0': + resolution: {integrity: sha512-OCWbebZykDh8ZbTiTQX+pBRXHfTMMJpNXbFps4lTSHXHMDsbEMl5a3/TEFeUk3rd0wkiRSCjPUSGKupoU5B14w==, tarball: https://registry.npmmirror.com/@tsparticles/updater-opacity/-/updater-opacity-3.4.0.tgz} - '@tsparticles/updater-out-modes@3.3.0': - resolution: {integrity: sha512-G+UDZO6pmBUdSeT1Y7SRXvZz2EUw5RBCF8AOQMyLntehJQgLPc+PbMCFenfjpRQCCiWQ8RSumZ040iv5CLRUug==, tarball: https://registry.npmmirror.com/@tsparticles/updater-out-modes/-/updater-out-modes-3.3.0.tgz} + '@tsparticles/updater-out-modes@3.4.0': + resolution: {integrity: sha512-i80MSXpnfivKlfA0FbAxk2CfZGNG3rPNtx5Pz/ZCDQ71j1YFjztdwfugp9oueu/sLfOSw4hIKfyR062zpgZp6Q==, tarball: https://registry.npmmirror.com/@tsparticles/updater-out-modes/-/updater-out-modes-3.4.0.tgz} - '@tsparticles/updater-size@3.3.0': - resolution: {integrity: sha512-8s0dSh8bV4CN13oM86x1MPkI1T6KwuKPIiSdTcO1qKTcN1WBYzuuIPOU7Q3+fbQhSZ6F+da3zdG9unqU5sPYUA==, tarball: https://registry.npmmirror.com/@tsparticles/updater-size/-/updater-size-3.3.0.tgz} + '@tsparticles/updater-size@3.4.0': + resolution: {integrity: sha512-3z7INo2E7HR+ps8V490mOiLcCaFmUJFgObXBO3lF6uZ1xe6SfvVsX2r1HpQLwIpq7Ph2ZqQ4tj8tBPyKtada7g==, tarball: https://registry.npmmirror.com/@tsparticles/updater-size/-/updater-size-3.4.0.tgz} '@types/argparse@1.0.38': resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==, tarball: https://registry.npmmirror.com/@types/argparse/-/argparse-1.0.38.tgz} @@ -1112,8 +1112,8 @@ packages: '@types/lodash-es@4.17.12': resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==, tarball: https://registry.npmmirror.com/@types/lodash-es/-/lodash-es-4.17.12.tgz} - '@types/lodash@4.17.1': - resolution: {integrity: sha512-X+2qazGS3jxLAIz5JDXDzglAF3KpijdhFxlf/V1+hEsOUc+HnWi81L/uv/EvGuV90WY+7mPGFCUDGfQC3Gj95Q==, tarball: https://registry.npmmirror.com/@types/lodash/-/lodash-4.17.1.tgz} + '@types/lodash@4.17.4': + resolution: {integrity: sha512-wYCP26ZLxaT3R39kiN2+HcJ4kTd3U1waI/cY7ivWYqFP6pW3ZNpvi6Wd6PHZx7T/t8z0vlkXMg3QYLa7DZ/IJQ==, tarball: https://registry.npmmirror.com/@types/lodash/-/lodash-4.17.4.tgz} '@types/minimist@1.2.5': resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==, tarball: https://registry.npmmirror.com/@types/minimist/-/minimist-1.2.5.tgz} @@ -1124,8 +1124,8 @@ packages: '@types/node@13.13.52': resolution: {integrity: sha512-s3nugnZumCC//n4moGGe6tkNMyYEdaDBitVjwPxXmR5lnMG5dHePinH2EdxkG3Rh1ghFHHixAG4NJhpJW1rthQ==, tarball: https://registry.npmmirror.com/@types/node/-/node-13.13.52.tgz} - '@types/node@20.12.11': - resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==, tarball: https://registry.npmmirror.com/@types/node/-/node-20.12.11.tgz} + '@types/node@20.12.12': + resolution: {integrity: sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==, tarball: https://registry.npmmirror.com/@types/node/-/node-20.12.12.tgz} '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==, tarball: https://registry.npmmirror.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz} @@ -1139,8 +1139,8 @@ packages: '@types/web-bluetooth@0.0.20': resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==, tarball: https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz} - '@typescript-eslint/eslint-plugin@7.8.0': - resolution: {integrity: sha512-gFTT+ezJmkwutUPmB0skOj3GZJtlEGnlssems4AjkVweUPGj7jRwwqg0Hhg7++kPGJqKtTYx+R05Ftww372aIg==, tarball: https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.8.0.tgz} + '@typescript-eslint/eslint-plugin@7.9.0': + resolution: {integrity: sha512-6e+X0X3sFe/G/54aC3jt0txuMTURqLyekmEHViqyA2VnxhLMpvA6nqmcjIy+Cr9tLDHPssA74BP5Mx9HQIxBEA==, tarball: https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.9.0.tgz} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: '@typescript-eslint/parser': ^7.0.0 @@ -1150,8 +1150,8 @@ packages: typescript: optional: true - '@typescript-eslint/parser@7.8.0': - resolution: {integrity: sha512-KgKQly1pv0l4ltcftP59uQZCi4HUYswCLbTqVZEJu7uLX8CTLyswqMLqLN+2QFz4jCptqWVV4SB7vdxcH2+0kQ==, tarball: https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-7.8.0.tgz} + '@typescript-eslint/parser@7.9.0': + resolution: {integrity: sha512-qHMJfkL5qvgQB2aLvhUSXxbK7OLnDkwPzFalg458pxQgfxKDfT1ZDbHQM/I6mDIf/svlMkj21kzKuQ2ixJlatQ==, tarball: https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-7.9.0.tgz} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 @@ -1160,12 +1160,12 @@ packages: typescript: optional: true - '@typescript-eslint/scope-manager@7.8.0': - resolution: {integrity: sha512-viEmZ1LmwsGcnr85gIq+FCYI7nO90DVbE37/ll51hjv9aG+YZMb4WDE2fyWpUR4O/UrhGRpYXK/XajcGTk2B8g==, tarball: https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-7.8.0.tgz} + '@typescript-eslint/scope-manager@7.9.0': + resolution: {integrity: sha512-ZwPK4DeCDxr3GJltRz5iZejPFAAr4Wk3+2WIBaj1L5PYK5RgxExu/Y68FFVclN0y6GGwH8q+KgKRCvaTmFBbgQ==, tarball: https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-7.9.0.tgz} engines: {node: ^18.18.0 || >=20.0.0} - '@typescript-eslint/type-utils@7.8.0': - resolution: {integrity: sha512-H70R3AefQDQpz9mGv13Uhi121FNMh+WEaRqcXTX09YEDky21km4dV1ZXJIp8QjXc4ZaVkXVdohvWDzbnbHDS+A==, tarball: https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-7.8.0.tgz} + '@typescript-eslint/type-utils@7.9.0': + resolution: {integrity: sha512-6Qy8dfut0PFrFRAZsGzuLoM4hre4gjzWJB6sUvdunCYZsYemTkzZNwF1rnGea326PHPT3zn5Lmg32M/xfJfByA==, tarball: https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-7.9.0.tgz} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 @@ -1174,12 +1174,12 @@ packages: typescript: optional: true - '@typescript-eslint/types@7.8.0': - resolution: {integrity: sha512-wf0peJ+ZGlcH+2ZS23aJbOv+ztjeeP8uQ9GgwMJGVLx/Nj9CJt17GWgWWoSmoRVKAX2X+7fzEnAjxdvK2gqCLw==, tarball: https://registry.npmmirror.com/@typescript-eslint/types/-/types-7.8.0.tgz} + '@typescript-eslint/types@7.9.0': + resolution: {integrity: sha512-oZQD9HEWQanl9UfsbGVcZ2cGaR0YT5476xfWE0oE5kQa2sNK2frxOlkeacLOTh9po4AlUT5rtkGyYM5kew0z5w==, tarball: https://registry.npmmirror.com/@typescript-eslint/types/-/types-7.9.0.tgz} engines: {node: ^18.18.0 || >=20.0.0} - '@typescript-eslint/typescript-estree@7.8.0': - resolution: {integrity: sha512-5pfUCOwK5yjPaJQNy44prjCwtr981dO8Qo9J9PwYXZ0MosgAbfEMB008dJ5sNo3+/BN6ytBPuSvXUg9SAqB0dg==, tarball: https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.8.0.tgz} + '@typescript-eslint/typescript-estree@7.9.0': + resolution: {integrity: sha512-zBCMCkrb2YjpKV3LA0ZJubtKCDxLttxfdGmwZvTqqWevUPN0FZvSI26FalGFFUZU/9YQK/A4xcQF9o/VVaCKAg==, tarball: https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.9.0.tgz} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: typescript: '*' @@ -1187,14 +1187,14 @@ packages: typescript: optional: true - '@typescript-eslint/utils@7.8.0': - resolution: {integrity: sha512-L0yFqOCflVqXxiZyXrDr80lnahQfSOfc9ELAAZ75sqicqp2i36kEZZGuUymHNFoYOqxRT05up760b4iGsl02nQ==, tarball: https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-7.8.0.tgz} + '@typescript-eslint/utils@7.9.0': + resolution: {integrity: sha512-5KVRQCzZajmT4Ep+NEgjXCvjuypVvYHUW7RHlXzNPuak2oWpVoD1jf5xCP0dPAuNIchjC7uQyvbdaSTFaLqSdA==, tarball: https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-7.9.0.tgz} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 - '@typescript-eslint/visitor-keys@7.8.0': - resolution: {integrity: sha512-q4/gibTNBQNA0lGyYQCmWRS5D15n8rXh4QjK3KV+MBPlTYHpfBUT3D3PaPR/HeNiI9W6R7FvlkcGhNyAoP+caA==, tarball: https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.8.0.tgz} + '@typescript-eslint/visitor-keys@7.9.0': + resolution: {integrity: sha512-iESPx2TNLDNGQLyjKhUvIKprlP49XNEK+MvIf9nIO7ZZaZdbnfWKHnXAgufpxqfA0YryH8XToi4+CjBgVnFTSQ==, tarball: https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.9.0.tgz} engines: {node: ^18.18.0 || >=20.0.0} '@vitejs/plugin-vue@5.0.4': @@ -1207,20 +1207,20 @@ packages: '@volar/language-core@1.11.1': resolution: {integrity: sha512-dOcNn3i9GgZAcJt43wuaEykSluAuOkQgzni1cuxLxTV0nJKanQztp7FxyswdRILaKH+P2XZMPRp2S4MV/pElCw==, tarball: https://registry.npmmirror.com/@volar/language-core/-/language-core-1.11.1.tgz} - '@volar/language-core@2.2.2': - resolution: {integrity: sha512-GuvEL4JdxbnLVhPLICncCGT+tVW4cIz9GxXNeDofNnJ4iNTKhr5suGVsA1GLOne9PbraSjn8PlLt+pvLxuRVeQ==, tarball: https://registry.npmmirror.com/@volar/language-core/-/language-core-2.2.2.tgz} + '@volar/language-core@2.2.4': + resolution: {integrity: sha512-7As47GndxGxsqqYnbreLrfB5NDUeQioPM2LJKUuB4/34c0NpEJ2byVl3c9KYdjIdiEstWZ9JLtLKNTaPWb5jtA==, tarball: https://registry.npmmirror.com/@volar/language-core/-/language-core-2.2.4.tgz} '@volar/source-map@1.11.1': resolution: {integrity: sha512-hJnOnwZ4+WT5iupLRnuzbULZ42L7BWWPMmruzwtLhJfpDVoZLjNBxHDi2sY2bgZXCKlpU5XcsMFoYrsQmPhfZg==, tarball: https://registry.npmmirror.com/@volar/source-map/-/source-map-1.11.1.tgz} - '@volar/source-map@2.2.2': - resolution: {integrity: sha512-vUwvZuSW6iN4JI9QRinh9EjFasx1TUtnaWMKwgWx08xz1PyYuNkLlWlrZXBZ5GGBhML0u230M/7X+AHY2h9yKg==, tarball: https://registry.npmmirror.com/@volar/source-map/-/source-map-2.2.2.tgz} + '@volar/source-map@2.2.4': + resolution: {integrity: sha512-m92FLpR9vB1YEZfiZ+bfgpLrToL/DNkOrorWVep3pffHrwwI4Tx2oIQN+sqHJfKkiT5N3J1owC+8crhAEinfjg==, tarball: https://registry.npmmirror.com/@volar/source-map/-/source-map-2.2.4.tgz} '@volar/typescript@1.11.1': resolution: {integrity: sha512-iU+t2mas/4lYierSnoFOeRFQUhAEMgsFuQxoxvwn5EdQopw43j+J27a4lt9LMInx1gLJBC6qL14WYGlgymaSMQ==, tarball: https://registry.npmmirror.com/@volar/typescript/-/typescript-1.11.1.tgz} - '@volar/typescript@2.2.2': - resolution: {integrity: sha512-WcwOREz7+uOrpjUrKhOMaOKKmyPdtqF95HWX7SE0d9hhBB1KkfahxhaAex5U9Bn43LfINHlycLoYCNEtfeKm0g==, tarball: https://registry.npmmirror.com/@volar/typescript/-/typescript-2.2.2.tgz} + '@volar/typescript@2.2.4': + resolution: {integrity: sha512-uAQC53tgEbHO62G8NXMfmBrJAlP2QJ9WxVEEQqqK3I6VSy8frL5LbH3hAWODxiwMWixv74wJLWlKbWXOgdIoRQ==, tarball: https://registry.npmmirror.com/@volar/typescript/-/typescript-2.2.4.tgz} '@vue/compiler-core@3.4.27': resolution: {integrity: sha512-E+RyqY24KnyDXsCuQrI+mlcdW3ALND6U7Gqa/+bVwbcpcR3BRRIckFoz7Qyd4TTlnugtwuI7YgjbvsLmxb+yvg==, tarball: https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.4.27.tgz} @@ -1245,8 +1245,8 @@ packages: typescript: optional: true - '@vue/language-core@2.0.17': - resolution: {integrity: sha512-tHw2J6G9yL4kn3jN5MftOHEq86Y6qnuohBQ1OHkJ73fAv3OYgwDI1cfX7ds0OEJEycOMG64BA3ql5bDgDa41zw==, tarball: https://registry.npmmirror.com/@vue/language-core/-/language-core-2.0.17.tgz} + '@vue/language-core@2.0.19': + resolution: {integrity: sha512-A9EGOnvb51jOvnCYoRLnMP+CcoPlbZVxI9gZXE/y2GksRWM6j/PrLEIC++pnosWTN08tFpJgxhSS//E9v/Sg+Q==, tarball: https://registry.npmmirror.com/@vue/language-core/-/language-core-2.0.19.tgz} peerDependencies: typescript: '*' peerDependenciesMeta: @@ -1640,8 +1640,8 @@ packages: camunda-bpmn-moddle@7.0.1: resolution: {integrity: sha512-Br8Diu6roMpziHdpl66Dhnm0DTnCFMrSD9zwLV08LpD52QA0UsXxU87XfHf08HjuB7ly0Hd1bvajZRpf9hbmYQ==, tarball: https://registry.npmmirror.com/camunda-bpmn-moddle/-/camunda-bpmn-moddle-7.0.1.tgz} - caniuse-lite@1.0.30001617: - resolution: {integrity: sha512-mLyjzNI9I+Pix8zwcrpxEbGlfqOkF9kM3ptzmKNw5tizSyYwMe+nGLTqMK9cO+0E+Bh6TsBxNAaHWEM8xwSsmA==, tarball: https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001617.tgz} + caniuse-lite@1.0.30001620: + resolution: {integrity: sha512-WJvYsOjd1/BYUY6SNGUosK9DUidBPDTnOARHp3fSmFO1ekdxaY6nKRttEVrfMmYi80ctS0kz1wiWmm14fVc3ew==, tarball: https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001620.tgz} cfb@1.2.2: resolution: {integrity: sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==, tarball: https://registry.npmmirror.com/cfb/-/cfb-1.2.2.tgz} @@ -2050,8 +2050,8 @@ packages: engines: {node: '>=0.10.0'} hasBin: true - electron-to-chromium@1.4.763: - resolution: {integrity: sha512-k4J8NrtJ9QrvHLRo8Q18OncqBCB7tIUyqxRcJnlonQ0ioHKYB988GcDFF3ZePmnb8eHEopDs/wPHR/iGAFgoUQ==, tarball: https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.4.763.tgz} + electron-to-chromium@1.4.774: + resolution: {integrity: sha512-132O1XCd7zcTkzS3FgkAzKmnBuNJjK8WjcTtNuoylj7MYbqw5eXehjQ5OK91g0zm7OTKIPeaAG4CPoRfD9M1Mg==, tarball: https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.4.774.tgz} element-resize-detector@1.2.4: resolution: {integrity: sha512-Fl5Ftk6WwXE0wqCgNoseKWndjzZlDCwuPTcoVZfCP9R3EHQF8qUtr3YUPNETegRBOKqQKPW3n4kiIWngGi8tKg==, tarball: https://registry.npmmirror.com/element-resize-detector/-/element-resize-detector-1.2.4.tgz} @@ -2099,8 +2099,8 @@ packages: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==, tarball: https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz} engines: {node: '>= 0.4'} - es-module-lexer@1.5.2: - resolution: {integrity: sha512-l60ETUTmLqbVbVHv1J4/qj+M8nq7AwMzEcg3kmJDt9dCNrTk+yHcYFf/Kw75pMDwd9mPcIGCG5LcS20SxYRzFA==, tarball: https://registry.npmmirror.com/es-module-lexer/-/es-module-lexer-1.5.2.tgz} + es-module-lexer@1.5.3: + resolution: {integrity: sha512-i1gCgmR9dCl6Vil6UKPI/trA69s08g/syhiDK9TG0Nf1RJjjFI+AzoWW7sPufzkgYAn861skuCwJa0pIIHYxvg==, tarball: https://registry.npmmirror.com/es-module-lexer/-/es-module-lexer-1.5.3.tgz} es-object-atoms@1.0.0: resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==, tarball: https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz} @@ -2192,8 +2192,8 @@ packages: resolution: {integrity: sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==, tarball: https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint@9.2.0: - resolution: {integrity: sha512-0n/I88vZpCOzO+PQpt0lbsqmn9AsnsJAQseIqhZFI8ibQT0U1AkEKRxA3EVMos0BoHSXDQvCXY25TUjB5tr8Og==, tarball: https://registry.npmmirror.com/eslint/-/eslint-9.2.0.tgz} + eslint@9.3.0: + resolution: {integrity: sha512-5Iv4CsZW030lpUqHBapdPo3MJetAPtejVW8B84GIcIIv8+ohFaddXsrn1Gn8uD9ijDb+kcYKFUVmC8qG8B2ORQ==, tarball: https://registry.npmmirror.com/eslint/-/eslint-9.3.0.tgz} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true @@ -2607,8 +2607,8 @@ packages: resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==, tarball: https://registry.npmmirror.com/ignore/-/ignore-5.3.1.tgz} engines: {node: '>= 4'} - immutable@4.3.5: - resolution: {integrity: sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==, tarball: https://registry.npmmirror.com/immutable/-/immutable-4.3.5.tgz} + immutable@4.3.6: + resolution: {integrity: sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ==, tarball: https://registry.npmmirror.com/immutable/-/immutable-4.3.6.tgz} import-fresh@3.3.0: resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==, tarball: https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.0.tgz} @@ -3331,8 +3331,8 @@ packages: resolution: {integrity: sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==, tarball: https://registry.npmmirror.com/pbkdf2/-/pbkdf2-3.1.2.tgz} engines: {node: '>=0.12'} - picocolors@1.0.0: - resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==, tarball: https://registry.npmmirror.com/picocolors/-/picocolors-1.0.0.tgz} + picocolors@1.0.1: + resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==, tarball: https://registry.npmmirror.com/picocolors/-/picocolors-1.0.1.tgz} picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==, tarball: https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz} @@ -3427,8 +3427,8 @@ packages: resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==, tarball: https://registry.npmmirror.com/postcss/-/postcss-8.4.38.tgz} engines: {node: ^10 || ^12 || >=14} - preact@10.21.0: - resolution: {integrity: sha512-aQAIxtzWEwH8ou+OovWVSVNlFImL7xUCwJX3YMqA3U8iKCNC34999fFOnWjYNsylgfPgMexpbk7WYOLtKr/mxg==, tarball: https://registry.npmmirror.com/preact/-/preact-10.21.0.tgz} + preact@10.22.0: + resolution: {integrity: sha512-RRurnSjJPj4rp5K6XoP45Ui33ncb7e4H7WiOHVpjbkvqvA3U+N8Z6Qbo0AE6leGYBV66n8EhEaFixvIu3SkxFw==, tarball: https://registry.npmmirror.com/preact/-/preact-10.22.0.tgz} preferred-pm@3.1.3: resolution: {integrity: sha512-MkXsENfftWSRpzCzImcp4FRsCc3y1opwB73CfCNWyzMqArju2CrlMHlqB7VexKiPEOjGMbttv1r9fSCn5S610w==, tarball: https://registry.npmmirror.com/preferred-pm/-/preferred-pm-3.1.3.tgz} @@ -3479,8 +3479,8 @@ packages: resolution: {integrity: sha512-zWmv4RSuB9r2mYQw3zxQuHWeU+42aKi1wWig/j4ele4ygELZ7PEO6MM7rim9oAQH2A5MWfsAVf/jPvTPgCbvUQ==, tarball: https://registry.npmmirror.com/qs/-/qs-6.12.1.tgz} engines: {node: '>=0.6'} - quasar@2.16.2: - resolution: {integrity: sha512-gqS7nV8pK+SPCkU6p2zjkbIcYJiwEh7KAwRsftIBe+vwGhJoIRUMXpFMlKFqBj8jh3230gy09cG0SxriLVQX5Q==, tarball: https://registry.npmmirror.com/quasar/-/quasar-2.16.2.tgz} + quasar@2.16.4: + resolution: {integrity: sha512-ICntco9uZ4PeyLgzVckjK3fsS+LG7+rOUmRyR7Gq3XpfeCADs1edIRjlxsPpWBBJvK/9AHLGPO6XNmnJmdJm0A==, tarball: https://registry.npmmirror.com/quasar/-/quasar-2.16.4.tgz} engines: {node: '>= 10.18.1', npm: '>= 6.13.4', yarn: '>= 1.21.1'} querystring-es3@0.2.1: @@ -3641,8 +3641,8 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==, tarball: https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz} - sass@1.77.1: - resolution: {integrity: sha512-OMEyfirt9XEfyvocduUIOlUSkWOXS/LAt6oblR/ISXCTukyavjex+zQNm51pPCOiFKY1QpWvEH1EeCkgyV3I6w==, tarball: https://registry.npmmirror.com/sass/-/sass-1.77.1.tgz} + sass@1.77.2: + resolution: {integrity: sha512-eb4GZt1C3avsX3heBNlrc7I09nyT00IUuo4eFhAbeXWU2fvA7oXI53SxODVAA+zgZCk9aunAZgO+losjR3fAwA==, tarball: https://registry.npmmirror.com/sass/-/sass-1.77.2.tgz} engines: {node: '>=14.0.0'} hasBin: true @@ -4176,8 +4176,8 @@ packages: resolution: {integrity: sha512-d6Mhq8RJeGA8UfKCu54Um4lFA0eSaRa3XxdAJg8tIdxbu1ubW0hBCZUL7yI2uGyYCRndvbK8FLHzqy2XKfeMsg==, tarball: https://registry.npmmirror.com/unplugin/-/unplugin-1.10.1.tgz} engines: {node: '>=14.0.0'} - update-browserslist-db@1.0.15: - resolution: {integrity: sha512-K9HWH62x3/EalU1U6sjSZiylm9C8tgq2mSvshZpqc7QE69RaA2qjhkW2HlNA0tFpEbtyFz7HTqbSdN4MSwUodA==, tarball: https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.0.15.tgz} + update-browserslist-db@1.0.16: + resolution: {integrity: sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==, tarball: https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz} hasBin: true peerDependencies: browserslist: '>= 4.21.0' @@ -4299,8 +4299,8 @@ packages: peerDependencies: vue: ^3.2.0 - vue-simple-uploader@1.0.2: - resolution: {integrity: sha512-HMlSsI6AZ5QUeBDpym+oP/YlfieDDjfndvGFafQlSKiujxxhQ35OItEcuGX4+FQ44iryysAloWS+OnsBB1gvZQ==, tarball: https://registry.npmmirror.com/vue-simple-uploader/-/vue-simple-uploader-1.0.2.tgz} + vue-simple-uploader@1.0.3: + resolution: {integrity: sha512-RIghV5rG1CaA41R7VlQP0UG9xevs+cRaCN0k7gH4cFHdG9yIf4206fGKA90NRKzlPxGSBTwLm5dCajLHfqd2+w==, tarball: https://registry.npmmirror.com/vue-simple-uploader/-/vue-simple-uploader-1.0.3.tgz} engines: {node: '>= 4.0.0', npm: '>= 3.0.0'} peerDependencies: vue: '>=3.1' @@ -4314,8 +4314,8 @@ packages: peerDependencies: typescript: '*' - vue-tsc@2.0.17: - resolution: {integrity: sha512-RRZsiCBD1hvATQb321xV+SkRDKsK5hgFQ4WXy5wuYsyyjz8xAK4DjxHkpH7PFoJKUbZTbeW8KzhejzXZS49Tzw==, tarball: https://registry.npmmirror.com/vue-tsc/-/vue-tsc-2.0.17.tgz} + vue-tsc@2.0.19: + resolution: {integrity: sha512-JWay5Zt2/871iodGF72cELIbcAoPyhJxq56mPPh+M2K7IwI688FMrFKc/+DvB05wDWEuCPexQJ6L10zSwzzapg==, tarball: https://registry.npmmirror.com/vue-tsc/-/vue-tsc-2.0.19.tgz} hasBin: true peerDependencies: typescript: '*' @@ -4491,7 +4491,7 @@ snapshots: '@babel/code-frame@7.24.2': dependencies: '@babel/highlight': 7.24.5 - picocolors: 1.0.0 + picocolors: 1.0.1 '@babel/helper-string-parser@7.24.1': {} @@ -4502,7 +4502,7 @@ snapshots: '@babel/helper-validator-identifier': 7.24.5 chalk: 2.4.2 js-tokens: 4.0.0 - picocolors: 1.0.0 + picocolors: 1.0.1 '@babel/parser@7.24.5': dependencies: @@ -4527,7 +4527,7 @@ snapshots: '@bpmn-io/diagram-js-ui@0.2.3': dependencies: htm: 3.1.1 - preact: 10.21.0 + preact: 10.22.0 '@bpmn-io/element-template-chooser@1.0.0(bpmn-js@17.6.4)(diagram-js@14.5.4)': dependencies: @@ -4538,13 +4538,13 @@ snapshots: dependencies: min-dash: 4.2.1 - '@bpmn-io/feel-editor@1.3.0(@lezer/common@1.2.1)': + '@bpmn-io/feel-editor@1.4.0(@lezer/common@1.2.1)': dependencies: '@bpmn-io/feel-lint': 1.2.0 '@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1) '@codemirror/commands': 6.5.0 '@codemirror/language': 6.10.1 - '@codemirror/lint': 6.7.0 + '@codemirror/lint': 6.7.1 '@codemirror/state': 6.4.1 '@codemirror/view': 6.26.3 '@lezer/highlight': 1.2.0 @@ -4564,7 +4564,7 @@ snapshots: '@bpmn-io/properties-panel@3.18.2(@lezer/common@1.2.1)': dependencies: - '@bpmn-io/feel-editor': 1.3.0(@lezer/common@1.2.1) + '@bpmn-io/feel-editor': 1.4.0(@lezer/common@1.2.1) '@codemirror/view': 6.26.3 classnames: 2.5.1 feelers: 1.3.1 @@ -4574,7 +4574,7 @@ snapshots: transitivePeerDependencies: - '@lezer/common' - '@changesets/apply-release-plan@7.0.0': + '@changesets/apply-release-plan@7.0.1': dependencies: '@babel/runtime': 7.24.5 '@changesets/config': 3.0.0 @@ -4603,10 +4603,10 @@ snapshots: dependencies: '@changesets/types': 6.0.0 - '@changesets/cli@2.27.1': + '@changesets/cli@2.27.2': dependencies: '@babel/runtime': 7.24.5 - '@changesets/apply-release-plan': 7.0.0 + '@changesets/apply-release-plan': 7.0.1 '@changesets/assemble-release-plan': 6.0.0 '@changesets/changelog-git': 0.2.0 '@changesets/config': 3.0.0 @@ -4618,7 +4618,7 @@ snapshots: '@changesets/pre': 2.0.0 '@changesets/read': 0.6.0 '@changesets/types': 6.0.0 - '@changesets/write': 0.3.0 + '@changesets/write': 0.3.1 '@manypkg/get-packages': 1.1.3 '@types/semver': 7.5.8 ansi-colors: 4.1.3 @@ -4714,7 +4714,7 @@ snapshots: '@changesets/types@6.0.0': {} - '@changesets/write@0.3.0': + '@changesets/write@0.3.1': dependencies: '@babel/runtime': 7.24.5 '@changesets/types': 6.0.0 @@ -4745,7 +4745,7 @@ snapshots: '@lezer/lr': 1.4.0 style-mod: 4.1.2 - '@codemirror/lint@6.7.0': + '@codemirror/lint@6.7.1': dependencies: '@codemirror/state': 6.4.1 '@codemirror/view': 6.26.3 @@ -4768,7 +4768,7 @@ snapshots: '@commitlint/execute-rule@19.0.0': optional: true - '@commitlint/load@19.2.0(@types/node@20.12.11)(typescript@5.4.5)': + '@commitlint/load@19.2.0(@types/node@20.12.12)(typescript@5.4.5)': dependencies: '@commitlint/config-validator': 19.0.3 '@commitlint/execute-rule': 19.0.0 @@ -4776,7 +4776,7 @@ snapshots: '@commitlint/types': 19.0.3 chalk: 5.3.0 cosmiconfig: 9.0.0(typescript@5.4.5) - cosmiconfig-typescript-loader: 5.0.0(@types/node@20.12.11)(cosmiconfig@9.0.0(typescript@5.4.5))(typescript@5.4.5) + cosmiconfig-typescript-loader: 5.0.0(@types/node@20.12.12)(cosmiconfig@9.0.0(typescript@5.4.5))(typescript@5.4.5) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 @@ -4812,7 +4812,7 @@ snapshots: '@csstools/css-parser-algorithms': 2.6.3(@csstools/css-tokenizer@2.3.1) '@csstools/css-tokenizer': 2.3.1 - '@csstools/selector-specificity@3.1.0(postcss-selector-parser@6.0.16)': + '@csstools/selector-specificity@3.1.1(postcss-selector-parser@6.0.16)': dependencies: postcss-selector-parser: 6.0.16 @@ -4887,14 +4887,14 @@ snapshots: '@esbuild/win32-x64@0.20.2': optional: true - '@eslint-community/eslint-utils@4.4.0(eslint@9.2.0)': + '@eslint-community/eslint-utils@4.4.0(eslint@9.3.0)': dependencies: - eslint: 9.2.0 + eslint: 9.3.0 eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.10.0': {} - '@eslint/eslintrc@3.0.2': + '@eslint/eslintrc@3.1.0': dependencies: ajv: 6.12.6 debug: 4.3.4 @@ -4908,7 +4908,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@9.2.0': {} + '@eslint/js@9.3.0': {} '@highlightjs/vue-plugin@2.1.0(highlight.js@11.9.0)(vue@3.4.27(typescript@5.4.5))': dependencies: @@ -4927,7 +4927,7 @@ snapshots: '@humanwhocodes/object-schema@2.0.3': {} - '@humanwhocodes/retry@0.2.4': {} + '@humanwhocodes/retry@0.3.0': {} '@iconify/types@2.0.0': {} @@ -5017,23 +5017,23 @@ snapshots: '@mdi/js@7.4.47': {} - '@microsoft/api-extractor-model@7.28.13(@types/node@20.12.11)': + '@microsoft/api-extractor-model@7.28.13(@types/node@20.12.12)': dependencies: '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@20.12.11) + '@rushstack/node-core-library': 4.0.2(@types/node@20.12.12) transitivePeerDependencies: - '@types/node' - '@microsoft/api-extractor@7.43.0(@types/node@20.12.11)': + '@microsoft/api-extractor@7.43.0(@types/node@20.12.12)': dependencies: - '@microsoft/api-extractor-model': 7.28.13(@types/node@20.12.11) + '@microsoft/api-extractor-model': 7.28.13(@types/node@20.12.12) '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@20.12.11) + '@rushstack/node-core-library': 4.0.2(@types/node@20.12.12) '@rushstack/rig-package': 0.5.2 - '@rushstack/terminal': 0.10.0(@types/node@20.12.11) - '@rushstack/ts-command-line': 4.19.1(@types/node@20.12.11) + '@rushstack/terminal': 0.10.0(@types/node@20.12.12) + '@rushstack/ts-command-line': 4.19.1(@types/node@20.12.12) lodash: 4.17.21 minimatch: 3.0.8 resolve: 1.22.8 @@ -5068,11 +5068,11 @@ snapshots: '@quasar/extras@1.16.11': {} - '@quasar/vite-plugin@1.7.0(@vitejs/plugin-vue@5.0.4(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)))(quasar@2.16.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5))': + '@quasar/vite-plugin@1.7.0(@vitejs/plugin-vue@5.0.4(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)))(quasar@2.16.4)(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5))': dependencies: - '@vitejs/plugin-vue': 5.0.4(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) - quasar: 2.16.2 - vite: 5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0) + '@vitejs/plugin-vue': 5.0.4(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) + quasar: 2.16.4 + vite: 5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0) vue: 3.4.27(typescript@5.4.5) '@rollup/plugin-inject@5.0.5(rollup@4.17.2)': @@ -5150,7 +5150,7 @@ snapshots: '@rsocket/core@1.0.0-alpha.3': {} - '@rushstack/node-core-library@4.0.2(@types/node@20.12.11)': + '@rushstack/node-core-library@4.0.2(@types/node@20.12.12)': dependencies: fs-extra: 7.0.1 import-lazy: 4.0.0 @@ -5159,23 +5159,23 @@ snapshots: semver: 7.5.4 z-schema: 5.0.5 optionalDependencies: - '@types/node': 20.12.11 + '@types/node': 20.12.12 '@rushstack/rig-package@0.5.2': dependencies: resolve: 1.22.8 strip-json-comments: 3.1.1 - '@rushstack/terminal@0.10.0(@types/node@20.12.11)': + '@rushstack/terminal@0.10.0(@types/node@20.12.12)': dependencies: - '@rushstack/node-core-library': 4.0.2(@types/node@20.12.11) + '@rushstack/node-core-library': 4.0.2(@types/node@20.12.12) supports-color: 8.1.1 optionalDependencies: - '@types/node': 20.12.11 + '@types/node': 20.12.12 - '@rushstack/ts-command-line@4.19.1(@types/node@20.12.11)': + '@rushstack/ts-command-line@4.19.1(@types/node@20.12.12)': dependencies: - '@rushstack/terminal': 0.10.0(@types/node@20.12.11) + '@rushstack/terminal': 0.10.0(@types/node@20.12.12) '@types/argparse': 1.0.38 argparse: 1.0.10 string-argv: 0.3.2 @@ -5184,51 +5184,51 @@ snapshots: '@stomp/stompjs@7.0.0': {} - '@tsparticles/basic@3.3.0': + '@tsparticles/basic@3.4.0': dependencies: - '@tsparticles/engine': 3.3.0 - '@tsparticles/move-base': 3.3.0 - '@tsparticles/shape-circle': 3.3.0 - '@tsparticles/updater-color': 3.3.0 - '@tsparticles/updater-opacity': 3.3.0 - '@tsparticles/updater-out-modes': 3.3.0 - '@tsparticles/updater-size': 3.3.0 + '@tsparticles/engine': 3.4.0 + '@tsparticles/move-base': 3.4.0 + '@tsparticles/shape-circle': 3.4.0 + '@tsparticles/updater-color': 3.4.0 + '@tsparticles/updater-opacity': 3.4.0 + '@tsparticles/updater-out-modes': 3.4.0 + '@tsparticles/updater-size': 3.4.0 - '@tsparticles/engine@3.3.0': {} + '@tsparticles/engine@3.4.0': {} - '@tsparticles/interaction-particles-links@3.3.0': + '@tsparticles/interaction-particles-links@3.4.0': dependencies: - '@tsparticles/engine': 3.3.0 + '@tsparticles/engine': 3.4.0 - '@tsparticles/move-base@3.3.0': + '@tsparticles/move-base@3.4.0': dependencies: - '@tsparticles/engine': 3.3.0 + '@tsparticles/engine': 3.4.0 - '@tsparticles/shape-circle@3.3.0': + '@tsparticles/shape-circle@3.4.0': dependencies: - '@tsparticles/engine': 3.3.0 + '@tsparticles/engine': 3.4.0 - '@tsparticles/updater-color@3.3.0': + '@tsparticles/updater-color@3.4.0': dependencies: - '@tsparticles/engine': 3.3.0 + '@tsparticles/engine': 3.4.0 - '@tsparticles/updater-opacity@3.3.0': + '@tsparticles/updater-opacity@3.4.0': dependencies: - '@tsparticles/engine': 3.3.0 + '@tsparticles/engine': 3.4.0 - '@tsparticles/updater-out-modes@3.3.0': + '@tsparticles/updater-out-modes@3.4.0': dependencies: - '@tsparticles/engine': 3.3.0 + '@tsparticles/engine': 3.4.0 - '@tsparticles/updater-size@3.3.0': + '@tsparticles/updater-size@3.4.0': dependencies: - '@tsparticles/engine': 3.3.0 + '@tsparticles/engine': 3.4.0 '@types/argparse@1.0.38': {} '@types/conventional-commits-parser@5.0.0': dependencies: - '@types/node': 20.12.11 + '@types/node': 20.12.12 optional: true '@types/crypto-js@4.2.2': {} @@ -5249,9 +5249,9 @@ snapshots: '@types/lodash-es@4.17.12': dependencies: - '@types/lodash': 4.17.1 + '@types/lodash': 4.17.4 - '@types/lodash@4.17.1': {} + '@types/lodash@4.17.4': {} '@types/minimist@1.2.5': {} @@ -5259,7 +5259,7 @@ snapshots: '@types/node@13.13.52': {} - '@types/node@20.12.11': + '@types/node@20.12.12': dependencies: undici-types: 5.26.5 @@ -5271,62 +5271,60 @@ snapshots: '@types/web-bluetooth@0.0.20': {} - '@typescript-eslint/eslint-plugin@7.8.0(@typescript-eslint/parser@7.8.0(eslint@9.2.0)(typescript@5.4.5))(eslint@9.2.0)(typescript@5.4.5)': + '@typescript-eslint/eslint-plugin@7.9.0(@typescript-eslint/parser@7.9.0(eslint@9.3.0)(typescript@5.4.5))(eslint@9.3.0)(typescript@5.4.5)': dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 7.8.0(eslint@9.2.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.8.0 - '@typescript-eslint/type-utils': 7.8.0(eslint@9.2.0)(typescript@5.4.5) - '@typescript-eslint/utils': 7.8.0(eslint@9.2.0)(typescript@5.4.5) - '@typescript-eslint/visitor-keys': 7.8.0 - debug: 4.3.4 - eslint: 9.2.0 + '@typescript-eslint/parser': 7.9.0(eslint@9.3.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.9.0 + '@typescript-eslint/type-utils': 7.9.0(eslint@9.3.0)(typescript@5.4.5) + '@typescript-eslint/utils': 7.9.0(eslint@9.3.0)(typescript@5.4.5) + '@typescript-eslint/visitor-keys': 7.9.0 + eslint: 9.3.0 graphemer: 1.4.0 ignore: 5.3.1 natural-compare: 1.4.0 - semver: 7.6.2 ts-api-utils: 1.3.0(typescript@5.4.5) optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@7.8.0(eslint@9.2.0)(typescript@5.4.5)': + '@typescript-eslint/parser@7.9.0(eslint@9.3.0)(typescript@5.4.5)': dependencies: - '@typescript-eslint/scope-manager': 7.8.0 - '@typescript-eslint/types': 7.8.0 - '@typescript-eslint/typescript-estree': 7.8.0(typescript@5.4.5) - '@typescript-eslint/visitor-keys': 7.8.0 + '@typescript-eslint/scope-manager': 7.9.0 + '@typescript-eslint/types': 7.9.0 + '@typescript-eslint/typescript-estree': 7.9.0(typescript@5.4.5) + '@typescript-eslint/visitor-keys': 7.9.0 debug: 4.3.4 - eslint: 9.2.0 + eslint: 9.3.0 optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@7.8.0': + '@typescript-eslint/scope-manager@7.9.0': dependencies: - '@typescript-eslint/types': 7.8.0 - '@typescript-eslint/visitor-keys': 7.8.0 + '@typescript-eslint/types': 7.9.0 + '@typescript-eslint/visitor-keys': 7.9.0 - '@typescript-eslint/type-utils@7.8.0(eslint@9.2.0)(typescript@5.4.5)': + '@typescript-eslint/type-utils@7.9.0(eslint@9.3.0)(typescript@5.4.5)': dependencies: - '@typescript-eslint/typescript-estree': 7.8.0(typescript@5.4.5) - '@typescript-eslint/utils': 7.8.0(eslint@9.2.0)(typescript@5.4.5) + '@typescript-eslint/typescript-estree': 7.9.0(typescript@5.4.5) + '@typescript-eslint/utils': 7.9.0(eslint@9.3.0)(typescript@5.4.5) debug: 4.3.4 - eslint: 9.2.0 + eslint: 9.3.0 ts-api-utils: 1.3.0(typescript@5.4.5) optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - supports-color - '@typescript-eslint/types@7.8.0': {} + '@typescript-eslint/types@7.9.0': {} - '@typescript-eslint/typescript-estree@7.8.0(typescript@5.4.5)': + '@typescript-eslint/typescript-estree@7.9.0(typescript@5.4.5)': dependencies: - '@typescript-eslint/types': 7.8.0 - '@typescript-eslint/visitor-keys': 7.8.0 + '@typescript-eslint/types': 7.9.0 + '@typescript-eslint/visitor-keys': 7.9.0 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 @@ -5338,43 +5336,40 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@7.8.0(eslint@9.2.0)(typescript@5.4.5)': + '@typescript-eslint/utils@7.9.0(eslint@9.3.0)(typescript@5.4.5)': dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.2.0) - '@types/json-schema': 7.0.15 - '@types/semver': 7.5.8 - '@typescript-eslint/scope-manager': 7.8.0 - '@typescript-eslint/types': 7.8.0 - '@typescript-eslint/typescript-estree': 7.8.0(typescript@5.4.5) - eslint: 9.2.0 - semver: 7.6.2 + '@eslint-community/eslint-utils': 4.4.0(eslint@9.3.0) + '@typescript-eslint/scope-manager': 7.9.0 + '@typescript-eslint/types': 7.9.0 + '@typescript-eslint/typescript-estree': 7.9.0(typescript@5.4.5) + eslint: 9.3.0 transitivePeerDependencies: - supports-color - typescript - '@typescript-eslint/visitor-keys@7.8.0': + '@typescript-eslint/visitor-keys@7.9.0': dependencies: - '@typescript-eslint/types': 7.8.0 + '@typescript-eslint/types': 7.9.0 eslint-visitor-keys: 3.4.3 - '@vitejs/plugin-vue@5.0.4(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5))': + '@vitejs/plugin-vue@5.0.4(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5))': dependencies: - vite: 5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0) + vite: 5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0) vue: 3.4.27(typescript@5.4.5) '@volar/language-core@1.11.1': dependencies: '@volar/source-map': 1.11.1 - '@volar/language-core@2.2.2': + '@volar/language-core@2.2.4': dependencies: - '@volar/source-map': 2.2.2 + '@volar/source-map': 2.2.4 '@volar/source-map@1.11.1': dependencies: muggle-string: 0.3.1 - '@volar/source-map@2.2.2': + '@volar/source-map@2.2.4': dependencies: muggle-string: 0.4.1 @@ -5383,9 +5378,9 @@ snapshots: '@volar/language-core': 1.11.1 path-browserify: 1.0.1 - '@volar/typescript@2.2.2': + '@volar/typescript@2.2.4': dependencies: - '@volar/language-core': 2.2.2 + '@volar/language-core': 2.2.4 path-browserify: 1.0.1 '@vue/compiler-core@3.4.27': @@ -5434,9 +5429,9 @@ snapshots: optionalDependencies: typescript: 5.4.5 - '@vue/language-core@2.0.17(typescript@5.4.5)': + '@vue/language-core@2.0.19(typescript@5.4.5)': dependencies: - '@volar/language-core': 2.2.2 + '@volar/language-core': 2.2.4 '@vue/compiler-dom': 3.4.27 '@vue/shared': 3.4.27 computeds: 0.0.1 @@ -5873,10 +5868,10 @@ snapshots: browserslist@4.23.0: dependencies: - caniuse-lite: 1.0.30001617 - electron-to-chromium: 1.4.763 + caniuse-lite: 1.0.30001620 + electron-to-chromium: 1.4.774 node-releases: 2.0.14 - update-browserslist-db: 1.0.15(browserslist@4.23.0) + update-browserslist-db: 1.0.16(browserslist@4.23.0) buffer-from@1.1.2: {} @@ -5926,7 +5921,7 @@ snapshots: camunda-bpmn-moddle@7.0.1: {} - caniuse-lite@1.0.30001617: {} + caniuse-lite@1.0.30001620: {} cfb@1.2.2: dependencies: @@ -6047,10 +6042,10 @@ snapshots: commander@9.5.0: optional: true - commitizen@4.3.0(@types/node@20.12.11)(typescript@5.4.5): + commitizen@4.3.0(@types/node@20.12.12)(typescript@5.4.5): dependencies: cachedir: 2.3.0 - cz-conventional-changelog: 3.3.0(@types/node@20.12.11)(typescript@5.4.5) + cz-conventional-changelog: 3.3.0(@types/node@20.12.12)(typescript@5.4.5) dedent: 0.7.0 detect-indent: 6.1.0 find-node-modules: 2.1.3 @@ -6087,9 +6082,9 @@ snapshots: core-util-is@1.0.3: {} - cosmiconfig-typescript-loader@5.0.0(@types/node@20.12.11)(cosmiconfig@9.0.0(typescript@5.4.5))(typescript@5.4.5): + cosmiconfig-typescript-loader@5.0.0(@types/node@20.12.12)(cosmiconfig@9.0.0(typescript@5.4.5))(typescript@5.4.5): dependencies: - '@types/node': 20.12.11 + '@types/node': 20.12.12 cosmiconfig: 9.0.0(typescript@5.4.5) jiti: 1.21.0 typescript: 5.4.5 @@ -6198,16 +6193,16 @@ snapshots: csv-stringify: 5.6.5 stream-transform: 2.1.3 - cz-conventional-changelog@3.3.0(@types/node@20.12.11)(typescript@5.4.5): + cz-conventional-changelog@3.3.0(@types/node@20.12.12)(typescript@5.4.5): dependencies: chalk: 2.4.2 - commitizen: 4.3.0(@types/node@20.12.11)(typescript@5.4.5) + commitizen: 4.3.0(@types/node@20.12.12)(typescript@5.4.5) conventional-commit-types: 3.0.0 lodash.map: 4.6.0 longest: 2.0.1 word-wrap: 1.2.5 optionalDependencies: - '@commitlint/load': 19.2.0(@types/node@20.12.11)(typescript@5.4.5) + '@commitlint/load': 19.2.0(@types/node@20.12.12)(typescript@5.4.5) transitivePeerDependencies: - '@types/node' - typescript @@ -6376,7 +6371,7 @@ snapshots: dependencies: jake: 10.9.1 - electron-to-chromium@1.4.763: {} + electron-to-chromium@1.4.774: {} element-resize-detector@1.2.4: dependencies: @@ -6471,7 +6466,7 @@ snapshots: es-errors@1.3.0: {} - es-module-lexer@1.5.2: {} + es-module-lexer@1.5.3: {} es-object-atoms@1.0.0: dependencies: @@ -6527,37 +6522,37 @@ snapshots: escape-string-regexp@5.0.0: {} - eslint-config-prettier@9.1.0(eslint@9.2.0): + eslint-config-prettier@9.1.0(eslint@9.3.0): dependencies: - eslint: 9.2.0 + eslint: 9.3.0 eslint-define-config@2.1.0: {} - eslint-plugin-prettier@5.1.3(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.2.0))(eslint@9.2.0)(prettier@3.2.5): + eslint-plugin-prettier@5.1.3(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.3.0))(eslint@9.3.0)(prettier@3.2.5): dependencies: - eslint: 9.2.0 + eslint: 9.3.0 prettier: 3.2.5 prettier-linter-helpers: 1.0.0 synckit: 0.8.8 optionalDependencies: '@types/eslint': 8.56.10 - eslint-config-prettier: 9.1.0(eslint@9.2.0) + eslint-config-prettier: 9.1.0(eslint@9.3.0) eslint-plugin-quasar@1.1.0: dependencies: requireindex: 1.2.0 semver-compare: 1.0.0 - eslint-plugin-vue@9.26.0(eslint@9.2.0): + eslint-plugin-vue@9.26.0(eslint@9.3.0): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.2.0) - eslint: 9.2.0 + '@eslint-community/eslint-utils': 4.4.0(eslint@9.3.0) + eslint: 9.3.0 globals: 13.24.0 natural-compare: 1.4.0 nth-check: 2.1.1 postcss-selector-parser: 6.0.16 semver: 7.6.2 - vue-eslint-parser: 9.4.2(eslint@9.2.0) + vue-eslint-parser: 9.4.2(eslint@9.3.0) xml-name-validator: 4.0.0 transitivePeerDependencies: - supports-color @@ -6581,15 +6576,15 @@ snapshots: eslint-visitor-keys@4.0.0: {} - eslint@9.2.0: + eslint@9.3.0: dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.2.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.3.0) '@eslint-community/regexpp': 4.10.0 - '@eslint/eslintrc': 3.0.2 - '@eslint/js': 9.2.0 + '@eslint/eslintrc': 3.1.0 + '@eslint/js': 9.3.0 '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 - '@humanwhocodes/retry': 0.2.4 + '@humanwhocodes/retry': 0.3.0 '@nodelib/fs.walk': 1.2.8 ajv: 6.12.6 chalk: 4.1.2 @@ -6728,7 +6723,7 @@ snapshots: '@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1) '@codemirror/commands': 6.5.0 '@codemirror/language': 6.10.1 - '@codemirror/lint': 6.7.0 + '@codemirror/lint': 6.7.1 '@codemirror/state': 6.4.1 '@codemirror/view': 6.26.3 '@lezer/common': 1.2.1 @@ -7065,7 +7060,7 @@ snapshots: ignore@5.3.1: {} - immutable@4.3.5: {} + immutable@4.3.6: {} import-fresh@3.3.0: dependencies: @@ -7259,7 +7254,7 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 20.12.11 + '@types/node': 20.12.12 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -7807,7 +7802,7 @@ snapshots: safe-buffer: 5.2.1 sha.js: 2.4.11 - picocolors@1.0.0: {} + picocolors@1.0.1: {} picomatch@2.3.1: {} @@ -7882,10 +7877,10 @@ snapshots: postcss@8.4.38: dependencies: nanoid: 3.3.7 - picocolors: 1.0.0 + picocolors: 1.0.1 source-map-js: 1.2.0 - preact@10.21.0: {} + preact@10.22.0: {} preferred-pm@3.1.3: dependencies: @@ -7929,7 +7924,7 @@ snapshots: dependencies: side-channel: 1.0.6 - quasar@2.16.2: {} + quasar@2.16.4: {} querystring-es3@0.2.1: {} @@ -8117,10 +8112,10 @@ snapshots: safer-buffer@2.1.2: {} - sass@1.77.1: + sass@1.77.2: dependencies: chokidar: 3.6.0 - immutable: 4.3.5 + immutable: 4.3.6 source-map-js: 1.2.0 saxen@10.0.0: {} @@ -8417,7 +8412,7 @@ snapshots: '@csstools/css-parser-algorithms': 2.6.3(@csstools/css-tokenizer@2.3.1) '@csstools/css-tokenizer': 2.3.1 '@csstools/media-query-list-parser': 2.1.11(@csstools/css-parser-algorithms@2.6.3(@csstools/css-tokenizer@2.3.1))(@csstools/css-tokenizer@2.3.1) - '@csstools/selector-specificity': 3.1.0(postcss-selector-parser@6.0.16) + '@csstools/selector-specificity': 3.1.1(postcss-selector-parser@6.0.16) '@dual-bundle/import-meta-resolve': 4.1.0 balanced-match: 2.0.0 colord: 2.9.3 @@ -8440,7 +8435,7 @@ snapshots: meow: 13.2.0 micromatch: 4.0.5 normalize-path: 3.0.0 - picocolors: 1.0.0 + picocolors: 1.0.1 postcss: 8.4.38 postcss-resolve-nested-selector: 0.1.1 postcss-safe-parser: 7.0.0(postcss@8.4.38) @@ -8703,11 +8698,11 @@ snapshots: webpack-sources: 3.2.3 webpack-virtual-modules: 0.6.1 - update-browserslist-db@1.0.15(browserslist@4.23.0): + update-browserslist-db@1.0.16(browserslist@4.23.0): dependencies: browserslist: 4.23.0 escalade: 3.1.2 - picocolors: 1.0.0 + picocolors: 1.0.1 uri-js@4.4.1: dependencies: @@ -8735,18 +8730,18 @@ snapshots: validator@13.12.0: {} - vite-plugin-compression@0.5.1(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)): + vite-plugin-compression@0.5.1(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0)): dependencies: chalk: 4.1.2 debug: 4.3.4 fs-extra: 10.1.0 - vite: 5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0) + vite: 5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0) transitivePeerDependencies: - supports-color - vite-plugin-dts@3.9.1(@types/node@20.12.11)(rollup@4.17.2)(typescript@5.4.5)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)): + vite-plugin-dts@3.9.1(@types/node@20.12.12)(rollup@4.17.2)(typescript@5.4.5)(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0)): dependencies: - '@microsoft/api-extractor': 7.43.0(@types/node@20.12.11) + '@microsoft/api-extractor': 7.43.0(@types/node@20.12.12) '@rollup/pluginutils': 5.1.0(rollup@4.17.2) '@vue/language-core': 1.8.27(typescript@5.4.5) debug: 4.3.4 @@ -8755,13 +8750,13 @@ snapshots: typescript: 5.4.5 vue-tsc: 1.8.27(typescript@5.4.5) optionalDependencies: - vite: 5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0) + vite: 5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0) transitivePeerDependencies: - '@types/node' - rollup - supports-color - vite-plugin-html@3.2.2(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)): + vite-plugin-html@3.2.2(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0)): dependencies: '@rollup/pluginutils': 4.2.1 colorette: 2.0.20 @@ -8775,25 +8770,25 @@ snapshots: html-minifier-terser: 6.1.0 node-html-parser: 5.4.2 pathe: 0.2.0 - vite: 5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0) + vite: 5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0) - vite-plugin-node-polyfills@0.21.0(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)): + vite-plugin-node-polyfills@0.21.0(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0)): dependencies: '@rollup/plugin-inject': 5.0.5(rollup@4.17.2) node-stdlib-browser: 1.2.0 - vite: 5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0) + vite: 5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0) transitivePeerDependencies: - rollup - vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0): + vite@5.2.11(@types/node@20.12.12)(sass@1.77.2)(terser@5.31.0): dependencies: esbuild: 0.20.2 postcss: 8.4.38 rollup: 4.17.2 optionalDependencies: - '@types/node': 20.12.11 + '@types/node': 20.12.12 fsevents: 2.3.3 - sass: 1.77.1 + sass: 1.77.2 terser: 5.31.0 vm-browserify@1.1.2: {} @@ -8808,10 +8803,10 @@ snapshots: dependencies: vue: 3.4.27(typescript@5.4.5) - vue-eslint-parser@9.4.2(eslint@9.2.0): + vue-eslint-parser@9.4.2(eslint@9.3.0): dependencies: debug: 4.3.4 - eslint: 9.2.0 + eslint: 9.3.0 eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 espree: 9.6.1 @@ -8833,7 +8828,7 @@ snapshots: '@vue/devtools-api': 6.6.1 vue: 3.4.27(typescript@5.4.5) - vue-simple-uploader@1.0.2(vue@3.4.27(typescript@5.4.5)): + vue-simple-uploader@1.0.3(vue@3.4.27(typescript@5.4.5)): dependencies: simple-uploader.js: 0.6.0 vue: 3.4.27(typescript@5.4.5) @@ -8850,10 +8845,10 @@ snapshots: semver: 7.6.2 typescript: 5.4.5 - vue-tsc@2.0.17(typescript@5.4.5): + vue-tsc@2.0.19(typescript@5.4.5): dependencies: - '@volar/typescript': 2.2.2 - '@vue/language-core': 2.0.17(typescript@5.4.5) + '@volar/typescript': 2.2.4 + '@vue/language-core': 2.0.19(typescript@5.4.5) semver: 7.6.2 typescript: 5.4.5 @@ -8899,7 +8894,7 @@ snapshots: browserslist: 4.23.0 chrome-trace-event: 1.0.3 enhanced-resolve: 5.16.1 - es-module-lexer: 1.5.2 + es-module-lexer: 1.5.3 eslint-scope: 5.1.1 events: 3.3.0 glob-to-regexp: 0.4.1 diff --git a/shared/bpmn-designer/dist/index.es.mjs b/shared/bpmn-designer/dist/index.es.mjs index e7f95c94..49a6f7c9 100644 --- a/shared/bpmn-designer/dist/index.es.mjs +++ b/shared/bpmn-designer/dist/index.es.mjs @@ -5092,12 +5092,12 @@ function translate$1(template, replacements) { const TranslateModule = { translate: ["value", translate$1] }; -function pointDistance(a2, b) { - if (!a2 || !b) { +function pointDistance(a2, b2) { + if (!a2 || !b2) { return -1; } return Math.sqrt( - Math.pow(a2.x - b.x, 2) + Math.pow(a2.y - b.y, 2) + Math.pow(a2.x - b2.x, 2) + Math.pow(a2.y - b2.y, 2) ); } function pointsOnLine(p2, q2, r2, accuracy) { @@ -5111,7 +5111,7 @@ function pointsOnLine(p2, q2, r2, accuracy) { return Math.abs(val / dist2) <= accuracy; } var ALIGNED_THRESHOLD = 2; -function pointsAligned(a2, b) { +function pointsAligned(a2, b2) { var points = Array.from(arguments).flat(); const axisMap = { "x": "v", @@ -5192,18 +5192,18 @@ function parsePathString(pathString) { data = clone(pathString); } if (!data.length) { - String(pathString).replace(pathCommand, function(a2, b, c2) { - var params = [], name2 = b.toLowerCase(); - c2.replace(pathValues, function(a3, b2) { - b2 && params.push(+b2); + String(pathString).replace(pathCommand, function(a2, b2, c2) { + var params = [], name2 = b2.toLowerCase(); + c2.replace(pathValues, function(a3, b3) { + b3 && params.push(+b3); }); if (name2 == "m" && params.length > 2) { - data.push([b, ...params.splice(0, 2)]); + data.push([b2, ...params.splice(0, 2)]); name2 = "l"; - b = b == "m" ? "l" : "L"; + b2 = b2 == "m" ? "l" : "L"; } while (params.length >= paramCounts[name2]) { - data.push([b, ...params.splice(0, paramCounts[name2])]); + data.push([b2, ...params.splice(0, paramCounts[name2])]); if (!paramCounts[name2]) { break; } @@ -5570,37 +5570,37 @@ function arcToCurve(x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, r } } function curveBBox(x0, y0, x1, y1, x2, y2, x3, y3) { - var tvalues = [], bounds = [[], []], a2, b, c2, t2, t1, t22, b2ac, sqrtb2ac; + var tvalues = [], bounds = [[], []], a2, b2, c2, t2, t1, t22, b2ac, sqrtb2ac; for (var i2 = 0; i2 < 2; ++i2) { if (i2 == 0) { - b = 6 * x0 - 12 * x1 + 6 * x2; + b2 = 6 * x0 - 12 * x1 + 6 * x2; a2 = -3 * x0 + 9 * x1 - 9 * x2 + 3 * x3; c2 = 3 * x1 - 3 * x0; } else { - b = 6 * y0 - 12 * y1 + 6 * y2; + b2 = 6 * y0 - 12 * y1 + 6 * y2; a2 = -3 * y0 + 9 * y1 - 9 * y2 + 3 * y3; c2 = 3 * y1 - 3 * y0; } if (abs$7(a2) < 1e-12) { - if (abs$7(b) < 1e-12) { + if (abs$7(b2) < 1e-12) { continue; } - t2 = -c2 / b; + t2 = -c2 / b2; if (0 < t2 && t2 < 1) { tvalues.push(t2); } continue; } - b2ac = b * b - 4 * c2 * a2; + b2ac = b2 * b2 - 4 * c2 * a2; sqrtb2ac = math.sqrt(b2ac); if (b2ac < 0) { continue; } - t1 = (-b + sqrtb2ac) / (2 * a2); + t1 = (-b2 + sqrtb2ac) / (2 * a2); if (0 < t1 && t1 < 1) { tvalues.push(t1); } - t22 = (-b - sqrtb2ac) / (2 * a2); + t22 = (-b2 - sqrtb2ac) / (2 * a2); if (0 < t22 && t22 < 1) { tvalues.push(t22); } @@ -5820,8 +5820,8 @@ function getElementLineIntersection(elementPath, linePath2, cropStart) { } return null; } -function getIntersections(a2, b) { - return findPathIntersections(a2, b); +function getIntersections(a2, b2) { + return findPathIntersections(a2, b2); } function filterRedundantWaypoints(waypoints) { waypoints = waypoints.slice(); @@ -5838,8 +5838,8 @@ function filterRedundantWaypoints(waypoints) { } return waypoints; } -function distance(a2, b) { - return Math.sqrt(Math.pow(a2.x - b.x, 2) + Math.pow(a2.y - b.y, 2)); +function distance(a2, b2) { + return Math.sqrt(Math.pow(a2.x - b2.x, 2) + Math.pow(a2.y - b2.y, 2)); } function elementData(semantic, di, attrs) { return assign$2({ @@ -8104,10 +8104,10 @@ function center(bounds) { y: bounds.y + bounds.height / 2 }; } -function delta(a2, b) { +function delta(a2, b2) { return { - x: a2.x - b.x, - y: a2.y - b.y + x: a2.x - b2.x, + y: a2.y - b2.y }; } var THRESHOLD$1 = 15; @@ -8783,44 +8783,44 @@ const ContextPadModule$1 = { ], contextPad: ["type", ContextPad] }; -var n$1, l$1, u$1, i$1, o$2, r$3, f$1, e$2, c$1, s$1, h$1 = {}, v$1 = [], p$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, y$1 = Array.isArray; +var n$1, l$1, u$1, i$1, o$2, r$3, f$1, e$2, c$1, s$1, h$1 = {}, p$1 = [], v$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, y$1 = Array.isArray; function d$1(n2, l2) { for (var u2 in l2) n2[u2] = l2[u2]; return n2; } -function _$1(n2) { +function w$1(n2) { var l2 = n2.parentNode; l2 && l2.removeChild(n2); } -function g(l2, u2, t2) { +function _$1(l2, u2, t2) { var i2, o2, r2, f2 = {}; for (r2 in u2) "key" == r2 ? i2 = u2[r2] : "ref" == r2 ? o2 = u2[r2] : f2[r2] = u2[r2]; if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n$1.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (r2 in l2.defaultProps) void 0 === f2[r2] && (f2[r2] = l2.defaultProps[r2]); - return k$1(l2, f2, i2, o2, null); + return g(l2, f2, i2, o2, null); } -function k$1(n2, t2, i2, o2, r2) { +function g(n2, t2, i2, o2, r2) { var f2 = { type: n2, props: t2, key: i2, ref: o2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: null == r2 ? ++u$1 : r2, __i: -1, __u: 0 }; return null == r2 && null != l$1.vnode && l$1.vnode(f2), f2; } -function m$2(n2) { +function k$1(n2) { return n2.children; } -function w$1(n2, l2) { +function b(n2, l2) { this.props = n2, this.context = l2; } -function C$1(n2, l2) { +function x$1(n2, l2) { if (null == l2) - return n2.__ ? C$1(n2.__, n2.__i + 1) : null; + return n2.__ ? x$1(n2.__, n2.__i + 1) : null; for (var u2; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) return u2.__e; - return "function" == typeof n2.type ? C$1(n2) : null; + return "function" == typeof n2.type ? x$1(n2) : null; } -function x$1(n2) { +function C$1(n2) { var l2, u2; if (null != (n2 = n2.__) && null != n2.__c) { for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++) @@ -8828,37 +8828,37 @@ function x$1(n2) { n2.__e = n2.__c.base = u2.__e; break; } - return x$1(n2); + return C$1(n2); } } -function P(n2) { - (!n2.__d && (n2.__d = true) && i$1.push(n2) && !S.__r++ || o$2 !== l$1.debounceRendering) && ((o$2 = l$1.debounceRendering) || r$3)(S); +function M(n2) { + (!n2.__d && (n2.__d = true) && i$1.push(n2) && !P.__r++ || o$2 !== l$1.debounceRendering) && ((o$2 = l$1.debounceRendering) || r$3)(P); } -function S() { +function P() { 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, void 0 !== t2.__P.ownerSVGElement, 32 & r2.__u ? [e2] : null, c2, null == e2 ? C$1(r2) : e2, !!(32 & r2.__u), s2), o2.__v = r2.__v, o2.__.__k[o2.__i] = o2, j$1(c2, o2, s2), o2.__e != e2 && x$1(o2)), i$1.length > u2 && i$1.sort(f$1)); - S.__r = 0; + 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$1(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; } -function $(n2, l2, u2, t2, i2, o2, r2, f2, e2, c2, s2) { - var a2, p2, y2, d2, _2, g2 = t2 && t2.__k || v$1, k2 = l2.length; - for (u2.__d = e2, I(u2, l2, g2), e2 = u2.__d, a2 = 0; a2 < k2; a2++) - null != (y2 = u2.__k[a2]) && "boolean" != typeof y2 && "function" != typeof y2 && (p2 = -1 === y2.__i ? h$1 : g2[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 == _2 && null != d2 && (_2 = d2), 65536 & y2.__u || p2.__k === y2.__k ? (e2 && !e2.isConnected && (e2 = C$1(p2)), e2 = H(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 = _2; +function S(n2, l2, u2, t2, i2, o2, r2, f2, e2, c2, s2) { + var a2, v2, y2, d2, w2, _2 = t2 && t2.__k || p$1, g2 = l2.length; + for (u2.__d = e2, $(u2, l2, _2), e2 = u2.__d, a2 = 0; a2 < g2; a2++) + null != (y2 = u2.__k[a2]) && "boolean" != typeof y2 && "function" != typeof y2 && (v2 = -1 === y2.__i ? h$1 : _2[y2.__i] || h$1, y2.__i = a2, O(n2, y2, v2, i2, o2, r2, f2, e2, c2, s2), d2 = y2.__e, y2.ref && v2.ref != y2.ref && (v2.ref && N(v2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), 65536 & y2.__u || v2.__k === y2.__k ? (e2 && !e2.isConnected && (e2 = x$1(v2)), 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; } -function I(n2, l2, u2) { +function $(n2, l2, u2) { var t2, i2, o2, r2, f2, e2 = l2.length, c2 = u2.length, s2 = c2, a2 = 0; for (n2.__k = [], t2 = 0; t2 < e2; t2++) - r2 = t2 + a2, null != (i2 = n2.__k[t2] = null == (i2 = l2[t2]) || "boolean" == typeof i2 || "function" == typeof i2 ? null : "string" == typeof i2 || "number" == typeof i2 || "bigint" == typeof i2 || i2.constructor == String ? k$1(null, i2, null, null, null) : y$1(i2) ? k$1(m$2, { children: i2 }, null, null, null) : void 0 === i2.constructor && i2.__b > 0 ? k$1(i2.type, i2.props, i2.key, i2.ref ? i2.ref : null, i2.__v) : i2) ? (i2.__ = n2, i2.__b = n2.__b + 1, f2 = A$1(i2, u2, r2, s2), i2.__i = f2, o2 = null, -1 !== f2 && (s2--, (o2 = u2[f2]) && (o2.__u |= 131072)), null == o2 || null === o2.__v ? (-1 == f2 && a2--, "function" != typeof i2.type && (i2.__u |= 65536)) : f2 !== r2 && (f2 === r2 + 1 ? a2++ : f2 > r2 ? s2 > e2 - r2 ? a2 += f2 - r2 : a2-- : f2 < r2 ? f2 == r2 - 1 && (a2 = f2 - r2) : a2 = 0, f2 !== t2 + a2 && (i2.__u |= 65536))) : (o2 = u2[r2]) && null == o2.key && o2.__e && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = C$1(o2)), V(o2, o2, false), u2[r2] = null, s2--); + r2 = t2 + a2, null != (i2 = n2.__k[t2] = null == (i2 = l2[t2]) || "boolean" == typeof i2 || "function" == typeof i2 ? null : "string" == typeof i2 || "number" == typeof i2 || "bigint" == typeof i2 || i2.constructor == String ? g(null, i2, null, null, null) : y$1(i2) ? g(k$1, { children: i2 }, null, null, null) : void 0 === i2.constructor && i2.__b > 0 ? g(i2.type, i2.props, i2.key, i2.ref ? i2.ref : null, i2.__v) : i2) ? (i2.__ = n2, i2.__b = n2.__b + 1, f2 = L(i2, u2, r2, s2), i2.__i = f2, o2 = null, -1 !== f2 && (s2--, (o2 = u2[f2]) && (o2.__u |= 131072)), null == o2 || null === o2.__v ? (-1 == f2 && a2--, "function" != typeof i2.type && (i2.__u |= 65536)) : f2 !== r2 && (f2 === r2 + 1 ? a2++ : f2 > r2 ? s2 > e2 - r2 ? a2 += f2 - r2 : a2-- : f2 < r2 ? f2 == r2 - 1 && (a2 = f2 - r2) : a2 = 0, f2 !== t2 + a2 && (i2.__u |= 65536))) : (o2 = u2[r2]) && null == o2.key && o2.__e && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = x$1(o2)), V(o2, o2, false), u2[r2] = null, s2--); if (s2) for (t2 = 0; t2 < c2; t2++) - null != (o2 = u2[t2]) && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = C$1(o2)), V(o2, o2)); + null != (o2 = u2[t2]) && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = x$1(o2)), V(o2, o2)); } -function H(n2, l2, u2) { +function I(n2, l2, u2) { var t2, i2; if ("function" == typeof n2.type) { for (t2 = n2.__k, i2 = 0; t2 && i2 < t2.length; i2++) - t2[i2] && (t2[i2].__ = n2, l2 = H(t2[i2], l2, u2)); + t2[i2] && (t2[i2].__ = n2, l2 = I(t2[i2], l2, u2)); return l2; } n2.__e != l2 && (u2.insertBefore(n2.__e, l2 || null), l2 = n2.__e); @@ -8867,7 +8867,7 @@ function H(n2, l2, u2) { } while (null != l2 && 8 === l2.nodeType); return l2; } -function A$1(n2, l2, u2, t2) { +function L(n2, l2, u2, t2) { var i2 = n2.key, o2 = n2.type, r2 = u2 - 1, f2 = u2 + 1, e2 = l2[u2]; if (null === e2 || e2 && i2 == e2.key && o2 === e2.type && 0 == (131072 & e2.__u)) return u2; @@ -8886,10 +8886,10 @@ function A$1(n2, l2, u2, t2) { } return -1; } -function F$1(n2, l2, u2) { - "-" === l2[0] ? n2.setProperty(l2, null == u2 ? "" : u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || p$1.test(l2) ? u2 : u2 + "px"; +function T(n2, l2, u2) { + "-" === l2[0] ? n2.setProperty(l2, null == u2 ? "" : u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || v$1.test(l2) ? u2 : u2 + "px"; } -function L(n2, l2, u2, t2, i2) { +function A$1(n2, l2, u2, t2, i2) { var o2; n: if ("style" === l2) @@ -8898,15 +8898,15 @@ function L(n2, l2, u2, t2, i2) { else { if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) - u2 && l2 in u2 || F$1(n2.style, l2, ""); + u2 && l2 in u2 || T(n2.style, l2, ""); if (u2) for (l2 in u2) - t2 && u2[l2] === t2[l2] || F$1(n2.style, l2, u2[l2]); + t2 && u2[l2] === t2[l2] || T(n2.style, l2, u2[l2]); } else if ("o" === l2[0] && "n" === l2[1]) o2 = l2 !== (l2 = l2.replace(/(PointerCapture)$|Capture$/i, "$1")), l2 = l2.toLowerCase() in n2 || "onFocusOut" === l2 || "onFocusIn" === l2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = e$2, n2.addEventListener(l2, o2 ? s$1 : c$1, o2)) : n2.removeEventListener(l2, o2 ? s$1 : c$1, o2); else { - if (i2) + if ("http://www.w3.org/2000/svg" == i2) l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s"); else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && l2 in n2) try { @@ -8917,7 +8917,7 @@ function L(n2, l2, u2, t2, i2) { "function" == typeof u2 || (null == u2 || false === u2 && "-" !== l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, u2)); } } -function M(n2) { +function F$1(n2) { return function(u2) { if (this.l) { var t2 = this.l[u2.type + n2]; @@ -8930,37 +8930,37 @@ function M(n2) { }; } function O(n2, u2, t2, i2, o2, r2, f2, e2, c2, s2) { - var a2, h2, v2, p2, _2, g2, k2, b, C2, x2, P2, S2, I2, H2, T, A2 = u2.type; + var a2, h2, p2, v2, w2, _2, g2, m2, x2, C2, M2, P2, $2, I2, H, L2 = 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 A2) + if ("function" == typeof L2) try { - if (b = u2.props, C2 = (a2 = A2.contextType) && i2[a2.__c], x2 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? k2 = (h2 = u2.__c = t2.__c).__ = h2.__E : ("prototype" in A2 && A2.prototype.render ? u2.__c = h2 = new A2(b, x2) : (u2.__c = h2 = new w$1(b, x2), h2.constructor = A2, h2.render = q$1), C2 && C2.sub(h2), h2.props = b, h2.state || (h2.state = {}), h2.context = x2, h2.__n = i2, v2 = h2.__d = true, h2.__h = [], h2._sb = []), null == h2.__s && (h2.__s = h2.state), null != A2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, A2.getDerivedStateFromProps(b, h2.__s))), p2 = h2.props, _2 = h2.state, h2.__v = u2, v2) - null == A2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), null != h2.componentDidMount && h2.__h.push(h2.componentDidMount); + if (m2 = u2.props, x2 = (a2 = L2.contextType) && i2[a2.__c], C2 = a2 ? x2 ? x2.props.value : a2.__ : i2, t2.__c ? g2 = (h2 = u2.__c = t2.__c).__ = h2.__E : ("prototype" in L2 && L2.prototype.render ? u2.__c = h2 = new L2(m2, C2) : (u2.__c = h2 = new b(m2, C2), h2.constructor = L2, h2.render = q$1), x2 && x2.sub(h2), h2.props = m2, h2.state || (h2.state = {}), h2.context = C2, h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), null == h2.__s && (h2.__s = h2.state), null != L2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, L2.getDerivedStateFromProps(m2, h2.__s))), v2 = h2.props, w2 = h2.state, h2.__v = u2, p2) + null == L2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), null != h2.componentDidMount && h2.__h.push(h2.componentDidMount); else { - if (null == A2.getDerivedStateFromProps && b !== p2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(b, x2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(b, h2.__s, x2) || u2.__v === t2.__v)) { - for (u2.__v !== t2.__v && (h2.props = b, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.forEach(function(n3) { + if (null == L2.getDerivedStateFromProps && m2 !== v2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(m2, C2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(m2, h2.__s, C2) || 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.forEach(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(b, h2.__s, x2), null != h2.componentDidUpdate && h2.__h.push(function() { - h2.componentDidUpdate(p2, _2, g2); + null != h2.componentWillUpdate && h2.componentWillUpdate(m2, h2.__s, C2), null != h2.componentDidUpdate && h2.__h.push(function() { + h2.componentDidUpdate(v2, w2, _2); }); } - if (h2.context = x2, h2.props = b, h2.__P = n2, h2.__e = false, S2 = l$1.__r, I2 = 0, "prototype" in A2 && A2.prototype.render) { - for (h2.state = h2.__s, h2.__d = false, S2 && S2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) - h2.__h.push(h2._sb[H2]); + if (h2.context = C2, h2.props = m2, h2.__P = n2, h2.__e = false, P2 = l$1.__r, $2 = 0, "prototype" in L2 && L2.prototype.render) { + for (h2.state = h2.__s, h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), I2 = 0; I2 < h2._sb.length; I2++) + h2.__h.push(h2._sb[I2]); h2._sb = []; } else do { - h2.__d = false, S2 && S2(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())), v2 || null == h2.getSnapshotBeforeUpdate || (g2 = h2.getSnapshotBeforeUpdate(p2, _2)), $(n2, y$1(T = null != a2 && a2.type === m$2 && null == a2.key ? a2.props.children : a2) ? T : [T], u2, t2, i2, o2, r2, f2, e2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && f2.push(h2), k2 && (h2.__E = h2.__ = null); + h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s; + } while (h2.__d && ++$2 < 25); + h2.state = h2.__s, null != h2.getChildContext && (i2 = d$1(d$1({}, i2), h2.getChildContext())), p2 || null == h2.getSnapshotBeforeUpdate || (_2 = h2.getSnapshotBeforeUpdate(v2, w2)), S(n2, y$1(H = null != a2 && a2.type === k$1 && null == a2.key ? a2.props.children : a2) ? H : [H], 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) { u2.__v = null, c2 || null != r2 ? (u2.__e = e2, u2.__u |= c2 ? 160 : 32, r2[r2.indexOf(e2)] = null) : (u2.__e = t2.__e, u2.__k = t2.__k), l$1.__e(n3, u2, t2); } @@ -8983,43 +8983,43 @@ function j$1(n2, u2, t2) { }); } function z$1(l2, u2, t2, i2, o2, r2, f2, e2, c2) { - var s2, a2, v2, p2, d2, g2, k2, b = t2.props, m2 = u2.props, w2 = u2.type; - if ("svg" === w2 && (o2 = true), null != r2) { + var s2, a2, p2, v2, d2, _2, g2, m2 = t2.props, k2 = u2.props, b2 = u2.type; + if ("svg" === b2 ? o2 = "http://www.w3.org/2000/svg" : "math" === b2 ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), null != r2) { for (s2 = 0; s2 < r2.length; s2++) - if ((d2 = r2[s2]) && "setAttribute" in d2 == !!w2 && (w2 ? d2.localName === w2 : 3 === d2.nodeType)) { + if ((d2 = r2[s2]) && "setAttribute" in d2 == !!b2 && (b2 ? d2.localName === b2 : 3 === d2.nodeType)) { l2 = d2, r2[s2] = null; break; } } if (null == l2) { - if (null === w2) - return document.createTextNode(m2); - l2 = o2 ? document.createElementNS("http://www.w3.org/2000/svg", w2) : document.createElement(w2, m2.is && m2), r2 = null, e2 = false; + if (null === b2) + return document.createTextNode(k2); + l2 = document.createElementNS(o2, b2, k2.is && k2), r2 = null, e2 = false; } - if (null === w2) - b === m2 || e2 && l2.data === m2 || (l2.data = m2); + if (null === b2) + m2 === k2 || e2 && l2.data === k2 || (l2.data = k2); else { - if (r2 = r2 && n$1.call(l2.childNodes), b = t2.props || h$1, !e2 && null != r2) - for (b = {}, s2 = 0; s2 < l2.attributes.length; s2++) - b[(d2 = l2.attributes[s2]).name] = d2.value; - for (s2 in b) - if (d2 = b[s2], "children" == s2) + if (r2 = r2 && n$1.call(l2.childNodes), m2 = t2.props || h$1, !e2 && null != r2) + for (m2 = {}, s2 = 0; s2 < l2.attributes.length; s2++) + m2[(d2 = l2.attributes[s2]).name] = d2.value; + for (s2 in m2) + if (d2 = m2[s2], "children" == s2) ; else if ("dangerouslySetInnerHTML" == s2) - v2 = d2; - else if ("key" !== s2 && !(s2 in m2)) { - if ("value" == s2 && "defaultValue" in m2 || "checked" == s2 && "defaultChecked" in m2) + p2 = d2; + else if ("key" !== s2 && !(s2 in k2)) { + if ("value" == s2 && "defaultValue" in k2 || "checked" == s2 && "defaultChecked" in k2) continue; - L(l2, s2, null, d2, o2); + A$1(l2, s2, null, d2, o2); } - for (s2 in m2) - d2 = m2[s2], "children" == s2 ? p2 = d2 : "dangerouslySetInnerHTML" == s2 ? a2 = d2 : "value" == s2 ? g2 = d2 : "checked" == s2 ? k2 = d2 : "key" === s2 || e2 && "function" != typeof d2 || b[s2] === d2 || L(l2, s2, d2, b[s2], o2); + for (s2 in k2) + d2 = k2[s2], "children" == s2 ? v2 = d2 : "dangerouslySetInnerHTML" == s2 ? a2 = d2 : "value" == s2 ? _2 = d2 : "checked" == s2 ? g2 = d2 : "key" === s2 || e2 && "function" != typeof d2 || m2[s2] === d2 || A$1(l2, s2, d2, m2[s2], o2); if (a2) - e2 || v2 && (a2.__html === v2.__html || a2.__html === l2.innerHTML) || (l2.innerHTML = a2.__html), u2.__k = []; - else if (v2 && (l2.innerHTML = ""), $(l2, y$1(p2) ? p2 : [p2], u2, t2, i2, o2 && "foreignObject" !== w2, r2, f2, r2 ? r2[0] : t2.__k && C$1(t2, 0), e2, c2), null != r2) + e2 || p2 && (a2.__html === p2.__html || a2.__html === l2.innerHTML) || (l2.innerHTML = a2.__html), u2.__k = []; + else if (p2 && (l2.innerHTML = ""), S(l2, y$1(v2) ? v2 : [v2], u2, t2, i2, "foreignObject" === b2 ? "http://www.w3.org/1999/xhtml" : o2, r2, f2, r2 ? r2[0] : t2.__k && x$1(t2, 0), e2, c2), null != r2) for (s2 = r2.length; s2--; ) - null != r2[s2] && _$1(r2[s2]); - e2 || (s2 = "value", void 0 !== g2 && (g2 !== l2[s2] || "progress" === w2 && !g2 || "option" === w2 && g2 !== b[s2]) && L(l2, s2, g2, b[s2], false), s2 = "checked", void 0 !== k2 && k2 !== l2[s2] && L(l2, s2, k2, b[s2], false)); + null != r2[s2] && w$1(r2[s2]); + e2 || (s2 = "value", void 0 !== _2 && (_2 !== l2[s2] || "progress" === b2 && !_2 || "option" === b2 && _2 !== m2[s2]) && A$1(l2, s2, _2, m2[s2], o2), s2 = "checked", void 0 !== g2 && g2 !== l2[s2] && A$1(l2, s2, g2, m2[s2], o2)); } return l2; } @@ -9044,16 +9044,16 @@ function V(n2, u2, t2) { if (i2 = n2.__k) for (o2 = 0; o2 < i2.length; o2++) i2[o2] && V(i2[o2], u2, t2 || "function" != typeof n2.type); - t2 || null == n2.__e || _$1(n2.__e), n2.__c = n2.__ = n2.__e = n2.__d = void 0; + t2 || null == n2.__e || w$1(n2.__e), n2.__c = n2.__ = n2.__e = n2.__d = void 0; } function q$1(n2, l2, u2) { return this.constructor(n2, u2); } function B$1(u2, t2, i2) { var o2, r2, f2, e2; - l$1.__ && l$1.__(u2, t2), r2 = (o2 = "function" == typeof i2) ? null : t2.__k, f2 = [], e2 = [], O(t2, u2 = (!o2 && i2 || t2).__k = g(m$2, null, [u2]), r2 || h$1, h$1, void 0 !== t2.ownerSVGElement, !o2 && i2 ? [i2] : r2 ? null : t2.firstChild ? n$1.call(t2.childNodes) : null, f2, !o2 && i2 ? i2 : r2 ? r2.__e : t2.firstChild, o2, e2), j$1(f2, u2, e2); + l$1.__ && l$1.__(u2, t2), r2 = (o2 = "function" == typeof i2) ? null : t2.__k, f2 = [], e2 = [], O(t2, u2 = (!o2 && i2 || t2).__k = _$1(k$1, null, [u2]), r2 || h$1, h$1, t2.namespaceURI, !o2 && i2 ? [i2] : r2 ? null : t2.firstChild ? n$1.call(t2.childNodes) : null, f2, !o2 && i2 ? i2 : r2 ? r2.__e : t2.firstChild, o2, e2), j$1(f2, u2, e2); } -n$1 = v$1.slice, l$1 = { __e: function(n2, l2, u2, t2) { +n$1 = p$1.slice, l$1 = { __e: function(n2, l2, u2, t2) { for (var i2, o2, r2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try { @@ -9063,14 +9063,14 @@ n$1 = v$1.slice, l$1 = { __e: function(n2, l2, u2, t2) { n2 = l3; } throw n2; -} }, u$1 = 0, w$1.prototype.setState = function(n2, l2) { +} }, u$1 = 0, b.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), P(this)); -}, w$1.prototype.forceUpdate = function(n2) { - this.__v && (this.__e = true, n2 && this.__h.push(n2), P(this)); -}, w$1.prototype.render = m$2, i$1 = [], r$3 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f$1 = function(n2, l2) { + 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)); +}, b.prototype.forceUpdate = function(n2) { + this.__v && (this.__e = true, n2 && this.__h.push(n2), M(this)); +}, b.prototype.render = k$1, i$1 = [], r$3 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f$1 = function(n2, l2) { return n2.__v.__b - l2.__v.__b; -}, S.__r = 0, e$2 = 0, c$1 = M(false), s$1 = M(true); +}, P.__r = 0, e$2 = 0, c$1 = F$1(false), s$1 = F$1(true); var n = function(t2, s2, r2, e2) { var u2; s2[0] = 0; @@ -9093,7 +9093,7 @@ function e$1(s2) { return p2(), h2; }(s2)), r2), arguments, [])).length > 1 ? r2 : r2[0]; } -var m$1 = e$1.bind(g); +var m$1 = e$1.bind(_$1); var t, r$2, u, i, o$1 = 0, f = [], c = [], e = l$1, a = e.__b, v = e.__r, l = e.diffed, m = e.__c, s = e.unmount, d = e.__; function h(n2, t2) { e.__h && e.__h(r$2, n2, o$1 || t2), o$1 = 0; @@ -10211,38 +10211,38 @@ function getConnectedDistance(source2, hints) { if (!filter2) { filter2 = noneFilter; } - function getDistance2(a2, b) { + function getDistance2(a2, b2) { if (direction === "n") { if (reference === "start") { - return asTRBL(a2).top - asTRBL(b).bottom; + return asTRBL(a2).top - asTRBL(b2).bottom; } else if (reference === "center") { - return asTRBL(a2).top - getMid(b).y; + return asTRBL(a2).top - getMid(b2).y; } else { - return asTRBL(a2).top - asTRBL(b).top; + return asTRBL(a2).top - asTRBL(b2).top; } } else if (direction === "w") { if (reference === "start") { - return asTRBL(a2).left - asTRBL(b).right; + return asTRBL(a2).left - asTRBL(b2).right; } else if (reference === "center") { - return asTRBL(a2).left - getMid(b).x; + return asTRBL(a2).left - getMid(b2).x; } else { - return asTRBL(a2).left - asTRBL(b).left; + return asTRBL(a2).left - asTRBL(b2).left; } } else if (direction === "s") { if (reference === "start") { - return asTRBL(b).top - asTRBL(a2).bottom; + return asTRBL(b2).top - asTRBL(a2).bottom; } else if (reference === "center") { - return getMid(b).y - asTRBL(a2).bottom; + return getMid(b2).y - asTRBL(a2).bottom; } else { - return asTRBL(b).bottom - asTRBL(a2).bottom; + return asTRBL(b2).bottom - asTRBL(a2).bottom; } } else { if (reference === "start") { - return asTRBL(b).left - asTRBL(a2).right; + return asTRBL(b2).left - asTRBL(a2).right; } else if (reference === "center") { - return getMid(b).x - asTRBL(a2).right; + return getMid(b2).x - asTRBL(a2).right; } else { - return asTRBL(b).right - asTRBL(a2).right; + return asTRBL(b2).right - asTRBL(a2).right; } } } @@ -11172,13 +11172,13 @@ function getBendpointIntersection(waypoints, reference) { } function getPathIntersection(waypoints, reference) { var intersections = findPathIntersections(circlePath(reference, INTERSECTION_THRESHOLD$1), linePath(waypoints)); - var a2 = intersections[0], b = intersections[intersections.length - 1], idx; + var a2 = intersections[0], b2 = intersections[intersections.length - 1], idx; if (!a2) { return null; } - if (a2 !== b) { - if (a2.segment2 !== b.segment2) { - idx = max$6(a2.segment2, b.segment2) - 1; + if (a2 !== b2) { + if (a2.segment2 !== b2.segment2) { + idx = max$6(a2.segment2, b2.segment2) - 1; return { point: waypoints[idx], bendpoint: true, @@ -11187,8 +11187,8 @@ function getPathIntersection(waypoints, reference) { } return { point: { - x: round$a(a2.x + b.x) / 2, - y: round$a(a2.y + b.y) / 2 + x: round$a(a2.x + b2.x) / 2, + y: round$a(a2.y + b2.y) / 2 }, index: a2.segment2 }; @@ -11216,17 +11216,17 @@ function rotateVector(vector, angle) { y: Math.sin(angle) * vector.x + Math.cos(angle) * vector.y }; } -function solveLambaSystem(a2, b, c2) { +function solveLambaSystem(a2, b2, c2) { var system = [ - { n: a2[0] - c2[0], lambda: b[0] }, - { n: a2[1] - c2[1], lambda: b[1] } + { n: a2[0] - c2[0], lambda: b2[0] }, + { n: a2[1] - c2[1], lambda: b2[1] } ]; - var n2 = system[0].n * b[0] + system[1].n * b[1], l2 = system[0].lambda * b[0] + system[1].lambda * b[1]; + var n2 = system[0].n * b2[0] + system[1].n * b2[1], l2 = system[0].lambda * b2[0] + system[1].lambda * b2[1]; return -n2 / l2; } function perpendicularFoot(point, line) { - var a2 = line[0], b = line[1]; - var bd = { x: b.x - a2.x, y: b.y - a2.y }; + var a2 = line[0], b2 = line[1]; + var bd = { x: b2.x - a2.x, y: b2.y - a2.y }; var r2 = solveLambaSystem([a2.x, a2.y], [bd.x, bd.y], [point.x, point.y]); return { x: a2.x + r2 * bd.x, y: a2.y + r2 * bd.y }; } @@ -14268,14 +14268,14 @@ GroupBehavior.$inject = [ ]; e$3(GroupBehavior, CommandInterceptor); function lineIntersect(l1s, l1e, l2s, l2e) { - var denominator, a2, b, c2, numerator; + var denominator, a2, b2, c2, numerator; denominator = (l2e.y - l2s.y) * (l1e.x - l1s.x) - (l2e.x - l2s.x) * (l1e.y - l1s.y); if (denominator == 0) { return null; } a2 = l1s.y - l2s.y; - b = l1s.x - l2s.x; - numerator = (l2e.x - l2s.x) * a2 - (l2e.y - l2s.y) * b; + b2 = l1s.x - l2s.x; + numerator = (l2e.x - l2s.x) * a2 - (l2e.y - l2s.y) * b2; c2 = numerator / denominator; return { x: Math.round(l1s.x + c2 * (l1e.x - l1s.x)), @@ -16420,8 +16420,8 @@ function canStartConnection(element) { function nonExistingOrLabel(element) { return !element || isLabel(element); } -function isSame$1(a2, b) { - return a2 === b; +function isSame$1(a2, b2) { + return a2 === b2; } function getOrganizationalParent(element) { do { @@ -16445,8 +16445,8 @@ function isCompensationBoundary$1(element) { function isForCompensation(element) { return getBusinessObject(element).isForCompensation; } -function isSameOrganization(a2, b) { - var parentA = getOrganizationalParent(a2), parentB = getOrganizationalParent(b); +function isSameOrganization(a2, b2) { + var parentA = getOrganizationalParent(a2), parentB = getOrganizationalParent(b2); return parentA === parentB; } function isMessageFlowSource(element) { @@ -16467,8 +16467,8 @@ function getScopeParent(element) { } return null; } -function isSameScope(a2, b) { - var scopeParentA = getScopeParent(a2), scopeParentB = getScopeParent(b); +function isSameScope(a2, b2) { + var scopeParentA = getScopeParent(a2), scopeParentB = getScopeParent(b2); return scopeParentA === scopeParentB; } function hasEventDefinition$1(element, eventDefinition) { @@ -18165,9 +18165,9 @@ function hasEventDefinition(element, type) { return is$g(definition, type); }); } -function intersection(a2, b) { +function intersection(a2, b2) { return a2.filter(function(item) { - return b.includes(item); + return b2.includes(item); }); } const ReplaceModule = { @@ -19977,15 +19977,15 @@ function defineProperty(ref2, property, target) { } }); } -function Refs(a2, b) { +function Refs(a2, b2) { if (!(this instanceof Refs)) { - return new Refs(a2, b); + return new Refs(a2, b2); } - a2.inverse = b; - b.inverse = a2; + a2.inverse = b2; + b2.inverse = a2; this.props = {}; this.props[a2.name] = a2; - this.props[b.name] = b; + this.props[b2.name] = b2; } Refs.prototype.bind = function(target, property) { if (typeof property === "string") { @@ -22433,10 +22433,10 @@ function canLayoutStraight(direction, targetOrientation) { v: /top|bottom/ }[direction].test(targetOrientation); } -function getSegmentBendpoints(a2, b, directions2) { - var orientation = getOrientation(b, a2, POINT_ORIENTATION_PADDING); +function getSegmentBendpoints(a2, b2, directions2) { + var orientation = getOrientation(b2, a2, POINT_ORIENTATION_PADDING); var startDirection = directions2.split(":")[0]; - var xmid = round$2((b.x - a2.x) / 2 + a2.x), ymid = round$2((b.y - a2.y) / 2 + a2.y); + var xmid = round$2((b2.x - a2.x) / 2 + a2.x), ymid = round$2((b2.y - a2.y) / 2 + a2.y); var segmentEnd, segmentDirections; var layoutStraight = canLayoutStraight(startDirection, orientation), layoutHorizontal = /h|r|l/.test(startDirection), layoutTurn = false; var turnNextDirections = false; @@ -22473,11 +22473,11 @@ function getSegmentBendpoints(a2, b, directions2) { turnNextDirections }; } -function getStartSegment(a2, b, directions2) { - return getSegmentBendpoints(a2, b, directions2); +function getStartSegment(a2, b2, directions2) { + return getSegmentBendpoints(a2, b2, directions2); } -function getEndSegment(a2, b, directions2) { - var invertedSegment = getSegmentBendpoints(b, a2, invertDirections(directions2)); +function getEndSegment(a2, b2, directions2) { + var invertedSegment = getSegmentBendpoints(b2, a2, invertDirections(directions2)); return { waypoints: invertedSegment.waypoints.slice().reverse(), directions: invertDirections(invertedSegment.directions), @@ -22506,29 +22506,29 @@ function getMidSegment(startSegment, endSegment) { function invertDirections(directions2) { return directions2.split(":").reverse().join(":"); } -function getSimpleBendpoints(a2, b, directions2) { - var xmid = round$2((b.x - a2.x) / 2 + a2.x), ymid = round$2((b.y - a2.y) / 2 + a2.y); +function getSimpleBendpoints(a2, b2, directions2) { + var xmid = round$2((b2.x - a2.x) / 2 + a2.x), ymid = round$2((b2.y - a2.y) / 2 + a2.y); if (directions2 === "h:v") { - return [{ x: b.x, y: a2.y }]; + return [{ x: b2.x, y: a2.y }]; } if (directions2 === "v:h") { - return [{ x: a2.x, y: b.y }]; + return [{ x: a2.x, y: b2.y }]; } if (directions2 === "h:h") { return [ { x: xmid, y: a2.y }, - { x: xmid, y: b.y } + { x: xmid, y: b2.y } ]; } if (directions2 === "v:v") { return [ { x: a2.x, y: ymid }, - { x: b.x, y: ymid } + { x: b2.x, y: ymid } ]; } throw new Error("invalid directions: can only handle varians of [hv]:[hv]"); } -function getBendpoints(a2, b, directions2) { +function getBendpoints(a2, b2, directions2) { directions2 = directions2 || "h:h"; if (!isValidDirections(directions2)) { throw new Error( @@ -22536,19 +22536,19 @@ function getBendpoints(a2, b, directions2) { ); } if (isExplicitDirections(directions2)) { - var startSegment = getStartSegment(a2, b, directions2), endSegment = getEndSegment(a2, b, directions2), midSegment = getMidSegment(startSegment, endSegment); + var startSegment = getStartSegment(a2, b2, directions2), endSegment = getEndSegment(a2, b2, directions2), midSegment = getMidSegment(startSegment, endSegment); return [].concat( startSegment.waypoints, midSegment.waypoints, endSegment.waypoints ); } - return getSimpleBendpoints(a2, b, directions2); + return getSimpleBendpoints(a2, b2, directions2); } -function connectPoints(a2, b, directions2) { - var points = getBendpoints(a2, b, directions2); +function connectPoints(a2, b2, directions2) { + var points = getBendpoints(a2, b2, directions2); points.unshift(a2); - points.push(b); + points.push(b2); return withoutRedundantPoints(points); } function connectRectangles(source2, target, start, end, hints) { @@ -22593,12 +22593,12 @@ function repairConnection(source2, target, start, end, waypoints, hints) { function inRange(a2, start, end) { return a2 >= start && a2 <= end; } -function isInRange(axis, a2, b) { +function isInRange(axis, a2, b2) { var size2 = { x: "width", y: "height" }; - return inRange(a2[axis], b[axis], b[axis] + b[size2[axis]]); + return inRange(a2[axis], b2[axis], b2[axis] + b2[size2[axis]]); } function tryLayoutStraight(source2, target, start, end, hints) { var axis = {}, primaryAxis, orientation; @@ -22683,10 +22683,10 @@ function _tryRepairConnectionSide(moved, other2, newDocking, points) { } return { x: candidate.x, y: candidate.y }; } - function removeOverlapping(points2, a2, b) { + function removeOverlapping(points2, a2, b2) { var i2; for (i2 = points2.length - 2; i2 !== 0; i2--) { - if (pointInRect(points2[i2], a2, INTERSECTION_THRESHOLD) || pointInRect(points2[i2], b, INTERSECTION_THRESHOLD)) { + if (pointInRect(points2[i2], a2, INTERSECTION_THRESHOLD) || pointInRect(points2[i2], b2, INTERSECTION_THRESHOLD)) { return points2.slice(i2); } } @@ -22934,8 +22934,8 @@ function isCompensationAssociation(source2, target) { function isExpandedSubProcess$1(element) { return is$g(element, "bpmn:SubProcess") && isExpanded(element); } -function isSame(a2, b) { - return a2 === b; +function isSame(a2, b2) { + return a2 === b2; } function isAnyOrientation(orientation, orientations) { return orientations.indexOf(orientation) !== -1; @@ -22948,18 +22948,18 @@ function getVerticalOrientation(orientation) { var matches2 = /top|bottom/.exec(orientation); return matches2 && matches2[0]; } -function isOppositeOrientation(a2, b) { - return oppositeOrientationMapping[a2] === b; +function isOppositeOrientation(a2, b2) { + return oppositeOrientationMapping[a2] === b2; } -function isOppositeHorizontalOrientation(a2, b) { +function isOppositeHorizontalOrientation(a2, b2) { var horizontalOrientation = getHorizontalOrientation(a2); var oppositeHorizontalOrientation = oppositeOrientationMapping[horizontalOrientation]; - return b.indexOf(oppositeHorizontalOrientation) !== -1; + return b2.indexOf(oppositeHorizontalOrientation) !== -1; } -function isOppositeVerticalOrientation(a2, b) { +function isOppositeVerticalOrientation(a2, b2) { var verticalOrientation = getVerticalOrientation(a2); var oppositeVerticalOrientation = oppositeOrientationMapping[verticalOrientation]; - return b.indexOf(oppositeVerticalOrientation) !== -1; + return b2.indexOf(oppositeVerticalOrientation) !== -1; } function isHorizontalOrientation(orientation) { return orientation === "right" || orientation === "left"; @@ -23011,8 +23011,8 @@ function shouldConnectToSameSide(axis, source2, target, end) { y: target.y + target.height }, threshold) || areCloseOnAxis(axis, end, getMid(source2), threshold)); } -function areCloseOnAxis(axis, a2, b, threshold) { - return Math.abs(a2[axis] - b[axis]) < threshold; +function areCloseOnAxis(axis, a2, b2, threshold) { + return Math.abs(a2[axis] - b2[axis]) < threshold; } function getBoundaryEventSourceLayout(attachOrientation, targetOrientation, attachedToSide, isHorizontal2) { if (attachedToSide) { @@ -33909,13 +33909,13 @@ const HLJS = function(hljs) { (name2) => _highlight(name2, code, false) ); results.unshift(plaintext); - const sorted = results.sort((a2, b) => { - if (a2.relevance !== b.relevance) - return b.relevance - a2.relevance; - if (a2.language && b.language) { - if (getLanguage(a2.language).supersetOf === b.language) { + const sorted = results.sort((a2, b2) => { + if (a2.relevance !== b2.relevance) + return b2.relevance - a2.relevance; + if (a2.language && b2.language) { + if (getLanguage(a2.language).supersetOf === b2.language) { return 1; - } else if (getLanguage(b.language).supersetOf === a2.language) { + } else if (getLanguage(b2.language).supersetOf === a2.language) { return -1; } } diff --git a/shared/bpmn-designer/dist/index.umd.js b/shared/bpmn-designer/dist/index.umd.js index d8df6191..bccfb58e 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/core"),require("pinia"),require("bpmn-js-properties-panel"),require("@bpmn-io/element-template-chooser"),require("bpmn-js-connectors-extension"),require("bpmn-js-token-simulation"),require("bpmn-js-bpmnlint"),require("diagram-js-minimap"),require("diagram-js-grid"),require("ids"),require("diagram-js"),require("bpmn-moddle"),require("@herodotus/components"),require("@herodotus/bpmn-apis")):"function"==typeof define&&define.amd?define(["exports","quasar","vue","@herodotus/core","pinia","bpmn-js-properties-panel","@bpmn-io/element-template-chooser","bpmn-js-connectors-extension","bpmn-js-token-simulation","bpmn-js-bpmnlint","diagram-js-minimap","diagram-js-grid","ids","diagram-js","bpmn-moddle","@herodotus/components","@herodotus/bpmn-apis"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@herodotus/bpmn-designer"]={},e.quasar,e.vue,e.HerodotusCore,e.pinia,e.BpmnJsPropertiesPanel,e.BpmnIoElementTemplateChooser,e.BpmnJsConnectorsExtension,e.BpmnJsTokenSimulation,e.BpmnJsBpmnLint,e.DiagramJsMinimap,e.DiagramJsGrid,e.Ids,e.DiagramJs,e.BpmnModdle,e.HerodotusComponents,e.HerodotusBpmnApis)}(this,(function(e,t,n,i,o,r,a,L,s,c,l,u,p,d,h,m,f){"use strict";var g=Object.defineProperty,v=(e,t,n)=>(((e,t,n)=>{t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),y="undefined"!=typeof document?document.currentScript:null;function b(e){return Array.prototype.concat.apply([],e)}const x=Object.prototype.toString,C=Object.prototype.hasOwnProperty;function _(e){return void 0===e}function w(e){return void 0!==e}function E(e){return null==e}function S(e){return"[object Array]"===x.call(e)}function M(e){return"[object Object]"===x.call(e)}function k(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 T(e){return"[object String]"===x.call(e)}function B(e,t){return C.call(e,t)}function R(e,t){const n=q(t);let i;return A(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function D(e,t){const n=q(t);let i=[];return A(e,(function(e,t){n(e,t)&&i.push(e)})),i}function A(e,t){let n,i;if(_(e))return;const o=S(e)?Q:K;for(let r in e)if(B(e,r)&&(n=e[r],i=t(n,o(r)),!1===i))return n}function N(e,t){if(_(e))return[];!function(e){if(!S(e))throw new Error("must supply array")}(e);const n=q(t);return e.filter((function(e,t){return!n(e,t)}))}function V(e,t,n){return A(e,(function(e,i){n=t(n,e,i)})),n}function O(e,t){return!!V(e,(function(e,n,i){return e&&t(n,i)}),!0)}function I(e,t){return!!R(e,t)}function j(e,t){let n=[];return A(e,(function(e,i){n.push(t(e,i))})),n}function Z(e){return e&&Object.keys(e)||[]}function H(e){return j(e,(e=>e))}function $(e,t,n={}){return t=W(t),A(e,(function(e){let i=t(e)||"_",o=n[i];o||(o=n[i]=[]),o.push(e)})),n}function F(e,...t){e=W(e);let n={};return A(t,(t=>$(t,e,n))),j(n,(function(e,t){return e[0]}))}const z=F;function U(e,t){t=W(t);let n=[];return A(e,(function(e,i){let o=t(e,i),r={d:o,v:e};for(var a=0;ae.v))}function G(e){return function(t){return O(e,(function(e,n){return t[n]===e}))}}function W(e){return P(e)?e:t=>t[e]}function q(e){return P(e)?e:t=>t===e}function K(e){return e}function Q(e){return Number(e)}function X(e,t){return e.bind(t)}function Y(e,...t){return Object.assign(e,...t)}function J(e,t){let n={},i=Object(e);return A(t,(function(t){t in i&&(n[t]=e[t])})),n}function ee(e,t){let n={};return A(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}function te(e,t){var n=ie(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function ne(e,t){return I(t,(function(t){return te(e,t)}))}function ie(e){return e&&e.businessObject||e}function oe(e){return e&&e.di}function re(e,t){if(!e||!t)return-1;var n=e.indexOf(t);return-1!==n&&e.splice(n,1),n}function ae(e,t,n){if(e&&t){"number"!=typeof n&&(n=-1);var i=e.indexOf(t);if(-1!==i){if(i===n)return;if(-1===n)return;e.splice(i,1)}-1!==n?e.splice(n,0,t):e.push(t)}}function Le(e,t){return e&&t?e.indexOf(t):-1}const se=class _BpmnLog{constructor(){v(this,"switchColor",(e=>{switch(e){case"primary":return"#2d8cf0";case"success":return"#19be6b";case"info":return"#909399";case"warn":return"#ff9900";case"error":return"#f03f14";default:return"#35495E"}}))}static getInstance(){return this.instance}isArray(e){return i.lodash.isArray(e)}print(e="default",t,n=!1){"object"!=typeof t||this.isArray(t)}printBack(e="primary",t){this.print(e,t,!0)}pretty(e="primary",t,n){"object"!=typeof n||this.isArray(n)}prettyPrimary(e,...t){t.forEach((t=>this.pretty("primary",e,t)))}prettySuccess(e,...t){t.forEach((t=>this.pretty("success",e,t)))}prettyWarn(e,...t){t.forEach((t=>this.pretty("warn",e,t)))}prettyError(e,...t){t.forEach((t=>this.pretty("error",e,t)))}prettyInfo(e,...t){t.forEach((t=>this.pretty("info",e,t)))}};v(se,"instance",new se),v(se,"types",["primary","success","warn","error","info"]);const ce=se.getInstance(),le=o.defineStore("BpmnDesignerSetting",{state:()=>({useOfficialPanel:!0,useOfficialTemplateChooser:!1,useOfficialBackground:!0,useOtherModule:!0,showMiniMap:!0,showBpmnLint:!0,processId:`Process_${(new Date).getTime()}`,processName:"业务流程",processEngine:"camunda"})}),ue=o.defineStore("BpmnDesignerResources",{state:()=>({resources:{}}),getters:{userService:e=>e.resources.user(),groupService:e=>e.resources.group(),deploymentService:e=>e.resources.deployment(),dynamicFormService:e=>e.resources.dynamicForm()},actions:{init(e){this.resources=e}}}),pe=o.defineStore("BpmnDesignerModeler",{state:()=>({modeler:{},modeling:{},canvas:{},elementRegistry:{},moddle:{},isClosed:!1,activeElement:{},activeElementId:"",panelGroups:[],elementType:"",elementRawType:"",elementTitle:"",elementIcon:"",elementCaption:"",isMultiInstance:!1}),actions:{switchElement(e,t,n,i,o,r,a,L,s){this.activeElement=e,this.activeElementId=t,this.panelGroups=n,this.elementType=i,this.elementRawType=o,this.elementTitle=r,this.elementIcon=a,this.elementCaption=L,this.isMultiInstance=s}}});function de(){const e=pe(),t=le(),{processEngine:n}=t,o=()=>e.modeler,r=()=>e.modeling,a=(t,n,i={})=>{const o=e.moddle.create(t,n);return i&&(o.$parent=i),o},L=e=>i.lodash.isEmpty(e.values)?[]:e.values;return{processEngine:n,getModeler:o,getModeling:r,getCanvas:()=>e.canvas,getBpmnFactory:()=>o().get("bpmnFactory"),getRelevantBusinessObject:e=>{const t=ie(e);return(e=>te(e,"bpmn:Participant"))(e)?t.get("processRef"):t},createModdleElement:a,hasExtensionElements:e=>!!ie(e).extensionElements,getExtensionElements:e=>{const t=ie(e);let n=t.extensionElements;return i.lodash.isEmpty(n)&&(n=a("bpmn:ExtensionElements",{values:[]},t),r().updateModdleProperties(e,t,{extensionElements:n})),n},getExtensionElementsValues:L,getFirstExtensionElementsValue:e=>{const t=L(e);return i.lodash.isEmpty(t)?{}:t[0]},setExtensionElementsValues:(e,t,n)=>{r().updateModdleProperties(e,t,{values:[...t.get("values"),...n]})},resetExtensionElementsValues:(e,t)=>{r().updateModdleProperties(e,t,{values:[]})}}}function he(){const e="text/plain",{getModeling:t,getBpmnFactory:n}=de(),o=t=>(t=>{if(!i.lodash.isEmpty(t))return t.find((t=>(t.textFormat||e)===e))})((e=>ie(e).documentation)(t));return{getDocumentationValue:e=>{const t=o(e);return t&&t.text},setDocumentationValue:(e,r)=>{const a=ie(e),L=o(e);if(L)return r?t().updateModdleProperties(e,L,{text:r}):t().updateModdleProperties(e,a,{documentation:i.lodash.without(a.get("documentation"),L)});if(r){const i=n().create("bpmn:Documentation",{text:r});return t().updateModdleProperties(e,a,{documentation:[...a.get("documentation"),i]})}}}}function me(){const{getModeling:e,getBpmnFactory:t,getCanvas:n}=de(),i=/\s/,o=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,r=/^[a-z_][\w-.]*$/i,a=/((\d|([1-9](\d*))).){2}(\d|([1-9](\d*)))/,L=le(),s=e=>ne(e,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"]),c=e=>te(e,"bpmn:TextAnnotation"),l=(e,n)=>{const i=ie(n).$parent;e.categoryValueRef=(e=>{const n=t().create("bpmn:CategoryValue"),i=t().create("bpmn:Category",{categoryValue:[n]});return ae(e.get("rootElements"),i,0),ie(i).$parent=e,ie(n).$parent=i,n})(i)};return{isProcess:e=>te(e,"bpmn:Process"),getIdValue:e=>e.businessObject.id,setIdValue:(t,n)=>{e().updateProperties(t,{id:n})},getNameValue:e=>{const t=ie(e);return s(e)?"":c(e)?t.text:te(e,"bpmn:Group")?t.categoryValueRef.value:t.name},setNameValue:(t,i)=>{const o=ie(t);if(!s(t)){if(c(t))return e().updateProperties(t,{text:i});if((e=>te(e,"bpmn:Group"))(t)){return o.categoryValueRef||l(o,n().getRootElement()),e().updateLabel(t,i)}e().updateProperties(t,{name:i})}},getIsExecutableValue:e=>!!e.businessObject.isExecutable,setIsExecutableValue:(t,n)=>{e().updateProperties(t,{isExecutable:n})},getVersionTagValue:e=>{const t=L.processEngine;return e.businessObject.get(`${t}:versionTag`)},setVersionTagValue:(t,n)=>{const i=L.processEngine;e().updateProperties(t,{[`${i}:versionTag`]:n})},isIdValid:(e,t)=>{const n=e.businessObject.$model.ids.assigned(t);return t?n&&n!==e?"ID 必须是唯一的":i.test(t)?"ID 不能包含空格":r.test(t)?"":o.test(t)?"ID 不能包含前缀":"ID 必须符合 BPMN 规范":"ID 不能为空."},isVersionTagValid:e=>a.test(e)}}function fe(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}function ge(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 ve=Object.prototype.toString,ye=Object.prototype.hasOwnProperty;function be(e,t){return ye.call(e,t)}function xe(e,t){let n,i;if(void 0===e)return;const o=function(e){return"[object Array]"===ve.call(e)}(e)?_e:Ce;for(let r in e)if(be(e,r)&&(n=e[r],i=t(n,o(r)),!1===i))return n}function Ce(e){return e}function _e(e){return Number(e)}function we(e,...t){const n=e.style;return xe(t,(function(e){e&&xe(e,(function(e,t){n[t]=e}))})),e}function Ee(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)}const Se=Object.prototype.toString;function Me(e){return new ke(e)}function ke(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function Pe(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}function Te(e,t){return e&&"function"==typeof e.matches&&e.matches(t)}function Be(e,t,n){for(var i=n?e:e.parentNode;i&&i.nodeType!==document.DOCUMENT_NODE&&i.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(Te(i,t))return i;i=i.parentNode}return Te(i,t)?i:null}ke.prototype.add=function(e){return this.list.add(e),this},ke.prototype.remove=function(e){return"[object RegExp]"==Se.call(e)?this.removeMatching(e):(this.list.remove(e),this)},ke.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n
a',$e=!je.getElementsByTagName("link").length,je=void 0);var Fe={legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"],_default:$e?[1,"X
","
"]:[0,"",""]};Fe.td=Fe.th=[3,"","
"],Fe.option=Fe.optgroup=[1,'"],Fe.thead=Fe.tbody=Fe.colgroup=Fe.caption=Fe.tfoot=[1,"","
"],Fe.polyline=Fe.ellipse=Fe.polygon=Fe.circle=Fe.text=Fe.line=Fe.path=Fe.rect=Fe.g=[1,'',""];var ze=He;function Ue(e,t){return(t=t||document).querySelector(e)}function Ge(e,t){return(t=t||document).querySelectorAll(e)}function We(e){e.parentNode&&e.parentNode.removeChild(e)}function qe(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 Ke=2,Qe={"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":Ke,"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":Ke,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Xe(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=Qe[i];o?(o===Ke&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function Ye(e,t,n){if("string"==typeof t){if(void 0===n)return function(e,t){return Qe[t]?e.style[t]:e.getAttributeNS(null,t)}(e,t);Xe(e,t,n)}else!function(e,t){var n,i,o=Object.keys(t);for(n=0;i=o[n];n++)Xe(e,i,t[i])}(e,t);return e}const Je=Object.prototype.toString;function et(e){return new tt(e)}function tt(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function nt(e){var t=e.parentNode;return t&&t.removeChild(e),e}function it(e){for(var t;t=e.firstChild;)nt(t);return e}function ot(e){return e.cloneNode(!0)}tt.prototype.add=function(e){return this.list.add(e),this},tt.prototype.remove=function(e){return"[object RegExp]"==Je.call(e)?this.removeMatching(e):(this.list.remove(e),this)},tt.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(),o=n.firstChild;o.firstChild;)i.appendChild(o.firstChild);return i}function st(e,t){var n;return"<"===e.charAt(0)?(n=Lt(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(rt.svg,e),t&&Ye(n,t),n}var ct=null;function lt(e){return(null===ct&&(ct=st("svg")),ct).createSVGTransform()}var ut=/([&<>]{1})/g,pt=/([\n\r"]{1})/g,dt={"&":"&","<":"<",">":">",'"':"'"};function ht(e,t){return e.replace(t,(function(e,t){return dt[t]||t}))}function mt(e,t){var n,i,o,r,a;switch(e.nodeType){case 3:t.push(ht(e.textContent,ut));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(o=e.attributes).length;n"),n=0,i=(a=e.childNodes).length;n")}else t.push("/>");break;case 8:t.push("\x3c!--",ht(e.nodeValue,ut),"--\x3e");break;case 4:t.push("");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function ft(e,t){return function(e){for(var t=e.firstChild,n=[];t;)mt(t,n),t=t.nextSibling;return n.join("")}(e)}function gt(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function vt(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(gt(e,i))}(n,t)),n.consolidate()}function yt(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':""}var bt="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 xt(e){B(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(bt)}})}function Ct(e,t){return e.$instanceOf(t)}function _t(e){var t={},n=[],i={};function o(e,t){return function(n){e(n,t)}}function r(e){t[e.id]=e}function a(t,n){try{var o=i[t.id]&&function(t,n){if(t.gfx)throw new Error(`already rendered ${yt(t)}`);return e.element(t,i[t.id],n)}(t,n);return r(t),o}catch(a){L(a.message,{element:t,error:a})}}function L(t,n){e.error(t,n)}var s=this.registerDi=function(e){var t=e.bpmnElement;t?i[t.id]?L(`multiple DI elements defined for ${yt(t)}`,{element:t}):(i[t.id]=e,xt(t)):L(`no bpmnElement referenced in ${yt(e)}`,{element:e})};function c(e){var t;t=e.plane,s(t),A(t.planeElement,l)}function l(e){s(e)}this.handleDefinitions=function(r,a){var l=r.diagrams;if(a&&-1===l.indexOf(a))throw new Error("diagram not part of ");if(!a&&l&&l.length&&(a=l[0]),!a)throw new Error("no diagram to display");i={},c(a);var h=a.plane;if(!h)throw new Error(`no plane for ${yt(a)}`);var m=h.bpmnElement;if(!m){if(m=function(e){return R(e.rootElements,(function(e){return Ct(e,"bpmn:Process")||Ct(e,"bpmn:Collaboration")}))}(r),!m)throw new Error("no process or collaboration to display");L(`correcting missing bpmnElement on ${yt(h)} to ${yt(m)}`),h.bpmnElement=m,s(h)}var f,g,y=function(t,n){return e.root(t,i[t.id],n)}(m,h);if(Ct(m,"bpmn:Process")||Ct(m,"bpmn:SubProcess"))p(m,y);else{if(!Ct(m,"bpmn:Collaboration"))throw new Error(`unsupported bpmnElement for ${yt(h)}: ${yt(m)}`);g=y,A((f=m).participants,o(S,g)),v(f.artifacts,g),n.push((function(){!function(e,t){A(e,o(d,t))}(f.messageFlows,g)})),function(e,n){D(e,(function(e){return!t[e.id]&&Ct(e,"bpmn:Process")&&e.laneSets})).forEach(o(p,n))}(r.rootElements,y)}u(n)};var u=this.handleDeferred=function(){for(;n.length;)n.shift()()};function p(e,t){E(e,t),y(e.ioSpecification,t),v(e.artifacts,t),r(e)}function d(e,t){a(e,t)}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 v(e,t){A(e,(function(e){Ct(e,"bpmn:Association")?n.push((function(){g(e,t)})):g(e,t)}))}function y(e,t){e&&(A(e.dataInputs,o(m,t)),A(e.dataOutputs,o(f,t)))}var b=this.handleSubProcess=function(e,t){E(e,t),v(e.artifacts,t)};function x(e,t){var i=a(e,t);Ct(e,"bpmn:SubProcess")&&b(e,i||t),Ct(e,"bpmn:Activity")&&y(e.ioSpecification,t),n.push((function(){A(e.dataInputAssociations,o(h,t)),A(e.dataOutputAssociations,o(h,t))}))}function C(e,t){a(e,t)}function _(e,t){n.push((function(){var n=a(e,t);e.childLaneSet&&w(e.childLaneSet,n||t),function(e){A(e.flowNodeRef,(function(t){var n=t.get("lanes");n&&n.push(e)}))}(e)}))}function w(e,t){A(e.lanes,o(_,t))}function E(e,t){!function(e,t){A(e,(function(e){Ct(e,"bpmn:SequenceFlow")?n.push((function(){!function(e,t){a(e,t)}(e,t)})):Ct(e,"bpmn:BoundaryEvent")?n.unshift((function(){x(e,t)})):Ct(e,"bpmn:FlowNode")?x(e,t):Ct(e,"bpmn:DataObject")||(Ct(e,"bpmn:DataStoreReference")||Ct(e,"bpmn:DataObjectReference")?C(e,t):L(`unrecognized flowElement ${yt(e)} in context ${yt(t&&t.businessObject)}`,{element:e,context:t}))}))}(e.flowElements,t),e.laneSets&&function(e,t){A(e,o(w,t))}(e.laneSets,t)}function S(e,t){var n=a(e,t),i=e.processRef;i&&p(i,n||t)}}function wt(e,t,n){var i,o,r,a=[];function L(e,t){var n=new _t({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 o=function(e,t){if(!t)return;var n,i=t.plane.bpmnElement,o=i;te(i,"bpmn:Process")||te(i,"bpmn:Collaboration")||(o=function(e){var t=e;for(;t;){if(te(t,"bpmn:Process"))return t;t=t.$parent}}(i));n=te(o,"bpmn:Collaboration")?o:R(e.rootElements,(function(e){if(te(e,"bpmn:Collaboration"))return R(e.participants,(function(e){return e.processRef===o}))}));var r=[o];n&&(r=j(n.participants,(function(e){return e.processRef}))).push(n);var a=Et(r),L=[t],s=[i];return A(e.diagrams,(function(e){var t=e.plane.bpmnElement;-1!==a.indexOf(t)&&-1===s.indexOf(t)&&(L.push(e),s.push(t))})),L}(e,t);if(!o)throw new Error("no diagram to display");A(o,(function(t){n.handleDefinitions(e,t)}));var L=t.plane.bpmnElement.id;r.setRootElement(r.findRoot(L+"_plane")||r.findRoot(L))}return new Promise((function(s,c){try{return i=e.get("bpmnImporter"),o=e.get("eventBus"),r=e.get("canvas"),o.fire("import.render.start",{definitions:t}),L(t,n),o.fire("import.render.complete",{error:undefined,warnings:a}),s({warnings:a})}catch(l){return l.warnings=a,c(l)}}))}function Et(e){var t=[];return A(e,(function(e){e&&(t.push(e),t=t.concat(Et(e.flowElements)))})),t}var St,Mt='',kt={verticalAlign:"middle"},Pt={color:"#404040"},Tt={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Bt={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Rt={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"},Dt='
'+Mt+'Web-based tooling for BPMN, DMN and forms powered by bpmn.io.
';function At(){St||(we(St=ze(Dt),Tt),we(Ue("svg",St),kt),we(Ue(".backdrop",St),Bt),we(Ue(".notice",St),Rt),we(Ue(".link",St),Pt,{margin:"15px 20px 15px 10px",alignSelf:"center"}),Ze.bind(St,".backdrop","click",(function(e){document.body.removeChild(St)}))),document.body.appendChild(St)}function Nt(e){e=Y({},Ot,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),function(e){const t=ze(''+Mt+"");we(Ue("svg",t),kt),we(t,Pt,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(t),Oe.bind(t,"click",(function(e){At(),e.preventDefault()}))}(this._container),this._init(this._container,this._moddle,e)}function Vt(e,t){return e.warnings=t,e}fe(Nt,d),Nt.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(r){throw this._emit("import.parse.complete",{error:r}),r}let L=a.rootElement;const s=a.references,c=a.warnings,l=a.elementsById;i=i.concat(c),L=this._emit("import.parse.complete",(o={error:null,definitions:L,elementsById:l,references:s,warnings:i},n.get("eventBus").createEvent(o)))||L;const u=await this.importDefinitions(L,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||[]),Vt(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 o},Nt.prototype.importDefinitions=async function(e,t){this._setDefinitions(e);return{warnings:(await this.open(t)).warnings}},Nt.prototype.open=async function(e){const t=this._definitions;let n=e;if(!t){const e=new Error("no XML imported");throw Vt(e,[]),e}if("string"==typeof e&&(n=function(e,t){if(!t)return null;return R(e.diagrams,(function(e){return e.id===t}))||null}(t,e),!n)){const t=new Error("BPMNDiagram <"+e+"> not found");throw Vt(t,[]),t}try{this.clear()}catch(o){throw Vt(o,[]),o}const{warnings:i}=await wt(this,t,n);return{warnings:i}},Nt.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(r){t=r}const o=t?{error:t}:{xml:n};if(this._emit("saveXML.done",o),t)throw t;return o},Nt.prototype.saveSVG=async function(){let e,t;this._emit("saveSVG.start");try{const t=this.get("canvas"),n=t.getActiveLayer(),i=Ue("defs",t._svg),o=ft(n),r=i?""+ft(i)+"":"",a=n.getBBox();e='\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n\n'+r+o+""}catch(n){t=n}if(this._emit("saveSVG.done",{error:t,svg:e}),t)throw t;return{svg:e}},Nt.prototype._setDefinitions=function(e){this._definitions=e},Nt.prototype.getModules=function(){return this._modules},Nt.prototype.clear=function(){this.getDefinitions()&&d.prototype.clear.call(this)},Nt.prototype.destroy=function(){d.prototype.destroy.call(this),We(this._container)},Nt.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},Nt.prototype.off=function(e,t){this.get("eventBus").off(e,t)},Nt.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=Ue(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},Nt.prototype.getDefinitions=function(){return this._definitions},Nt.prototype.detach=function(){const e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},Nt.prototype._init=function(e,t,n){const i=n.modules||this.getModules(n),o=n.additionalModules||[],r=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,o),a=Y(ee(n,["additionalModules"]),{canvas:Y({},n.canvas,{container:e}),modules:r});d.call(this,a),n&&n.container&&this.attachTo(n.container)},Nt.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},Nt.prototype._createContainer=function(e){const t=ze('
');return we(t,{width:It(e.width),height:It(e.height),position:e.position}),t},Nt.prototype._createModdle=function(e){const t=Y({},this._moddleExtensions,e.moddleExtensions);return new h(t)},Nt.prototype._modules=[];const Ot={width:"100%",height:"100%",position:"relative"};function It(e){return e+(k(e)?"px":"")}function jt(e){Nt.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)}fe(jt,Nt),jt.prototype._createModdle=function(e){var t=Nt.prototype._createModdle.call(this,e);return t.ids=new p([32,36,1]),t},jt.prototype._collectIds=function(e,t){var n,i=e.$model.ids;for(n in i.clear(),t)i.claim(n,t[n])};var Zt=1e3;function Ht(e,t){var n=this;t=t||Zt,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,o=t.element,r=t.gfx,a=t.attrs;if(n.canRender(o))return"render.shape"===i?n.drawShape(r,o,a):n.drawConnection(r,o,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 $t(e,t){return!te(e,"bpmn:CallActivity")&&(te(e,"bpmn:SubProcess")?!(!(t=t||oe(e))||!te(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded:!te(e,"bpmn:Participant")||!!ie(e).processRef)}function Ft(e){if(te(e,"bpmn:Participant")||te(e,"bpmn:Lane")){var t=oe(e).isHorizontal;return void 0===t||t}}function zt(e){return e&&!1!==ie(e).isInterrupting}function Ut(e){return e&&!!ie(e).triggeredByEvent}function Gt(e,t){return I(ie(e).eventDefinitions,(function(e){return te(e,t)}))}function Wt(e){return M(e)&&B(e,"waypoints")}function qt(e){return M(e)&&B(e,"labelTarget")}Ht.prototype.canRender=function(e){},Ht.prototype.drawShape=function(e,t){},Ht.prototype.drawConnection=function(e,t){},Ht.prototype.getShapePath=function(e){},Ht.prototype.getConnectionPath=function(e){};var Kt={width:90,height:20},Qt=15;function Xt(e){return te(e,"bpmn:Event")||te(e,"bpmn:Gateway")||te(e,"bpmn:DataStoreReference")||te(e,"bpmn:DataObjectReference")||te(e,"bpmn:DataInput")||te(e,"bpmn:DataOutput")||te(e,"bpmn:SequenceFlow")||te(e,"bpmn:MessageFlow")||te(e,"bpmn:Group")}function Yt(e){return qt(e.label)}function Jt(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],o=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),r=Math.atan((i.y-n.y)/(i.x-n.x)),a=o.x,L=o.y;return Math.abs(r)1?o.get("parallelMultiple")?O(t,e,n,r):V(t,e,n,r):dn(o,"bpmn:MessageEventDefinition")?E(t,e,n,r):dn(o,"bpmn:TimerEventDefinition")?S(t,e,n,r):dn(o,"bpmn:ConditionalEventDefinition")?P(t,e,n,r):dn(o,"bpmn:SignalEventDefinition")?N(t,e,n,r):dn(o,"bpmn:EscalationEventDefinition")?k(t,e,n,r):dn(o,"bpmn:LinkEventDefinition")?T(t,e,n,r):dn(o,"bpmn:ErrorEventDefinition")?B(t,e,n,r):dn(o,"bpmn:CancelEventDefinition")?R(t,e,n,r):dn(o,"bpmn:CompensateEventDefinition")?D(t,e,n,r):dn(o,"bpmn:TerminateEventDefinition")?I(t,e,n,r):null}var Z={ParticipantMultiplicityMarker:function(e,t,n={}){var o=vn(t,n),r=yn(t,n);C("participant-multiplicity",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:o,containerHeight:r,position:{mx:(o/2-6)/o,my:(r-15)/r}}),{strokeWidth:2,fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})},SubProcessMarker:function(e,t,n={}){xn(v(e,14,14,0,{strokeWidth:1,fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)}),t.width/2-7.5,t.height-20),C("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:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})},ParallelMarker:function(e,t,n){var o=vn(t,n),r=yn(t,n);C("parallel",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:o,containerHeight:r,position:{mx:(o/2+n.parallel)/o,my:(r-20)/r}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})},SequentialMarker:function(e,t,n){C("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:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})},CompensationMarker:function(e,t,n){C("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:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})},LoopMarker:function(e,t,n){var o=vn(t,n),r=yn(t,n);C("loop",e,i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:o,containerHeight:r,position:{mx:(o/2+n.loop)/o,my:(r-7)/r}}),{strokeWidth:1.5,fill:"none",stroke:mn(t,s,n.stroke),strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){var o=vn(t,n),r=yn(t,n);C("adhoc",e,i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:o,containerHeight:r,position:{mx:(o/2+n.adhoc)/o,my:(r-15)/r}}),{strokeWidth:1,fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke)})}};function H(e,t,n,i){Z[e](t,n,i)}function $(e,t,n,i={}){i={fill:i.fill,stroke:i.stroke,width:vn(t,i),height:yn(t,i)};var o=ie(t),r=n&&n.includes("SubProcessMarker");i=r?{...i,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{...i,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},A(n,(function(n){H(n,e,t,i)})),o.get("isForCompensation")&&H("CompensationMarker",e,t,i),te(o,"bpmn:AdHocSubProcess")&&H("AdhocMarker",e,t,i);var a=o.get("loopCharacteristics"),L=a&&a.get("isSequential");a&&(void 0===L&&H("LoopMarker",e,t,i),!1===L&&H("ParallelMarker",e,t,i),!0===L&&H("SequentialMarker",e,t,i))}function F(e,t,n={}){n=Y({size:{width:100}},n);var i=r.createText(t||"",n);return et(i).add("djs-label"),qe(e,i),i}function z(e,t,n,i={}){var o=ie(t),r=gn({x:t.x,y:t.y,width:t.width,height:t.height},i);return F(e,o.name,{align:n,box:r,padding:7,style:{fill:fn(t,c,s,i.stroke)}})}function U(e,t,n,i={}){var o=Ft(n),r=F(e,t,{box:{height:30,width:o?yn(n,i):vn(n,i)},align:"center-middle",style:{fill:fn(n,c,s,i.stroke)}});o&&bn(r,0,-(-1*yn(n,i)),270)}function G(e,t,n={}){var{width:i,height:o}=gn(t,n);return v(e,i,o,10,{...n,fill:hn(t,L,n.fill),fillOpacity:wn,stroke:mn(t,s,n.stroke)})}function W(e,t,n={}){var i=ie(t),o=hn(t,L,n.fill),r=mn(t,s,n.stroke);return"One"!==i.get("associationDirection")&&"Both"!==i.get("associationDirection")||(n.markerEnd=f("association-end",o,r)),"Both"===i.get("associationDirection")&&(n.markerStart=f("association-start",o,r)),n=Sn(n,["markerStart","markerEnd"]),b(e,t.waypoints,{...n,stroke:r,strokeDasharray:"0, 5"})}function q(e,t,n={}){var o=hn(t,L,n.fill),r=mn(t,s,n.stroke),a=x(e,i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:o,fillOpacity:wn,stroke:r});(function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection})(ie(t))&&x(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:o,stroke:r});return a}function K(e,t,n={}){return g(e,t.width,t.height,{fillOpacity:wn,...n,fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})}function Q(e,t,n={}){return function(e,t,n,i){var o=t/2,r=n/2,a=[{x:o,y:0},{x:t,y:r},{x:o,y:n},{x:0,y:r}].map((function(e){return e.x+","+e.y})).join(" ");i=p(i);var L=st("polygon",{...i,points:a});return qe(e,L),L}(e,t.width,t.height,{fill:hn(t,L,n.fill),fillOpacity:wn,stroke:mn(t,s,n.stroke)})}function X(e,t,n={}){var i=v(e,vn(t,n),yn(t,n),0,{fill:hn(t,L,n.fill),fillOpacity:n.fillOpacity||wn,stroke:mn(t,s,n.stroke),strokeWidth:1.5}),o=ie(t);te(o,"bpmn:Lane")&&U(e,o.get("name"),t,n);return i}function J(e,t,n={}){var i=G(e,t,n);Ut(t)&&Ye(i,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var o=$t(t);return z(e,t,o?"center-top":"center-middle",n),$(e,t,o?void 0:["SubProcessMarker"],n),i}function ee(e,t,n={}){var i=G(e,t,n);return z(e,t,"center-middle",n),$(e,t,void 0,n),i}var ne=this.handlers={"bpmn:AdHocSubProcess":function(e,t,n={}){return J(e,t,n=$t(t)?Sn(n,["fill","stroke","width","height"]):Sn(n,["fill","stroke"]))},"bpmn:Association":function(e,t,n={}){return W(e,t,n=Sn(n,["fill","stroke"]))},"bpmn:BoundaryEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Sn(n,["fill","stroke"]);var o=ie(t).get("cancelActivity");n={strokeWidth:1.5,fill:hn(t,L,n.fill),fillOpacity:1,stroke:mn(t,s,n.stroke)},o||(n.strokeDasharray="6");var r=K(e,t,n);return g(e,t.width,t.height,3,{...n,fill:"none"}),i&&j(t,e,n),r},"bpmn:BusinessRuleTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return Ye(x(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}})),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),Ye(x(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}})),{fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:CallActivity":function(e,t,n={}){return n=Sn(n,["fill","stroke"]),J(e,t,{strokeWidth:5,...n})},"bpmn:ComplexGateway":function(e,t,n={}){var o=Q(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:DataInput":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var o=i.getRawPath("DATA_ARROW"),r=q(e,t,n);return x(e,o,{fill:"none",stroke:mn(t,s,n.stroke),strokeWidth:1}),r},"bpmn:DataInputAssociation":function(e,t,n={}){return n=Sn(n,["fill","stroke"]),W(e,t,{...n,markerEnd:f("association-end",hn(t,L,n.fill),mn(t,s,n.stroke))})},"bpmn:DataObject":function(e,t,n={}){return q(e,t,n=Sn(n,["fill","stroke"]))},"bpmn:DataObjectReference":w("bpmn:DataObject"),"bpmn:DataOutput":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var o=i.getRawPath("DATA_ARROW"),r=q(e,t,n);return x(e,o,{strokeWidth:1,fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)}),r},"bpmn:DataOutputAssociation":function(e,t,n={}){return n=Sn(n,["fill","stroke"]),W(e,t,{...n,markerEnd:f("association-end",hn(t,L,n.fill),mn(t,s,n.stroke))})},"bpmn:DataStoreReference":function(e,t,n={}){return n=Sn(n,["fill","stroke"]),x(e,i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{fill:hn(t,L,n.fill),fillOpacity:wn,stroke:mn(t,s,n.stroke),strokeWidth:2})},"bpmn:EndEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Sn(n,["fill","stroke"]);var o=K(e,t,{...n,strokeWidth:4});return i&&j(t,e,n),o},"bpmn:EventBasedGateway":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var o=ie(t),r=Q(e,t,n);g(e,t.width,t.height,.2*t.height,{fill:hn(t,"none",n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1});var a,L=o.get("eventGatewayType"),c=!!o.get("instantiate");if("Parallel"===L){var l=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}});x(e,l,{fill:"none",stroke:mn(t,s,n.stroke),strokeWidth:1})}else"Exclusive"===L&&(c||g(e,t.width,t.height,.26*t.height,{fill:"none",stroke:mn(t,s,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}}),x(e,a,{fill:"none",stroke:mn(t,s,n.stroke),strokeWidth:2}));return r},"bpmn:ExclusiveGateway":function(e,t,n={}){var o=Q(e,t,n=Sn(n,["fill","stroke"])),r=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return oe(t).get("isMarkerVisible")&&x(e,r,{fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:Gateway":function(e,t,n={}){return Q(e,t,n=Sn(n,["fill","stroke"]))},"bpmn:Group":function(e,t,n={}){return n=Sn(n,["fill","stroke","width","height"]),v(e,t.width,t.height,10,{stroke:mn(t,s,n.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:vn(t,n),height:yn(t,n)})},"bpmn:InclusiveGateway":function(e,t,n={}){var i=Q(e,t,n=Sn(n,["fill","stroke"]));return g(e,t.width,t.height,.24*t.height,{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:2.5}),i},"bpmn:IntermediateEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Sn(n,["fill","stroke"]);var o=K(e,t,{...n,strokeWidth:1.5});return g(e,t.width,t.height,3,{fill:"none",stroke:mn(t,s,n.stroke),strokeWidth:1.5}),i&&j(t,e,n),o},"bpmn:IntermediateCatchEvent":w("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":w("bpmn:IntermediateEvent"),"bpmn:Lane":function(e,t,n={}){return n=Sn(n,["fill","stroke","width","height"]),X(e,t,{...n,fillOpacity:.25})},"bpmn:ManualTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:.5}),o},"bpmn:MessageFlow":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var o=ie(t),r=oe(t),a=hn(t,L,n.fill),c=mn(t,s,n.stroke),l=b(e,t.waypoints,{markerEnd:f("messageflow-end",a,c),markerStart:f("messageflow-start",a,c),stroke:c,strokeDasharray:"10, 11",strokeWidth:1.5});if(o.get("messageRef")){var u=l.getPointAtLength(l.getTotalLength()/2),p=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:u.x,y:u.y}}),d={strokeWidth:1};"initiating"===r.get("messageVisibleKind")?(d.fill=a,d.stroke=c):(d.fill=c,d.stroke=a);var h=x(e,p,d),m=F(e,o.get("messageRef").get("name"),{align:"center-top",fitBox:!0,style:{fill:c}}),g=h.getBBox(),v=m.getBBox();bn(m,u.x-v.width/2,u.y+g.height/2+10,0)}return l},"bpmn:ParallelGateway":function(e,t,n={}){var o=Q(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:Participant":function(e,t,n={}){var i=X(e,t,n=Sn(n,["fill","stroke","width","height"])),o=$t(t),r=Ft(t),a=ie(t),L=a.get("name");if(o){y(e,r?[{x:30,y:0},{x:30,y:yn(t,n)}]:[{x:0,y:30},{x:vn(t,n),y:30}],{stroke:mn(t,s,n.stroke),strokeWidth:1.5}),U(e,L,t,n)}else{var l=gn(t,n);r||(l.height=vn(t,n),l.width=yn(t,n));var u=F(e,L,{box:l,align:"center-middle",style:{fill:fn(t,c,s,n.stroke)}});if(!r)bn(u,0,-(-1*yn(t,n)),270)}return a.get("participantMultiplicity")&&H("ParticipantMultiplicityMarker",e,t,n),i},"bpmn:ReceiveTask":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var o,r=ie(t),a=ee(e,t,n);return r.get("instantiate")?(g(e,28,28,4.4,{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),o=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):o=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),x(e,o,{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),a},"bpmn:ScriptTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:SendTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{fill:mn(t,s,n.stroke),stroke:hn(t,L,n.fill),strokeWidth:1}),o},"bpmn:SequenceFlow":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var i=hn(t,L,n.fill),o=mn(t,s,n.stroke),r=b(e,t.waypoints,{markerEnd:f("sequenceflow-end",i,o),stroke:o}),a=ie(t),{source:c}=t;if(c){var l=ie(c);a.get("conditionExpression")&&te(l,"bpmn:Activity")&&Ye(r,{markerStart:f("conditional-flow-marker",i,o)}),l.get("default")&&(te(l,"bpmn:Gateway")||te(l,"bpmn:Activity"))&&l.get("default")===a&&Ye(r,{markerStart:f("conditional-default-flow-marker",i,o)})}return r},"bpmn:ServiceTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return g(e,10,10,{fill:hn(t,L,n.fill),stroke:"none",transform:"translate(6, 6)"}),x(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),g(e,10,10,{fill:hn(t,L,n.fill),stroke:"none",transform:"translate(11, 10)"}),x(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:StartEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Sn(n,["fill","stroke"]),ie(t).get("isInterrupting")||(n={...n,strokeDasharray:"6"});var o=K(e,t,n);return i&&j(t,e,n),o},"bpmn:SubProcess":function(e,t,n={}){return J(e,t,n=$t(t)?Sn(n,["fill","stroke","width","height"]):Sn(n,["fill","stroke"]))},"bpmn:Task":function(e,t,n={}){return ee(e,t,n=Sn(n,["fill","stroke"]))},"bpmn:TextAnnotation":function(e,t,n={}){n=Sn(n,["fill","stroke","width","height"]);var{width:o,height:r}=gn(t,n),a=v(e,o,r,0,0,{fill:"none",stroke:"none"});return x(e,i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:o,containerHeight:r,position:{mx:0,my:0}}),{stroke:mn(t,s,n.stroke)}),F(e,ie(t).get("text")||"",{align:"left-top",box:gn(t,n),padding:7,style:{fill:fn(t,c,s,n.stroke)}}),a},"bpmn:Transaction":function(e,t,i={}){i=$t(t)?Sn(i,["fill","stroke","width","height"]):Sn(i,["fill","stroke"]);var o=J(e,t,{strokeWidth:1.5,...i}),r=n.style(["no-fill","no-events"],{stroke:mn(t,s,i.stroke),strokeWidth:1.5});return $t(t)||(i={}),v(e,vn(t,i),yn(t,i),7,3,r),o},"bpmn:UserTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:.5}),x(e,i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:.5}),x(e,i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke),strokeWidth:.5}),o},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 F(e,nn(t),{box:i,fitBox:!0,style:Y({},r.getExternalStyle(),{fill:fn(t,c,s,n.stroke)})})}(e,t,n)}};this._drawPath=x,this._renderer=_}function Sn(e,t=[]){return t.reduce(((t,n)=>(e[n]&&(t[n]=e[n]),t)),{})}fe(En,Ht),En.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],En.prototype.canRender=function(e){return te(e,"bpmn:BaseElement")},En.prototype.drawShape=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},En.prototype.drawConnection=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},En.prototype.getShapePath=function(e){return te(e,"bpmn:Event")?(n=(t=e).x+t.width/2,i=t.y+t.height/2,o=t.width/2,on([["M",n,i],["m",0,-o],["a",o,o,0,1,1,0,2*o],["a",o,o,0,1,1,0,-2*o],["z"]])):te(e,"bpmn:Activity")?function(e,t){var n=e.x,i=e.y,o=e.width,r=e.height;return on([["M",n+t,i],["l",o-2*t,0],["a",t,t,0,0,1,t,t],["l",0,r-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-o,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-r],["a",t,t,0,0,1,t,-t],["z"]])}(e,10):te(e,"bpmn:Gateway")?function(e){var t=e.width/2,n=e.height/2;return on([["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 on([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])}(e);var t,n,i,o};var Mn=0,kn={width:150,height:50};function Pn(e,t){var n;t.textContent=e;try{var i,o=""===e;return t.textContent=o?"dummy":e,i={width:(n=t.getBBox()).width+2*n.x,height:n.height},o&&(i.width=0),i}catch(r){return{width:0,height:0}}}function Tn(e,t,n){for(var i,o=e.shift(),r=o;;){if((i=Pn(r,n)).width=r?i.width:0," "===r||""===r||i.width1)for(;n=i.shift();){if(!(n.length+re?t.width:e}),0),h=r.top;"middle"===o.vertical&&(h+=(n.height-p)/2),h-=(L||c[0].height)/4;var m=st("text");return Ye(m,i),A(c,(function(e){var t;switch(h+=L||e.height,o.horizontal){case"left":t=r.left;break;case"right":t=(a?d:l)-r.right-e.width;break;default:t=Math.max(((a?d:l)-e.width)/2+r.left,0)}var n=st("tspan");Ye(n,{x:t,y:h}),n.textContent=e.text,qe(m,n)})),nt(u),{dimensions:{width:d,height:p},element:m}};function Nn(e){var t=Y({fontFamily:"Arial, sans-serif",fontSize:12,fontWeight:"normal",lineHeight:1.2},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=Y({},t,{fontSize:n},e&&e.externalStyle||{}),o=new An({style:t});this.getExternalLabelBounds=function(e,t){var n=o.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=o.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 o.createText(e,t||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}Nn.$inject=["config.textRenderer"];var Vn=/\{([^{}]+)\}/g,On=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;const In={__init__:["bpmnRenderer"],bpmnRenderer:["type",En],textRenderer:["type",Nn],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,o=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 r,a,L={};if(t.position){for(var s=t.containerHeight/o.height*t.yScaleFactor,c=t.containerWidth/o.width*t.xScaleFactor,l=0;lt.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 di(e,t,n,i,o){return e*(e*(-3*t+9*n-9*i+3*o)+6*t-12*n+6*i)-3*t+3*n}function hi(e,t,n,i,o,r,a,L,s){null==s&&(s=1);for(var c=(s=s>1?1:s<0?0:s)/2,l=[-.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],p=0,d=0;d<12;d++){var h=c*l[d]+c,m=di(h,e,n,o,a),f=di(h,t,i,r,L),g=m*m+f*f;p+=u[d]*Kn.sqrt(g)}return c*p}function mi(e,t,n,i,o,r,a,L){if(!(Yn(e,n)Yn(o,a)||Yn(t,i)Yn(r,L))){var s=(e*i-t*n)*(r-L)-(t-i)*(o*L-r*a),c=(e-n)*(r-L)-(t-i)*(o-a);if(c){var l=fi(((e*i-t*n)*(o-a)-(e-n)*(o*L-r*a))/c),u=fi(s/c),p=+l.toFixed(2),d=+u.toFixed(2);if(!(p<+Xn(e,n).toFixed(2)||p>+Yn(e,n).toFixed(2)||p<+Xn(o,a).toFixed(2)||p>+Yn(o,a).toFixed(2)||d<+Xn(t,i).toFixed(2)||d>+Yn(t,i).toFixed(2)||d<+Xn(r,L).toFixed(2)||d>+Yn(r,L).toFixed(2)))return{x:l,y:u}}}}function fi(e){return Math.round(1e11*e)/1e11}function gi(e,t,n){if(!function(e,t){return e=Li(e),pi(t=Li(t),e.x,e.y)||pi(t,e.x2,e.y)||pi(t,e.x,e.y2)||pi(t,e.x2,e.y2)||pi(e,t.x,t.y)||pi(e,t.x2,t.y)||pi(e,t.x,t.y2)||pi(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)}(ui(e),ui(t)))return n?0:[];for(var i=hi(...e),o=hi(...t),r=bi(e)?1:~~(i/5)||1,a=bi(t)?1:~~(o/5)||1,L=[],s=[],c={},l=n?0:[],u=0;u=0&&C<=1&&_>=0&&_<=1&&(n?l++:l.push({x:x.x,y:x.y,t1:C,t2:_}))}}return l}function vi(e,t,n){e=wi(e),t=wi(t);for(var i,o,r,a,L,s,c,l,u,p,d=n?0:[],h=0,m=e.length;h2&&(i.push([t,...r.splice(0,2)]),a="l",t="m"==t?"l":"L");r.length>=n[a]&&(i.push([t,...r.splice(0,n[a])]),n[a]););})),i.toString=ai.toString,t.arr=ri(i),i}(e)),!e||!e.length)return[["M",0,0]];var n,i=[],o=0,r=0,a=0,L=0,s=0;"M"==e[0][0]&&(a=o=+e[0][1],L=r=+e[0][2],s++,i[0]=["M",o,r]);for(var c,l,u=s,p=e.length;u=1e3&&delete i[o.shift()],o.push(n),i[n]=e(...arguments),i[n])}}((function(e,t,n){return{x:e*Kn.cos(n)-t*Kn.sin(n),y:e*Kn.sin(n)+t*Kn.cos(n)}}));if(c)_=c[0],w=c[1],x=c[2],C=c[3];else{e=(l=h(e,t,-p)).x,t=l.y;var m=(e-(L=(l=h(L,s,-p)).x))/2,f=(t-(s=l.y))/2,g=m*m/(n*n)+f*f/(i*i);g>1&&(n*=g=Kn.sqrt(g),i*=g);var v=n*n,y=i*i,b=(r==a?-1:1)*Kn.sqrt(ei((v*y-v*f*f-y*m*m)/(v*f*f+y*m*m))),x=b*n*f/i+(e+L)/2,C=b*-i*m/n+(t+s)/2,_=Kn.asin(((t-C)/i).toFixed(9)),w=Kn.asin(((s-C)/i).toFixed(9));(_=ew&&(_-=2*Qn),!a&&w>_&&(w-=2*Qn)}var E=w-_;if(ei(E)>u){var S=w,M=L,k=s;w=_+u*(a&&w>_?1:-1),d=_i(L=x+n*Kn.cos(w),s=C+i*Kn.sin(w),n,i,o,0,a,M,k,[w,S,x,C])}E=w-_;var P=Kn.cos(_),T=Kn.sin(_),B=Kn.cos(w),R=Kn.sin(w),D=Kn.tan(E/4),A=4/3*n*D,N=4/3*i*D,V=[e,t],O=[e+A*T,t-N*P],I=[L+A*R,s-N*B],j=[L,s];if(O[0]=2*V[0]-O[0],O[1]=2*V[1]-O[1],c)return[O,I,j].concat(d);for(var Z=[],H=0,$=(d=[O,I,j].concat(d).join().split(",")).length;H<$;H++)Z[H]=H%2?h(d[H-1],d[H],p).y:h(d[H],d[H+1],p).x;return Z}function wi(e){var t=ai(e);if(t.curve)return ci(t.curve);for(var n=yi(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=function(e,t,n){var i,o;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C",..._i(t.x,t.y,...e.slice(1))];break;case"S":"C"==n||"S"==n?(i=2*t.x-t.bx,o=2*t.y-t.by):(i=t.x,o=t.y),e=["C",i,o,...e.slice(1)];break;case"T":"Q"==n||"T"==n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C",...Ci(t.x,t.y,t.qx,t.qy,e[1],e[2])];break;case"Q":t.qx=e[1],t.qy=e[2],e=["C",...Ci(t.x,t.y,e[1],e[2],e[3],e[4])];break;case"L":e=["C",...xi(t.x,t.y,e[1],e[2])];break;case"H":e=["C",...xi(t.x,t.y,e[1],t.y)];break;case"V":e=["C",...xi(t.x,t.y,t.x,e[1])];break;case"Z":e=["C",...xi(t.x,t.y,t.X,t.Y)]}return e},r=function(e,t){if(e[t].length>7){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),l=n.length}},a=[],L="",s="",c=0,l=n.length;c=o.right,L=i.top-n.y>=o.bottom,s=r?"top":L?"bottom":null,c=i.right+n.x<=o.left?"left":a?"right":null;return c&&s?s+"-"+c:c||s||"intersect"}function Ri(e,t,n){var i=vi(e,t);return 1===i.length||2===i.length&&Zn(i[0],i[1])<1?Si(i[0]):i.length>1?Si((i=U(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 Di(e,t,n){return Y({id:e.id,type:e.$type,businessObject:e,di:t},n)}function Ai(e,t,n){var i=e.waypoint;return!i||i.length<2?[Ti(t),Ti(n)]:i.map((function(e){return{x:e.x,y:e.y}}))}function Ni(e,t,n){return new Error(`element ${yt(t)} referenced by ${yt(e)}#${n} not yet drawn`)}function Vi(e,t,n,i,o){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._textRenderer=o}Vi.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],Vi.prototype.add=function(e,t,n){var i,o,r,a,L,s,c;if(te(t,"bpmndi:BPMNPlane")){var l=te(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(Di(e,t,l)),this._canvas.addRootElement(i)}else if(te(t,"bpmndi:BPMNShape")){var u=!$t(e,t),p=function(e){return te(e,"bpmn:Group")}(e);o=n&&(n.hidden||n.collapsed);var d=t.bounds;i=this._elementFactory.createShape(Di(e,t,{collapsed:u,hidden:o,x:Math.round(d.x),y:Math.round(d.y),width:Math.round(d.width),height:Math.round(d.height),isFrame:p})),te(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),te(e,"bpmn:Lane")&&(r=0),te(e,"bpmn:DataStoreReference")&&(a=n,L=Ti(d),s=L.x,c=L.y,s>=a.x&&s<=a.x+a.width&&c>=a.y&&c<=a.y+a.height||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,r)}else{if(!te(t,"bpmndi:BPMNEdge"))throw new Error(`unknown di ${yt(t)} for element ${yt(e)}`);var h=this._getSource(e),m=this._getTarget(e);o=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(Di(e,t,{hidden:o,source:h,target:m,waypoints:Ai(t,h,m)})),te(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(i,n,r)}return Xt(e)&&nn(i)&&this.addLabel(e,t,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},Vi.prototype._attachBoundary=function(e,t){var n=e.attachedToRef;if(!n)throw new Error(`missing ${yt(e)}#attachedToRef`);var i=this._elementRegistry.get(n.id),o=i&&i.attachers;if(!i)throw Ni(e,n,"attachedToRef");t.host=i,o||(i.attachers=o=[]),-1===o.indexOf(t)&&o.push(t)},Vi.prototype.addLabel=function(e,t,n){var i,o,r;return i=function(e,t){var n,i,o,r=e.label;return r&&r.bounds?(o=r.bounds,i={width:Math.max(Kt.width,o.width),height:o.height},n={x:o.x+o.width/2,y:o.y+o.height/2}):(n=en(t),i=Kt),Y({x:n.x-i.width/2,y:n.y-i.height/2},i)}(t,n),(o=nn(n))&&(i=this._textRenderer.getExternalLabelBounds(i,o)),r=this._elementFactory.createLabel(Di(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!nn(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(r,n.parent)},Vi.prototype._getConnectedElement=function(e,t){var n,i,o=e.$type;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===o&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===o||"target"===t&&"bpmn:DataInputAssociation"===o)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?Ni(e,i,t+"Ref"):new Error(`${yt(e)}#${t} Ref not specified`)},Vi.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},Vi.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},Vi.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};const Oi={__depends__:[In,{__depends__:[jn],bpmnImporter:["type",Vi]}]};function Ii(e){return D(e,(function(t){return!R(e,(function(e){return e!==t&&ji(t,e)}))}))}function ji(e,t){if(t){if(e===t)return t;if(e.parent)return ji(e.parent,t)}}function Zi(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function Hi(e,t,n){n=n||0,S(e)||(e=[e]),A(e,(function(e,i){var o=t(e,i,n);S(o)&&o.length&&Hi(o,t,n+1)}))}function $i(e,t){return function(e,t,n){var i=[],o=[];return Hi(e,(function(e,n,r){Zi(i,e,t);var a=e.children;if(a&&Zi(o,a,t))return a})),i}(e,!t)}function Fi(e,t){var n,i,o,r;return t=!!t,S(e)||(e=[e]),A(e,(function(e){var a=e;e.waypoints&&!t&&(a=Fi(e.waypoints,!0));var L=a.x,s=a.y,c=a.height||0,l=a.width||0;(Lo||void 0===o)&&(o=L+l),(s+c>r||void 0===r)&&(r=s+c)})),{x:n,y:i,height:r-i,width:o-n}}function zi(e,t){return Y({},e||{},t||{})}function Ui(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}Ui.prototype.next=function(){return this._prefix+ ++this._counter};var Gi=new Ui("ov");function Wi(e,t,n,i){var o,r;this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=Gi,this._overlayDefaults=Y({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(o=n.getContainer(),we(r=ze('
'),{position:"absolute",width:0,height:0}),o.insertBefore(r,o.firstChild),r),this._init()}function qi(e,t,n){we(e,{left:t+"px",top:n+"px"})}function Ki(e,t){e.style.display=!1===t?"none":""}function Qi(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}Wi.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Wi.prototype.get=function(e){if(T(e)&&(e={id:e}),T(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,G({type:e.type})):t.overlays.slice():[]}return e.type?D(this._overlays,G({type:e.type})):e.id?this._overlays[e.id]:null},Wi.prototype.add=function(e,t,n){if(M(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=Y({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},Wi.prototype.remove=function(e){var t=this.get(e)||[];S(t)||(t=[t]);var n=this;A(t,(function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(We(e.html),We(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)}}))},Wi.prototype.isShown=function(){return"none"!==this._overlayRoot.style.display},Wi.prototype.show=function(){Ki(this._overlayRoot)},Wi.prototype.hide=function(){Ki(this._overlayRoot,!1)},Wi.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Pe(this._overlayRoot)},Wi.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,o=t.y;if(t.waypoints){var r=Fi(t);i=r.x,o=r.y}qi(n,i,o),Ee(e.html,"data-container-id",t.id)},Wi.prototype._updateOverlay=function(e){var t,n,i=e.position,o=e.htmlContainer,r=e.element,a=i.left,L=i.top;void 0!==i.right&&(t=r.waypoints?Fi(r).width:r.width,a=-1*i.right+t);void 0!==i.bottom&&(n=r.waypoints?Fi(r).height:r.height,L=-1*i.bottom+n);qi(o,a||0,L||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Wi.prototype._createOverlayContainer=function(e){var t=ze('
');we(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},Wi.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Qi(this._overlayRoot,n)},Wi.prototype._getOverlayContainer=function(e,t){var n=R(this._overlayContainers,(function(t){return t.element===e}));return n||t?n:this._createOverlayContainer(e)},Wi.prototype._addOverlay=function(e){var t,n,i=e.id,o=e.element,r=e.html;r.get&&r.constructor.prototype.jquery&&(r=r.get(0)),T(r)&&(r=ze(r)),n=this._getOverlayContainer(o),we(t=ze('
'),{position:"absolute"}),t.appendChild(r),e.type&&Me(t).add("djs-overlay-"+e.type),Ki(t,this._canvas.findRoot(o)===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())},Wi.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=this._canvas.findRoot(e.element),o=n&&n.minZoom,r=n&&n.maxZoom,a=e.htmlContainer,L=!0;(i!==this._canvas.getRootElement()||n&&(w(o)&&o>t.scale||w(r)&&ri&&(o=(1/t.scale||1)*i)),w(o)&&(L="scale("+o+","+o+")"),Qi(a,L)},Wi.prototype._updateOverlaysVisibilty=function(e){var t=this;A(this._overlays,(function(n){t._updateOverlayVisibilty(n,e)}))},Wi.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;A(t.get({element:n}),(function(e){t.remove(e.id)}));var i=t._getOverlayContainer(n);if(i){We(i.html);var o=t._overlayContainers.indexOf(i);-1!==o&&t._overlayContainers.splice(o,1)}})),e.on("element.changed",500,(function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(A(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&&Me(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 Xi={__init__:["overlays"],overlays:["type",Wi]};function Yi(e,t,n,i){e.on("element.changed",(function(i){var o=i.element;(o.parent||o===t.getRootElement())&&(i.gfx=n.getGraphics(o)),i.gfx&&e.fire(function(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}(o)+".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)}))}Yi.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const Ji={__init__:["changeSupport"],changeSupport:["type",Yi]};function eo(e){this._eventBus=e}function to(e){return function(t,n,i,o,r){(P(t)||k(t))&&(r=o,o=i,i=n,n=t,t=null),this.on(t,e,n,i,o,r)}}function no(e,t){t.invoke(eo,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)}))}eo.$inject=["eventBus"],eo.prototype.on=function(e,t,n,i,o,r){if((P(t)||k(t))&&(r=o,o=i,i=n,n=t,t=null),P(n)&&(r=o,o=i,i=n,n=1e3),M(o)&&(r=o,o=!1),!P(i))throw new Error("handlerFn must be a function");S(e)||(e=[e]);var a=this._eventBus;A(e,(function(e){var L=["commandStack",e,t].filter((function(e){return e})).join(".");a.on(L,n,o?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,r):i,r)}))},eo.prototype.canExecute=to("canExecute"),eo.prototype.preExecute=to("preExecute"),eo.prototype.preExecuted=to("preExecuted"),eo.prototype.execute=to("execute"),eo.prototype.executed=to("executed"),eo.prototype.postExecute=to("postExecute"),eo.prototype.postExecuted=to("postExecuted"),eo.prototype.revert=to("revert"),eo.prototype.reverted=to("reverted"),fe(no,eo),no.$inject=["canvas","injector"];const io={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",no]};function oo(e){return CSS.escape(e)}var ro={"&":"&","<":"<",">":">",'"':""","'":"'"};function ao(e){return(e=""+e)&&e.replace(/[&<>"']/g,(function(e){return ro[e]}))}var Lo="_plane";function so(e){return function(e){return e.replace(new RegExp(Lo+"$"),"")}(e.id)}function co(e){var t=e.id;return te(e,"bpmn:SubProcess")?po(t):t}function lo(e){return po(e)}function uo(e){return te(oe(e),"bpmndi:BPMNPlane")}function po(e){return e+Lo}function ho(e,t,n){var i=ze('
    '),o=n.getContainer(),r=Me(o);o.appendChild(i);var a=[];function L(e){e&&(a=function(e){for(var t=ie(e),n=[],i=t;i;i=i.$parent)(te(i,"bpmn:SubProcess")||te(i,"bpmn:Process"))&&n.push(i);return n.reverse()}(e));var o=a.map((function(e){var i=ao(e.name||e.id),o=ze('
  • '+i+"
  • "),r=n.findRoot(co(e))||n.findRoot(e.id);if(!r&&te(e,"bpmn:Process")){var a=t.find((function(t){var n=ie(t);return n&&n.get("processRef")&&n.get("processRef")===e}));r=n.findRoot(a.id)}return o.addEventListener("click",(function(){n.setRootElement(r)})),o}));i.innerHTML="";var L=o.length>1;r.toggle("bjs-breadcrumbs-shown",L),o.forEach((function(e){i.appendChild(e)}))}e.on("element.changed",(function(e){var t=ie(e.element);R(a,(function(e){return e===t}))&&L()})),e.on("root.set",(function(e){L(e.element)}))}function mo(e,t){var n=null,i=new fo;e.on("root.set",(function(e){var o=e.element,r=t.viewbox(),a=i.get(o);if(i.set(n,{x:r.x,y:r.y,zoom:r.scale}),n=o,!te(o,"bpmn:Collaboration")||a){a=a||{x:0,y:0,zoom:1};var L=(r.x-a.x)*r.scale,s=(r.y-a.y)*r.scale;0===L&&0===s||t.scroll({dx:L,dy:s}),a.zoom!==r.scale&&t.zoom(a.zoom,{x:0,y:0})}})),e.on("diagram.clear",(function(){i.clear(),n=null}))}function fo(){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)}}ho.$inject=["eventBus","elementRegistry","canvas"],mo.$inject=["eventBus","canvas"];var go=180,vo=160;function yo(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 bo(e){return te(e,"bpmndi:BPMNDiagram")?e:bo(e.$parent)}yo.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)}));var n=[];e.diagrams.forEach((function(e){var i=t._createNewDiagrams(e.plane);Array.prototype.push.apply(n,i)})),n.forEach((function(e){t._movePlaneElementsToOrigin(e.plane)}))}},yo.prototype._createNewDiagrams=function(e){var t=this,n=[],i=[];e.get("planeElement").forEach((function(t){var o=t.bpmnElement;if(o){var r=o.$parent;te(o,"bpmn:SubProcess")&&!t.isExpanded&&n.push(o),function(e,t){var n=e.$parent;if(!te(n,"bpmn:SubProcess")||n===t.bpmnElement)return!1;if(ne(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))return!1;return!0}(o,e)&&i.push({diElement:t,parent:r})}}));var o=[];return n.forEach((function(e){if(!t._processToDiagramMap[e.id]){var n=t._createDiagram(e);t._processToDiagramMap[e.id]=n,o.push(n)}})),i.forEach((function(e){for(var i=e.diElement,o=e.parent;o&&-1===n.indexOf(o);)o=o.$parent;if(o){var r=t._processToDiagramMap[o.id];t._moveToDiPlane(i,r.plane)}})),o},yo.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=Mi(e.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}})),ki(t)}(e),i=n.x-go,o=n.y-vo;t.forEach((function(e){e.waypoint?e.waypoint.forEach((function(e){e.x=e.x-i,e.y=e.y-o})):e.bounds&&(e.bounds.x=e.bounds.x-i,e.bounds.y=e.bounds.y-o)}))},yo.prototype._moveToDiPlane=function(e,t){var n=bo(e).plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},yo.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},yo.$inject=["eventBus","moddle"];var xo=250;function Co(e,t,n,i){eo.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=i;var o=this;this.executed("shape.toggleCollapse",xo,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.reverted("shape.toggleCollapse",xo,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.executed(["shape.create","shape.move","shape.delete"],xo,(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"],xo,(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)}))}))}fe(Co,eo),Co.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this._updateOverlayVisibility(n)}},Co.prototype._canDrillDown=function(e){var t=this._canvas;return te(e,"bpmn:SubProcess")&&t.findRoot(co(e))},Co.prototype._updateOverlayVisibility=function(e){var t=this._overlays,n=ie(e),i=t.get({element:n.id,type:"drilldown"})[0];if(i){var o=n&&n.get("flowElements")&&n.get("flowElements").length;Me(i.html).toggle("bjs-drilldown-empty",!o)}},Co.prototype._addOverlay=function(e){var t=this._canvas,n=this._overlays;n.get({element:e,type:"drilldown"}).length&&this._removeOverlay(e);var i=ze('');i.addEventListener("click",(function(){t.setRootElement(t.findRoot(co(e)))})),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:i}),this._updateOverlayVisibility(e)},Co.prototype._removeOverlay=function(e){this._overlays.remove({element:e,type:"drilldown"})},Co.$inject=["canvas","eventBus","elementRegistry","overlays"];const _o={__depends__:[Xi,Ji,io],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",ho],drilldownCentering:["type",mo],drilldownOverlayBehavior:["type",Co],subprocessCompatibility:["type",yo]};function wo(e,t){this._eventBus=e,this.offset=5;var n=t.cls("djs-outline",["no-fill"]),i=this;function o(e){var t=st("rect");return Ye(t,Y({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,r=Ue(".djs-outline",n);r||qe(n,r=i.getOutline(t)||o()),i.updateShapeOutline(r,t)})),e.on(["connection.added","connection.changed"],(function(e){var t=e.element,n=e.gfx,r=Ue(".djs-outline",n);r||qe(n,r=o()),i.updateConnectionOutline(r,t)}))}wo.prototype.updateShapeOutline=function(e,t){var n=!1,i=this._getProviders();i.length&&A(i,(function(i){n=n||i.updateOutline(t,e)})),n||Ye(e,{x:-this.offset,y:-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},wo.prototype.updateConnectionOutline=function(e,t){var n=Fi(t);Ye(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},wo.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("outline.getProviders",e,(function(e){e.providers.push(t)}))},wo.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},wo.prototype.getOutline=function(e){var t;return A(this._getProviders(),(function(n){P(n.getOutline)&&(t=t||n.getOutline(e))})),t},wo.$inject=["eventBus","styles","elementRegistry"];const Eo={__init__:["outline"],outline:["type",wo]},So={width:36,height:50},Mo={width:50,height:50};function ko(e,t,n){return st("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}function Po(e,t){this._styles=t,e.registerProvider(this)}function To(e,t){var n;return"bpmn:DataObjectReference"===t?n=So:"bpmn:DataStoreReference"===t&&(n=Mo),e.width===n.width&&e.height===n.height}Po.$inject=["outline","styles"],Po.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(!qt(e))return te(e,"bpmn:Gateway")?(Y((n=st("rect")).style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),Ye(n,Y({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):ne(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group"])?Ye(n=st("rect"),Y({x:-5,y:-5,rx:14,width:e.width+10,height:e.height+10},t)):te(e,"bpmn:EndEvent")?Ye(n=st("circle"),Y({cx:e.width/2,cy:e.height/2,r:e.width/2+5+1},t)):te(e,"bpmn:Event")?Ye(n=st("circle"),Y({cx:e.width/2,cy:e.height/2,r:e.width/2+5},t)):te(e,"bpmn:DataObjectReference")&&To(e,"bpmn:DataObjectReference")?n=ko("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):te(e,"bpmn:DataStoreReference")&&To(e,"bpmn:DataStoreReference")&&(n=ko("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},Po.prototype.updateOutline=function(e,t){if(!qt(e))return ne(e,["bpmn:SubProcess","bpmn:Group"])?(Ye(t,{width:e.width+10,height:e.height+10}),!0):!!ne(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};const Bo={__depends__:[Eo],__init__:["outlineProvider"],outlineProvider:["type",Po]};function Ro(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()}function Do(e){return e.originalEvent||e.srcEvent}function Ao(e){Ro(e),Ro(Do(e))}function No(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 Vo(){return/mac/i.test(navigator.platform)}function Oo(e,t){return(Do(e)||e).button===t}function Io(e){return Oo(e,0)}function jo(e){var t=Do(e)||e;return!!Io(e)&&(Vo()?t.metaKey:t.ctrlKey)}function Zo(e){var t=Do(e)||e;return Io(e)&&t.shiftKey}function Ho(e){return!0}function $o(e){return Io(e)||function(e){return Oo(e,1)}(e)}function Fo(e,t,n){var i=this;function o(n,i,o){var r,a;(function(e,t){return!(s[e]||Io)(t)})(n,i)||(o?a=t.getGraphics(o):(r=i.delegateTarget||i.target)&&(a=r,o=t.get(a)),a&&o&&!1===e.fire(n,{element:o,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var r={};function a(e){return r[e]}var L={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},s={"element.contextmenu":Ho,"element.mousedown":$o,"element.mouseup":$o,"element.click":$o,"element.dblclick":$o};var c="svg, .djs-element";function l(e,t,n,i){var a=r[n]=function(e){o(n,e)};i&&(s[n]=i),a.$delegate=Ze.bind(e,c,t,a)}function u(e,t,n){var i=a(n);i&&Ze.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,A(L,(function(e,n){u(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,A(L,(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 p=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:p,"no-move":m("djs-hit djs-hit-no-move")};function m(e,t){return t=Y({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 Ye(e,n),e}function g(e,t){qe(e,t)}this.removeHits=function(e){A(Ge(".djs-hit",e),nt)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,o=e.isFrame;return i?this.createWaypointsHit(t,i):(n=o?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n=cn(t);return f(n,"stroke"),g(e,n),n},this.createBoxHit=function(e,t,n){n=Y({x:0,y:0},n);var i=st("rect");return f(i,t),Ye(i,n),g(e,i),i},this.updateDefaultHit=function(e,t){var n=Ue(".djs-hit",t);if(n)return e.waypoints?ln(n,e.waypoints):Ye(n,{width:e.width,height:e.height}),n},this.fire=o,this.triggerMouseEvent=function(e,t,n){var i=L[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return o(i,t,n)},this.mouseHandler=a,this.registerEvent=l,this.unregisterEvent=u}Fo.$inject=["eventBus","elementRegistry","styles"];const zo={__init__:["interactionEvents"],interactionEvents:["type",Fo]};function Uo(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)}))}Uo.$inject=["eventBus","canvas"],Uo.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})}},Uo.prototype.get=function(){return this._selectedElements},Uo.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},Uo.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();S(e)||(e=e?[e]:[]);var o=this._canvas,r=o.getRootElement();e=e.filter((function(e){var t=o.findRoot(e);return r===t})),t?A(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 Go="hover",Wo="selected";function qo(e,t,n){this._canvas=e;var i=this;function o(t,n){e.addMarker(t,n)}function r(t,n){e.removeMarker(t,n)}this._multiSelectionBox=null,t.on("element.hover",(function(e){o(e.element,Go)})),t.on("element.out",(function(e){r(e.element,Go)})),t.on("selection.changed",(function(e){var t=e.oldSelection,n=e.newSelection;A(t,(function(e){-1===n.indexOf(e)&&r(e,Wo)})),A(n,(function(e){-1===t.indexOf(e)&&o(e,Wo)})),i._updateSelectionOutline(n)})),t.on("element.changed",(function(e){n.isSelected(e.element)&&i._updateSelectionOutline(n.get())}))}function Ko(e,t,n,i){e.on("create.end",500,(function(e){var n=e.context,i=n.canExecute,o=n.elements,r=(n.hints||{}).autoSelect;if(i){if(!1===r)return;S(r)?t.select(r):t.select(o.filter(Qo))}})),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||[],o=i.get(e.context.shape.id);R(n,(function(e){return o.id===e.id}))||t.select(o)})),e.on("element.click",(function(e){if(Io(e)){var i=e.element;i===n.getRootElement()&&(i=null);var o=t.isSelected(i),r=t.get().length>1,a=Zo(e);if(o&&r)return a?t.deselect(i):t.select(i);o?t.deselect(i):t.select(i,a)}}))}function Qo(e){return!e.hidden}qo.$inject=["canvas","eventBus","selection"],qo.prototype._updateSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");it(t);var n=e.length>1;if(et(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}}(Fi(e)),o=st("rect");Ye(o,Y({rx:3},i)),et(o).add("djs-selection-outline"),qe(t,o)}},Ko.$inject=["eventBus","selection","canvas","elementRegistry"];const Xo={__init__:["selectionVisuals","selectionBehavior"],__depends__:[zo,Eo],selection:["type",Uo],selectionVisuals:["type",qo],selectionBehavior:["type",Ko]};function Yo(e){Nt.call(this,e)}fe(Yo,Nt),Yo.prototype._modules=[Oi,_o,Bo,Xi,Xo,jn],Yo.prototype._moddleExtensions={};var Jo=["c","C"],er=["v","V"],tr=["y","Y"],nr=["z","Z"];function ir(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function or(e,t){return-1!==(e=S(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.code)}function rr(e){return e.shiftKey}var ar="keyboard.keydown",Lr="input-handle-modified-keys";function sr(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()}))}sr.$inject=["config.keyboard","eventBus"],sr.prototype._keydownHandler=function(e){this._keyHandler(e,ar)},sr.prototype._keyupHandler=function(e){this._keyHandler(e,"keyboard.keyup")},sr.prototype._keyHandler=function(e,t){if(!this._isEventIgnored(e)){var n={keyEvent:e};this._eventBus.fire(t||ar,n)&&e.preventDefault()}},sr.prototype._isEventIgnored=function(e){return!!e.defaultPrevented||((t=e.target)&&(Te(t,"input, textarea")||"true"===t.contentEditable)||function(e){return e&&Te(e,"button, input[type=submit], input[type=button], a[href], [aria-role=button]")}(e.target)&&or([" ","Enter"],e))&&this._isModifiedKeyIgnored(e);var t},sr.prototype._isModifiedKeyIgnored=function(e){return!ir(e)||-1===this._getAllowedModifiers(e.target).indexOf(e.key)},sr.prototype._getAllowedModifiers=function(e){var t=Be(e,"["+Lr+"]",!0);return!t||this._node&&!this._node.contains(t)?[]:t.getAttribute(Lr).split(",")},sr.prototype.bind=function(e){this.unbind(),this._node=e,Oe.bind(e,"keydown",this._keydownHandler),Oe.bind(e,"keyup",this._keyupHandler),this._fire("bind")},sr.prototype.getBinding=function(){return this._node},sr.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),Oe.unbind(e,"keydown",this._keydownHandler),Oe.unbind(e,"keyup",this._keyupHandler)),this._node=null},sr.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},sr.prototype.addListener=function(e,t,n){P(e)&&(n=t,t=e,e=1e3),this._eventBus.on(n||ar,e,t)},sr.prototype.removeListener=function(e,t){this._eventBus.off(t||ar,e)},sr.prototype.hasModifier=function(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},sr.prototype.isCmd=ir,sr.prototype.isShift=rr,sr.prototype.isKey=or;var cr=500;function lr(e,t){var n=this;e.on("editorActions.init",cr,(function(e){var i=e.editorActions;n.registerBindings(t,i)}))}lr.$inject=["eventBus","keyboard"],lr.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}n("undo",(function(e){if(function(e){return ir(e)&&!rr(e)&&or(nr,e)}(e.keyEvent))return t.trigger("undo"),!0})),n("redo",(function(e){if(function(e){return ir(e)&&(or(tr,e)||or(nr,e)&&rr(e))}(e.keyEvent))return t.trigger("redo"),!0})),n("copy",(function(e){if(function(e){return ir(e)&&or(Jo,e)}(e.keyEvent))return t.trigger("copy"),!0})),n("paste",(function(e){if(function(e){return ir(e)&&or(er,e)}(e.keyEvent))return t.trigger("paste"),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(or(["+","Add","="],n)&&ir(n))return t.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(or(["-","Subtract"],n)&&ir(n))return t.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(e){var n=e.keyEvent;if(or("0",n)&&ir(n))return t.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(e){if(or(["Backspace","Delete","Del"],e.keyEvent))return t.trigger("removeSelection"),!0}))};const ur={__init__:["keyboard","keyboardBindings"],keyboard:["type",sr],keyboardBindings:["type",lr]};var pr={moveSpeed:50,moveSpeedAccelerated:200};function dr(e,t,n){var i=this;this._config=Y({},pr,e||{}),t.addListener((function(e){var n=e.keyEvent,o=i._config;if(!t.isCmd(n))return;if(t.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],n)){var r,a=t.isShift(n)?o.moveSpeedAccelerated:o.moveSpeed;switch(n.key){case"ArrowLeft":case"Left":r="left";break;case"ArrowUp":case"Up":r="up";break;case"ArrowRight":case"Right":r="right";break;case"ArrowDown":case"Down":r="down"}return i.moveCanvas({speed:a,direction:r}),!0}})),this.moveCanvas=function(e){var t=0,i=0,o=e.speed/Math.min(Math.sqrt(n.viewbox().scale),1);switch(e.direction){case"left":t=o;break;case"up":i=o;break;case"right":t=-o;break;case"down":i=-o}n.scroll({dx:t,dy:i})}}dr.$inject=["config.keyboardMove","keyboard","canvas"];const hr={__depends__:[ur],__init__:["keyboardMove"],keyboardMove:["type",dr]};var mr=/^djs-cursor-.*$/;function fr(e){var t=Me(document.body);t.removeMatching(mr),e&&t.add("djs-cursor-"+e)}function gr(){fr(null)}var vr=5e3;function yr(e,t){function n(){return!1}return t=t||"element.click",e.once(t,vr,n),function(){e.off(t,n)}}function br(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function xr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Cr(e,t){var n;function i(i){var o,r=n.start,a=n.button,L=No(i),s=xr(L,r);(!n.dragging&&(o=s,Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))>15)&&(n.dragging=!0,0===a&&yr(e),fr("grab")),n.dragging)&&(s=xr(L,n.last||n.start),t.scroll({dx:s.x,dy:s.y}),n.last=L);i.preventDefault()}function o(e){Oe.unbind(document,"mousemove",i),Oe.unbind(document,"mouseup",o),n=null,gr()}e.on("element.mousedown",500,(function(e){return function(e){if(Be(e.target,".djs-draggable"))return;var t=e.button;if(t>=2||e.ctrlKey||e.shiftKey||e.altKey)return;return n={button:t,start:No(e)},Oe.bind(document,"mousemove",i),Oe.bind(document,"mouseup",o),!0}(e.originalEvent)})),this.isActive=function(){return!!n}}Cr.$inject=["eventBus","canvas"];const _r={__init__:["moveCanvas"],moveCanvas:["type",Cr]};function wr(e){return Math.log(e)/Math.log(10)}function Er(e,t){var n=wr(e.min),i=wr(e.max);return(Math.abs(n)+Math.abs(i))/t}var Sr=Math.sign||function(e){return e>=0?1:-1},Mr={min:.2,max:4};function kr(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=X(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)}))}kr.$inject=["config.zoomScroll","eventBus","canvas"],kr.prototype.scroll=function(e){this._canvas.scroll(e)},kr.prototype.reset=function(){this._canvas.zoom("fit-viewport")},kr.prototype.zoom=function(e,t){var n=Er(Mr,20);this._totalDelta+=e,Math.abs(this._totalDelta)>.1&&(this._zoom(e,t,n),this._totalDelta=0)},kr.prototype._handleWheel=function(e){if(!Be(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,i=e.ctrlKey||Vo()&&e.metaKey,o=e.shiftKey,r=-1*this._scale;if(r*=i?0===e.deltaMode?.02:.32:0===e.deltaMode?1:16,i){var a=t.getBoundingClientRect(),L={x:e.clientX-a.left,y:e.clientY-a.top};n=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*Sr(e.deltaY)*r,this.zoom(n,L)}else n=o?{dx:r*e.deltaY,dy:0}:{dx:r*e.deltaX,dy:r*e.deltaY},this.scroll(n)}},kr.prototype.stepZoom=function(e,t){var n=Er(Mr,10);this._zoom(e,t,n)},kr.prototype._zoom=function(e,t,n){var i=this._canvas,o=e>0?1:-1,r=wr(i.zoom()),a=Math.round(r/n)*n;a+=n*o;var L,s,c=Math.pow(10,a);i.zoom((L=Mr,s=c,Math.max(L.min,Math.min(L.max,s))),t)},kr.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,i=this._enabled;return void 0===e&&(e=!i),i!==e&&Oe[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e,e},kr.prototype._init=function(e){this.toggle(e)};const Pr={__init__:["zoomScroll"],zoomScroll:["type",kr]};function Tr(e){Yo.call(this,e)}function Br(e){return e&&e[e.length-1]}function Rr(e){return e.y}function Dr(e){return e.x}fe(Tr,Yo),Tr.prototype._navigationModules=[hr,_r,Pr],Tr.prototype._modules=[].concat(Yo.prototype._modules,Tr.prototype._navigationModules);var Ar={left:Dr,center:Dr,right:function(e){return e.x+e.width},top:Rr,middle:Rr,bottom:function(e){return e.y+e.height}};function Nr(e,t){this._modeling=e,this._rules=t}Nr.$inject=["modeling","rules"],Nr.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},Nr.prototype._isType=function(e,t){return-1!==t.indexOf(e)},Nr.prototype._alignmentPosition=function(e,t){var n,i,o,r,a,L=this._getOrientationDetails(e),s=L.axis,c=L.dimension,l={},u={},p=!1;if(this._isType(e,["left","top"]))l[e]=t[0][s];else if(this._isType(e,["right","bottom"]))o=Br(t),l[e]=o[s]+o[c];else if(this._isType(e,["center","middle"])){if(A(t,(function(e){var t=e[s]+Math.round(e[c]/2);u[t]?u[t].elements.push(e):u[t]={elements:[e],center:t}})),n=U(u,(function(e){return e.elements.length>1&&(p=!0),e.elements.length})),p)return l[e]=Br(n).center,l;i=t[0],o=Br(t=U(t,(function(e){return e[s]+e[c]}))),l[e]=(r=i,a=o,Math.round((r[s]+a[s]+a[c])/2))}return l},Nr.prototype.trigger=function(e,t){var n,i=this._modeling,o=D(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(S(n=this._rules.allowed("elements.align",{elements:o}))&&(o=n),!(o.length<2)&&n){var r=U(o,Ar[t]),a=this._alignmentPosition(t,r);i.alignElements(r,a)}};const Vr={__init__:["alignElements"],alignElements:["type",Nr]};var Or=".entry";function Ir(e,t,n){this._canvas=e,this._elementRegistry=t,this._eventBus=n,this._current=null,this._init()}function jr(e,t){return-1!==e.indexOf(t)}Ir.$inject=["canvas","elementRegistry","eventBus"],Ir.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{target:o}=i,r=S(o)?o:[o];if(r.filter((function(e){return jr(n,e)})).length){e.close();var a=r.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",(()=>{this._updatePosition()})),this._eventBus.on("element.marker.update",(function(t){e._updateVisibility()})),this._container=this._createContainer()},Ir.prototype._createContainer=function(){const e=ze('
    ');return this._canvas.getContainer().appendChild(e),e},Ir.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},Ir.prototype.getEntries=function(e){var t=this._getProviders(),n=S(e)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return A(t,(function(t){if(P(t[n])){var o=t[n](e);P(o)?i=o(i):A(o,(function(e,t){i[t]=e}))}})),i},Ir.prototype.trigger=function(e,t,n){var i,o,r=t.delegateTarget||t.target;return r?(i=Ee(r,"data-action"),o=t.originalEvent||t,"mouseover"!==e?"mouseout"===e?(clearTimeout(this._timeout),void(this._mouseout&&(this._mouseout(),this._mouseout=null))):this.triggerEntry(i,e,o,n):void(this._timeout=setTimeout((()=>{this._mouseout=this.triggerEntry(i,"hover",o,n)}),300))):t.preventDefault()},Ir.prototype.triggerEntry=function(e,t,n,i){if(this.isShown()){var o=this._current.target,r=this._current.entries[e];if(r){var a=r.action;if(!1!==this._eventBus.fire("contextPad.trigger",{entry:r,event:n})){if(P(a)){if("click"===t)return a(n,o,i)}else if(a[t])return a[t](n,o,i);n.preventDefault()}}}},Ir.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},Ir.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Ir.prototype._updateAndOpen=function(e){var t,n=this.getEntries(e),i=this._createHtml(e);A(n,(function(e,n){var o,r,a,L,s=e.group||"default",c=ze(e.html||'
    ');Ee(c,"data-action",n),(o=Ue("[data-group="+oo(s)+"]",i))||(Ee(o=ze('
    '),"data-group",s),i.appendChild(o)),o.appendChild(c),e.className&&(r=c,a=e.className,L=Me(r),(a=S(a)?a:a.split(/\s+/g)).forEach((function(e){L.add(e)}))),e.title&&Ee(c,"title",e.title),e.imageUrl&&(Ee(t=ze(""),"src",e.imageUrl),t.style.width="100%",t.style.height="100%",c.appendChild(t))})),Me(i).add("open"),this._current={entries:n,html:i,target:e},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})},Ir.prototype._createHtml=function(e){var t=this,n=ze('
    ');return Ze.bind(n,Or,"click",(function(e){t.trigger("click",e)})),Ze.bind(n,Or,"dragstart",(function(e){t.trigger("dragstart",e)})),Ze.bind(n,Or,"mouseover",(function(e){t.trigger("mouseover",e)})),Ze.bind(n,Or,"mouseout",(function(e){t.trigger("mouseout",e)})),Oe.bind(n,"mousedown",(function(e){e.stopPropagation()})),this._container.appendChild(n),this._eventBus.fire("contextPad.create",{target:e,pad:n}),n},Ir.prototype.getPad=function(e){let t;return t=this.isOpen()&&function(e,t){return e=S(e)?e:[e],t=S(t)?t:[t],e.length===t.length&&O(e,(function(e){return t.includes(e)}))}(this._current.target,e)?this._current.html:this._createHtml(e),{html:t}},Ir.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},Ir.prototype.isOpen=function(e){var t=this._current;if(!t)return!1;if(!e)return!0;var n=t.target;return S(e)===S(n)&&(S(e)?e.length===n.length&&O(e,(function(e){return jr(n,e)})):n===e)},Ir.prototype.isShown=function(){return this.isOpen()&&Me(this._current.html).has("open")},Ir.prototype.show=function(){this.isOpen()&&(Me(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))},Ir.prototype.hide=function(){this.isOpen()&&(Me(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))},Ir.prototype._getPosition=function(e){if(!S(e)&&Wt(e)){const n=this._canvas.viewbox(),i=(t=e).waypoints[t.waypoints.length-1],o=i.x*n.scale-n.x*n.scale,r=i.y*n.scale-n.y*n.scale;return{left:o+8*this._canvas.zoom(),top:r}}var t,n=this._canvas.getContainer().getBoundingClientRect(),i=this._getTargetBounds(e);return{left:i.right-n.left+8*this._canvas.zoom(),top:i.top-n.top}},Ir.prototype._updatePosition=function(){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")}))}},Ir.prototype._updateVisibility=function(){if(this.isOpen()){var e=this,t=this._current.target;(S(t)?t:[t]).some((function(t){return e._canvas.hasMarker(t,"djs-element-hidden")}))?e.hide():e.show()}},Ir.prototype._getTargetBounds=function(e){return(S(e)?e:[e]).map((e=>this._canvas.getGraphics(e))).reduce(((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 Zr={__depends__:[zo,Xi],contextPad:["type",Ir]};var Hr,$r,Fr,zr,Ur,Gr,Wr,qr,Kr,Qr,Xr={},Yr=[],Jr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ea=Array.isArray;function ta(e,t){for(var n in t)e[n]=t[n];return e}function na(e){var t=e.parentNode;t&&t.removeChild(e)}function ia(e,t,n){var i,o,r,a={};for(r in t)"key"==r?i=t[r]:"ref"==r?o=t[r]:a[r]=t[r];if(arguments.length>2&&(a.children=arguments.length>3?Hr.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===a[r]&&(a[r]=e.defaultProps[r]);return oa(e,a,i,o,null)}function oa(e,t,n,i,o){var r={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==o?++Fr:o,__i:-1,__u:0};return null==o&&null!=$r.vnode&&$r.vnode(r),r}function ra(e){return e.children}function aa(e,t){this.props=e,this.context=t}function La(e,t){if(null==t)return e.__?La(e.__,e.__i+1):null;for(var n;tt&&zr.sort(Wr));la.__r=0}function ua(e,t,n,i,o,r,a,L,s,c,l){var u,p,d,h,m,f=i&&i.__k||Yr,g=t.length;for(n.__d=s,function(e,t,n){var i,o,r,a,L,s=t.length,c=n.length,l=c,u=0;for(e.__k=[],i=0;i0?oa(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,L=da(o,n,a,l),o.__i=L,r=null,-1!==L&&(l--,(r=n[L])&&(r.__u|=131072)),null==r||null===r.__v?(-1==L&&u--,"function"!=typeof o.type&&(o.__u|=65536)):L!==a&&(L===a+1?u++:L>a?l>s-a?u+=L-a:u--:L(null==s||131072&s.__u?0:1))for(;a>=0||L=0){if((s=t[a])&&!(131072&s.__u)&&o==s.key&&r===s.type)return a;a--}if(L=5&&((o||!e&&5===i)&&(a.push(i,0,o,n),i=6),e&&(a.push(i,e,0,n),i=6)),o=""},s=0;s"===t?(i=1,o=""):o=t+o[0]:r?t===r?r="":o+=t:'"'===t||"'"===t?r=t:">"===t?(L(),i=1):i&&("="===t?(i=5,n=o,o=""):"/"===t&&(i<5||">"===e[s][c+1])?(L(),3===i&&(a=a[0]),i=a,(a=a[0]).push(2,0,i),i=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(L(),i=2):o+=t),3===i&&"!--"===o&&(i=4,a=a[0])}return L(),a}(e)),t),arguments,[])).length>1?t:t[0]}.bind(ia),Ta=0,Ba=[],Ra=[],Da=$r,Aa=Da.__b,Na=Da.__r,Va=Da.diffed,Oa=Da.__c,Ia=Da.unmount,ja=Da.__;function Za(e,t){Da.__h&&Da.__h(Sa,e,Ta||t),Ta=0;var n=Sa.__H||(Sa.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Ra}),n.__[e]}function Ha(e){return Ta=1,function(e,t,n){var i=Za(Ea++,2);if(i.t=e,!i.__c&&(i.__=[Ja(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=Sa,!Sa.u)){var o=function(e,t,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!r||r.call(this,e,t,n);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&&i.__c.props===e)&&(!r||r.call(this,e,t,n))};Sa.u=!0;var r=Sa.shouldComponentUpdate,a=Sa.componentWillUpdate;Sa.componentWillUpdate=function(e,t,n){if(this.__e){var i=r;r=void 0,o(e,t,n),r=i}a&&a.call(this,e,t,n)},Sa.shouldComponentUpdate=o}return i.__N||i.__}(Ja,e)}function $a(e,t){var n=Za(Ea++,3);!Da.__s&&Ya(n.__H,t)&&(n.__=e,n.i=t,Sa.__H.__h.push(n))}function Fa(e,t){var n=Za(Ea++,4);!Da.__s&&Ya(n.__H,t)&&(n.__=e,n.i=t,Sa.__h.push(n))}function za(e){return Ta=5,Ua((function(){return{current:e}}),[])}function Ua(e,t){var n=Za(Ea++,7);return Ya(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ga(e,t){return Ta=8,Ua((function(){return e}),t)}function Wa(){for(var e;e=Ba.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qa),e.__H.__h.forEach(Xa),e.__H.__h=[]}catch(t){e.__H.__h=[],Da.__e(t,e.__v)}}Da.__b=function(e){Sa=null,Aa&&Aa(e)},Da.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ja&&ja(e,t)},Da.__r=function(e){Na&&Na(e),Ea=0;var t=(Sa=e.__c).__H;t&&(Ma===Sa?(t.__h=[],Sa.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Ra,e.__N=e.i=void 0}))):(t.__h.forEach(Qa),t.__h.forEach(Xa),t.__h=[],Ea=0)),Ma=Sa},Da.diffed=function(e){Va&&Va(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Ba.push(t)&&ka===Da.requestAnimationFrame||((ka=Da.requestAnimationFrame)||Ka)(Wa)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Ra&&(e.__=e.__V),e.i=void 0,e.__V=Ra}))),Ma=Sa=null},Da.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Qa),e.__h=e.__h.filter((function(e){return!e.__||Xa(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Da.__e(n,e.__v)}})),Oa&&Oa(e,t)},Da.unmount=function(e){Ia&&Ia(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Qa(e)}catch(n){t=n}})),n.__H=void 0,t&&Da.__e(t,n.__v))};var qa="function"==typeof requestAnimationFrame;function Ka(e){var t,n=function(){clearTimeout(i),qa&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);qa&&(t=requestAnimationFrame(n))}function Qa(e){var t=Sa,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Sa=t}function Xa(e){var t=Sa;e.__c=e.__(),Sa=t}function Ya(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ja(e,t){return"function"==typeof t?t(e):t}function eL(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t(((e,t,n)=>{t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),y="undefined"!=typeof document?document.currentScript:null;function b(e){return Array.prototype.concat.apply([],e)}const x=Object.prototype.toString,C=Object.prototype.hasOwnProperty;function _(e){return void 0===e}function w(e){return void 0!==e}function E(e){return null==e}function S(e){return"[object Array]"===x.call(e)}function M(e){return"[object Object]"===x.call(e)}function k(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 T(e){return"[object String]"===x.call(e)}function B(e,t){return C.call(e,t)}function R(e,t){const n=q(t);let i;return A(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function D(e,t){const n=q(t);let i=[];return A(e,(function(e,t){n(e,t)&&i.push(e)})),i}function A(e,t){let n,i;if(_(e))return;const o=S(e)?Q:K;for(let r in e)if(B(e,r)&&(n=e[r],i=t(n,o(r)),!1===i))return n}function N(e,t){if(_(e))return[];!function(e){if(!S(e))throw new Error("must supply array")}(e);const n=q(t);return e.filter((function(e,t){return!n(e,t)}))}function V(e,t,n){return A(e,(function(e,i){n=t(n,e,i)})),n}function O(e,t){return!!V(e,(function(e,n,i){return e&&t(n,i)}),!0)}function I(e,t){return!!R(e,t)}function j(e,t){let n=[];return A(e,(function(e,i){n.push(t(e,i))})),n}function Z(e){return e&&Object.keys(e)||[]}function H(e){return j(e,(e=>e))}function $(e,t,n={}){return t=W(t),A(e,(function(e){let i=t(e)||"_",o=n[i];o||(o=n[i]=[]),o.push(e)})),n}function F(e,...t){e=W(e);let n={};return A(t,(t=>$(t,e,n))),j(n,(function(e,t){return e[0]}))}const z=F;function U(e,t){t=W(t);let n=[];return A(e,(function(e,i){let o=t(e,i),r={d:o,v:e};for(var a=0;ae.v))}function G(e){return function(t){return O(e,(function(e,n){return t[n]===e}))}}function W(e){return P(e)?e:t=>t[e]}function q(e){return P(e)?e:t=>t===e}function K(e){return e}function Q(e){return Number(e)}function X(e,t){return e.bind(t)}function Y(e,...t){return Object.assign(e,...t)}function J(e,t){let n={},i=Object(e);return A(t,(function(t){t in i&&(n[t]=e[t])})),n}function ee(e,t){let n={};return A(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}function te(e,t){var n=ie(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function ne(e,t){return I(t,(function(t){return te(e,t)}))}function ie(e){return e&&e.businessObject||e}function oe(e){return e&&e.di}function re(e,t){if(!e||!t)return-1;var n=e.indexOf(t);return-1!==n&&e.splice(n,1),n}function ae(e,t,n){if(e&&t){"number"!=typeof n&&(n=-1);var i=e.indexOf(t);if(-1!==i){if(i===n)return;if(-1===n)return;e.splice(i,1)}-1!==n?e.splice(n,0,t):e.push(t)}}function Le(e,t){return e&&t?e.indexOf(t):-1}const se=class _BpmnLog{constructor(){v(this,"switchColor",(e=>{switch(e){case"primary":return"#2d8cf0";case"success":return"#19be6b";case"info":return"#909399";case"warn":return"#ff9900";case"error":return"#f03f14";default:return"#35495E"}}))}static getInstance(){return this.instance}isArray(e){return i.lodash.isArray(e)}print(e="default",t,n=!1){"object"!=typeof t||this.isArray(t)}printBack(e="primary",t){this.print(e,t,!0)}pretty(e="primary",t,n){"object"!=typeof n||this.isArray(n)}prettyPrimary(e,...t){t.forEach((t=>this.pretty("primary",e,t)))}prettySuccess(e,...t){t.forEach((t=>this.pretty("success",e,t)))}prettyWarn(e,...t){t.forEach((t=>this.pretty("warn",e,t)))}prettyError(e,...t){t.forEach((t=>this.pretty("error",e,t)))}prettyInfo(e,...t){t.forEach((t=>this.pretty("info",e,t)))}};v(se,"instance",new se),v(se,"types",["primary","success","warn","error","info"]);const ce=se.getInstance(),le=o.defineStore("BpmnDesignerSetting",{state:()=>({useOfficialPanel:!0,useOfficialTemplateChooser:!1,useOfficialBackground:!0,useOtherModule:!0,showMiniMap:!0,showBpmnLint:!0,processId:`Process_${(new Date).getTime()}`,processName:"业务流程",processEngine:"camunda"})}),ue=o.defineStore("BpmnDesignerResources",{state:()=>({resources:{}}),getters:{userService:e=>e.resources.user(),groupService:e=>e.resources.group(),deploymentService:e=>e.resources.deployment(),dynamicFormService:e=>e.resources.dynamicForm()},actions:{init(e){this.resources=e}}}),pe=o.defineStore("BpmnDesignerModeler",{state:()=>({modeler:{},modeling:{},canvas:{},elementRegistry:{},moddle:{},isClosed:!1,activeElement:{},activeElementId:"",panelGroups:[],elementType:"",elementRawType:"",elementTitle:"",elementIcon:"",elementCaption:"",isMultiInstance:!1}),actions:{switchElement(e,t,n,i,o,r,a,L,s){this.activeElement=e,this.activeElementId=t,this.panelGroups=n,this.elementType=i,this.elementRawType=o,this.elementTitle=r,this.elementIcon=a,this.elementCaption=L,this.isMultiInstance=s}}});function de(){const e=pe(),t=le(),{processEngine:n}=t,o=()=>e.modeler,r=()=>e.modeling,a=(t,n,i={})=>{const o=e.moddle.create(t,n);return i&&(o.$parent=i),o},L=e=>i.lodash.isEmpty(e.values)?[]:e.values;return{processEngine:n,getModeler:o,getModeling:r,getCanvas:()=>e.canvas,getBpmnFactory:()=>o().get("bpmnFactory"),getRelevantBusinessObject:e=>{const t=ie(e);return(e=>te(e,"bpmn:Participant"))(e)?t.get("processRef"):t},createModdleElement:a,hasExtensionElements:e=>!!ie(e).extensionElements,getExtensionElements:e=>{const t=ie(e);let n=t.extensionElements;return i.lodash.isEmpty(n)&&(n=a("bpmn:ExtensionElements",{values:[]},t),r().updateModdleProperties(e,t,{extensionElements:n})),n},getExtensionElementsValues:L,getFirstExtensionElementsValue:e=>{const t=L(e);return i.lodash.isEmpty(t)?{}:t[0]},setExtensionElementsValues:(e,t,n)=>{r().updateModdleProperties(e,t,{values:[...t.get("values"),...n]})},resetExtensionElementsValues:(e,t)=>{r().updateModdleProperties(e,t,{values:[]})}}}function he(){const e="text/plain",{getModeling:t,getBpmnFactory:n}=de(),o=t=>(t=>{if(!i.lodash.isEmpty(t))return t.find((t=>(t.textFormat||e)===e))})((e=>ie(e).documentation)(t));return{getDocumentationValue:e=>{const t=o(e);return t&&t.text},setDocumentationValue:(e,r)=>{const a=ie(e),L=o(e);if(L)return r?t().updateModdleProperties(e,L,{text:r}):t().updateModdleProperties(e,a,{documentation:i.lodash.without(a.get("documentation"),L)});if(r){const i=n().create("bpmn:Documentation",{text:r});return t().updateModdleProperties(e,a,{documentation:[...a.get("documentation"),i]})}}}}function me(){const{getModeling:e,getBpmnFactory:t,getCanvas:n}=de(),i=/\s/,o=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,r=/^[a-z_][\w-.]*$/i,a=/((\d|([1-9](\d*))).){2}(\d|([1-9](\d*)))/,L=le(),s=e=>ne(e,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"]),c=e=>te(e,"bpmn:TextAnnotation"),l=(e,n)=>{const i=ie(n).$parent;e.categoryValueRef=(e=>{const n=t().create("bpmn:CategoryValue"),i=t().create("bpmn:Category",{categoryValue:[n]});return ae(e.get("rootElements"),i,0),ie(i).$parent=e,ie(n).$parent=i,n})(i)};return{isProcess:e=>te(e,"bpmn:Process"),getIdValue:e=>e.businessObject.id,setIdValue:(t,n)=>{e().updateProperties(t,{id:n})},getNameValue:e=>{const t=ie(e);return s(e)?"":c(e)?t.text:te(e,"bpmn:Group")?t.categoryValueRef.value:t.name},setNameValue:(t,i)=>{const o=ie(t);if(!s(t)){if(c(t))return e().updateProperties(t,{text:i});if((e=>te(e,"bpmn:Group"))(t)){return o.categoryValueRef||l(o,n().getRootElement()),e().updateLabel(t,i)}e().updateProperties(t,{name:i})}},getIsExecutableValue:e=>!!e.businessObject.isExecutable,setIsExecutableValue:(t,n)=>{e().updateProperties(t,{isExecutable:n})},getVersionTagValue:e=>{const t=L.processEngine;return e.businessObject.get(`${t}:versionTag`)},setVersionTagValue:(t,n)=>{const i=L.processEngine;e().updateProperties(t,{[`${i}:versionTag`]:n})},isIdValid:(e,t)=>{const n=e.businessObject.$model.ids.assigned(t);return t?n&&n!==e?"ID 必须是唯一的":i.test(t)?"ID 不能包含空格":r.test(t)?"":o.test(t)?"ID 不能包含前缀":"ID 必须符合 BPMN 规范":"ID 不能为空."},isVersionTagValid:e=>a.test(e)}}function fe(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}function ge(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 ve=Object.prototype.toString,ye=Object.prototype.hasOwnProperty;function be(e,t){return ye.call(e,t)}function xe(e,t){let n,i;if(void 0===e)return;const o=function(e){return"[object Array]"===ve.call(e)}(e)?_e:Ce;for(let r in e)if(be(e,r)&&(n=e[r],i=t(n,o(r)),!1===i))return n}function Ce(e){return e}function _e(e){return Number(e)}function we(e,...t){const n=e.style;return xe(t,(function(e){e&&xe(e,(function(e,t){n[t]=e}))})),e}function Ee(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)}const Se=Object.prototype.toString;function Me(e){return new ke(e)}function ke(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function Pe(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}function Te(e,t){return e&&"function"==typeof e.matches&&e.matches(t)}function Be(e,t,n){for(var i=n?e:e.parentNode;i&&i.nodeType!==document.DOCUMENT_NODE&&i.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(Te(i,t))return i;i=i.parentNode}return Te(i,t)?i:null}ke.prototype.add=function(e){return this.list.add(e),this},ke.prototype.remove=function(e){return"[object RegExp]"==Se.call(e)?this.removeMatching(e):(this.list.remove(e),this)},ke.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n
    a',$e=!je.getElementsByTagName("link").length,je=void 0);var Fe={legend:[1,"
    ","
    "],tr:[2,"","
    "],col:[2,"","
    "],_default:$e?[1,"X
    ","
    "]:[0,"",""]};Fe.td=Fe.th=[3,"","
    "],Fe.option=Fe.optgroup=[1,'"],Fe.thead=Fe.tbody=Fe.colgroup=Fe.caption=Fe.tfoot=[1,"","
    "],Fe.polyline=Fe.ellipse=Fe.polygon=Fe.circle=Fe.text=Fe.line=Fe.path=Fe.rect=Fe.g=[1,'',""];var ze=He;function Ue(e,t){return(t=t||document).querySelector(e)}function Ge(e,t){return(t=t||document).querySelectorAll(e)}function We(e){e.parentNode&&e.parentNode.removeChild(e)}function qe(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 Ke=2,Qe={"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":Ke,"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":Ke,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Xe(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=Qe[i];o?(o===Ke&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function Ye(e,t,n){if("string"==typeof t){if(void 0===n)return function(e,t){return Qe[t]?e.style[t]:e.getAttributeNS(null,t)}(e,t);Xe(e,t,n)}else!function(e,t){var n,i,o=Object.keys(t);for(n=0;i=o[n];n++)Xe(e,i,t[i])}(e,t);return e}const Je=Object.prototype.toString;function et(e){return new tt(e)}function tt(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function nt(e){var t=e.parentNode;return t&&t.removeChild(e),e}function it(e){for(var t;t=e.firstChild;)nt(t);return e}function ot(e){return e.cloneNode(!0)}tt.prototype.add=function(e){return this.list.add(e),this},tt.prototype.remove=function(e){return"[object RegExp]"==Je.call(e)?this.removeMatching(e):(this.list.remove(e),this)},tt.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(),o=n.firstChild;o.firstChild;)i.appendChild(o.firstChild);return i}function st(e,t){var n;return"<"===e.charAt(0)?(n=Lt(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(rt.svg,e),t&&Ye(n,t),n}var ct=null;function lt(e){return(null===ct&&(ct=st("svg")),ct).createSVGTransform()}var ut=/([&<>]{1})/g,pt=/([\n\r"]{1})/g,dt={"&":"&","<":"<",">":">",'"':"'"};function ht(e,t){return e.replace(t,(function(e,t){return dt[t]||t}))}function mt(e,t){var n,i,o,r,a;switch(e.nodeType){case 3:t.push(ht(e.textContent,ut));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(o=e.attributes).length;n"),n=0,i=(a=e.childNodes).length;n")}else t.push("/>");break;case 8:t.push("\x3c!--",ht(e.nodeValue,ut),"--\x3e");break;case 4:t.push("");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function ft(e,t){return function(e){for(var t=e.firstChild,n=[];t;)mt(t,n),t=t.nextSibling;return n.join("")}(e)}function gt(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function vt(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(gt(e,i))}(n,t)),n.consolidate()}function yt(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':""}var bt="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 xt(e){B(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(bt)}})}function Ct(e,t){return e.$instanceOf(t)}function _t(e){var t={},n=[],i={};function o(e,t){return function(n){e(n,t)}}function r(e){t[e.id]=e}function a(t,n){try{var o=i[t.id]&&function(t,n){if(t.gfx)throw new Error(`already rendered ${yt(t)}`);return e.element(t,i[t.id],n)}(t,n);return r(t),o}catch(a){L(a.message,{element:t,error:a})}}function L(t,n){e.error(t,n)}var s=this.registerDi=function(e){var t=e.bpmnElement;t?i[t.id]?L(`multiple DI elements defined for ${yt(t)}`,{element:t}):(i[t.id]=e,xt(t)):L(`no bpmnElement referenced in ${yt(e)}`,{element:e})};function c(e){var t;t=e.plane,s(t),A(t.planeElement,l)}function l(e){s(e)}this.handleDefinitions=function(r,a){var l=r.diagrams;if(a&&-1===l.indexOf(a))throw new Error("diagram not part of ");if(!a&&l&&l.length&&(a=l[0]),!a)throw new Error("no diagram to display");i={},c(a);var h=a.plane;if(!h)throw new Error(`no plane for ${yt(a)}`);var m=h.bpmnElement;if(!m){if(m=function(e){return R(e.rootElements,(function(e){return Ct(e,"bpmn:Process")||Ct(e,"bpmn:Collaboration")}))}(r),!m)throw new Error("no process or collaboration to display");L(`correcting missing bpmnElement on ${yt(h)} to ${yt(m)}`),h.bpmnElement=m,s(h)}var f,g,y=function(t,n){return e.root(t,i[t.id],n)}(m,h);if(Ct(m,"bpmn:Process")||Ct(m,"bpmn:SubProcess"))p(m,y);else{if(!Ct(m,"bpmn:Collaboration"))throw new Error(`unsupported bpmnElement for ${yt(h)}: ${yt(m)}`);g=y,A((f=m).participants,o(S,g)),v(f.artifacts,g),n.push((function(){!function(e,t){A(e,o(d,t))}(f.messageFlows,g)})),function(e,n){D(e,(function(e){return!t[e.id]&&Ct(e,"bpmn:Process")&&e.laneSets})).forEach(o(p,n))}(r.rootElements,y)}u(n)};var u=this.handleDeferred=function(){for(;n.length;)n.shift()()};function p(e,t){E(e,t),y(e.ioSpecification,t),v(e.artifacts,t),r(e)}function d(e,t){a(e,t)}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 v(e,t){A(e,(function(e){Ct(e,"bpmn:Association")?n.push((function(){g(e,t)})):g(e,t)}))}function y(e,t){e&&(A(e.dataInputs,o(m,t)),A(e.dataOutputs,o(f,t)))}var b=this.handleSubProcess=function(e,t){E(e,t),v(e.artifacts,t)};function x(e,t){var i=a(e,t);Ct(e,"bpmn:SubProcess")&&b(e,i||t),Ct(e,"bpmn:Activity")&&y(e.ioSpecification,t),n.push((function(){A(e.dataInputAssociations,o(h,t)),A(e.dataOutputAssociations,o(h,t))}))}function C(e,t){a(e,t)}function _(e,t){n.push((function(){var n=a(e,t);e.childLaneSet&&w(e.childLaneSet,n||t),function(e){A(e.flowNodeRef,(function(t){var n=t.get("lanes");n&&n.push(e)}))}(e)}))}function w(e,t){A(e.lanes,o(_,t))}function E(e,t){!function(e,t){A(e,(function(e){Ct(e,"bpmn:SequenceFlow")?n.push((function(){!function(e,t){a(e,t)}(e,t)})):Ct(e,"bpmn:BoundaryEvent")?n.unshift((function(){x(e,t)})):Ct(e,"bpmn:FlowNode")?x(e,t):Ct(e,"bpmn:DataObject")||(Ct(e,"bpmn:DataStoreReference")||Ct(e,"bpmn:DataObjectReference")?C(e,t):L(`unrecognized flowElement ${yt(e)} in context ${yt(t&&t.businessObject)}`,{element:e,context:t}))}))}(e.flowElements,t),e.laneSets&&function(e,t){A(e,o(w,t))}(e.laneSets,t)}function S(e,t){var n=a(e,t),i=e.processRef;i&&p(i,n||t)}}function wt(e,t,n){var i,o,r,a=[];function L(e,t){var n=new _t({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 o=function(e,t){if(!t)return;var n,i=t.plane.bpmnElement,o=i;te(i,"bpmn:Process")||te(i,"bpmn:Collaboration")||(o=function(e){var t=e;for(;t;){if(te(t,"bpmn:Process"))return t;t=t.$parent}}(i));n=te(o,"bpmn:Collaboration")?o:R(e.rootElements,(function(e){if(te(e,"bpmn:Collaboration"))return R(e.participants,(function(e){return e.processRef===o}))}));var r=[o];n&&(r=j(n.participants,(function(e){return e.processRef}))).push(n);var a=Et(r),L=[t],s=[i];return A(e.diagrams,(function(e){var t=e.plane.bpmnElement;-1!==a.indexOf(t)&&-1===s.indexOf(t)&&(L.push(e),s.push(t))})),L}(e,t);if(!o)throw new Error("no diagram to display");A(o,(function(t){n.handleDefinitions(e,t)}));var L=t.plane.bpmnElement.id;r.setRootElement(r.findRoot(L+"_plane")||r.findRoot(L))}return new Promise((function(s,c){try{return i=e.get("bpmnImporter"),o=e.get("eventBus"),r=e.get("canvas"),o.fire("import.render.start",{definitions:t}),L(t,n),o.fire("import.render.complete",{error:undefined,warnings:a}),s({warnings:a})}catch(l){return l.warnings=a,c(l)}}))}function Et(e){var t=[];return A(e,(function(e){e&&(t.push(e),t=t.concat(Et(e.flowElements)))})),t}var St,Mt='',kt={verticalAlign:"middle"},Pt={color:"#404040"},Tt={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Bt={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Rt={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"},Dt='
    '+Mt+'Web-based tooling for BPMN, DMN and forms powered by bpmn.io.
    ';function At(){St||(we(St=ze(Dt),Tt),we(Ue("svg",St),kt),we(Ue(".backdrop",St),Bt),we(Ue(".notice",St),Rt),we(Ue(".link",St),Pt,{margin:"15px 20px 15px 10px",alignSelf:"center"}),Ze.bind(St,".backdrop","click",(function(e){document.body.removeChild(St)}))),document.body.appendChild(St)}function Nt(e){e=Y({},Ot,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),function(e){const t=ze(''+Mt+"");we(Ue("svg",t),kt),we(t,Pt,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(t),Oe.bind(t,"click",(function(e){At(),e.preventDefault()}))}(this._container),this._init(this._container,this._moddle,e)}function Vt(e,t){return e.warnings=t,e}fe(Nt,d),Nt.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(r){throw this._emit("import.parse.complete",{error:r}),r}let L=a.rootElement;const s=a.references,c=a.warnings,l=a.elementsById;i=i.concat(c),L=this._emit("import.parse.complete",(o={error:null,definitions:L,elementsById:l,references:s,warnings:i},n.get("eventBus").createEvent(o)))||L;const u=await this.importDefinitions(L,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||[]),Vt(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 o},Nt.prototype.importDefinitions=async function(e,t){this._setDefinitions(e);return{warnings:(await this.open(t)).warnings}},Nt.prototype.open=async function(e){const t=this._definitions;let n=e;if(!t){const e=new Error("no XML imported");throw Vt(e,[]),e}if("string"==typeof e&&(n=function(e,t){if(!t)return null;return R(e.diagrams,(function(e){return e.id===t}))||null}(t,e),!n)){const t=new Error("BPMNDiagram <"+e+"> not found");throw Vt(t,[]),t}try{this.clear()}catch(o){throw Vt(o,[]),o}const{warnings:i}=await wt(this,t,n);return{warnings:i}},Nt.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(r){t=r}const o=t?{error:t}:{xml:n};if(this._emit("saveXML.done",o),t)throw t;return o},Nt.prototype.saveSVG=async function(){let e,t;this._emit("saveSVG.start");try{const t=this.get("canvas"),n=t.getActiveLayer(),i=Ue("defs",t._svg),o=ft(n),r=i?""+ft(i)+"":"",a=n.getBBox();e='\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n\n'+r+o+""}catch(n){t=n}if(this._emit("saveSVG.done",{error:t,svg:e}),t)throw t;return{svg:e}},Nt.prototype._setDefinitions=function(e){this._definitions=e},Nt.prototype.getModules=function(){return this._modules},Nt.prototype.clear=function(){this.getDefinitions()&&d.prototype.clear.call(this)},Nt.prototype.destroy=function(){d.prototype.destroy.call(this),We(this._container)},Nt.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},Nt.prototype.off=function(e,t){this.get("eventBus").off(e,t)},Nt.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=Ue(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},Nt.prototype.getDefinitions=function(){return this._definitions},Nt.prototype.detach=function(){const e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},Nt.prototype._init=function(e,t,n){const i=n.modules||this.getModules(n),o=n.additionalModules||[],r=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,o),a=Y(ee(n,["additionalModules"]),{canvas:Y({},n.canvas,{container:e}),modules:r});d.call(this,a),n&&n.container&&this.attachTo(n.container)},Nt.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},Nt.prototype._createContainer=function(e){const t=ze('
    ');return we(t,{width:It(e.width),height:It(e.height),position:e.position}),t},Nt.prototype._createModdle=function(e){const t=Y({},this._moddleExtensions,e.moddleExtensions);return new h(t)},Nt.prototype._modules=[];const Ot={width:"100%",height:"100%",position:"relative"};function It(e){return e+(k(e)?"px":"")}function jt(e){Nt.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)}fe(jt,Nt),jt.prototype._createModdle=function(e){var t=Nt.prototype._createModdle.call(this,e);return t.ids=new p([32,36,1]),t},jt.prototype._collectIds=function(e,t){var n,i=e.$model.ids;for(n in i.clear(),t)i.claim(n,t[n])};var Zt=1e3;function Ht(e,t){var n=this;t=t||Zt,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,o=t.element,r=t.gfx,a=t.attrs;if(n.canRender(o))return"render.shape"===i?n.drawShape(r,o,a):n.drawConnection(r,o,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 $t(e,t){return!te(e,"bpmn:CallActivity")&&(te(e,"bpmn:SubProcess")?!(!(t=t||oe(e))||!te(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded:!te(e,"bpmn:Participant")||!!ie(e).processRef)}function Ft(e){if(te(e,"bpmn:Participant")||te(e,"bpmn:Lane")){var t=oe(e).isHorizontal;return void 0===t||t}}function zt(e){return e&&!1!==ie(e).isInterrupting}function Ut(e){return e&&!!ie(e).triggeredByEvent}function Gt(e,t){return I(ie(e).eventDefinitions,(function(e){return te(e,t)}))}function Wt(e){return M(e)&&B(e,"waypoints")}function qt(e){return M(e)&&B(e,"labelTarget")}Ht.prototype.canRender=function(e){},Ht.prototype.drawShape=function(e,t){},Ht.prototype.drawConnection=function(e,t){},Ht.prototype.getShapePath=function(e){},Ht.prototype.getConnectionPath=function(e){};var Kt={width:90,height:20},Qt=15;function Xt(e){return te(e,"bpmn:Event")||te(e,"bpmn:Gateway")||te(e,"bpmn:DataStoreReference")||te(e,"bpmn:DataObjectReference")||te(e,"bpmn:DataInput")||te(e,"bpmn:DataOutput")||te(e,"bpmn:SequenceFlow")||te(e,"bpmn:MessageFlow")||te(e,"bpmn:Group")}function Yt(e){return qt(e.label)}function Jt(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],o=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),r=Math.atan((i.y-n.y)/(i.x-n.x)),a=o.x,L=o.y;return Math.abs(r)1?o.get("parallelMultiple")?O(t,e,n,r):V(t,e,n,r):dn(o,"bpmn:MessageEventDefinition")?E(t,e,n,r):dn(o,"bpmn:TimerEventDefinition")?S(t,e,n,r):dn(o,"bpmn:ConditionalEventDefinition")?P(t,e,n,r):dn(o,"bpmn:SignalEventDefinition")?N(t,e,n,r):dn(o,"bpmn:EscalationEventDefinition")?k(t,e,n,r):dn(o,"bpmn:LinkEventDefinition")?T(t,e,n,r):dn(o,"bpmn:ErrorEventDefinition")?B(t,e,n,r):dn(o,"bpmn:CancelEventDefinition")?R(t,e,n,r):dn(o,"bpmn:CompensateEventDefinition")?D(t,e,n,r):dn(o,"bpmn:TerminateEventDefinition")?I(t,e,n,r):null}var Z={ParticipantMultiplicityMarker:function(e,t,n={}){var o=vn(t,n),r=yn(t,n);C("participant-multiplicity",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:o,containerHeight:r,position:{mx:(o/2-6)/o,my:(r-15)/r}}),{strokeWidth:2,fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})},SubProcessMarker:function(e,t,n={}){xn(v(e,14,14,0,{strokeWidth:1,fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)}),t.width/2-7.5,t.height-20),C("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:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})},ParallelMarker:function(e,t,n){var o=vn(t,n),r=yn(t,n);C("parallel",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:o,containerHeight:r,position:{mx:(o/2+n.parallel)/o,my:(r-20)/r}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})},SequentialMarker:function(e,t,n){C("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:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})},CompensationMarker:function(e,t,n){C("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:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})},LoopMarker:function(e,t,n){var o=vn(t,n),r=yn(t,n);C("loop",e,i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:o,containerHeight:r,position:{mx:(o/2+n.loop)/o,my:(r-7)/r}}),{strokeWidth:1.5,fill:"none",stroke:mn(t,s,n.stroke),strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){var o=vn(t,n),r=yn(t,n);C("adhoc",e,i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:o,containerHeight:r,position:{mx:(o/2+n.adhoc)/o,my:(r-15)/r}}),{strokeWidth:1,fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke)})}};function H(e,t,n,i){Z[e](t,n,i)}function $(e,t,n,i={}){i={fill:i.fill,stroke:i.stroke,width:vn(t,i),height:yn(t,i)};var o=ie(t),r=n&&n.includes("SubProcessMarker");i=r?{...i,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{...i,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},A(n,(function(n){H(n,e,t,i)})),o.get("isForCompensation")&&H("CompensationMarker",e,t,i),te(o,"bpmn:AdHocSubProcess")&&H("AdhocMarker",e,t,i);var a=o.get("loopCharacteristics"),L=a&&a.get("isSequential");a&&(void 0===L&&H("LoopMarker",e,t,i),!1===L&&H("ParallelMarker",e,t,i),!0===L&&H("SequentialMarker",e,t,i))}function F(e,t,n={}){n=Y({size:{width:100}},n);var i=r.createText(t||"",n);return et(i).add("djs-label"),qe(e,i),i}function z(e,t,n,i={}){var o=ie(t),r=gn({x:t.x,y:t.y,width:t.width,height:t.height},i);return F(e,o.name,{align:n,box:r,padding:7,style:{fill:fn(t,c,s,i.stroke)}})}function U(e,t,n,i={}){var o=Ft(n),r=F(e,t,{box:{height:30,width:o?yn(n,i):vn(n,i)},align:"center-middle",style:{fill:fn(n,c,s,i.stroke)}});o&&bn(r,0,-(-1*yn(n,i)),270)}function G(e,t,n={}){var{width:i,height:o}=gn(t,n);return v(e,i,o,10,{...n,fill:hn(t,L,n.fill),fillOpacity:wn,stroke:mn(t,s,n.stroke)})}function W(e,t,n={}){var i=ie(t),o=hn(t,L,n.fill),r=mn(t,s,n.stroke);return"One"!==i.get("associationDirection")&&"Both"!==i.get("associationDirection")||(n.markerEnd=f("association-end",o,r)),"Both"===i.get("associationDirection")&&(n.markerStart=f("association-start",o,r)),n=Sn(n,["markerStart","markerEnd"]),b(e,t.waypoints,{...n,stroke:r,strokeDasharray:"0, 5"})}function q(e,t,n={}){var o=hn(t,L,n.fill),r=mn(t,s,n.stroke),a=x(e,i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:o,fillOpacity:wn,stroke:r});(function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection})(ie(t))&&x(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:o,stroke:r});return a}function K(e,t,n={}){return g(e,t.width,t.height,{fillOpacity:wn,...n,fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)})}function Q(e,t,n={}){return function(e,t,n,i){var o=t/2,r=n/2,a=[{x:o,y:0},{x:t,y:r},{x:o,y:n},{x:0,y:r}].map((function(e){return e.x+","+e.y})).join(" ");i=p(i);var L=st("polygon",{...i,points:a});return qe(e,L),L}(e,t.width,t.height,{fill:hn(t,L,n.fill),fillOpacity:wn,stroke:mn(t,s,n.stroke)})}function X(e,t,n={}){var i=v(e,vn(t,n),yn(t,n),0,{fill:hn(t,L,n.fill),fillOpacity:n.fillOpacity||wn,stroke:mn(t,s,n.stroke),strokeWidth:1.5}),o=ie(t);te(o,"bpmn:Lane")&&U(e,o.get("name"),t,n);return i}function J(e,t,n={}){var i=G(e,t,n);Ut(t)&&Ye(i,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var o=$t(t);return z(e,t,o?"center-top":"center-middle",n),$(e,t,o?void 0:["SubProcessMarker"],n),i}function ee(e,t,n={}){var i=G(e,t,n);return z(e,t,"center-middle",n),$(e,t,void 0,n),i}var ne=this.handlers={"bpmn:AdHocSubProcess":function(e,t,n={}){return J(e,t,n=$t(t)?Sn(n,["fill","stroke","width","height"]):Sn(n,["fill","stroke"]))},"bpmn:Association":function(e,t,n={}){return W(e,t,n=Sn(n,["fill","stroke"]))},"bpmn:BoundaryEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Sn(n,["fill","stroke"]);var o=ie(t).get("cancelActivity");n={strokeWidth:1.5,fill:hn(t,L,n.fill),fillOpacity:1,stroke:mn(t,s,n.stroke)},o||(n.strokeDasharray="6");var r=K(e,t,n);return g(e,t.width,t.height,3,{...n,fill:"none"}),i&&j(t,e,n),r},"bpmn:BusinessRuleTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return Ye(x(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}})),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),Ye(x(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}})),{fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:CallActivity":function(e,t,n={}){return n=Sn(n,["fill","stroke"]),J(e,t,{strokeWidth:5,...n})},"bpmn:ComplexGateway":function(e,t,n={}){var o=Q(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:DataInput":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var o=i.getRawPath("DATA_ARROW"),r=q(e,t,n);return x(e,o,{fill:"none",stroke:mn(t,s,n.stroke),strokeWidth:1}),r},"bpmn:DataInputAssociation":function(e,t,n={}){return n=Sn(n,["fill","stroke"]),W(e,t,{...n,markerEnd:f("association-end",hn(t,L,n.fill),mn(t,s,n.stroke))})},"bpmn:DataObject":function(e,t,n={}){return q(e,t,n=Sn(n,["fill","stroke"]))},"bpmn:DataObjectReference":w("bpmn:DataObject"),"bpmn:DataOutput":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var o=i.getRawPath("DATA_ARROW"),r=q(e,t,n);return x(e,o,{strokeWidth:1,fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke)}),r},"bpmn:DataOutputAssociation":function(e,t,n={}){return n=Sn(n,["fill","stroke"]),W(e,t,{...n,markerEnd:f("association-end",hn(t,L,n.fill),mn(t,s,n.stroke))})},"bpmn:DataStoreReference":function(e,t,n={}){return n=Sn(n,["fill","stroke"]),x(e,i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{fill:hn(t,L,n.fill),fillOpacity:wn,stroke:mn(t,s,n.stroke),strokeWidth:2})},"bpmn:EndEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Sn(n,["fill","stroke"]);var o=K(e,t,{...n,strokeWidth:4});return i&&j(t,e,n),o},"bpmn:EventBasedGateway":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var o=ie(t),r=Q(e,t,n);g(e,t.width,t.height,.2*t.height,{fill:hn(t,"none",n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1});var a,L=o.get("eventGatewayType"),c=!!o.get("instantiate");if("Parallel"===L){var l=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}});x(e,l,{fill:"none",stroke:mn(t,s,n.stroke),strokeWidth:1})}else"Exclusive"===L&&(c||g(e,t.width,t.height,.26*t.height,{fill:"none",stroke:mn(t,s,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}}),x(e,a,{fill:"none",stroke:mn(t,s,n.stroke),strokeWidth:2}));return r},"bpmn:ExclusiveGateway":function(e,t,n={}){var o=Q(e,t,n=Sn(n,["fill","stroke"])),r=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return oe(t).get("isMarkerVisible")&&x(e,r,{fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:Gateway":function(e,t,n={}){return Q(e,t,n=Sn(n,["fill","stroke"]))},"bpmn:Group":function(e,t,n={}){return n=Sn(n,["fill","stroke","width","height"]),v(e,t.width,t.height,10,{stroke:mn(t,s,n.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:vn(t,n),height:yn(t,n)})},"bpmn:InclusiveGateway":function(e,t,n={}){var i=Q(e,t,n=Sn(n,["fill","stroke"]));return g(e,t.width,t.height,.24*t.height,{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:2.5}),i},"bpmn:IntermediateEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Sn(n,["fill","stroke"]);var o=K(e,t,{...n,strokeWidth:1.5});return g(e,t.width,t.height,3,{fill:"none",stroke:mn(t,s,n.stroke),strokeWidth:1.5}),i&&j(t,e,n),o},"bpmn:IntermediateCatchEvent":w("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":w("bpmn:IntermediateEvent"),"bpmn:Lane":function(e,t,n={}){return n=Sn(n,["fill","stroke","width","height"]),X(e,t,{...n,fillOpacity:.25})},"bpmn:ManualTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:.5}),o},"bpmn:MessageFlow":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var o=ie(t),r=oe(t),a=hn(t,L,n.fill),c=mn(t,s,n.stroke),l=b(e,t.waypoints,{markerEnd:f("messageflow-end",a,c),markerStart:f("messageflow-start",a,c),stroke:c,strokeDasharray:"10, 11",strokeWidth:1.5});if(o.get("messageRef")){var u=l.getPointAtLength(l.getTotalLength()/2),p=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:u.x,y:u.y}}),d={strokeWidth:1};"initiating"===r.get("messageVisibleKind")?(d.fill=a,d.stroke=c):(d.fill=c,d.stroke=a);var h=x(e,p,d),m=F(e,o.get("messageRef").get("name"),{align:"center-top",fitBox:!0,style:{fill:c}}),g=h.getBBox(),v=m.getBBox();bn(m,u.x-v.width/2,u.y+g.height/2+10,0)}return l},"bpmn:ParallelGateway":function(e,t,n={}){var o=Q(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:Participant":function(e,t,n={}){var i=X(e,t,n=Sn(n,["fill","stroke","width","height"])),o=$t(t),r=Ft(t),a=ie(t),L=a.get("name");if(o){y(e,r?[{x:30,y:0},{x:30,y:yn(t,n)}]:[{x:0,y:30},{x:vn(t,n),y:30}],{stroke:mn(t,s,n.stroke),strokeWidth:1.5}),U(e,L,t,n)}else{var l=gn(t,n);r||(l.height=vn(t,n),l.width=yn(t,n));var u=F(e,L,{box:l,align:"center-middle",style:{fill:fn(t,c,s,n.stroke)}});if(!r)bn(u,0,-(-1*yn(t,n)),270)}return a.get("participantMultiplicity")&&H("ParticipantMultiplicityMarker",e,t,n),i},"bpmn:ReceiveTask":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var o,r=ie(t),a=ee(e,t,n);return r.get("instantiate")?(g(e,28,28,4.4,{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),o=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):o=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),x(e,o,{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),a},"bpmn:ScriptTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:SendTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{fill:mn(t,s,n.stroke),stroke:hn(t,L,n.fill),strokeWidth:1}),o},"bpmn:SequenceFlow":function(e,t,n={}){n=Sn(n,["fill","stroke"]);var i=hn(t,L,n.fill),o=mn(t,s,n.stroke),r=b(e,t.waypoints,{markerEnd:f("sequenceflow-end",i,o),stroke:o}),a=ie(t),{source:c}=t;if(c){var l=ie(c);a.get("conditionExpression")&&te(l,"bpmn:Activity")&&Ye(r,{markerStart:f("conditional-flow-marker",i,o)}),l.get("default")&&(te(l,"bpmn:Gateway")||te(l,"bpmn:Activity"))&&l.get("default")===a&&Ye(r,{markerStart:f("conditional-default-flow-marker",i,o)})}return r},"bpmn:ServiceTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return g(e,10,10,{fill:hn(t,L,n.fill),stroke:"none",transform:"translate(6, 6)"}),x(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),g(e,10,10,{fill:hn(t,L,n.fill),stroke:"none",transform:"translate(11, 10)"}),x(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:1}),o},"bpmn:StartEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Sn(n,["fill","stroke"]),ie(t).get("isInterrupting")||(n={...n,strokeDasharray:"6"});var o=K(e,t,n);return i&&j(t,e,n),o},"bpmn:SubProcess":function(e,t,n={}){return J(e,t,n=$t(t)?Sn(n,["fill","stroke","width","height"]):Sn(n,["fill","stroke"]))},"bpmn:Task":function(e,t,n={}){return ee(e,t,n=Sn(n,["fill","stroke"]))},"bpmn:TextAnnotation":function(e,t,n={}){n=Sn(n,["fill","stroke","width","height"]);var{width:o,height:r}=gn(t,n),a=v(e,o,r,0,0,{fill:"none",stroke:"none"});return x(e,i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:o,containerHeight:r,position:{mx:0,my:0}}),{stroke:mn(t,s,n.stroke)}),F(e,ie(t).get("text")||"",{align:"left-top",box:gn(t,n),padding:7,style:{fill:fn(t,c,s,n.stroke)}}),a},"bpmn:Transaction":function(e,t,i={}){i=$t(t)?Sn(i,["fill","stroke","width","height"]):Sn(i,["fill","stroke"]);var o=J(e,t,{strokeWidth:1.5,...i}),r=n.style(["no-fill","no-events"],{stroke:mn(t,s,i.stroke),strokeWidth:1.5});return $t(t)||(i={}),v(e,vn(t,i),yn(t,i),7,3,r),o},"bpmn:UserTask":function(e,t,n={}){var o=ee(e,t,n=Sn(n,["fill","stroke"]));return x(e,i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:.5}),x(e,i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{fill:hn(t,L,n.fill),stroke:mn(t,s,n.stroke),strokeWidth:.5}),x(e,i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{fill:mn(t,s,n.stroke),stroke:mn(t,s,n.stroke),strokeWidth:.5}),o},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 F(e,nn(t),{box:i,fitBox:!0,style:Y({},r.getExternalStyle(),{fill:fn(t,c,s,n.stroke)})})}(e,t,n)}};this._drawPath=x,this._renderer=_}function Sn(e,t=[]){return t.reduce(((t,n)=>(e[n]&&(t[n]=e[n]),t)),{})}fe(En,Ht),En.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],En.prototype.canRender=function(e){return te(e,"bpmn:BaseElement")},En.prototype.drawShape=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},En.prototype.drawConnection=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},En.prototype.getShapePath=function(e){return te(e,"bpmn:Event")?(n=(t=e).x+t.width/2,i=t.y+t.height/2,o=t.width/2,on([["M",n,i],["m",0,-o],["a",o,o,0,1,1,0,2*o],["a",o,o,0,1,1,0,-2*o],["z"]])):te(e,"bpmn:Activity")?function(e,t){var n=e.x,i=e.y,o=e.width,r=e.height;return on([["M",n+t,i],["l",o-2*t,0],["a",t,t,0,0,1,t,t],["l",0,r-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-o,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-r],["a",t,t,0,0,1,t,-t],["z"]])}(e,10):te(e,"bpmn:Gateway")?function(e){var t=e.width/2,n=e.height/2;return on([["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 on([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])}(e);var t,n,i,o};var Mn=0,kn={width:150,height:50};function Pn(e,t){var n;t.textContent=e;try{var i,o=""===e;return t.textContent=o?"dummy":e,i={width:(n=t.getBBox()).width+2*n.x,height:n.height},o&&(i.width=0),i}catch(r){return{width:0,height:0}}}function Tn(e,t,n){for(var i,o=e.shift(),r=o;;){if((i=Pn(r,n)).width=r?i.width:0," "===r||""===r||i.width1)for(;n=i.shift();){if(!(n.length+re?t.width:e}),0),h=r.top;"middle"===o.vertical&&(h+=(n.height-p)/2),h-=(L||c[0].height)/4;var m=st("text");return Ye(m,i),A(c,(function(e){var t;switch(h+=L||e.height,o.horizontal){case"left":t=r.left;break;case"right":t=(a?d:l)-r.right-e.width;break;default:t=Math.max(((a?d:l)-e.width)/2+r.left,0)}var n=st("tspan");Ye(n,{x:t,y:h}),n.textContent=e.text,qe(m,n)})),nt(u),{dimensions:{width:d,height:p},element:m}};function Nn(e){var t=Y({fontFamily:"Arial, sans-serif",fontSize:12,fontWeight:"normal",lineHeight:1.2},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=Y({},t,{fontSize:n},e&&e.externalStyle||{}),o=new An({style:t});this.getExternalLabelBounds=function(e,t){var n=o.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=o.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 o.createText(e,t||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}Nn.$inject=["config.textRenderer"];var Vn=/\{([^{}]+)\}/g,On=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;const In={__init__:["bpmnRenderer"],bpmnRenderer:["type",En],textRenderer:["type",Nn],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,o=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 r,a,L={};if(t.position){for(var s=t.containerHeight/o.height*t.yScaleFactor,c=t.containerWidth/o.width*t.xScaleFactor,l=0;lt.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 di(e,t,n,i,o){return e*(e*(-3*t+9*n-9*i+3*o)+6*t-12*n+6*i)-3*t+3*n}function hi(e,t,n,i,o,r,a,L,s){null==s&&(s=1);for(var c=(s=s>1?1:s<0?0:s)/2,l=[-.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],p=0,d=0;d<12;d++){var h=c*l[d]+c,m=di(h,e,n,o,a),f=di(h,t,i,r,L),g=m*m+f*f;p+=u[d]*Kn.sqrt(g)}return c*p}function mi(e,t,n,i,o,r,a,L){if(!(Yn(e,n)Yn(o,a)||Yn(t,i)Yn(r,L))){var s=(e*i-t*n)*(r-L)-(t-i)*(o*L-r*a),c=(e-n)*(r-L)-(t-i)*(o-a);if(c){var l=fi(((e*i-t*n)*(o-a)-(e-n)*(o*L-r*a))/c),u=fi(s/c),p=+l.toFixed(2),d=+u.toFixed(2);if(!(p<+Xn(e,n).toFixed(2)||p>+Yn(e,n).toFixed(2)||p<+Xn(o,a).toFixed(2)||p>+Yn(o,a).toFixed(2)||d<+Xn(t,i).toFixed(2)||d>+Yn(t,i).toFixed(2)||d<+Xn(r,L).toFixed(2)||d>+Yn(r,L).toFixed(2)))return{x:l,y:u}}}}function fi(e){return Math.round(1e11*e)/1e11}function gi(e,t,n){if(!function(e,t){return e=Li(e),pi(t=Li(t),e.x,e.y)||pi(t,e.x2,e.y)||pi(t,e.x,e.y2)||pi(t,e.x2,e.y2)||pi(e,t.x,t.y)||pi(e,t.x2,t.y)||pi(e,t.x,t.y2)||pi(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)}(ui(e),ui(t)))return n?0:[];for(var i=hi(...e),o=hi(...t),r=bi(e)?1:~~(i/5)||1,a=bi(t)?1:~~(o/5)||1,L=[],s=[],c={},l=n?0:[],u=0;u=0&&C<=1&&_>=0&&_<=1&&(n?l++:l.push({x:x.x,y:x.y,t1:C,t2:_}))}}return l}function vi(e,t,n){e=wi(e),t=wi(t);for(var i,o,r,a,L,s,c,l,u,p,d=n?0:[],h=0,m=e.length;h2&&(i.push([t,...r.splice(0,2)]),a="l",t="m"==t?"l":"L");r.length>=n[a]&&(i.push([t,...r.splice(0,n[a])]),n[a]););})),i.toString=ai.toString,t.arr=ri(i),i}(e)),!e||!e.length)return[["M",0,0]];var n,i=[],o=0,r=0,a=0,L=0,s=0;"M"==e[0][0]&&(a=o=+e[0][1],L=r=+e[0][2],s++,i[0]=["M",o,r]);for(var c,l,u=s,p=e.length;u=1e3&&delete i[o.shift()],o.push(n),i[n]=e(...arguments),i[n])}}((function(e,t,n){return{x:e*Kn.cos(n)-t*Kn.sin(n),y:e*Kn.sin(n)+t*Kn.cos(n)}}));if(c)_=c[0],w=c[1],x=c[2],C=c[3];else{e=(l=h(e,t,-p)).x,t=l.y;var m=(e-(L=(l=h(L,s,-p)).x))/2,f=(t-(s=l.y))/2,g=m*m/(n*n)+f*f/(i*i);g>1&&(n*=g=Kn.sqrt(g),i*=g);var v=n*n,y=i*i,b=(r==a?-1:1)*Kn.sqrt(ei((v*y-v*f*f-y*m*m)/(v*f*f+y*m*m))),x=b*n*f/i+(e+L)/2,C=b*-i*m/n+(t+s)/2,_=Kn.asin(((t-C)/i).toFixed(9)),w=Kn.asin(((s-C)/i).toFixed(9));(_=ew&&(_-=2*Qn),!a&&w>_&&(w-=2*Qn)}var E=w-_;if(ei(E)>u){var S=w,M=L,k=s;w=_+u*(a&&w>_?1:-1),d=_i(L=x+n*Kn.cos(w),s=C+i*Kn.sin(w),n,i,o,0,a,M,k,[w,S,x,C])}E=w-_;var P=Kn.cos(_),T=Kn.sin(_),B=Kn.cos(w),R=Kn.sin(w),D=Kn.tan(E/4),A=4/3*n*D,N=4/3*i*D,V=[e,t],O=[e+A*T,t-N*P],I=[L+A*R,s-N*B],j=[L,s];if(O[0]=2*V[0]-O[0],O[1]=2*V[1]-O[1],c)return[O,I,j].concat(d);for(var Z=[],H=0,$=(d=[O,I,j].concat(d).join().split(",")).length;H<$;H++)Z[H]=H%2?h(d[H-1],d[H],p).y:h(d[H],d[H+1],p).x;return Z}function wi(e){var t=ai(e);if(t.curve)return ci(t.curve);for(var n=yi(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=function(e,t,n){var i,o;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C",..._i(t.x,t.y,...e.slice(1))];break;case"S":"C"==n||"S"==n?(i=2*t.x-t.bx,o=2*t.y-t.by):(i=t.x,o=t.y),e=["C",i,o,...e.slice(1)];break;case"T":"Q"==n||"T"==n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C",...Ci(t.x,t.y,t.qx,t.qy,e[1],e[2])];break;case"Q":t.qx=e[1],t.qy=e[2],e=["C",...Ci(t.x,t.y,e[1],e[2],e[3],e[4])];break;case"L":e=["C",...xi(t.x,t.y,e[1],e[2])];break;case"H":e=["C",...xi(t.x,t.y,e[1],t.y)];break;case"V":e=["C",...xi(t.x,t.y,t.x,e[1])];break;case"Z":e=["C",...xi(t.x,t.y,t.X,t.Y)]}return e},r=function(e,t){if(e[t].length>7){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),l=n.length}},a=[],L="",s="",c=0,l=n.length;c=o.right,L=i.top-n.y>=o.bottom,s=r?"top":L?"bottom":null,c=i.right+n.x<=o.left?"left":a?"right":null;return c&&s?s+"-"+c:c||s||"intersect"}function Ri(e,t,n){var i=vi(e,t);return 1===i.length||2===i.length&&Zn(i[0],i[1])<1?Si(i[0]):i.length>1?Si((i=U(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 Di(e,t,n){return Y({id:e.id,type:e.$type,businessObject:e,di:t},n)}function Ai(e,t,n){var i=e.waypoint;return!i||i.length<2?[Ti(t),Ti(n)]:i.map((function(e){return{x:e.x,y:e.y}}))}function Ni(e,t,n){return new Error(`element ${yt(t)} referenced by ${yt(e)}#${n} not yet drawn`)}function Vi(e,t,n,i,o){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._textRenderer=o}Vi.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],Vi.prototype.add=function(e,t,n){var i,o,r,a,L,s,c;if(te(t,"bpmndi:BPMNPlane")){var l=te(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(Di(e,t,l)),this._canvas.addRootElement(i)}else if(te(t,"bpmndi:BPMNShape")){var u=!$t(e,t),p=function(e){return te(e,"bpmn:Group")}(e);o=n&&(n.hidden||n.collapsed);var d=t.bounds;i=this._elementFactory.createShape(Di(e,t,{collapsed:u,hidden:o,x:Math.round(d.x),y:Math.round(d.y),width:Math.round(d.width),height:Math.round(d.height),isFrame:p})),te(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),te(e,"bpmn:Lane")&&(r=0),te(e,"bpmn:DataStoreReference")&&(a=n,L=Ti(d),s=L.x,c=L.y,s>=a.x&&s<=a.x+a.width&&c>=a.y&&c<=a.y+a.height||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,r)}else{if(!te(t,"bpmndi:BPMNEdge"))throw new Error(`unknown di ${yt(t)} for element ${yt(e)}`);var h=this._getSource(e),m=this._getTarget(e);o=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(Di(e,t,{hidden:o,source:h,target:m,waypoints:Ai(t,h,m)})),te(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(i,n,r)}return Xt(e)&&nn(i)&&this.addLabel(e,t,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},Vi.prototype._attachBoundary=function(e,t){var n=e.attachedToRef;if(!n)throw new Error(`missing ${yt(e)}#attachedToRef`);var i=this._elementRegistry.get(n.id),o=i&&i.attachers;if(!i)throw Ni(e,n,"attachedToRef");t.host=i,o||(i.attachers=o=[]),-1===o.indexOf(t)&&o.push(t)},Vi.prototype.addLabel=function(e,t,n){var i,o,r;return i=function(e,t){var n,i,o,r=e.label;return r&&r.bounds?(o=r.bounds,i={width:Math.max(Kt.width,o.width),height:o.height},n={x:o.x+o.width/2,y:o.y+o.height/2}):(n=en(t),i=Kt),Y({x:n.x-i.width/2,y:n.y-i.height/2},i)}(t,n),(o=nn(n))&&(i=this._textRenderer.getExternalLabelBounds(i,o)),r=this._elementFactory.createLabel(Di(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!nn(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(r,n.parent)},Vi.prototype._getConnectedElement=function(e,t){var n,i,o=e.$type;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===o&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===o||"target"===t&&"bpmn:DataInputAssociation"===o)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?Ni(e,i,t+"Ref"):new Error(`${yt(e)}#${t} Ref not specified`)},Vi.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},Vi.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},Vi.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};const Oi={__depends__:[In,{__depends__:[jn],bpmnImporter:["type",Vi]}]};function Ii(e){return D(e,(function(t){return!R(e,(function(e){return e!==t&&ji(t,e)}))}))}function ji(e,t){if(t){if(e===t)return t;if(e.parent)return ji(e.parent,t)}}function Zi(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function Hi(e,t,n){n=n||0,S(e)||(e=[e]),A(e,(function(e,i){var o=t(e,i,n);S(o)&&o.length&&Hi(o,t,n+1)}))}function $i(e,t){return function(e,t,n){var i=[],o=[];return Hi(e,(function(e,n,r){Zi(i,e,t);var a=e.children;if(a&&Zi(o,a,t))return a})),i}(e,!t)}function Fi(e,t){var n,i,o,r;return t=!!t,S(e)||(e=[e]),A(e,(function(e){var a=e;e.waypoints&&!t&&(a=Fi(e.waypoints,!0));var L=a.x,s=a.y,c=a.height||0,l=a.width||0;(Lo||void 0===o)&&(o=L+l),(s+c>r||void 0===r)&&(r=s+c)})),{x:n,y:i,height:r-i,width:o-n}}function zi(e,t){return Y({},e||{},t||{})}function Ui(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}Ui.prototype.next=function(){return this._prefix+ ++this._counter};var Gi=new Ui("ov");function Wi(e,t,n,i){var o,r;this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=Gi,this._overlayDefaults=Y({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(o=n.getContainer(),we(r=ze('
    '),{position:"absolute",width:0,height:0}),o.insertBefore(r,o.firstChild),r),this._init()}function qi(e,t,n){we(e,{left:t+"px",top:n+"px"})}function Ki(e,t){e.style.display=!1===t?"none":""}function Qi(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}Wi.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Wi.prototype.get=function(e){if(T(e)&&(e={id:e}),T(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,G({type:e.type})):t.overlays.slice():[]}return e.type?D(this._overlays,G({type:e.type})):e.id?this._overlays[e.id]:null},Wi.prototype.add=function(e,t,n){if(M(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=Y({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},Wi.prototype.remove=function(e){var t=this.get(e)||[];S(t)||(t=[t]);var n=this;A(t,(function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(We(e.html),We(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)}}))},Wi.prototype.isShown=function(){return"none"!==this._overlayRoot.style.display},Wi.prototype.show=function(){Ki(this._overlayRoot)},Wi.prototype.hide=function(){Ki(this._overlayRoot,!1)},Wi.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Pe(this._overlayRoot)},Wi.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,o=t.y;if(t.waypoints){var r=Fi(t);i=r.x,o=r.y}qi(n,i,o),Ee(e.html,"data-container-id",t.id)},Wi.prototype._updateOverlay=function(e){var t,n,i=e.position,o=e.htmlContainer,r=e.element,a=i.left,L=i.top;void 0!==i.right&&(t=r.waypoints?Fi(r).width:r.width,a=-1*i.right+t);void 0!==i.bottom&&(n=r.waypoints?Fi(r).height:r.height,L=-1*i.bottom+n);qi(o,a||0,L||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Wi.prototype._createOverlayContainer=function(e){var t=ze('
    ');we(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},Wi.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Qi(this._overlayRoot,n)},Wi.prototype._getOverlayContainer=function(e,t){var n=R(this._overlayContainers,(function(t){return t.element===e}));return n||t?n:this._createOverlayContainer(e)},Wi.prototype._addOverlay=function(e){var t,n,i=e.id,o=e.element,r=e.html;r.get&&r.constructor.prototype.jquery&&(r=r.get(0)),T(r)&&(r=ze(r)),n=this._getOverlayContainer(o),we(t=ze('
    '),{position:"absolute"}),t.appendChild(r),e.type&&Me(t).add("djs-overlay-"+e.type),Ki(t,this._canvas.findRoot(o)===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())},Wi.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=this._canvas.findRoot(e.element),o=n&&n.minZoom,r=n&&n.maxZoom,a=e.htmlContainer,L=!0;(i!==this._canvas.getRootElement()||n&&(w(o)&&o>t.scale||w(r)&&ri&&(o=(1/t.scale||1)*i)),w(o)&&(L="scale("+o+","+o+")"),Qi(a,L)},Wi.prototype._updateOverlaysVisibilty=function(e){var t=this;A(this._overlays,(function(n){t._updateOverlayVisibilty(n,e)}))},Wi.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;A(t.get({element:n}),(function(e){t.remove(e.id)}));var i=t._getOverlayContainer(n);if(i){We(i.html);var o=t._overlayContainers.indexOf(i);-1!==o&&t._overlayContainers.splice(o,1)}})),e.on("element.changed",500,(function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(A(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&&Me(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 Xi={__init__:["overlays"],overlays:["type",Wi]};function Yi(e,t,n,i){e.on("element.changed",(function(i){var o=i.element;(o.parent||o===t.getRootElement())&&(i.gfx=n.getGraphics(o)),i.gfx&&e.fire(function(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}(o)+".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)}))}Yi.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const Ji={__init__:["changeSupport"],changeSupport:["type",Yi]};function eo(e){this._eventBus=e}function to(e){return function(t,n,i,o,r){(P(t)||k(t))&&(r=o,o=i,i=n,n=t,t=null),this.on(t,e,n,i,o,r)}}function no(e,t){t.invoke(eo,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)}))}eo.$inject=["eventBus"],eo.prototype.on=function(e,t,n,i,o,r){if((P(t)||k(t))&&(r=o,o=i,i=n,n=t,t=null),P(n)&&(r=o,o=i,i=n,n=1e3),M(o)&&(r=o,o=!1),!P(i))throw new Error("handlerFn must be a function");S(e)||(e=[e]);var a=this._eventBus;A(e,(function(e){var L=["commandStack",e,t].filter((function(e){return e})).join(".");a.on(L,n,o?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,r):i,r)}))},eo.prototype.canExecute=to("canExecute"),eo.prototype.preExecute=to("preExecute"),eo.prototype.preExecuted=to("preExecuted"),eo.prototype.execute=to("execute"),eo.prototype.executed=to("executed"),eo.prototype.postExecute=to("postExecute"),eo.prototype.postExecuted=to("postExecuted"),eo.prototype.revert=to("revert"),eo.prototype.reverted=to("reverted"),fe(no,eo),no.$inject=["canvas","injector"];const io={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",no]};function oo(e){return CSS.escape(e)}var ro={"&":"&","<":"<",">":">",'"':""","'":"'"};function ao(e){return(e=""+e)&&e.replace(/[&<>"']/g,(function(e){return ro[e]}))}var Lo="_plane";function so(e){return function(e){return e.replace(new RegExp(Lo+"$"),"")}(e.id)}function co(e){var t=e.id;return te(e,"bpmn:SubProcess")?po(t):t}function lo(e){return po(e)}function uo(e){return te(oe(e),"bpmndi:BPMNPlane")}function po(e){return e+Lo}function ho(e,t,n){var i=ze('
      '),o=n.getContainer(),r=Me(o);o.appendChild(i);var a=[];function L(e){e&&(a=function(e){for(var t=ie(e),n=[],i=t;i;i=i.$parent)(te(i,"bpmn:SubProcess")||te(i,"bpmn:Process"))&&n.push(i);return n.reverse()}(e));var o=a.map((function(e){var i=ao(e.name||e.id),o=ze('
    • '+i+"
    • "),r=n.findRoot(co(e))||n.findRoot(e.id);if(!r&&te(e,"bpmn:Process")){var a=t.find((function(t){var n=ie(t);return n&&n.get("processRef")&&n.get("processRef")===e}));r=n.findRoot(a.id)}return o.addEventListener("click",(function(){n.setRootElement(r)})),o}));i.innerHTML="";var L=o.length>1;r.toggle("bjs-breadcrumbs-shown",L),o.forEach((function(e){i.appendChild(e)}))}e.on("element.changed",(function(e){var t=ie(e.element);R(a,(function(e){return e===t}))&&L()})),e.on("root.set",(function(e){L(e.element)}))}function mo(e,t){var n=null,i=new fo;e.on("root.set",(function(e){var o=e.element,r=t.viewbox(),a=i.get(o);if(i.set(n,{x:r.x,y:r.y,zoom:r.scale}),n=o,!te(o,"bpmn:Collaboration")||a){a=a||{x:0,y:0,zoom:1};var L=(r.x-a.x)*r.scale,s=(r.y-a.y)*r.scale;0===L&&0===s||t.scroll({dx:L,dy:s}),a.zoom!==r.scale&&t.zoom(a.zoom,{x:0,y:0})}})),e.on("diagram.clear",(function(){i.clear(),n=null}))}function fo(){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)}}ho.$inject=["eventBus","elementRegistry","canvas"],mo.$inject=["eventBus","canvas"];var go=180,vo=160;function yo(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 bo(e){return te(e,"bpmndi:BPMNDiagram")?e:bo(e.$parent)}yo.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)}));var n=[];e.diagrams.forEach((function(e){var i=t._createNewDiagrams(e.plane);Array.prototype.push.apply(n,i)})),n.forEach((function(e){t._movePlaneElementsToOrigin(e.plane)}))}},yo.prototype._createNewDiagrams=function(e){var t=this,n=[],i=[];e.get("planeElement").forEach((function(t){var o=t.bpmnElement;if(o){var r=o.$parent;te(o,"bpmn:SubProcess")&&!t.isExpanded&&n.push(o),function(e,t){var n=e.$parent;if(!te(n,"bpmn:SubProcess")||n===t.bpmnElement)return!1;if(ne(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))return!1;return!0}(o,e)&&i.push({diElement:t,parent:r})}}));var o=[];return n.forEach((function(e){if(!t._processToDiagramMap[e.id]){var n=t._createDiagram(e);t._processToDiagramMap[e.id]=n,o.push(n)}})),i.forEach((function(e){for(var i=e.diElement,o=e.parent;o&&-1===n.indexOf(o);)o=o.$parent;if(o){var r=t._processToDiagramMap[o.id];t._moveToDiPlane(i,r.plane)}})),o},yo.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=Mi(e.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}})),ki(t)}(e),i=n.x-go,o=n.y-vo;t.forEach((function(e){e.waypoint?e.waypoint.forEach((function(e){e.x=e.x-i,e.y=e.y-o})):e.bounds&&(e.bounds.x=e.bounds.x-i,e.bounds.y=e.bounds.y-o)}))},yo.prototype._moveToDiPlane=function(e,t){var n=bo(e).plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},yo.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},yo.$inject=["eventBus","moddle"];var xo=250;function Co(e,t,n,i){eo.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=i;var o=this;this.executed("shape.toggleCollapse",xo,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.reverted("shape.toggleCollapse",xo,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.executed(["shape.create","shape.move","shape.delete"],xo,(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"],xo,(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)}))}))}fe(Co,eo),Co.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this._updateOverlayVisibility(n)}},Co.prototype._canDrillDown=function(e){var t=this._canvas;return te(e,"bpmn:SubProcess")&&t.findRoot(co(e))},Co.prototype._updateOverlayVisibility=function(e){var t=this._overlays,n=ie(e),i=t.get({element:n.id,type:"drilldown"})[0];if(i){var o=n&&n.get("flowElements")&&n.get("flowElements").length;Me(i.html).toggle("bjs-drilldown-empty",!o)}},Co.prototype._addOverlay=function(e){var t=this._canvas,n=this._overlays;n.get({element:e,type:"drilldown"}).length&&this._removeOverlay(e);var i=ze('');i.addEventListener("click",(function(){t.setRootElement(t.findRoot(co(e)))})),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:i}),this._updateOverlayVisibility(e)},Co.prototype._removeOverlay=function(e){this._overlays.remove({element:e,type:"drilldown"})},Co.$inject=["canvas","eventBus","elementRegistry","overlays"];const _o={__depends__:[Xi,Ji,io],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",ho],drilldownCentering:["type",mo],drilldownOverlayBehavior:["type",Co],subprocessCompatibility:["type",yo]};function wo(e,t){this._eventBus=e,this.offset=5;var n=t.cls("djs-outline",["no-fill"]),i=this;function o(e){var t=st("rect");return Ye(t,Y({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,r=Ue(".djs-outline",n);r||qe(n,r=i.getOutline(t)||o()),i.updateShapeOutline(r,t)})),e.on(["connection.added","connection.changed"],(function(e){var t=e.element,n=e.gfx,r=Ue(".djs-outline",n);r||qe(n,r=o()),i.updateConnectionOutline(r,t)}))}wo.prototype.updateShapeOutline=function(e,t){var n=!1,i=this._getProviders();i.length&&A(i,(function(i){n=n||i.updateOutline(t,e)})),n||Ye(e,{x:-this.offset,y:-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},wo.prototype.updateConnectionOutline=function(e,t){var n=Fi(t);Ye(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},wo.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("outline.getProviders",e,(function(e){e.providers.push(t)}))},wo.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},wo.prototype.getOutline=function(e){var t;return A(this._getProviders(),(function(n){P(n.getOutline)&&(t=t||n.getOutline(e))})),t},wo.$inject=["eventBus","styles","elementRegistry"];const Eo={__init__:["outline"],outline:["type",wo]},So={width:36,height:50},Mo={width:50,height:50};function ko(e,t,n){return st("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}function Po(e,t){this._styles=t,e.registerProvider(this)}function To(e,t){var n;return"bpmn:DataObjectReference"===t?n=So:"bpmn:DataStoreReference"===t&&(n=Mo),e.width===n.width&&e.height===n.height}Po.$inject=["outline","styles"],Po.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(!qt(e))return te(e,"bpmn:Gateway")?(Y((n=st("rect")).style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),Ye(n,Y({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):ne(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group"])?Ye(n=st("rect"),Y({x:-5,y:-5,rx:14,width:e.width+10,height:e.height+10},t)):te(e,"bpmn:EndEvent")?Ye(n=st("circle"),Y({cx:e.width/2,cy:e.height/2,r:e.width/2+5+1},t)):te(e,"bpmn:Event")?Ye(n=st("circle"),Y({cx:e.width/2,cy:e.height/2,r:e.width/2+5},t)):te(e,"bpmn:DataObjectReference")&&To(e,"bpmn:DataObjectReference")?n=ko("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):te(e,"bpmn:DataStoreReference")&&To(e,"bpmn:DataStoreReference")&&(n=ko("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},Po.prototype.updateOutline=function(e,t){if(!qt(e))return ne(e,["bpmn:SubProcess","bpmn:Group"])?(Ye(t,{width:e.width+10,height:e.height+10}),!0):!!ne(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};const Bo={__depends__:[Eo],__init__:["outlineProvider"],outlineProvider:["type",Po]};function Ro(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()}function Do(e){return e.originalEvent||e.srcEvent}function Ao(e){Ro(e),Ro(Do(e))}function No(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 Vo(){return/mac/i.test(navigator.platform)}function Oo(e,t){return(Do(e)||e).button===t}function Io(e){return Oo(e,0)}function jo(e){var t=Do(e)||e;return!!Io(e)&&(Vo()?t.metaKey:t.ctrlKey)}function Zo(e){var t=Do(e)||e;return Io(e)&&t.shiftKey}function Ho(e){return!0}function $o(e){return Io(e)||function(e){return Oo(e,1)}(e)}function Fo(e,t,n){var i=this;function o(n,i,o){var r,a;(function(e,t){return!(s[e]||Io)(t)})(n,i)||(o?a=t.getGraphics(o):(r=i.delegateTarget||i.target)&&(a=r,o=t.get(a)),a&&o&&!1===e.fire(n,{element:o,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var r={};function a(e){return r[e]}var L={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},s={"element.contextmenu":Ho,"element.mousedown":$o,"element.mouseup":$o,"element.click":$o,"element.dblclick":$o};var c="svg, .djs-element";function l(e,t,n,i){var a=r[n]=function(e){o(n,e)};i&&(s[n]=i),a.$delegate=Ze.bind(e,c,t,a)}function u(e,t,n){var i=a(n);i&&Ze.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,A(L,(function(e,n){u(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,A(L,(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 p=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:p,"no-move":m("djs-hit djs-hit-no-move")};function m(e,t){return t=Y({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 Ye(e,n),e}function g(e,t){qe(e,t)}this.removeHits=function(e){A(Ge(".djs-hit",e),nt)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,o=e.isFrame;return i?this.createWaypointsHit(t,i):(n=o?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n=cn(t);return f(n,"stroke"),g(e,n),n},this.createBoxHit=function(e,t,n){n=Y({x:0,y:0},n);var i=st("rect");return f(i,t),Ye(i,n),g(e,i),i},this.updateDefaultHit=function(e,t){var n=Ue(".djs-hit",t);if(n)return e.waypoints?ln(n,e.waypoints):Ye(n,{width:e.width,height:e.height}),n},this.fire=o,this.triggerMouseEvent=function(e,t,n){var i=L[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return o(i,t,n)},this.mouseHandler=a,this.registerEvent=l,this.unregisterEvent=u}Fo.$inject=["eventBus","elementRegistry","styles"];const zo={__init__:["interactionEvents"],interactionEvents:["type",Fo]};function Uo(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)}))}Uo.$inject=["eventBus","canvas"],Uo.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})}},Uo.prototype.get=function(){return this._selectedElements},Uo.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},Uo.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();S(e)||(e=e?[e]:[]);var o=this._canvas,r=o.getRootElement();e=e.filter((function(e){var t=o.findRoot(e);return r===t})),t?A(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 Go="hover",Wo="selected";function qo(e,t,n){this._canvas=e;var i=this;function o(t,n){e.addMarker(t,n)}function r(t,n){e.removeMarker(t,n)}this._multiSelectionBox=null,t.on("element.hover",(function(e){o(e.element,Go)})),t.on("element.out",(function(e){r(e.element,Go)})),t.on("selection.changed",(function(e){var t=e.oldSelection,n=e.newSelection;A(t,(function(e){-1===n.indexOf(e)&&r(e,Wo)})),A(n,(function(e){-1===t.indexOf(e)&&o(e,Wo)})),i._updateSelectionOutline(n)})),t.on("element.changed",(function(e){n.isSelected(e.element)&&i._updateSelectionOutline(n.get())}))}function Ko(e,t,n,i){e.on("create.end",500,(function(e){var n=e.context,i=n.canExecute,o=n.elements,r=(n.hints||{}).autoSelect;if(i){if(!1===r)return;S(r)?t.select(r):t.select(o.filter(Qo))}})),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||[],o=i.get(e.context.shape.id);R(n,(function(e){return o.id===e.id}))||t.select(o)})),e.on("element.click",(function(e){if(Io(e)){var i=e.element;i===n.getRootElement()&&(i=null);var o=t.isSelected(i),r=t.get().length>1,a=Zo(e);if(o&&r)return a?t.deselect(i):t.select(i);o?t.deselect(i):t.select(i,a)}}))}function Qo(e){return!e.hidden}qo.$inject=["canvas","eventBus","selection"],qo.prototype._updateSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");it(t);var n=e.length>1;if(et(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}}(Fi(e)),o=st("rect");Ye(o,Y({rx:3},i)),et(o).add("djs-selection-outline"),qe(t,o)}},Ko.$inject=["eventBus","selection","canvas","elementRegistry"];const Xo={__init__:["selectionVisuals","selectionBehavior"],__depends__:[zo,Eo],selection:["type",Uo],selectionVisuals:["type",qo],selectionBehavior:["type",Ko]};function Yo(e){Nt.call(this,e)}fe(Yo,Nt),Yo.prototype._modules=[Oi,_o,Bo,Xi,Xo,jn],Yo.prototype._moddleExtensions={};var Jo=["c","C"],er=["v","V"],tr=["y","Y"],nr=["z","Z"];function ir(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function or(e,t){return-1!==(e=S(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.code)}function rr(e){return e.shiftKey}var ar="keyboard.keydown",Lr="input-handle-modified-keys";function sr(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()}))}sr.$inject=["config.keyboard","eventBus"],sr.prototype._keydownHandler=function(e){this._keyHandler(e,ar)},sr.prototype._keyupHandler=function(e){this._keyHandler(e,"keyboard.keyup")},sr.prototype._keyHandler=function(e,t){if(!this._isEventIgnored(e)){var n={keyEvent:e};this._eventBus.fire(t||ar,n)&&e.preventDefault()}},sr.prototype._isEventIgnored=function(e){return!!e.defaultPrevented||((t=e.target)&&(Te(t,"input, textarea")||"true"===t.contentEditable)||function(e){return e&&Te(e,"button, input[type=submit], input[type=button], a[href], [aria-role=button]")}(e.target)&&or([" ","Enter"],e))&&this._isModifiedKeyIgnored(e);var t},sr.prototype._isModifiedKeyIgnored=function(e){return!ir(e)||-1===this._getAllowedModifiers(e.target).indexOf(e.key)},sr.prototype._getAllowedModifiers=function(e){var t=Be(e,"["+Lr+"]",!0);return!t||this._node&&!this._node.contains(t)?[]:t.getAttribute(Lr).split(",")},sr.prototype.bind=function(e){this.unbind(),this._node=e,Oe.bind(e,"keydown",this._keydownHandler),Oe.bind(e,"keyup",this._keyupHandler),this._fire("bind")},sr.prototype.getBinding=function(){return this._node},sr.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),Oe.unbind(e,"keydown",this._keydownHandler),Oe.unbind(e,"keyup",this._keyupHandler)),this._node=null},sr.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},sr.prototype.addListener=function(e,t,n){P(e)&&(n=t,t=e,e=1e3),this._eventBus.on(n||ar,e,t)},sr.prototype.removeListener=function(e,t){this._eventBus.off(t||ar,e)},sr.prototype.hasModifier=function(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},sr.prototype.isCmd=ir,sr.prototype.isShift=rr,sr.prototype.isKey=or;var cr=500;function lr(e,t){var n=this;e.on("editorActions.init",cr,(function(e){var i=e.editorActions;n.registerBindings(t,i)}))}lr.$inject=["eventBus","keyboard"],lr.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}n("undo",(function(e){if(function(e){return ir(e)&&!rr(e)&&or(nr,e)}(e.keyEvent))return t.trigger("undo"),!0})),n("redo",(function(e){if(function(e){return ir(e)&&(or(tr,e)||or(nr,e)&&rr(e))}(e.keyEvent))return t.trigger("redo"),!0})),n("copy",(function(e){if(function(e){return ir(e)&&or(Jo,e)}(e.keyEvent))return t.trigger("copy"),!0})),n("paste",(function(e){if(function(e){return ir(e)&&or(er,e)}(e.keyEvent))return t.trigger("paste"),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(or(["+","Add","="],n)&&ir(n))return t.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(or(["-","Subtract"],n)&&ir(n))return t.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(e){var n=e.keyEvent;if(or("0",n)&&ir(n))return t.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(e){if(or(["Backspace","Delete","Del"],e.keyEvent))return t.trigger("removeSelection"),!0}))};const ur={__init__:["keyboard","keyboardBindings"],keyboard:["type",sr],keyboardBindings:["type",lr]};var pr={moveSpeed:50,moveSpeedAccelerated:200};function dr(e,t,n){var i=this;this._config=Y({},pr,e||{}),t.addListener((function(e){var n=e.keyEvent,o=i._config;if(!t.isCmd(n))return;if(t.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],n)){var r,a=t.isShift(n)?o.moveSpeedAccelerated:o.moveSpeed;switch(n.key){case"ArrowLeft":case"Left":r="left";break;case"ArrowUp":case"Up":r="up";break;case"ArrowRight":case"Right":r="right";break;case"ArrowDown":case"Down":r="down"}return i.moveCanvas({speed:a,direction:r}),!0}})),this.moveCanvas=function(e){var t=0,i=0,o=e.speed/Math.min(Math.sqrt(n.viewbox().scale),1);switch(e.direction){case"left":t=o;break;case"up":i=o;break;case"right":t=-o;break;case"down":i=-o}n.scroll({dx:t,dy:i})}}dr.$inject=["config.keyboardMove","keyboard","canvas"];const hr={__depends__:[ur],__init__:["keyboardMove"],keyboardMove:["type",dr]};var mr=/^djs-cursor-.*$/;function fr(e){var t=Me(document.body);t.removeMatching(mr),e&&t.add("djs-cursor-"+e)}function gr(){fr(null)}var vr=5e3;function yr(e,t){function n(){return!1}return t=t||"element.click",e.once(t,vr,n),function(){e.off(t,n)}}function br(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function xr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Cr(e,t){var n;function i(i){var o,r=n.start,a=n.button,L=No(i),s=xr(L,r);(!n.dragging&&(o=s,Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))>15)&&(n.dragging=!0,0===a&&yr(e),fr("grab")),n.dragging)&&(s=xr(L,n.last||n.start),t.scroll({dx:s.x,dy:s.y}),n.last=L);i.preventDefault()}function o(e){Oe.unbind(document,"mousemove",i),Oe.unbind(document,"mouseup",o),n=null,gr()}e.on("element.mousedown",500,(function(e){return function(e){if(Be(e.target,".djs-draggable"))return;var t=e.button;if(t>=2||e.ctrlKey||e.shiftKey||e.altKey)return;return n={button:t,start:No(e)},Oe.bind(document,"mousemove",i),Oe.bind(document,"mouseup",o),!0}(e.originalEvent)})),this.isActive=function(){return!!n}}Cr.$inject=["eventBus","canvas"];const _r={__init__:["moveCanvas"],moveCanvas:["type",Cr]};function wr(e){return Math.log(e)/Math.log(10)}function Er(e,t){var n=wr(e.min),i=wr(e.max);return(Math.abs(n)+Math.abs(i))/t}var Sr=Math.sign||function(e){return e>=0?1:-1},Mr={min:.2,max:4};function kr(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=X(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)}))}kr.$inject=["config.zoomScroll","eventBus","canvas"],kr.prototype.scroll=function(e){this._canvas.scroll(e)},kr.prototype.reset=function(){this._canvas.zoom("fit-viewport")},kr.prototype.zoom=function(e,t){var n=Er(Mr,20);this._totalDelta+=e,Math.abs(this._totalDelta)>.1&&(this._zoom(e,t,n),this._totalDelta=0)},kr.prototype._handleWheel=function(e){if(!Be(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,i=e.ctrlKey||Vo()&&e.metaKey,o=e.shiftKey,r=-1*this._scale;if(r*=i?0===e.deltaMode?.02:.32:0===e.deltaMode?1:16,i){var a=t.getBoundingClientRect(),L={x:e.clientX-a.left,y:e.clientY-a.top};n=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*Sr(e.deltaY)*r,this.zoom(n,L)}else n=o?{dx:r*e.deltaY,dy:0}:{dx:r*e.deltaX,dy:r*e.deltaY},this.scroll(n)}},kr.prototype.stepZoom=function(e,t){var n=Er(Mr,10);this._zoom(e,t,n)},kr.prototype._zoom=function(e,t,n){var i=this._canvas,o=e>0?1:-1,r=wr(i.zoom()),a=Math.round(r/n)*n;a+=n*o;var L,s,c=Math.pow(10,a);i.zoom((L=Mr,s=c,Math.max(L.min,Math.min(L.max,s))),t)},kr.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,i=this._enabled;return void 0===e&&(e=!i),i!==e&&Oe[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e,e},kr.prototype._init=function(e){this.toggle(e)};const Pr={__init__:["zoomScroll"],zoomScroll:["type",kr]};function Tr(e){Yo.call(this,e)}function Br(e){return e&&e[e.length-1]}function Rr(e){return e.y}function Dr(e){return e.x}fe(Tr,Yo),Tr.prototype._navigationModules=[hr,_r,Pr],Tr.prototype._modules=[].concat(Yo.prototype._modules,Tr.prototype._navigationModules);var Ar={left:Dr,center:Dr,right:function(e){return e.x+e.width},top:Rr,middle:Rr,bottom:function(e){return e.y+e.height}};function Nr(e,t){this._modeling=e,this._rules=t}Nr.$inject=["modeling","rules"],Nr.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},Nr.prototype._isType=function(e,t){return-1!==t.indexOf(e)},Nr.prototype._alignmentPosition=function(e,t){var n,i,o,r,a,L=this._getOrientationDetails(e),s=L.axis,c=L.dimension,l={},u={},p=!1;if(this._isType(e,["left","top"]))l[e]=t[0][s];else if(this._isType(e,["right","bottom"]))o=Br(t),l[e]=o[s]+o[c];else if(this._isType(e,["center","middle"])){if(A(t,(function(e){var t=e[s]+Math.round(e[c]/2);u[t]?u[t].elements.push(e):u[t]={elements:[e],center:t}})),n=U(u,(function(e){return e.elements.length>1&&(p=!0),e.elements.length})),p)return l[e]=Br(n).center,l;i=t[0],o=Br(t=U(t,(function(e){return e[s]+e[c]}))),l[e]=(r=i,a=o,Math.round((r[s]+a[s]+a[c])/2))}return l},Nr.prototype.trigger=function(e,t){var n,i=this._modeling,o=D(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(S(n=this._rules.allowed("elements.align",{elements:o}))&&(o=n),!(o.length<2)&&n){var r=U(o,Ar[t]),a=this._alignmentPosition(t,r);i.alignElements(r,a)}};const Vr={__init__:["alignElements"],alignElements:["type",Nr]};var Or=".entry";function Ir(e,t,n){this._canvas=e,this._elementRegistry=t,this._eventBus=n,this._current=null,this._init()}function jr(e,t){return-1!==e.indexOf(t)}Ir.$inject=["canvas","elementRegistry","eventBus"],Ir.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{target:o}=i,r=S(o)?o:[o];if(r.filter((function(e){return jr(n,e)})).length){e.close();var a=r.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",(()=>{this._updatePosition()})),this._eventBus.on("element.marker.update",(function(t){e._updateVisibility()})),this._container=this._createContainer()},Ir.prototype._createContainer=function(){const e=ze('
      ');return this._canvas.getContainer().appendChild(e),e},Ir.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},Ir.prototype.getEntries=function(e){var t=this._getProviders(),n=S(e)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return A(t,(function(t){if(P(t[n])){var o=t[n](e);P(o)?i=o(i):A(o,(function(e,t){i[t]=e}))}})),i},Ir.prototype.trigger=function(e,t,n){var i,o,r=t.delegateTarget||t.target;return r?(i=Ee(r,"data-action"),o=t.originalEvent||t,"mouseover"!==e?"mouseout"===e?(clearTimeout(this._timeout),void(this._mouseout&&(this._mouseout(),this._mouseout=null))):this.triggerEntry(i,e,o,n):void(this._timeout=setTimeout((()=>{this._mouseout=this.triggerEntry(i,"hover",o,n)}),300))):t.preventDefault()},Ir.prototype.triggerEntry=function(e,t,n,i){if(this.isShown()){var o=this._current.target,r=this._current.entries[e];if(r){var a=r.action;if(!1!==this._eventBus.fire("contextPad.trigger",{entry:r,event:n})){if(P(a)){if("click"===t)return a(n,o,i)}else if(a[t])return a[t](n,o,i);n.preventDefault()}}}},Ir.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},Ir.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Ir.prototype._updateAndOpen=function(e){var t,n=this.getEntries(e),i=this._createHtml(e);A(n,(function(e,n){var o,r,a,L,s=e.group||"default",c=ze(e.html||'
      ');Ee(c,"data-action",n),(o=Ue("[data-group="+oo(s)+"]",i))||(Ee(o=ze('
      '),"data-group",s),i.appendChild(o)),o.appendChild(c),e.className&&(r=c,a=e.className,L=Me(r),(a=S(a)?a:a.split(/\s+/g)).forEach((function(e){L.add(e)}))),e.title&&Ee(c,"title",e.title),e.imageUrl&&(Ee(t=ze(""),"src",e.imageUrl),t.style.width="100%",t.style.height="100%",c.appendChild(t))})),Me(i).add("open"),this._current={entries:n,html:i,target:e},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})},Ir.prototype._createHtml=function(e){var t=this,n=ze('
      ');return Ze.bind(n,Or,"click",(function(e){t.trigger("click",e)})),Ze.bind(n,Or,"dragstart",(function(e){t.trigger("dragstart",e)})),Ze.bind(n,Or,"mouseover",(function(e){t.trigger("mouseover",e)})),Ze.bind(n,Or,"mouseout",(function(e){t.trigger("mouseout",e)})),Oe.bind(n,"mousedown",(function(e){e.stopPropagation()})),this._container.appendChild(n),this._eventBus.fire("contextPad.create",{target:e,pad:n}),n},Ir.prototype.getPad=function(e){let t;return t=this.isOpen()&&function(e,t){return e=S(e)?e:[e],t=S(t)?t:[t],e.length===t.length&&O(e,(function(e){return t.includes(e)}))}(this._current.target,e)?this._current.html:this._createHtml(e),{html:t}},Ir.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},Ir.prototype.isOpen=function(e){var t=this._current;if(!t)return!1;if(!e)return!0;var n=t.target;return S(e)===S(n)&&(S(e)?e.length===n.length&&O(e,(function(e){return jr(n,e)})):n===e)},Ir.prototype.isShown=function(){return this.isOpen()&&Me(this._current.html).has("open")},Ir.prototype.show=function(){this.isOpen()&&(Me(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))},Ir.prototype.hide=function(){this.isOpen()&&(Me(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))},Ir.prototype._getPosition=function(e){if(!S(e)&&Wt(e)){const n=this._canvas.viewbox(),i=(t=e).waypoints[t.waypoints.length-1],o=i.x*n.scale-n.x*n.scale,r=i.y*n.scale-n.y*n.scale;return{left:o+8*this._canvas.zoom(),top:r}}var t,n=this._canvas.getContainer().getBoundingClientRect(),i=this._getTargetBounds(e);return{left:i.right-n.left+8*this._canvas.zoom(),top:i.top-n.top}},Ir.prototype._updatePosition=function(){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")}))}},Ir.prototype._updateVisibility=function(){if(this.isOpen()){var e=this,t=this._current.target;(S(t)?t:[t]).some((function(t){return e._canvas.hasMarker(t,"djs-element-hidden")}))?e.hide():e.show()}},Ir.prototype._getTargetBounds=function(e){return(S(e)?e:[e]).map((e=>this._canvas.getGraphics(e))).reduce(((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 Zr={__depends__:[zo,Xi],contextPad:["type",Ir]};var Hr,$r,Fr,zr,Ur,Gr,Wr,qr,Kr,Qr,Xr={},Yr=[],Jr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ea=Array.isArray;function ta(e,t){for(var n in t)e[n]=t[n];return e}function na(e){var t=e.parentNode;t&&t.removeChild(e)}function ia(e,t,n){var i,o,r,a={};for(r in t)"key"==r?i=t[r]:"ref"==r?o=t[r]:a[r]=t[r];if(arguments.length>2&&(a.children=arguments.length>3?Hr.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===a[r]&&(a[r]=e.defaultProps[r]);return oa(e,a,i,o,null)}function oa(e,t,n,i,o){var r={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==o?++Fr:o,__i:-1,__u:0};return null==o&&null!=$r.vnode&&$r.vnode(r),r}function ra(e){return e.children}function aa(e,t){this.props=e,this.context=t}function La(e,t){if(null==t)return e.__?La(e.__,e.__i+1):null;for(var n;tt&&zr.sort(Wr));la.__r=0}function ua(e,t,n,i,o,r,a,L,s,c,l){var u,p,d,h,m,f=i&&i.__k||Yr,g=t.length;for(n.__d=s,function(e,t,n){var i,o,r,a,L,s=t.length,c=n.length,l=c,u=0;for(e.__k=[],i=0;i0?oa(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,L=da(o,n,a,l),o.__i=L,r=null,-1!==L&&(l--,(r=n[L])&&(r.__u|=131072)),null==r||null===r.__v?(-1==L&&u--,"function"!=typeof o.type&&(o.__u|=65536)):L!==a&&(L===a+1?u++:L>a?l>s-a?u+=L-a:u--:L(null==s||131072&s.__u?0:1))for(;a>=0||L=0){if((s=t[a])&&!(131072&s.__u)&&o==s.key&&r===s.type)return a;a--}if(L=5&&((o||!e&&5===i)&&(a.push(i,0,o,n),i=6),e&&(a.push(i,e,0,n),i=6)),o=""},s=0;s"===t?(i=1,o=""):o=t+o[0]:r?t===r?r="":o+=t:'"'===t||"'"===t?r=t:">"===t?(L(),i=1):i&&("="===t?(i=5,n=o,o=""):"/"===t&&(i<5||">"===e[s][c+1])?(L(),3===i&&(a=a[0]),i=a,(a=a[0]).push(2,0,i),i=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(L(),i=2):o+=t),3===i&&"!--"===o&&(i=4,a=a[0])}return L(),a}(e)),t),arguments,[])).length>1?t:t[0]}.bind(ia),Ta=0,Ba=[],Ra=[],Da=$r,Aa=Da.__b,Na=Da.__r,Va=Da.diffed,Oa=Da.__c,Ia=Da.unmount,ja=Da.__;function Za(e,t){Da.__h&&Da.__h(Sa,e,Ta||t),Ta=0;var n=Sa.__H||(Sa.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Ra}),n.__[e]}function Ha(e){return Ta=1,function(e,t,n){var i=Za(Ea++,2);if(i.t=e,!i.__c&&(i.__=[Ja(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=Sa,!Sa.u)){var o=function(e,t,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!r||r.call(this,e,t,n);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&&i.__c.props===e)&&(!r||r.call(this,e,t,n))};Sa.u=!0;var r=Sa.shouldComponentUpdate,a=Sa.componentWillUpdate;Sa.componentWillUpdate=function(e,t,n){if(this.__e){var i=r;r=void 0,o(e,t,n),r=i}a&&a.call(this,e,t,n)},Sa.shouldComponentUpdate=o}return i.__N||i.__}(Ja,e)}function $a(e,t){var n=Za(Ea++,3);!Da.__s&&Ya(n.__H,t)&&(n.__=e,n.i=t,Sa.__H.__h.push(n))}function Fa(e,t){var n=Za(Ea++,4);!Da.__s&&Ya(n.__H,t)&&(n.__=e,n.i=t,Sa.__h.push(n))}function za(e){return Ta=5,Ua((function(){return{current:e}}),[])}function Ua(e,t){var n=Za(Ea++,7);return Ya(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ga(e,t){return Ta=8,Ua((function(){return e}),t)}function Wa(){for(var e;e=Ba.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qa),e.__H.__h.forEach(Xa),e.__H.__h=[]}catch(t){e.__H.__h=[],Da.__e(t,e.__v)}}Da.__b=function(e){Sa=null,Aa&&Aa(e)},Da.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ja&&ja(e,t)},Da.__r=function(e){Na&&Na(e),Ea=0;var t=(Sa=e.__c).__H;t&&(Ma===Sa?(t.__h=[],Sa.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Ra,e.__N=e.i=void 0}))):(t.__h.forEach(Qa),t.__h.forEach(Xa),t.__h=[],Ea=0)),Ma=Sa},Da.diffed=function(e){Va&&Va(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Ba.push(t)&&ka===Da.requestAnimationFrame||((ka=Da.requestAnimationFrame)||Ka)(Wa)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Ra&&(e.__=e.__V),e.i=void 0,e.__V=Ra}))),Ma=Sa=null},Da.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Qa),e.__h=e.__h.filter((function(e){return!e.__||Xa(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Da.__e(n,e.__v)}})),Oa&&Oa(e,t)},Da.unmount=function(e){Ia&&Ia(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Qa(e)}catch(n){t=n}})),n.__H=void 0,t&&Da.__e(t,n.__v))};var qa="function"==typeof requestAnimationFrame;function Ka(e){var t,n=function(){clearTimeout(i),qa&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);qa&&(t=requestAnimationFrame(n))}function Qa(e){var t=Sa,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Sa=t}function Xa(e){var t=Sa;e.__c=e.__(),Sa=t}function Ya(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ja(e,t){return"function"==typeof t?t(e):t}function eL(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t