camunda-bpmn-js 0.13.2 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +280 -256
  2. package/LICENSE +20 -20
  3. package/README.md +84 -84
  4. package/dist/assets/base-modeler.css +4 -4
  5. package/dist/assets/base-navigated-viewer.css +1 -1
  6. package/dist/assets/base-viewer.css +1 -1
  7. package/dist/assets/bpmn-js.css +32 -4
  8. package/dist/assets/camunda-cloud-modeler.css +1 -1
  9. package/dist/assets/camunda-platform-modeler.css +1 -1
  10. package/dist/assets/diagram-js.css +55 -51
  11. package/dist/assets/element-templates.css +4 -0
  12. package/dist/assets/properties-panel.css +929 -900
  13. package/dist/base-modeler.development.js +7098 -6259
  14. package/dist/base-modeler.production.min.js +4 -4
  15. package/dist/base-navigated-viewer.development.js +21592 -21216
  16. package/dist/base-navigated-viewer.production.min.js +3 -2
  17. package/dist/base-viewer.development.js +20793 -20417
  18. package/dist/base-viewer.production.min.js +3 -2
  19. package/dist/camunda-cloud-modeler.development.js +9667 -8627
  20. package/dist/camunda-cloud-modeler.production.min.js +4 -4
  21. package/dist/camunda-cloud-navigated-viewer.development.js +689 -368
  22. package/dist/camunda-cloud-navigated-viewer.production.min.js +2 -2
  23. package/dist/camunda-cloud-viewer.development.js +688 -367
  24. package/dist/camunda-cloud-viewer.production.min.js +2 -2
  25. package/dist/camunda-platform-modeler.development.js +7571 -6674
  26. package/dist/camunda-platform-modeler.production.min.js +4 -4
  27. package/dist/camunda-platform-navigated-viewer.development.js +667 -261
  28. package/dist/camunda-platform-navigated-viewer.production.min.js +2 -2
  29. package/dist/camunda-platform-viewer.development.js +666 -260
  30. package/dist/camunda-platform-viewer.production.min.js +2 -2
  31. package/lib/base/Modeler.js +46 -46
  32. package/lib/base/NavigatedViewer.js +2 -2
  33. package/lib/base/Viewer.js +2 -2
  34. package/lib/camunda-cloud/Modeler.js +68 -68
  35. package/lib/camunda-cloud/NavigatedViewer.js +34 -34
  36. package/lib/camunda-cloud/Viewer.js +34 -34
  37. package/lib/camunda-cloud/features/context-pad/ContextPadOptions.js +15 -15
  38. package/lib/camunda-cloud/features/context-pad/index.js +6 -6
  39. package/lib/camunda-cloud/features/drilldown/index.js +3 -3
  40. package/lib/camunda-cloud/features/palette/PaletteOptions.js +14 -14
  41. package/lib/camunda-cloud/features/palette/PaletteProvider.js +31 -31
  42. package/lib/camunda-cloud/features/palette/index.js +6 -6
  43. package/lib/camunda-cloud/features/popup-menu/ReplaceMenuProvider.js +71 -71
  44. package/lib/camunda-cloud/features/popup-menu/ReplaceOptions.js +46 -46
  45. package/lib/camunda-cloud/features/popup-menu/index.js +6 -6
  46. package/lib/camunda-cloud/features/rules/BpmnRules.js +137 -137
  47. package/lib/camunda-cloud/features/rules/index.js +5 -5
  48. package/lib/camunda-cloud/util/commonModules.js +13 -13
  49. package/lib/camunda-platform/Modeler.js +46 -46
  50. package/lib/camunda-platform/NavigatedViewer.js +25 -25
  51. package/lib/camunda-platform/Viewer.js +24 -24
  52. package/lib/camunda-platform/util/commonModules.js +6 -6
  53. package/lib/util/ExtensionElementsUtil.js +59 -59
  54. package/package.json +110 -109
  55. package/styles/base-modeler.css +4 -4
  56. package/styles/base-navigated-viewer.css +1 -1
  57. package/styles/base-viewer.css +1 -1
  58. package/styles/camunda-cloud-modeler.css +1 -1
  59. package/styles/camunda-platform-modeler.css +1 -1
  60. package/util/index.js +39 -39
@@ -1,13 +1,13 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).BpmnModeler=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})})),t}function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var i=n((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}}));var r=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(e,n){if(n||(n=16),void 0===e&&(e=128),e<=0)return"0";for(var i=Math.log(Math.pow(2,e))/Math.log(n),r=2;i===1/0;r*=2)i=Math.log(Math.pow(2,e/r))/Math.log(n)*r;var o=i-Math.floor(i),a="";for(r=0;r<Math.floor(i);r++){a=Math.floor(Math.random()*n).toString(n)+a}if(o){var s=Math.pow(n,o);a=Math.floor(Math.random()*s).toString(n)+a}var c=parseInt(a,n);return c!==1/0&&c>=Math.pow(2,e)?t(e,n):a};t.rack=function(e,n,i){var r=function(r){var a=0;do{if(a++>10){if(!i)throw new Error("too many ID collisions, use more bits");e+=i}var s=t(e,n)}while(Object.hasOwnProperty.call(o,s));return o[s]=r,s},o=r.hats={};return r.get=function(e){return r.hats[e]},r.set=function(e,t){return r.hats[e]=t,r},r.bits=e||128,r.base=n||16,r}}));function o(e){if(!(this instanceof o))return new o(e);e=e||[128,36,1],this._seed=e.length?r.rack(e[0],e[1],e[2]):e}function a(e){return Array.prototype.concat.apply([],e)}o.prototype.next=function(e){return this._seed(e||!0)},o.prototype.nextPrefixed=function(e,t){var n;do{n=e+this.next(!0)}while(this.assigned(n));return this.claim(n,t),n},o.prototype.claim=function(e,t){this._seed.set(e,t||!0)},o.prototype.assigned=function(e){return this._seed.get(e)||!1},o.prototype.unclaim=function(e){delete this._seed.hats[e]},o.prototype.clear=function(){var e,t=this._seed.hats;for(e in t)this.unclaim(e)};var s=Object.prototype.toString,c=Object.prototype.hasOwnProperty;function l(e){return void 0===e}function p(e){return void 0!==e}function u(e){return null==e}function h(e){return"[object Array]"===s.call(e)}function d(e){return"[object Object]"===s.call(e)}function m(e){return"[object Number]"===s.call(e)}function f(e){var t=s.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t||"[object Proxy]"===t}function v(e){return"[object String]"===s.call(e)}function g(e){if(!h(e))throw new Error("must supply array")}function y(e,t){return c.call(e,t)}function b(e,t){var n;return t=N(t),w(e,(function(e,i){if(t(e,i))return n=e,!1})),n}function _(e,t){t=N(t);var n=h(e)?-1:void 0;return w(e,(function(e,i){if(t(e,i))return n=i,!1})),n}function x(e,t){var n=[];return w(e,(function(e,i){t(e,i)&&n.push(e)})),n}function w(e,t){var n;if(!l(e)){var i=h(e)?I:L;for(var r in e)if(y(e,r)&&!1===t(n=e[r],i(r)))return n}}function E(e,t){return l(e)?[]:(g(e),t=N(t),e.filter((function(e,n){return!t(e,n)})))}function S(e,t,n){return w(e,(function(e,i){n=t(n,e,i)})),n}function C(e,t){return!!S(e,(function(e,n,i){return e&&t(n,i)}),!0)}function P(e,t){return!!b(e,t)}function M(e,t){var n=[];return w(e,(function(e,i){n.push(t(e,i))})),n}function R(e){return e&&Object.keys(e)||[]}function T(e){return R(e).length}function k(e){return M(e,(function(e){return e}))}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=j(t),w(e,(function(e){var i=t(e)||"_",r=n[i];r||(r=n[i]=[]),r.push(e)})),n}function z(e){e=j(e);for(var t={},n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];w(i,(function(n){return A(n,e,t)}));var o=M(t,(function(e,t){return e[0]}));return o}var O=z;function D(e,t){t=j(t);var n=[];return w(e,(function(e,i){for(var r=t(e,i),o={d:r,v:e},a=0;a<n.length;a++){if(r<n[a].d)return void n.splice(a,0,o)}n.push(o)})),M(n,(function(e){return e.v}))}function B(e){return function(t){return C(e,(function(e,n){return t[n]===e}))}}function j(e){return f(e)?e:function(t){return t[e]}}function N(e){return f(e)?e:function(t){return t===e}}function L(e){return e}function I(e){return Number(e)}function F(e,t){var n,i,r,o;function a(n){var a=Date.now(),l=n?0:o+t-a;if(l>0)return s(l);e.apply(r,i),c()}function s(e){n=setTimeout(a,e)}function c(){n&&clearTimeout(n),n=o=i=r=void 0}function l(){o=Date.now();for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];i=a,r=this,n||s(t)}return l.flush=function(){n&&a(!0),c()},l.cancel=c,l}function H(e,t){return e.bind(t)}function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(){return($=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function G(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return $.apply(void 0,[e].concat(n))}function W(e,t,n){var i=e;return w(t,(function(e,r){if("number"!=typeof e&&"string"!=typeof e)throw new Error("illegal key type: "+V(e)+". Key should be of type number or string.");if("constructor"===e)throw new Error("illegal key: constructor");if("__proto__"===e)throw new Error("illegal key: __proto__");var o=t[r+1],a=i[e];p(o)&&u(a)&&(a=i[e]=isNaN(+o)?{}:[]),l(o)?l(n)?delete i[e]:i[e]=n:i=a})),e}function U(e,t,n){var i=e;return w(t,(function(e){if(u(i))return i=void 0,!1;i=i[e]})),l(i)?n:i}function q(e,t){var n={},i=Object(e);return w(t,(function(t){t in i&&(n[t]=e[t])})),n}function K(e,t){var n={};return w(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}var Y=Object.freeze({__proto__:null,assign:G,bind:H,debounce:F,ensureArray:g,every:C,filter:x,find:b,findIndex:_,flatten:a,forEach:w,get:U,groupBy:A,has:y,isArray:h,isDefined:p,isFunction:f,isNil:u,isNumber:m,isObject:d,isString:v,isUndefined:l,keys:R,map:M,matchPattern:B,merge:function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.length?(w(i,(function(n){n&&d(n)&&w(n,(function(n,i){if("__proto__"!==i){var r=t[i];d(n)?(d(r)||(r={}),t[i]=e(r,n)):t[i]=n}}))})),t):t},omit:K,pick:q,reduce:S,set:W,size:T,some:P,sortBy:D,throttle:function(e,t){var n=!1;return function(){n||(e.apply(void 0,arguments),n=!0,setTimeout((function(){n=!1}),t))}},unionBy:O,uniqueBy:z,values:k,without:E});function X(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)}var Z=[].indexOf,Q=function(e,t){if(Z)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1},J=/\s+/,ee=Object.prototype.toString;function te(e){return new ne(e)}function ne(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function ie(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}ne.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~Q(t,e)||t.push(e),this.el.className=t.join(" "),this},ne.prototype.remove=function(e){if("[object RegExp]"==ee.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=Q(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},ne.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},ne.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},ne.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(J);return""===e[0]&&e.shift(),e},ne.prototype.has=ne.prototype.contains=function(e){return this.list?this.list.contains(e):!!~Q(this.array(),e)};var re="undefined"!=typeof Element?Element.prototype:{},oe=re.matches||re.matchesSelector||re.webkitMatchesSelector||re.mozMatchesSelector||re.msMatchesSelector||re.oMatchesSelector,ae=function(e,t){if(!e||1!==e.nodeType)return!1;if(oe)return oe.call(e,t);for(var n=e.parentNode.querySelectorAll(t),i=0;i<n.length;i++)if(n[i]==e)return!0;return!1};function se(e,t,n){for(var i=n?e:e.parentNode;i&&i.nodeType!==document.DOCUMENT_NODE&&i.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(ae(i,t))return i;i=i.parentNode}return ae(i,t)?i:null}var ce=window.addEventListener?"addEventListener":"attachEvent",le=window.removeEventListener?"removeEventListener":"detachEvent",pe="addEventListener"!==ce?"on":"",ue={bind:function(e,t,n,i){return e[ce](pe+t,n,i||!1),n},unbind:function(e,t,n,i){return e[le](pe+t,n,i||!1),n}},he=["focus","blur"];var de,me={bind:function(e,t,n,i,r){return-1!==he.indexOf(n)&&(r=!0),ue.bind(e,n,(function(n){var r=n.target||n.srcElement;n.delegateTarget=se(r,t,!0),n.delegateTarget&&i.call(e,n)}),r)},unbind:function(e,t,n,i){return-1!==he.indexOf(t)&&(i=!0),ue.unbind(e,t,n,i)}},fe=function(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var i=n[1];if("body"==i){return(r=t.createElement("html")).innerHTML=e,r.removeChild(r.lastChild)}var r,o=ge[i]||ge._default,a=o[0],s=o[1],c=o[2];(r=t.createElement("div")).innerHTML=s+e+c;for(;a--;)r=r.lastChild;if(r.firstChild==r.lastChild)return r.removeChild(r.firstChild);var l=t.createDocumentFragment();for(;r.firstChild;)l.appendChild(r.removeChild(r.firstChild));return l},ve=!1;"undefined"!=typeof document&&((de=document.createElement("div")).innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',ve=!de.getElementsByTagName("link").length,de=void 0);var ge={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:ve?[1,"X<div>","</div>"]:[0,"",""]};function ye(e,t){return(t=t||document).querySelector(e)}function be(e,t){return(t=t||document).querySelectorAll(e)}function _e(e){e.parentNode&&e.parentNode.removeChild(e)}function xe(e,t){return t.appendChild(function(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch(e){}return e}(e,t))}function we(e,t){return xe(t,e),e}ge.td=ge.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],ge.option=ge.optgroup=[1,'<select multiple="multiple">',"</select>"],ge.thead=ge.tbody=ge.colgroup=ge.caption=ge.tfoot=[1,"<table>","</table>"],ge.polyline=ge.ellipse=ge.polygon=ge.circle=ge.text=ge.line=ge.path=ge.rect=ge.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];var Ee={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":2,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":2,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Se(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=Ee[i];r?(2===r&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function Ce(e,t,n){if("string"==typeof t){if(void 0===n)return function(e,t){return Ee[t]?e.style[t]:e.getAttributeNS(null,t)}(e,t);Se(e,t,n)}else!function(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)Se(e,i,t[i])}(e,t);return e}function Pe(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}var Me=/\s+/,Re=Object.prototype.toString;function Te(e){return void 0!==e}function ke(e){return new Ae(e)}function Ae(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function ze(e){var t=e.parentNode;return t&&t.removeChild(e),e}function Oe(e){for(var t;t=e.firstChild;)ze(t);return e}function De(e){return e.cloneNode(!0)}Ae.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~Pe(t,e)||t.push(e),Te(this.el.className.baseVal)?this.el.className.baseVal=t.join(" "):this.el.className=t.join(" "),this},Ae.prototype.remove=function(e){if("[object RegExp]"===Re.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=Pe(t,e);return~n&&t.splice(n,1),this.el.className.baseVal=t.join(" "),this},Ae.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},Ae.prototype.toggle=function(e,t){return this.list?(Te(t)?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(Te(t)?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},Ae.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(Me);return""===e[0]&&e.shift(),e},Ae.prototype.has=Ae.prototype.contains=function(e){return this.list?this.list.contains(e):!!~Pe(this.array(),e)};var Be="http://www.w3.org/2000/svg",je='<svg xmlns="'+Be+'"';function Ne(e){var t=!1;"<svg"===e.substring(0,4)?-1===e.indexOf(Be)&&(e=je+e.substring(4)):(e=je+">"+e+"</svg>",t=!0);var n=function(e){var t;return(t=new DOMParser).async=!1,t.parseFromString(e,"text/xml")}(e);if(!t)return n;for(var i=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function Le(e,t){var n;return"<"===e.charAt(0)?(n=Ne(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(Be,e),t&&Ce(n,t),n}var Ie=Le("svg");function Fe(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)e[i]=t[i];return e}function He(e){return e?Ie.createSVGTransformFromMatrix(e):Ie.createSVGTransform()}var Ve=/([&<>]{1})/g,$e=/([\n\r"]{1})/g,Ge={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function We(e,t){return e.replace(t,(function(e,t){return Ge[t]||t}))}function Ue(e,t){var n,i,r,o,a;switch(e.nodeType){case 3:t.push(We(e.textContent,Ve));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(r=e.attributes).length;n<i;++n)o=r.item(n),t.push(" ",o.name,'="',We(o.value,$e),'"');if(e.hasChildNodes()){for(t.push(">"),n=0,i=(a=e.childNodes).length;n<i;++n)Ue(a.item(n),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("\x3c!--",We(e.nodeValue,Ve),"--\x3e");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function qe(e,t){var n=Ne(t);if(Oe(e),t){(function(e){return"#document-fragment"===e.nodeName})(n)||(n=n.documentElement);for(var i,r=(i=n.childNodes,Array.prototype.slice.call(i)),o=0;o<r.length;o++)xe(r[o],e)}}function Ke(e,t){if(void 0!==t){try{qe(e,t)}catch(e){throw new Error("error parsing SVG: "+e.message)}return e}return function(e){for(var t=e.firstChild,n=[];t;)Ue(t,n),t=t.nextSibling;return n.join("")}(e)}function Ye(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function Xe(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(Ye(e,i))}(n,t)),n.consolidate()}var Ze=/^class /;function Qe(e){return"[object Array]"===Object.prototype.toString.call(e)}function Je(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function et(){var e=Array.prototype.slice.call(arguments);1===e.length&&Qe(e[0])&&(e=e[0]);var t=e.pop();return t.$inject=e,t}var tt=/constructor\s*[^(]*\(\s*([^)]*)\)/m,nt=/^(?:async )?(?:function\s*)?[^(]*\(\s*([^)]*)\)/m,it=/\/\*([^*]*)\*\//m;function rt(e){if("function"!=typeof e)throw new Error('Cannot annotate "'+e+'". Expected a function!');var t=e.toString().match(function(e){return Ze.test(e.toString())}(e)?tt:nt);return t&&t[1]&&t[1].split(",").map((function(e){return(t=e.match(it))?t[1].trim():e.trim()}))||[]}function ot(){var e=[];this.factory=function(t,n){return e.push([t,"factory",n]),this},this.value=function(t,n){return e.push([t,"value",n]),this},this.type=function(t,n){return e.push([t,"type",n]),this},this.forEach=function(t){e.forEach(t)}}function at(e,t){t=t||{get:function(e,t){if(n.push(e),!1===t)return null;throw a('No provider for "'+e+'"!')}};var n=[],i=this._providers=Object.create(t._providers||null),r=this._instances=Object.create(null),o=r.injector=this,a=function(e){var t=n.join(" -> ");return n.length=0,new Error(t?e+" (Resolving: "+t+")":e)},s=function(e,o){if(!i[e]&&-1!==e.indexOf(".")){for(var c=e.split("."),l=s(c.shift());c.length;)l=l[c.shift()];return l}if(Je(r,e))return r[e];if(Je(i,e)){if(-1!==n.indexOf(e))throw n.push(e),a("Cannot resolve circular dependency!");return n.push(e),r[e]=i[e][0](i[e][1]),n.pop(),r[e]}return t.get(e,o)},c=function(e,t){if(void 0===t&&(t={}),"function"!=typeof e){if(!Qe(e))throw new Error('Cannot invoke "'+e+'". Expected a function!');e=et(e.slice())}return{fn:e,dependencies:(e.$inject||rt(e)).map((function(e){return Je(t,e)?t[e]:s(e)}))}},l=function(e){var t=c(e),n=t.fn,i=t.dependencies;return new(Function.prototype.bind.apply(n,[null].concat(i)))},p=function(e,t,n){var i=c(e,n),r=i.fn,o=i.dependencies;return r.apply(t,o)},u=function(e){return et((function(t){return e.get(t)}))},h={factory:p,type:l,value:function(e){return e}};e.forEach((function(e){function t(e,t){return"value"!==e&&Qe(t)&&(t=et(t.slice())),t}if(e instanceof ot)e.forEach((function(e){var n=e[0],r=e[1],o=e[2];i[n]=[h[r],t(r,o),r]}));else if("object"==typeof e)if(e.__exports__){var n=Object.keys(e).reduce((function(t,n){return"__"!==n.substring(0,2)&&(t[n]=e[n]),t}),Object.create(null)),r=new at((e.__modules__||[]).concat([n]),o),a=et((function(e){return r.get(e)}));e.__exports__.forEach((function(e){i[e]=[a,e,"private",r]}))}else Object.keys(e).forEach((function(n){if("private"!==e[n][2]){var r=e[n][0],o=e[n][1];i[n]=[h[r],t(r,o),r]}else i[n]=e[n]}))})),this.get=s,this.invoke=p,this.instantiate=l,this.createChild=function(e,t){if(t&&t.length){var n,r,a,s,c=Object.create(null),l=Object.create(null),p=[],h=[],d=[];for(var m in i)n=i[m],-1!==t.indexOf(m)&&("private"===n[2]?-1===(r=p.indexOf(n[3]))?(a=n[3].createChild([],t),s=u(a),p.push(n[3]),h.push(a),d.push(s),c[m]=[s,m,"private",a]):c[m]=[d[r],m,"private",h[r]]:c[m]=[n[2],n[1]],l[m]=!0),"factory"!==n[2]&&"type"!==n[2]||!n[1].$scope||t.forEach((function(e){-1!==n[1].$scope.indexOf(e)&&(c[m]=[n[2],n[1]],l[e]=!0)}));t.forEach((function(e){if(!l[e])throw new Error('No provider for "'+e+'". Cannot use provider from the parent!')})),e.unshift(c)}return new at(e,o)}}function st(e,t){var n=this;t=t||1e3,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,r=t.element,o=t.gfx,a=t.attrs;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r,a):n.drawConnection(o,r,a)})),e.on(["render.getShapePath","render.getConnectionPath"],t,(function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)}))}function ct(e){return e.join(",").replace(/,?([A-z]),?/g,"$1")}function lt(e){for(var t,n="",i=0;t=e[i];i++)n+=t.x+","+t.y+" ";return n}function pt(e,t){var n=Le("polyline");return Ce(n,{points:lt(e)}),t&&Ce(n,t),n}function ut(e){return x(e,(function(t){return!b(e,(function(e){return e!==t&&ht(t,e)}))}))}function ht(e,t){if(t){if(e===t)return t;if(e.parent)return ht(e.parent,t)}}function dt(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function mt(e,t,n){n=n||0,h(e)||(e=[e]),w(e,(function(e,i){var r=t(e,i,n);h(r)&&r.length&&mt(r,t,n+1)}))}function ft(e,t){return function(e,t,n){var i=[],r=[];return mt(e,(function(e,o,a){dt(i,e,t);var s=e.children;if((-1===n||a<n)&&s&&dt(r,s,t))return s})),i}(e,!t,-1)}function vt(e,t){var n,i,r,o;return t=!!t,h(e)||(e=[e]),w(e,(function(e){var a=e;e.waypoints&&!t&&(a=vt(e.waypoints,!0));var s=a.x,c=a.y,l=a.height||0,p=a.width||0;(s<n||void 0===n)&&(n=s),(c<i||void 0===i)&&(i=c),(s+p>r||void 0===r)&&(r=s+p),(c+l>o||void 0===o)&&(o=c+l)})),{x:n,y:i,height:o-i,width:r-n}}function gt(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function yt(e){return!(!e||!e.isFrame)}function bt(e,t){return G({},e||{},t||{})}st.prototype.canRender=function(){},st.prototype.drawShape=function(){},st.prototype.drawConnection=function(){},st.prototype.getShapePath=function(){},st.prototype.getConnectionPath=function(){};function _t(e,t){st.call(this,e,1),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}i(_t,st),_t.prototype.canRender=function(){return!0},_t.prototype.drawShape=function(e,t,n){var i=Le("rect");return Ce(i,{x:0,y:0,width:t.width||0,height:t.height||0}),yt(t)?Ce(i,G({},this.FRAME_STYLE,n||{})):Ce(i,G({},this.SHAPE_STYLE,n||{})),we(e,i),i},_t.prototype.drawConnection=function(e,t,n){var i=pt(t.waypoints,G({},this.CONNECTION_STYLE,n||{}));return we(e,i),i},_t.prototype.getShapePath=function(e){var t=e.x,n=e.y,i=e.width;return ct([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])},_t.prototype.getConnectionPath=function(e){var t,n,i=e.waypoints,r=[];for(t=0;n=i[t];t++)n=n.original||n,r.push([0===t?"M":"L",n.x,n.y]);return ct(r)},_t.$inject=["eventBus","styles"];var xt={__init__:["defaultRenderer"],defaultRenderer:["type",_t],styles:["type",function(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(e,t,n){return G(this.style(t,n),{class:e})},this.style=function(t,n){h(t)||n||(n=t,t=[]);var i=S(t,(function(t,n){return G(t,e[n]||{})}),{});return n?G(i,n):i},this.computeStyle=function(e,n,i){return h(n)||(i=n,n=[]),t.style(n||[],G({},i,e||{}))}}]};function wt(e,t){if(!e||!t)return-1;var n=e.indexOf(t);return-1!==n&&e.splice(n,1),n}function Et(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 St(e,t){return e&&t?e.indexOf(t):-1}function Ct(e,t){return e&&t?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):-1}function Pt(e,t,n,i){if(void 0===i&&(i=5),!e||!t||!n)return!1;var r=(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x),o=Ct(e,t);return Math.abs(r/o)<=i}function Mt(e,t){var n;return function(e,t){var n;n=h(e)?e:[e,t];var i=n.slice().shift();return C(n,(function(e){return Math.abs(i.y-e.y)<=2}))}(n=h(e)?e:[e,t])?"h":!!function(e,t){var n;n=h(e)?e:[e,t];var i=n.slice().shift();return C(n,(function(e){return Math.abs(i.x-e.x)<=2}))}(n)&&"v"}function Rt(e,t,n){return n=n||0,e.x>t.x-n&&e.y>t.y-n&&e.x<t.x+t.width+n&&e.y<t.y+t.height+n}function Tt(e,t){return{x:Math.round(e.x+(t.x-e.x)/2),y:Math.round(e.y+(t.y-e.y)/2)}}var kt=/,?([a-z]),?/gi,At=parseFloat,zt=Math,Ot=zt.PI,Dt=zt.min,Bt=zt.max,jt=zt.pow,Nt=zt.abs,Lt=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,It=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi,Ft=Array.isArray||function(e){return e instanceof Array};function Ht(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vt(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)Ht(e,n)&&(t[n]=Vt(e[n]));return t}function $t(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}function Gt(e){var t=Gt.ps=Gt.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout((function(){for(var n in t)Ht(t,n)&&n!=e&&(t[n].sleep--,!t[n].sleep&&delete t[n])})),t[e]}function Wt(e,t,n,i){return 1===arguments.length&&(t=e.y,n=e.width,i=e.height,e=e.x),{x:e,y:t,width:n,height:i,x2:e+n,y2:t+i}}function Ut(){return this.join(",").replace(kt,"$1")}function qt(e){var t=Vt(e);return t.toString=Ut,t}function Kt(e,t,n,i,r,o,a,s,c){var l=1-c,p=jt(l,3),u=jt(l,2),h=c*c*c,d=p*t+3*u*c*i+3*l*c*c*o+h*s;return{x:en(p*e+3*u*c*n+3*l*c*c*r+h*a),y:en(d)}}function Yt(e){var t=cn.apply(null,e);return Wt(t.x0,t.y0,t.x1-t.x0,t.y1-t.y0)}function Xt(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function Zt(e,t,n,i,r){return e*(e*(-3*t+9*n-9*i+3*r)+6*t-12*n+6*i)-3*t+3*n}function Qt(e,t,n,i,r,o,a,s,c){null==c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,d=0;d<12;d++){var m=l*p[d]+l,f=Zt(m,e,n,r,a),v=Zt(m,t,i,o,s),g=f*f+v*v;h+=u[d]*zt.sqrt(g)}return l*h}function Jt(e,t,n,i,r,o,a,s){if(!(Bt(e,n)<Dt(r,a)||Dt(e,n)>Bt(r,a)||Bt(t,i)<Dt(o,s)||Dt(t,i)>Bt(o,s))){var c=(e*i-t*n)*(o-s)-(t-i)*(r*s-o*a),l=(e-n)*(o-s)-(t-i)*(r-a);if(l){var p=en(((e*i-t*n)*(r-a)-(e-n)*(r*s-o*a))/l),u=en(c/l),h=+p.toFixed(2),d=+u.toFixed(2);if(!(h<+Dt(e,n).toFixed(2)||h>+Bt(e,n).toFixed(2)||h<+Dt(r,a).toFixed(2)||h>+Bt(r,a).toFixed(2)||d<+Dt(t,i).toFixed(2)||d>+Bt(t,i).toFixed(2)||d<+Dt(o,s).toFixed(2)||d>+Bt(o,s).toFixed(2)))return{x:p,y:u}}}}function en(e){return Math.round(1e11*e)/1e11}function tn(e,t,n){if(!function(e,t){return e=Wt(e),Xt(t=Wt(t),e.x,e.y)||Xt(t,e.x2,e.y)||Xt(t,e.x,e.y2)||Xt(t,e.x2,e.y2)||Xt(e,t.x,t.y)||Xt(e,t.x2,t.y)||Xt(e,t.x,t.y2)||Xt(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}(Yt(e),Yt(t)))return n?0:[];for(var i=Qt.apply(0,e),r=Qt.apply(0,t),o=rn(e)?1:~~(i/5)||1,a=rn(t)?1:~~(r/5)||1,s=[],c=[],l={},p=n?0:[],u=0;u<o+1;u++){var h=Kt.apply(0,e.concat(u/o));s.push({x:h.x,y:h.y,t:u/o})}for(u=0;u<a+1;u++)h=Kt.apply(0,t.concat(u/a)),c.push({x:h.x,y:h.y,t:u/a});for(u=0;u<o;u++)for(var d=0;d<a;d++){var m,f=s[u],v=s[u+1],g=c[d],y=c[d+1],b=Nt(v.x-f.x)<.01?"y":"x",_=Nt(y.x-g.x)<.01?"y":"x",x=Jt(f.x,f.y,v.x,v.y,g.x,g.y,y.x,y.y);if(x){if(l[m=x.x.toFixed(9)+"#"+x.y.toFixed(9)])continue;l[m]=!0;var w=f.t+Nt((x[b]-f[b])/(v[b]-f[b]))*(v.t-f.t),E=g.t+Nt((x[_]-g[_])/(y[_]-g[_]))*(y.t-g.t);w>=0&&w<=1&&E>=0&&E<=1&&(n?p++:p.push({x:x.x,y:x.y,t1:w,t2:E}))}}return p}function nn(e){var t=Gt(e);if(t.abs)return qt(t.abs);if(Ft(e)&&Ft(e&&e[0])||(e=function(e){if(!e)return null;var t=Gt(e);if(t.arr)return Vt(t.arr);var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[];return Ft(e)&&Ft(e[0])&&(i=Vt(e)),i.length||String(e).replace(Lt,(function(e,t,r){var o=[],a=t.toLowerCase();for(r.replace(It,(function(e,t){t&&o.push(+t)})),"m"==a&&o.length>2&&(i.push([t].concat(o.splice(0,2))),a="l",t="m"==t?"l":"L");o.length>=n[a]&&(i.push([t].concat(o.splice(0,n[a]))),n[a]););})),i.toString=Gt.toString,t.arr=Vt(i),i}(e)),!e||!e.length)return[["M",0,0]];var n,i=[],r=0,o=0,a=0,s=0,c=0;"M"==e[0][0]&&(a=r=+e[0][1],s=o=+e[0][2],c++,i[0]=["M",r,o]);for(var l,p,u=c,h=e.length;u<h;u++){if(i.push(l=[]),(n=(p=e[u])[0])!=n.toUpperCase())switch(l[0]=n.toUpperCase(),l[0]){case"A":l[1]=p[1],l[2]=p[2],l[3]=p[3],l[4]=p[4],l[5]=p[5],l[6]=+p[6]+r,l[7]=+p[7]+o;break;case"V":l[1]=+p[1]+o;break;case"H":l[1]=+p[1]+r;break;case"M":a=+p[1]+r,s=+p[2]+o;default:for(var d=1,m=p.length;d<m;d++)l[d]=+p[d]+(d%2?r:o)}else for(var f=0,v=p.length;f<v;f++)l[f]=p[f];switch(n=n.toUpperCase(),l[0]){case"Z":r=+a,o=+s;break;case"H":r=l[1];break;case"V":o=l[1];break;case"M":a=l[l.length-2],s=l[l.length-1];default:r=l[l.length-2],o=l[l.length-1]}}return i.toString=Ut,t.abs=qt(i),i}function rn(e){return e[0]===e[2]&&e[1]===e[3]&&e[4]===e[6]&&e[5]===e[7]}function on(e,t,n,i){return[e,t,n,i,n,i]}function an(e,t,n,i,r,o){var a=1/3,s=2/3;return[a*e+s*n,a*t+s*i,a*r+s*n,a*o+s*i,r,o]}function sn(e,t,n,i,r,o,a,s,c,l){var p,u=120*Ot/180,h=Ot/180*(+r||0),d=[],m=function(e){return function t(){var n=Array.prototype.slice.call(arguments,0),i=n.join("␀"),r=t.cache=t.cache||{},o=t.count=t.count||[];return Ht(r,i)?($t(o,i),r[i]):(o.length>=1e3&&delete r[o.shift()],o.push(i),r[i]=e.apply(0,n),r[i])}}((function(e,t,n){return{x:e*zt.cos(n)-t*zt.sin(n),y:e*zt.sin(n)+t*zt.cos(n)}}));if(l)E=l[0],S=l[1],x=l[2],w=l[3];else{e=(p=m(e,t,-h)).x,t=p.y;var f=(e-(s=(p=m(s,c,-h)).x))/2,v=(t-(c=p.y))/2,g=f*f/(n*n)+v*v/(i*i);g>1&&(n*=g=zt.sqrt(g),i*=g);var y=n*n,b=i*i,_=(o==a?-1:1)*zt.sqrt(Nt((y*b-y*v*v-b*f*f)/(y*v*v+b*f*f))),x=_*n*v/i+(e+s)/2,w=_*-i*f/n+(t+c)/2,E=zt.asin(((t-w)/i).toFixed(9)),S=zt.asin(((c-w)/i).toFixed(9));(E=e<x?Ot-E:E)<0&&(E=2*Ot+E),(S=s<x?Ot-S:S)<0&&(S=2*Ot+S),a&&E>S&&(E-=2*Ot),!a&&S>E&&(S-=2*Ot)}var C=S-E;if(Nt(C)>u){var P=S,M=s,R=c;S=E+u*(a&&S>E?1:-1),d=sn(s=x+n*zt.cos(S),c=w+i*zt.sin(S),n,i,r,0,a,M,R,[S,P,x,w])}C=S-E;var T=zt.cos(E),k=zt.sin(E),A=zt.cos(S),z=zt.sin(S),O=zt.tan(C/4),D=4/3*n*O,B=4/3*i*O,j=[e,t],N=[e+D*k,t-B*T],L=[s+D*z,c-B*A],I=[s,c];if(N[0]=2*j[0]-N[0],N[1]=2*j[1]-N[1],l)return[N,L,I].concat(d);for(var F=[],H=0,V=(d=[N,L,I].concat(d).join().split(",")).length;H<V;H++)F[H]=H%2?m(d[H-1],d[H],h).y:m(d[H],d[H+1],h).x;return F}function cn(e,t,n,i,r,o,a,s){for(var c,l,p,u,h,d,m,f,v=[],g=[[],[]],y=0;y<2;++y)if(0==y?(l=6*e-12*n+6*r,c=-3*e+9*n-9*r+3*a,p=3*n-3*e):(l=6*t-12*i+6*o,c=-3*t+9*i-9*o+3*s,p=3*i-3*t),Nt(c)<1e-12){if(Nt(l)<1e-12)continue;0<(u=-p/l)&&u<1&&v.push(u)}else m=l*l-4*p*c,f=zt.sqrt(m),m<0||(0<(h=(-l+f)/(2*c))&&h<1&&v.push(h),0<(d=(-l-f)/(2*c))&&d<1&&v.push(d));for(var b,_=v.length,x=_;_--;)b=1-(u=v[_]),g[0][_]=b*b*b*e+3*b*b*u*n+3*b*u*u*r+u*u*u*a,g[1][_]=b*b*b*t+3*b*b*u*i+3*b*u*u*o+u*u*u*s;return g[0][x]=e,g[1][x]=t,g[0][x+1]=a,g[1][x+1]=s,g[0].length=g[1].length=x+2,{x0:Dt.apply(0,g[0]),y0:Dt.apply(0,g[1]),x1:Bt.apply(0,g[0]),y1:Bt.apply(0,g[1])}}function ln(e){var t=Gt(e);if(t.curve)return qt(t.curve);for(var n=nn(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},r=function(e,t,n){var i,r;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"].concat(sn.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"==n||"S"==n?(i=2*t.x-t.bx,r=2*t.y-t.by):(i=t.x,r=t.y),e=["C",i,r].concat(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"].concat(an(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"].concat(an(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(on(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(on(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(on(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(on(t.x,t.y,t.X,t.Y))}return e},o=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"].concat(i.splice(0,6)));e.splice(t,1),p=n.length}},a=[],s="",c="",l=0,p=n.length;l<p;l++){n[l]&&(s=n[l][0]),"C"!=s&&(a[l]=s,l&&(c=a[l-1])),n[l]=r(n[l],i,c),"A"!=a[l]&&"C"==s&&(a[l]="C"),o(n,l);var u=n[l],h=u.length;i.x=u[h-2],i.y=u[h-1],i.bx=At(u[h-4])||i.x,i.by=At(u[h-3])||i.y}return t.curve=qt(n),n}var pn=function(e,t,n){e=ln(e),t=ln(t);for(var i,r,o,a,s,c,l,p,u,h,d=n?0:[],m=0,f=e.length;m<f;m++){var v=e[m];if("M"==v[0])i=s=v[1],r=c=v[2];else{"C"==v[0]?(u=[i,r].concat(v.slice(1)),i=u[6],r=u[7]):(u=[i,r,i,r,s,c,s,c],i=s,r=c);for(var g=0,y=t.length;g<y;g++){var b=t[g];if("M"==b[0])o=l=b[1],a=p=b[2];else{"C"==b[0]?(h=[o,a].concat(b.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,l,p,l,p],o=l,a=p);var _=tn(u,h,n);if(n)d+=_;else{for(var x=0,w=_.length;x<w;x++)_[x].segment1=m,_[x].segment2=g,_[x].bez1=u,_[x].bez2=h;d=d.concat(_)}}}}}return d};function un(e){return{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}}function hn(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function dn(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function mn(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function fn(e){return hn({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function vn(e,t,n){d(n=n||0)||(n={x:n,y:n});var i=dn(e),r=dn(t),o=i.bottom+n.y<=r.top,a=i.left-n.x>=r.right,s=i.top-n.y>=r.bottom,c=o?"top":s?"bottom":null,l=i.right+n.x<=r.left?"left":a?"right":null;return l&&c?c+"-"+l:l||c||"intersect"}function gn(e,t,n){var i=function(e,t){return pn(e,t)}(e,t);return 1===i.length||2===i.length&&Ct(i[0],i[1])<1?hn(i[0]):i.length>1?hn((i=D(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 yn(e,t){return Math.round(e*t)/t}function bn(e){return m(e)?e+"px":e}function _n(e,t,n){var i=Le("g");ke(i).add(t);var r=void 0!==n?n:e.childNodes.length-1;return e.insertBefore(i,e.childNodes[r]||null),i}var xn={shape:["x","y","width","height"],connection:["waypoints"]};function wn(e,t,n,i){this._eventBus=t,this._elementRegistry=i,this._graphicsFactory=n,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._init(e||{})}function En(e,t){var n="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",n)}wn.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],wn.prototype._init=function(e){var t=this._eventBus,n=this._container=function(e){var t=(e=G({},{width:"100%",height:"100%"},e)).container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container"),G(n.style,{position:"relative",overflow:"hidden",width:bn(e.width),height:bn(e.height)}),t.appendChild(n),n}(e),i=this._svg=Le("svg");Ce(i,{width:"100%",height:"100%"}),we(n,i);var r=this._viewport=_n(i,"viewport");!1!==e.deferUpdate&&(this._viewboxChanged=F(H(this._viewboxChanged,this),300)),t.on("diagram.init",(function(){t.fire("canvas.init",{svg:i,viewport:r})}),this),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],(function(){delete this._cachedViewbox}),this),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},wn.prototype._destroy=function(e){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});var t=this._container.parentNode;t&&t.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},wn.prototype._clear=function(){var e=this;this._elementRegistry.getAll().forEach((function(t){var n=gt(t);"root"===n?e.removeRootElement(t):e._removeElement(t,n)})),this._planes=[],this._rootElement=null,delete this._cachedViewbox},wn.prototype.getDefaultLayer=function(){return this.getLayer("base",0)},wn.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");var n=this._layers[e];if(n||(n=this._layers[e]=this._createLayer(e,t)),void 0!==t&&n.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return n.group},wn.prototype._getChildIndex=function(e){return S(this._layers,(function(t,n){return n.visible&&e>=n.index&&t++,t}),0)},wn.prototype._createLayer=function(e,t){void 0===t&&(t=1);var n=this._getChildIndex(t);return{group:_n(this._viewport,"layer-"+e,n),index:t,visible:!0}},wn.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");var t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");var n=this._viewport,i=t.group,r=t.index;if(t.visible)return i;var o=this._getChildIndex(r);return n.insertBefore(i,n.childNodes[o]||null),t.visible=!0,i},wn.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");var t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");var n=t.group;return t.visible?(ze(n),t.visible=!1,n):n},wn.prototype._removeLayer=function(e){var t=this._layers[e];t&&(delete this._layers[e],ze(t.group))},wn.prototype.getActiveLayer=function(){var e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},wn.prototype.findRoot=function(e){if("string"==typeof e&&(e=this._elementRegistry.get(e)),e)return(this._findPlaneForRoot(function(e){for(;e.parent;)e=e.parent;return e}(e))||{}).rootElement},wn.prototype.getRootElements=function(){return this._planes.map((function(e){return e.rootElement}))},wn.prototype._findPlaneForRoot=function(e){return b(this._planes,(function(t){return t.rootElement===e}))},wn.prototype.getContainer=function(){return this._container},wn.prototype._updateMarker=function(e,t,n){var i;e.id||(e=this._elementRegistry.get(e)),(i=this._elementRegistry._elements[e.id])&&(w([i.gfx,i.secondaryGfx],(function(e){e&&(n?ke(e).add(t):ke(e).remove(t))})),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:t,add:!!n}))},wn.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},wn.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},wn.prototype.hasMarker=function(e,t){return e.id||(e=this._elementRegistry.get(e)),ke(this.getGraphics(e)).has(t)},wn.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},wn.prototype.getRootElement=function(){var e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},wn.prototype.addRootElement=function(e){var t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});var n=e.layer="root-"+t;this._ensureValid("root",e);var i=this.getLayer(n,0);return this.hideLayer(n),this._addRoot(e,i),this._planes.push({rootElement:e,layer:i}),e},wn.prototype.removeRootElement=function(e){if("string"==typeof e&&(e=this._elementRegistry.get(e)),this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter((function(t){return t.rootElement!==e})),this._rootElement===e&&(this._rootElement=null),e},wn.prototype.setRootElement=function(e,t){if(p(t))throw new Error("override not supported");if(e!==this._rootElement){if(!e)throw new Error("rootElement required");return this._findPlaneForRoot(e)||(e=this.addRootElement(e)),this._setRoot(e),e}},wn.prototype._removeRoot=function(e){var t=this._elementRegistry,n=this._eventBus;n.fire("root.remove",{element:e}),n.fire("root.removed",{element:e}),t.remove(e)},wn.prototype._addRoot=function(e,t){var n=this._elementRegistry,i=this._eventBus;i.fire("root.add",{element:e}),n.add(e,t),i.fire("root.added",{element:e,gfx:t})},wn.prototype._setRoot=function(e,t){var n=this._rootElement;n&&(this._elementRegistry.updateGraphics(n,null,!0),this.hideLayer(n.layer)),e&&(t||(t=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},wn.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");var n=xn[e];if(!C(n,(function(e){return void 0!==t[e]})))throw new Error("must supply { "+n.join(", ")+" } with "+e)},wn.prototype._setParent=function(e,t,n){Et(t.children,e,n),e.parent=t},wn.prototype._addElement=function(e,t,n,i){n=n||this.getRootElement();var r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,i);var a=o.create(e,t,i);return this._elementRegistry.add(t,a),o.update(e,t,a),r.fire(e+".added",{element:t,gfx:a}),t},wn.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)},wn.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)},wn.prototype._removeElement=function(e,t){var n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=n.get(e.id||e))return r.fire(t+".remove",{element:e}),i.remove(e),wt(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),n.remove(e),e},wn.prototype.removeShape=function(e){return this._removeElement(e,"shape")},wn.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},wn.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},wn.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},wn.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},wn.prototype.viewbox=function(e){if(void 0===e&&this._cachedViewbox)return this._cachedViewbox;var t,n,i,r,o,a,s,c=this._viewport,l=this.getSize();return e?(this._changeViewbox((function(){o=Math.min(l.width/e.width,l.height/e.height);var t=this._svg.createSVGMatrix().scale(o).translate(-e.x,-e.y);Xe(c,t)})),e):(t=(i=this._rootElement?this.getActiveLayer():null)&&i.getBBox()||{},n=(r=Xe(c))?r.matrix:function(e,t,n,i,r,o){var a=Ie.createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return Fe(a,e);case 6:return Fe(a,{a:e,b:t,c:n,d:i,e:r,f:o})}}(),o=yn(n.a,1e3),a=yn(-n.e||0,1e3),s=yn(-n.f||0,1e3),e=this._cachedViewbox={x:a?a/o:0,y:s?s/o:0,width:l.width/o,height:l.height/o,scale:o,inner:{width:t.width||0,height:t.height||0,x:t.x||0,y:t.y||0},outer:l})},wn.prototype.scroll=function(e){var t=this._viewport,n=t.getCTM();return e&&this._changeViewbox((function(){e=G({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),En(t,n)})),{x:n.e,y:n.f}},wn.prototype.scrollToElement=function(e,t){var n=100;"string"==typeof e&&(e=this._elementRegistry.get(e));var i=this.findRoot(e);i!==this.getRootElement()&&this.setRootElement(i),t||(t={}),"number"==typeof t&&(n=t),t={top:t.top||n,right:t.right||n,bottom:t.bottom||n,left:t.left||n};var r,o,a=vt(e),s=dn(a),c=this.viewbox(),l=this.zoom();c.y+=t.top/l,c.x+=t.left/l,c.width-=(t.right+t.left)/l,c.height-=(t.bottom+t.top)/l;var p=dn(c);if(a.width<c.width&&a.height<c.height){var u=Math.max(0,s.right-p.right),h=Math.min(0,s.left-p.left),d=Math.max(0,s.bottom-p.bottom),m=Math.min(0,s.top-p.top);r=u||h,o=d||m}else r=a.x-c.x,o=a.y-c.y;this.scroll({dx:-r*l,dy:-o*l})},wn.prototype.zoom=function(e,t){return e?"fit-viewport"===e?this._fitViewport(t):(this._changeViewbox((function(){"object"!=typeof t&&(n=this.viewbox().outer,t={x:n.width/2,y:n.height/2}),i=this._setZoom(e,t)})),yn(i.a,1e3)):this.viewbox(e).scale;var n,i},wn.prototype._fitViewport=function(e){var t,n,i=this.viewbox(),r=i.outer,o=i.inner;return o.x>=0&&o.y>=0&&o.x+o.width<=r.width&&o.y+o.height<=r.height&&!e?n={x:0,y:0,width:Math.max(o.width+o.x,r.width),height:Math.max(o.height+o.y,r.height)}:(t=Math.min(1,r.width/o.width,r.height/o.height),n={x:o.x+(e?o.width/2-r.width/t/2:0),y:o.y+(e?o.height/2-r.height/t/2:0),width:r.width/t,height:r.height/t}),this.viewbox(n),this.viewbox(!1).scale},wn.prototype._setZoom=function(e,t){var n,i,r,o,a=this._svg,s=this._viewport,c=a.createSVGMatrix(),l=a.createSVGPoint(),p=(i=s.getCTM()).a;return t?(n=G(l,t).matrixTransform(i.inverse()),r=c.translate(n.x,n.y).scale(1/p*e).translate(-n.x,-n.y),o=i.multiply(r)):o=c.scale(e),En(this._viewport,o),o},wn.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},wn.prototype.getAbsoluteBBox=function(e){var t,n=this.viewbox();e.waypoints?t=this.getGraphics(e).getBBox():t=e;return{x:t.x*n.scale-n.x*n.scale,y:t.y*n.scale-n.y*n.scale,width:t.width*n.scale,height:t.height*n.scale}},wn.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var Sn="data-element-id";function Cn(e){this._elements={},this._eventBus=e}Cn.$inject=["eventBus"],Cn.prototype.add=function(e,t,n){var i=e.id;this._validateId(i),Ce(t,Sn,i),n&&Ce(n,Sn,i),this._elements[i]={element:e,gfx:t,secondaryGfx:n}},Cn.prototype.remove=function(e){var t=this._elements,n=e.id||e,i=n&&t[n];i&&(Ce(i.gfx,Sn,""),i.secondaryGfx&&Ce(i.secondaryGfx,Sn,""),delete t[n])},Cn.prototype.updateId=function(e,t){this._validateId(t),"string"==typeof e&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var n=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,i)},Cn.prototype.updateGraphics=function(e,t,n){var i=e.id||e,r=this._elements[i];return n?r.secondaryGfx=t:r.gfx=t,t&&Ce(t,Sn,i),t},Cn.prototype.get=function(e){var t;t="string"==typeof e?e:e&&Ce(e,Sn);var n=this._elements[t];return n&&n.element},Cn.prototype.filter=function(e){var t=[];return this.forEach((function(n,i){e(n,i)&&t.push(n)})),t},Cn.prototype.find=function(e){for(var t=this._elements,n=Object.keys(t),i=0;i<n.length;i++){var r=t[n[i]],o=r.element;if(e(o,r.gfx))return o}},Cn.prototype.getAll=function(){return this.filter((function(e){return e}))},Cn.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach((function(n){var i=t[n],r=i.element,o=i.gfx;return e(r,o)}))},Cn.prototype.getGraphics=function(e,t){var n=e.id||e,i=this._elements[n];return i&&(t?i.secondaryGfx:i.gfx)},Cn.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};var Pn={extend:function(e,t,n,i){var r=n.inverse;return Object.defineProperty(e,"remove",{value:function(e){var n=this.indexOf(e);return-1!==n&&(this.splice(n,1),t.unset(e,r,i)),e}}),Object.defineProperty(e,"contains",{value:function(e){return-1!==this.indexOf(e)}}),Object.defineProperty(e,"add",{value:function(e,n){var o=this.indexOf(e);if(void 0===n){if(-1!==o)return;n=this.length}-1!==o&&this.splice(o,1),this.splice(n,0,e),-1===o&&t.set(e,r,i)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e},isExtended:function(e){return!0===e.__refs_collection}};function Mn(e,t,n){var i=Pn.extend(n[t.name]||[],e,t,n);Object.defineProperty(n,t.name,{enumerable:t.enumerable,value:i}),i.length&&i.forEach((function(i){e.set(i,t.inverse,n)}))}function Rn(e,t){if(!(this instanceof Rn))return new Rn(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}Rn.prototype.bind=function(e,t){if("string"==typeof t){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?Mn(this,t,e):function(e,t,n){var i=t.inverse,r=n[t.name];Object.defineProperty(n,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return r},set:function(t){if(t!==r){var o=r;r=null,o&&e.unset(o,i,n),r=t,e.set(r,i,n)}}})}(this,t,e)},Rn.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return Pn.isExtended(n)||Mn(this,t,e),n},Rn.prototype.ensureBound=function(e,t){(function(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)})(e,t)||this.bind(e,t)},Rn.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)},Rn.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)};var Tn=Rn,kn=Pn;Tn.Collection=kn;var An=new Tn({name:"children",enumerable:!0,collection:!0},{name:"parent"}),zn=new Tn({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),On=new Tn({name:"attachers",collection:!0},{name:"host"}),Dn=new Tn({name:"outgoing",collection:!0},{name:"source"}),Bn=new Tn({name:"incoming",collection:!0},{name:"target"});function jn(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,n=this.labels;!e&&t?n.remove(t):n.add(e,0)}}),An.bind(this,"parent"),zn.bind(this,"labels"),Dn.bind(this,"outgoing"),Bn.bind(this,"incoming")}function Nn(){jn.call(this),An.bind(this,"children"),On.bind(this,"host"),On.bind(this,"attachers")}function Ln(){Nn.call(this)}function In(){Nn.call(this),zn.bind(this,"labelTarget")}function Fn(){jn.call(this),Dn.bind(this,"source"),Bn.bind(this,"target")}i(Nn,jn),i(Ln,Nn),i(In,Nn),i(Fn,jn);var Hn={connection:Fn,shape:Nn,label:In,root:Ln};function Vn(){this._uid=12}Vn.prototype.createRoot=function(e){return this.create("root",e)},Vn.prototype.createLabel=function(e){return this.create("label",e)},Vn.prototype.createShape=function(e){return this.create("shape",e)},Vn.prototype.createConnection=function(e){return this.create("connection",e)},Vn.prototype.create=function(e,t){return(t=G({},t||{})).id||(t.id=e+"_"+this._uid++),function(e,t){var n=Hn[e];if(!n)throw new Error("unknown type: <"+e+">");return G(new n,t)}(e,t)};var $n=Array.prototype.slice;function Gn(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function Wn(){}function Un(e){return e.childNodes[0]}function qn(e,t,n,i,r){var o=He();o.setTranslate(t,n);var a=He();a.setRotate(i||0,0,0);var s=He();s.setScale(r||1,r||1),Xe(e,[o,a,s])}function Kn(e,t,n){var i=He();i.setTranslate(t,n),Xe(e,i)}function Yn(e,t){var n=He();n.setRotate(t,0,0),Xe(e,n)}function Xn(e,t){this._eventBus=e,this._elementRegistry=t}function Zn(e,t,n){var i=n||t.firstChild;e!==i&&t.insertBefore(e,i)}Gn.prototype.on=function(e,t,n,i){if(e=h(e)?e:[e],f(t)&&(i=n,n=t,t=1e3),!m(t))throw new Error("priority must be a number");var r=n;i&&((r=H(n,i)).__fn=n.__fn||n);var o=this;e.forEach((function(e){o._addListener(e,{priority:t,callback:r,next:null})}))},Gn.prototype.once=function(e,t,n,i){var r=this;if(f(t)&&(i=n,n=t,t=1e3),!m(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var t=n.apply(i,arguments);return r.off(e,o),t}o.__fn=n,this.on(e,t,o)},Gn.prototype.off=function(e,t){e=h(e)?e:[e];var n=this;e.forEach((function(e){n._removeListener(e,t)}))},Gn.prototype.createEvent=function(e){var t=new Wn;return t.init(e),t},Gn.prototype.fire=function(e,t){var n,i,r,o;if(o=$n.call(arguments),"object"==typeof e&&(e=(t=e).type),!e)throw new Error("no event type specified");if(i=this._listeners[e]){n=t instanceof Wn?t:this.createEvent(t),o[0]=n;var a=n.type;e!==a&&(n.type=e);try{r=this._invokeListeners(n,o,i)}finally{e!==a&&(n.type=a)}return void 0===r&&n.defaultPrevented&&(r=!1),r}},Gn.prototype.handleError=function(e){return!1===this.fire("error",{error:e})},Gn.prototype._destroy=function(){this._listeners={}},Gn.prototype._invokeListeners=function(e,t,n){for(var i;n&&!e.cancelBubble;)i=this._invokeListener(e,t,n),n=n.next;return i},Gn.prototype._invokeListener=function(e,t,n){var i;if(n.callback.__isTomb)return i;try{void 0!==(i=function(e,t){return e.apply(null,t)}(n.callback,t))&&(e.returnValue=i,e.stopPropagation()),!1===i&&e.preventDefault()}catch(e){if(!this.handleError(e))throw console.error("unhandled error in event listener",e),e}return i},Gn.prototype._addListener=function(e,t){var n,i=this._getListeners(e);if(i){for(;i;){if(i.priority<t.priority)return t.next=i,void(n?n.next=t:this._setListeners(e,t));n=i,i=i.next}n.next=t}else this._setListeners(e,t)},Gn.prototype._getListeners=function(e){return this._listeners[e]},Gn.prototype._setListeners=function(e,t){this._listeners[e]=t},Gn.prototype._removeListener=function(e,t){var n,i,r,o=this._getListeners(e);if(t)for(;o;)n=o.next,(r=o.callback)!==t&&r.__fn!==t||(i?i.next=n:this._setListeners(e,n)),i=o,o=n;else this._setListeners(e,null)},Wn.prototype.stopPropagation=function(){this.cancelBubble=!0},Wn.prototype.preventDefault=function(){this.defaultPrevented=!0},Wn.prototype.init=function(e){G(this,e||{})},Xn.$inject=["eventBus","elementRegistry"],Xn.prototype._getChildrenContainer=function(e){var t,n=this._elementRegistry.getGraphics(e);return e.parent?(t=function(e){return e.parentNode.childNodes[1]}(n))||(ke(t=Le("g")).add("djs-children"),we(n.parentNode,t)):t=n,t},Xn.prototype._clear=function(e){var t=Un(e);return ie(t),t},Xn.prototype._createContainer=function(e,t,n,i){var r=Le("g");ke(r).add("djs-group"),void 0!==n?Zn(r,t,t.childNodes[n]):we(t,r);var o=Le("g");ke(o).add("djs-element"),ke(o).add("djs-"+e),i&&ke(o).add("djs-frame"),we(r,o);var a=Le("g");return ke(a).add("djs-visual"),we(o,a),o},Xn.prototype.create=function(e,t,n){var i=this._getChildrenContainer(t.parent);return this._createContainer(e,i,n,yt(t))},Xn.prototype.updateContainments=function(e){var t=this,n=this._elementRegistry;w(S(e,(function(e,t){return t.parent&&(e[t.parent.id]=t.parent),e}),{}),(function(e){var i=e.children;if(i){var r=t._getChildrenContainer(e);w(i.slice().reverse(),(function(e){Zn(n.getGraphics(e).parentNode,r)}))}}))},Xn.prototype.drawShape=function(e,t){return this._eventBus.fire("render.shape",{gfx:e,element:t})},Xn.prototype.getShapePath=function(e){return this._eventBus.fire("render.getShapePath",e)},Xn.prototype.drawConnection=function(e,t){return this._eventBus.fire("render.connection",{gfx:e,element:t})},Xn.prototype.getConnectionPath=function(e){return this._eventBus.fire("render.getConnectionPath",e)},Xn.prototype.update=function(e,t,n){if(t.parent){var i=this._clear(n);if("shape"===e)this.drawShape(i,t),Kn(n,t.x,t.y);else{if("connection"!==e)throw new Error("unknown type: "+e);this.drawConnection(i,t)}t.hidden?Ce(n,"display","none"):Ce(n,"display","block")}},Xn.prototype.remove=function(e){ze(this._elementRegistry.getGraphics(e).parentNode)};var Qn={__depends__:[xt],__init__:["canvas"],canvas:["type",wn],elementRegistry:["type",Cn],elementFactory:["type",Vn],eventBus:["type",Gn],graphicsFactory:["type",Xn]};function Jn(e){var t=[],n=[];function i(e){return t.indexOf(e)>=0}e.forEach((function e(r){i(r)||((r.__depends__||[]).forEach(e),i(r)||(!function(e){t.push(e)}(r),(r.__init__||[]).forEach((function(e){n.push(e)}))))}));var r=new at(t);return n.forEach((function(e){try{r["string"==typeof e?"get":"invoke"](e)}catch(e){throw console.error("Failed to instantiate component"),console.error(e.stack),e}})),r}function ei(e,t){this.injector=t=t||function(e){return Jn([{config:["value",e=e||{}]},Qn].concat(e.modules||[]))}(e),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}function ti(){}function ni(e,t){this.model=e,this.properties=t}ei.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},ei.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")},ti.prototype.get=function(e){return this.$model.properties.get(this,e)},ti.prototype.set=function(e,t){this.$model.properties.set(this,e,t)},ni.prototype.createType=function(e){var t=this.model,n=this.properties,i=Object.create(ti.prototype);w(e.properties,(function(e){e.isMany||void 0===e.default||(i[e.name]=e.default)})),n.defineModel(i,t),n.defineDescriptor(i,e);var r=e.ns.name;function o(e){n.define(this,"$type",{value:r,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),w(e,H((function(e,t){this.set(t,e)}),this))}return o.prototype=i,o.hasType=i.$instanceOf=this.model.hasType,n.defineModel(o,t),n.defineDescriptor(o,e),o};var ii={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},ri={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function oi(e,t){var n=ri[e];return n?n(t):t}function ai(e){return!!ii[e]}function si(e){return!!ri[e]}function ci(e,t){var n,i,r=e.split(/:/);if(1===r.length)n=e,i=t;else{if(2!==r.length)throw new Error("expected <prefix:localName> or <localName>, got "+e);n=r[1],i=r[0]}return{name:e=(i?i+":":"")+n,prefix:i,localName:n}}function li(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function pi(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,w(e,H(this.registerPackage,this))}function ui(e,t,n){var i=t[n];if(i in e)throw new Error("package with "+n+" <"+i+"> already defined")}function hi(e){this.model=e}function di(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function mi(e){this.properties=new hi(this),this.factory=new ni(this,this.properties),this.registry=new pi(e,this.properties),this.typeCache={}}li.prototype.build=function(){return q(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},li.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},li.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=r.indexOf(e);if(-1===s)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(t,n?void 0:s,a),o[i.name]=o[i.localName]=t},li.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),o=ci(r[0],i),a=ci(r[1],o.prefix).name,s=this.propertiesByName[a];if(!s)throw new Error("refined property <"+a+"> not found");this.replaceProperty(s,e,n),delete e.redefines},li.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},li.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},li.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},li.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},li.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},li.prototype.hasProperty=function(e){return this.propertiesByName[e]},li.prototype.addTrait=function(e,t){var n=this.allTypesByName,i=this.allTypes,r=e.name;r in n||(w(e.properties,H((function(n){n=G({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,r=n.redefines;i||r?this.redefineProperty(n,i||r,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))}),this)),i.push(e),n[r]=e)},pi.prototype.getPackage=function(e){return this.packageMap[e]},pi.prototype.getPackages=function(){return this.packages},pi.prototype.registerPackage=function(e){e=G({},e);var t=this.packageMap;ui(t,e,"prefix"),ui(t,e,"uri"),w(e.types,H((function(t){this.registerType(t,e)}),this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},pi.prototype.registerType=function(e,t){var n=ci((e=G({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:G(e.meta||{})})).name,t.prefix),i=n.name,r={};w(e.properties,H((function(e){var t=ci(e.name,n.prefix),i=t.name;ai(e.type)||(e.type=ci(e.type,t.prefix).name),G(e,{ns:t,name:i}),r[i]=e}),this)),G(e,{ns:n,name:i,propertiesByName:r}),w(e.extends,H((function(e){var t=this.typeMap[e];t.traits=t.traits||[],t.traits.push(i)}),this)),this.definePackage(e,t),this.typeMap[i]=e},pi.prototype.mapTypes=function(e,t,n){var i=ai(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(e){return a(e,!0)}function a(n,i){var o=ci(n,ai(n)?"":e.prefix);r.mapTypes(o,t,i)}if(!i)throw new Error("unknown type <"+e.name+">");w(i.superClass,n?o:a),t(i,!n),w(i.traits,o)},pi.prototype.getEffectiveDescriptor=function(e){var t=ci(e),n=new li(t);this.mapTypes(t,(function(e,t){n.addTrait(e,t)}));var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},pi.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})},hi.prototype.set=function(e,t,n){var i=this.model.getPropertyDescriptor(e,t),r=i&&i.name;void 0===n?i?delete e[r]:delete e.$attrs[t]:i?r in e?e[r]=n:di(e,i,n):e.$attrs[t]=n},hi.prototype.get=function(e,t){var n=this.model.getPropertyDescriptor(e,t);if(!n)return e.$attrs[t];var i=n.name;return!e[i]&&n.isMany&&di(e,n,[]),e[i]},hi.prototype.define=function(e,t,n){if(!n.writable){var i=n.value;delete(n=G({},n,{get:function(){return i}})).value}Object.defineProperty(e,t,n)},hi.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},hi.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},mi.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},mi.prototype.getType=function(e){var t=this.typeCache,n=v(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},mi.prototype.createAny=function(e,t,n){var i=ci(e),r={$type:e,$instanceOf:function(e){return e===this.$type}},o={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:t}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),w(n,(function(e,t){d(e)&&void 0!==e.value?r[e.name]=e.value:r[t]=e})),r},mi.prototype.getPackage=function(e){return this.registry.getPackage(e)},mi.prototype.getPackages=function(){return this.registry.getPackages()},mi.prototype.getElementDescriptor=function(e){return e.$descriptor},mi.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},mi.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},mi.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var fi=String.fromCharCode,vi=Object.prototype.hasOwnProperty,gi=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,yi={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function bi(e,t,n,i){return i?vi.call(yi,i)?yi[i]:"&"+i+";":fi(t||parseInt(n,16))}function _i(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(gi,bi):e}Object.keys(yi).forEach((function(e){yi[e.toUpperCase()]=yi[e]}));var xi="xsi:type",wi="non-whitespace outside of root node";function Ei(e){return new Error(e)}function Si(e){return"missing namespace for prefix <"+e+">"}function Ci(e){return{get:e,enumerable:!0}}function Pi(e){var t,n={};for(t in e)n[t]=e[t];return n}function Mi(e){return e+"$uri"}function Ri(){return{line:0,column:0}}function Ti(e){throw e}function ki(e){if(!this)return new ki(e);var t,n,i,r,o,a,s,c,l,p=e&&e.proxy,u=Ti,h=Ri,d=!1,m=!1,f=null,v=!1;function g(e){e instanceof Error||(e=Ei(e)),f=e,u(e,h)}function y(e){o&&(e instanceof Error||(e=Ei(e)),o(e,h))}this.on=function(e,l){if("function"!=typeof l)throw Ei("required args <name, cb>");switch(e){case"openTag":n=l;break;case"text":t=l;break;case"closeTag":i=l;break;case"error":u=l;break;case"warn":o=l;break;case"cdata":r=l;break;case"attention":c=l;break;case"question":s=l;break;case"comment":a=l;break;default:throw Ei("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw Ei("required args <nsMap={}>");var t,n={};for(t in e)n[t]=e[t];return n["http://www.w3.org/2001/XMLSchema-instance"]="xsi",m=!0,l=n,this},this.parse=function(e){if("string"!=typeof e)throw Ei("required args <xml=string>");return f=null,function(e){var o,u,f,b,_,x,w,E,S,C,P,M=m?[]:null,R=m?function(e){var t,n,i={};for(t in e)i[n=e[t]]=n,i[Mi(n)]=t;return i}(l):null,T=[],k=0,A=!1,z=!1,O=0,D=0,B="",j=0;function N(){if(null!==P)return P;var e,t,n,i,r,o,a,s,c,p,u,h=m&&R.xmlns,f=m&&d?[]:null,v=j,g=B,b=g.length,_={},x={};e:for(;v<b;v++)if(c=!1,!(32===(p=g.charCodeAt(v))||p<14&&p>8)){for((p<65||p>122||p>90&&p<97)&&95!==p&&58!==p&&(y("illegal first char attribute name"),c=!0),u=v+1;u<b;u++)if(!((p=g.charCodeAt(u))>96&&p<123||p>64&&p<91||p>47&&p<59||46===p||45===p||95===p)){if(32===p||p<14&&p>8){y("missing attribute value"),v=u;continue e}if(61===p)break;y("illegal attribute name char"),c=!0}if("xmlns:xmlns"===(s=g.substring(v,u))&&(y("illegal declaration of xmlns"),c=!0),34===(p=g.charCodeAt(u+1)))-1===(u=g.indexOf('"',v=u+2))&&-1!==(u=g.indexOf("'",v))&&(y("attribute value quote missmatch"),c=!0);else if(39===p)-1===(u=g.indexOf("'",v=u+2))&&-1!==(u=g.indexOf('"',v))&&(y("attribute value quote missmatch"),c=!0);else for(y("missing attribute value quotes"),c=!0,u+=1;u<b&&!(32===(p=g.charCodeAt(u+1))||p<14&&p>8);u++);for(-1===u&&(y("missing closing quotes"),u=b,c=!0),c||(o=g.substring(v,u)),v=u;u+1<b&&!(32===(p=g.charCodeAt(u+1))||p<14&&p>8);u++)v===u&&(y("illegal character after attribute end"),c=!0);if(v=u+1,!c)if(s in x)y("attribute <"+s+"> already defined");else if(x[s]=!0,m)if(d){if(null!==(r="xmlns"===s?"xmlns":120===s.charCodeAt(0)&&"xmlns:"===s.substr(0,6)?s.substr(6):null)){if(e=_i(o),t=Mi(r),!(a=l[e])){if("xmlns"===r||t in R&&R[t]!==e)do{a="ns"+k++}while(void 0!==R[a]);else a=r;l[e]=a}R[r]!==a&&(i||(R=Pi(R),i=!0),R[r]=a,"xmlns"===r&&(R[Mi(a)]=e,h=a),R[t]=e),_[s]=o;continue}f.push(s,o)}else-1!==(p=s.indexOf(":"))?(n=R[s.substring(0,p)])?((s=h===n?s.substr(p+1):n+s.substr(p))===xi&&(-1!==(p=o.indexOf(":"))?(n=o.substring(0,p),o=(n=R[n]||n)+o.substring(p)):o=h+":"+o),_[s]=o):y(Si(s.substring(0,p))):_[s]=o;else _[s]=o}if(d)for(v=0,b=f.length;v<b;v++){if(s=f[v++],o=f[v],-1!==(p=s.indexOf(":"))){if(!(n=R[s.substring(0,p)])){y(Si(s.substring(0,p)));continue}(s=h===n?s.substr(p+1):n+s.substr(p))===xi&&(-1!==(p=o.indexOf(":"))?(n=o.substring(0,p),o=(n=R[n]||n)+o.substring(p)):o=h+":"+o)}_[s]=o}return P=_}function L(){for(var t,n,i=/(\r\n|\r|\n)/g,r=0,o=0,a=0,s=D;O>=a&&(t=i.exec(e))&&!((s=t[0].length+t.index)>O);)r+=1,a=s;return-1==O?(o=s,n=e.substring(D)):0===D?n=e.substring(D,O):(o=O-a,n=-1==D?e.substring(O):e.substring(O,D+1)),{data:n,line:r,column:o}}h=L,p&&(C=Object.create({},{name:Ci((function(){return E})),originalName:Ci((function(){return S})),attrs:Ci(N),ns:Ci((function(){return R}))}));for(;-1!==D;){if(-1===(O=60===e.charCodeAt(D)?D:e.indexOf("<",D)))return T.length?g("unexpected end of file"):0===D?g("missing start tag"):void(D<e.length&&e.substring(D).trim()&&y(wi));if(D!==O)if(T.length){if(t&&(t(e.substring(D,O),_i,h),v))return}else if(e.substring(D,O).trim()&&(y(wi),v))return;if(33===(_=e.charCodeAt(O+1))){if(91===(b=e.charCodeAt(O+2))&&"CDATA["===e.substr(O+3,6)){if(-1===(D=e.indexOf("]]>",O)))return g("unclosed cdata");if(r&&(r(e.substring(O+9,D),h),v))return;D+=3;continue}if(45===b&&45===e.charCodeAt(O+3)){if(-1===(D=e.indexOf("--\x3e",O)))return g("unclosed comment");if(a&&(a(e.substring(O+4,D),_i,h),v))return;D+=3;continue}}if(63!==_){for(u=O+1;;u++){if(x=e.charCodeAt(u),isNaN(x))return D=-1,g("unclosed tag");if(34===x)u=-1!==(b=e.indexOf('"',u+1))?b:u;else if(39===x)u=-1!==(b=e.indexOf("'",u+1))?b:u;else if(62===x){D=u;break}}if(33!==_){if(P={},47===_){if(A=!1,z=!0,!T.length)return g("missing open tag");if(u=E=T.pop(),b=O+2+u.length,e.substring(O+2,b)!==u)return g("closing tag mismatch");for(;b<D;b++)if(!(32===(_=e.charCodeAt(b))||_>8&&_<14))return g("close tag")}else{if(47===e.charCodeAt(D-1)?(u=E=e.substring(O+1,D-1),A=!0,z=!0):(u=E=e.substring(O+1,D),A=!0,z=!1),!(_>96&&_<123||_>64&&_<91||95===_||58===_))return g("illegal first char nodeName");for(b=1,f=u.length;b<f;b++)if(!((_=u.charCodeAt(b))>96&&_<123||_>64&&_<91||_>47&&_<59||45===_||95===_||46==_)){if(32===_||_<14&&_>8){E=u.substring(0,b),P=null;break}return g("invalid nodeName")}z||T.push(E)}if(m){if(o=R,A&&(z||M.push(o),null===P&&(d=-1!==u.indexOf("xmlns",b))&&(j=b,B=u,N(),d=!1)),S=E,-1!==(_=E.indexOf(":"))){if(!(w=R[E.substring(0,_)]))return g("missing namespace on <"+S+">");E=E.substr(_+1)}else w=R.xmlns;w&&(E=w+":"+E)}if(A&&(j=b,B=u,n&&(p?n(C,_i,z,h):n(E,N,_i,z,h),v)))return;if(z){if(i&&(i(p?C:E,_i,A,h),v))return;m&&(R=A?o:M.pop())}D+=1}else{if(c&&(c(e.substring(O,D+1),_i,h),v))return;D+=1}}else{if(-1===(D=e.indexOf("?>",O)))return g("unclosed question");if(s&&(s(e.substring(O,D+2),h),v))return;D+=2}}}(e),h=Ri,v=!1,f},this.stop=function(){v=!0}}function Ai(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var zi={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Oi="xsi:type";function Di(e){return e.xml&&e.xml.serialize}function Bi(e){return Di(e)===Oi}function ji(e,t){return Ai(t)?e.prefix+":"+((n=e.localName).charAt(0).toUpperCase()+n.slice(1)):e.name;var n}function Ni(e){return new Error(e)}function Li(e){return e.$descriptor}function Ii(e){G(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw Ni("expected element");var t,n=this.elementsById,i=Li(e).idProperty;if(i&&(t=e.get(i.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(t))throw new Error("illegal ID <"+t+">");if(n[t])throw Ni("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function Fi(){}function Hi(){}function Vi(){}function $i(e,t){this.property=e,this.context=t}function Gi(e,t){this.element=t,this.propertyDesc=e}function Wi(){}function Ui(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function qi(e,t,n){Ui.call(this,e,t,n)}function Ki(e,t,n){this.model=e,this.context=n}function Yi(e){e instanceof mi&&(e={model:e}),G(this,{lax:!1},e)}Fi.prototype.handleEnd=function(){},Fi.prototype.handleText=function(){},Fi.prototype.handleNode=function(){},Hi.prototype=Object.create(Fi.prototype),Hi.prototype.handleNode=function(){return this},Vi.prototype=Object.create(Fi.prototype),Vi.prototype.handleText=function(e){this.body=(this.body||"")+e},$i.prototype=Object.create(Vi.prototype),$i.prototype.handleNode=function(e){if(this.element)throw Ni("expected no sub nodes");return this.element=this.createReference(e),this},$i.prototype.handleEnd=function(){this.element.id=this.body},$i.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},Gi.prototype=Object.create(Vi.prototype),Gi.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=oi(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},Wi.prototype=Object.create(Vi.prototype),Wi.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},Ui.prototype=Object.create(Wi.prototype),Ui.prototype.addReference=function(e){this.context.addReference(e)},Ui.prototype.handleText=function(e){if(!Li(this.element).bodyProperty)throw Ni("unexpected body text <"+e+">");Vi.prototype.handleText.call(this,e)},Ui.prototype.handleEnd=function(){var e=this.body,t=this.element,n=Li(t).bodyProperty;n&&void 0!==e&&(e=oi(n.type,e),t.set(n.name,e))},Ui.prototype.createElement=function(e){var t,n=e.attributes,i=this.type,r=Li(i),o=this.context,a=new i({}),s=this.model;return w(n,(function(e,n){var i=r.propertiesByName[n];i&&i.isReference?i.isMany?w(e.split(" "),(function(e){o.addReference({element:a,property:i.ns.name,id:e})})):o.addReference({element:a,property:i.ns.name,id:e}):(i?e=oi(i.type,e):"xmlns"!==n&&(t=ci(n,r.ns.prefix),s.getPackage(t.prefix)&&o.addWarning({message:"unknown attribute <"+n+">",element:a,property:n,value:e})),a.set(n,e))})),a},Ui.prototype.getPropertyForNode=function(e){var t,n,i=ci(e.name),r=this.type,o=this.model,a=Li(r),s=i.name,c=a.propertiesByName[s];if(c&&!c.isAttr)return Bi(c)&&(t=e.attributes[Oi])?(t=function(e,t){var n=ci(e);return function(e,t){var n=e.name,i=e.localName,r=t.xml&&t.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):n}(n,t.getPackage(n.prefix))}(t,o),G({},c,{effectiveType:Li(n=o.getType(t)).name})):c;var l=o.getPackage(i.prefix);if(l){if(t=ji(i,l),n=o.getType(t),c=b(a.properties,(function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)})))return G({},c,{effectiveType:Li(n).name})}else if(c=b(a.properties,(function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type})))return c;throw Ni("unrecognized element <"+i.name+">")},Ui.prototype.toString=function(){return"ElementDescriptor["+Li(this.type).name+"]"},Ui.prototype.valueHandler=function(e,t){return new Gi(e,t)},Ui.prototype.referenceHandler=function(e){return new $i(e,this.context)},Ui.prototype.handler=function(e){return"Element"===e?new Ki(this.model,e,this.context):new Ui(this.model,e,this.context)},Ui.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,si(n=t.effectiveType||t.type))return this.valueHandler(t,i);var o=(r=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==o&&(t.isMany?i.get(t.name).push(o):i.set(t.name,o),t.isReference?(G(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},qi.prototype=Object.create(Ui.prototype),qi.prototype.createElement=function(e){var t=e.name,n=ci(t),i=this.model,r=this.type,o=i.getPackage(n.prefix),a=o&&ji(n,o)||t;if(!r.hasType(a))throw Ni("unexpected element <"+e.originalName+">");return Ui.prototype.createElement.call(this,e)},Ki.prototype=Object.create(Wi.prototype),Ki.prototype.createElement=function(e){var t=e.name,n=ci(t).prefix,i=e.ns[n+"$uri"],r=e.attributes;return this.model.createAny(t,i,r)},Ki.prototype.handleChild=function(e){var t=new Ki(this.model,"Element",this.context).handleNode(e),n=this.element,i=t.element;return void 0!==i&&((n.$children=n.$children||[]).push(i),i.$parent=n),t},Ki.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},Yi.prototype.fromXML=function(e,t,n){var i=t.rootHandler;t instanceof Ui?(i=t,t={}):"string"==typeof t?(i=this.handler(t),t={}):"string"==typeof i&&(i=this.handler(i));var r=this.model,o=this.lax,a=new Ii(G({},t,{rootHandler:i})),s=new ki({proxy:!0}),c=function(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}();function l(e,t,n){var i=t(),r=i.line,o=i.column,s=i.data;"<"===s.charAt(0)&&-1!==s.indexOf(" ")&&(s=s.slice(0,s.indexOf(" "))+">");var c="unparsable content "+(s?s+" ":"")+"detected\n\tline: "+r+"\n\tcolumn: "+o+"\n\tnested error: "+e.message;if(n)return a.addWarning({message:c,error:e}),!0;throw Ni(c)}function p(e,t){return l(e,t,!0)}i.context=a,c.push(i);var u=/^<\?xml /i,h=/ encoding="([^"]+)"/i,d=/^utf-8$/i;function m(e,t){try{c.peek().handleText(e)}catch(e){p(e,t)}}var f=r.getPackages().reduce((function(e,t){return e[t.uri]=t.prefix,e}),{"http://www.w3.org/XML/1998/namespace":"xml"});return s.ns(f).on("openTag",(function(e,t,n,i){var r=e.attrs||{},a=Object.keys(r).reduce((function(e,n){var i=t(r[n]);return e[n]=i,e}),{});!function(e,t){var n=c.peek();try{c.push(n.handleNode(e))}catch(e){l(e,t,o)&&c.push(new Hi)}}({name:e.name,originalName:e.originalName,attributes:a,ns:e.ns},i)})).on("question",(function(e){if(u.test(e)){var t=h.exec(e),n=t&&t[1];n&&!d.test(n)&&a.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}})).on("closeTag",(function(){c.pop().handleEnd()})).on("cdata",m).on("text",(function(e,t,n){!function(e,t){e.trim()&&m(e,t)}(t(e),n)})).on("error",l).on("warn",p),new Promise((function(t,n){var r;try{s.parse(e),function(){var e,t,n=a.elementsById,i=a.references;for(e=0;t=i[e];e++){var r=t.element,o=n[t.id],s=Li(r).propertiesByName[t.property];if(o||a.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),s.isMany){var c=r.get(s.name),l=c.indexOf(t);-1===l&&(l=c.length),o?c[l]=o:c.splice(l,1)}else r.set(s.name,o)}}()}catch(e){r=e}var o=i.element;r||o||(r=Ni("failed to parse document as <"+i.type.$descriptor.name+">"));var c=a.warnings,l=a.references,p=a.elementsById;return r?(r.warnings=c,n(r)):t({rootElement:o,elementsById:p,references:l,warnings:c})}))},Yi.prototype.handler=function(e){return new qi(this.model,e)};var Xi=/<|>|'|"|&|\n\r|\n/g,Zi=/<|>|&/g;function Qi(e){var t={},n={},i={},r=[],o=[];this.byUri=function(t){return n[t]||e&&e.byUri(t)},this.add=function(e,t){n[e.uri]=e,t?r.push(e):o.push(e),this.mapPrefix(e.prefix,e.uri)},this.uriByPrefix=function(e){return t[e||"xmlns"]},this.mapPrefix=function(e,n){t[e||"xmlns"]=n},this.getNSKey=function(e){return void 0!==e.prefix?e.uri+"|"+e.prefix:e.uri},this.logUsed=function(t){var n=t.uri,r=this.getNSKey(t);i[r]=this.byUri(n),e&&e.logUsed(t)},this.getUsed=function(e){var t=this;return[].concat(r,o).filter((function(e){var n=t.getNSKey(e);return i[n]}))}}function Ji(e,t){return Ai(t)?(n=e).charAt(0).toLowerCase()+n.slice(1):e;var n}function er(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function tr(e){return v(e)?e:(e.prefix?e.prefix+":":"")+e.localName}var nr={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},ir={"<":"lt",">":"gt","&":"amp"};function rr(e,t,n){return(e=v(e)?e:""+e).replace(t,(function(e){return"&"+n[e]+";"}))}function or(e){this.tagName=e}function ar(){}function sr(e){this.tagName=e}function cr(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}function lr(e,t){cr.call(this,e,t)}function pr(){this.value="",this.write=function(e){this.value+=e}}function ur(e,t){var n=[""];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write("\n"),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function hr(e){return e=G({format:!1,preamble:!0},e||{}),{toXML:function(t,n){var i=n||new pr,r=new ur(i,e.format);if(e.preamble&&r.append('<?xml version="1.0" encoding="UTF-8"?>\n'),(new cr).build(t).serializeTo(r),!n)return i.value}}}function dr(e,t){mi.call(this,e,t)}or.prototype.build=function(e){return this.element=e,this},or.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()},ar.prototype.serializeValue=ar.prototype.serializeTo=function(e){e.append(this.escape?rr(this.value,Zi,ir):this.value)},ar.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(Zi)&&(this.escape=!0),this},er(sr,ar),sr.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()},cr.prototype.build=function(e){this.element=e;var t,n,i=e.$descriptor,r=this.propertyDescriptor,o=i.isGeneric;return t=o?this.parseGeneric(e):this.parseNsAttributes(e),this.ns=r?this.nsPropertyTagName(r):this.nsTagName(i),this.tagName=this.addTagName(this.ns),o||(n=function(e){return x(e.$descriptor.properties,(function(t){var n=t.name;if(t.isVirtual)return!1;if(!y(e,n))return!1;var i=e[n];return i!==t.default&&null!==i&&(!t.isMany||i.length)}))}(e),this.parseAttributes(x(n,(function(e){return e.isAttr}))),this.parseContainments(function(e){return x(e,(function(e){return!e.isAttr}))}(n))),this.parseGenericAttributes(e,t),this},cr.prototype.nsTagName=function(e){return function(e,t){return t.isGeneric?G({localName:t.ns.localName},e):G({localName:Ji(t.ns.localName,t.$pkg)},e)}(this.logNamespaceUsed(e.ns),e)},cr.prototype.nsPropertyTagName=function(e){return function(e,t){return G({localName:t.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},cr.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},cr.prototype.nsAttributeName=function(e){var t;if(t=v(e)?ci(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:G({localName:t.localName},n)},cr.prototype.parseGeneric=function(e){var t=this,n=this.body,i=[];return w(e,(function(r,o){"$body"===o?n.push((new ar).build({type:"String"},r)):"$children"===o?w(r,(function(e){n.push(new cr(t).build(e))})):0!==o.indexOf("$")&&t.parseNsAttribute(e,o,r)&&i.push({name:o,value:r})})),i},cr.prototype.parseNsAttribute=function(e,t,n){var i,r=e.$model,o=ci(t);if("xmlns"===o.prefix&&(i={prefix:o.localName,uri:n}),o.prefix||"xmlns"!==o.localName||(i={uri:n}),!i)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(i,!0,!0);else{var a=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(a)}},cr.prototype.parseNsAttributes=function(e,t){var n=this,i=e.$attrs,r=[];return w(i,(function(t,i){var o=n.parseNsAttribute(e,i,t);o&&r.push(o)})),r},cr.prototype.parseGenericAttributes=function(e,t){var n=this;w(t,(function(t){if(t.name!==Oi)try{n.addAttribute(n.nsAttributeName(t.name),t.value)}catch(n){console.warn("missing namespace information for ",t.name,"=",t.value,"on",e,n)}}))},cr.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;w(e,(function(e){var r=i.get(e.name),o=e.isReference;if(e.isMany||(r=[r]),e.isBody)n.push((new ar).build(e,r[0]));else if(si(e.type))w(r,(function(i){n.push(new sr(t.addTagName(t.nsPropertyTagName(e))).build(e,i))}));else if(o)w(r,(function(i){n.push(new or(t.addTagName(t.nsPropertyTagName(e))).build(i))}));else{var a=Bi(e),s=function(e){return"property"===Di(e)}(e);w(r,(function(i){var r;r=a?new lr(t,e):s?new cr(t,e):new cr(t),n.push(r.build(i))}))}}))},cr.prototype.getNamespaces=function(e){var t,n=this.namespaces,i=this.parent;return n||(t=i&&i.getNamespaces(),e||!t?this.namespaces=n=new Qi(t):n=t),n},cr.prototype.logNamespace=function(e,t,n){var i=this.getNamespaces(n),r=e.uri,o=e.prefix;return i.byUri(r)&&!n||i.add(e,t),i.mapPrefix(o,r),e},cr.prototype.logNamespaceUsed=function(e,t){var n,i,r,o=this.element.$model,a=this.getNamespaces(t),s=e.prefix,c=e.uri;if(!s&&!c)return{localName:e.localName};if(r=zi[s]||o&&(o.getPackage(s)||{}).uri,!(c=c||r||a.uriByPrefix(s)))throw new Error("no namespace uri given for prefix <"+s+">");if(!(e=a.byUri(c))){for(n=s,i=1;a.uriByPrefix(n);)n=s+"_"+i++;e=this.logNamespace({prefix:n,uri:c},r===c)}return s&&a.mapPrefix(s,c),e},cr.prototype.parseAttributes=function(e){var t=this,n=this.element;w(e,(function(e){var i=n.get(e.name);if(e.isReference)if(e.isMany){var r=[];w(i,(function(e){r.push(e.id)})),i=r.join(" ")}else i=i.id;t.addAttribute(t.nsAttributeName(e),i)}))},cr.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),tr(e)},cr.prototype.addAttribute=function(e,t){var n=this.attrs;v(t)&&(t=rr(t,Xi,nr)),n.push({name:e,value:t})},cr.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=function(e){return e.getUsed().filter((function(e){return"xml"!==e.prefix})).map((function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}))}(n).concat(t)),w(t,(function(t){e.append(" ").append(tr(t.name)).append('="').append(t.value).append('"')}))},cr.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==ar;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),w(this.body,(function(t){t.serializeTo(e)})),n&&e.unindent().appendIndent(),e.append("</"+this.tagName+">")),e.appendNewLine()},er(lr,cr),lr.prototype.parseNsAttributes=function(e){var t=cr.prototype.parseNsAttributes.call(this,e),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var i=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(Oi),(i.prefix?i.prefix+":":"")+o+n.ns.localName),t},lr.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},dr.prototype=Object.create(mi.prototype),dr.prototype.fromXML=function(e,t,n){v(t)||(n=t,t="bpmn:Definitions");var i=new Yi(G({model:this,lax:!0},n)),r=i.handler(t);return i.fromXML(e,r)},dr.prototype.toXML=function(e,t){var n=new hr(t);return new Promise((function(t,i){try{return t({xml:n.toXML(e)})}catch(e){return i(e)}}))};var mr={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isAttr:!0,isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};function fr(e,t){return new dr(G({},mr,e),t)}function vr(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function gr(e){return function(){if(!window.Promise)throw new Error("Promises is not supported in this environment. Please polyfill Promise.");var t=arguments.length;if(!(t>=1&&f(arguments[t-1])))return e.apply(this,arguments);var n=arguments[t-1];console.warn(new Error("Passing callbacks to "+e.name+" is deprecated and will be removed in a future major release. Please switch to promises: https://bpmn.io/l/moving-to-promises.html"));var i=Array.prototype.slice.call(arguments,0,-1);e.apply(this,i).then((function(e){var t=Object.keys(e)[0];return n(null,e[t])}),(function(e){return n(e,e.warnings)}))}}function yr(e){y(e,"di")||Object.defineProperty(e,"di",{get:function(){throw new Error("Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472")}})}function br(e,t){return e.$instanceOf(t)}function _r(e,t){var n={},i=[],r={};function o(e,t){return function(n){e(n,t)}}function a(e){n[e.id]=e}function s(n,i){try{var o=r[n.id]&&function(n,i){if(n.gfx)throw new Error(t("already rendered {element}",{element:vr(n)}));return e.element(n,r[n.id],i)}(n,i);return a(n),o}catch(e){c(e.message,{element:n,error:e}),console.error(t("failed to import {element}",{element:vr(n)})),console.error(e)}}function c(t,n){e.error(t,n)}function l(e){var n=e.bpmnElement;n?r[n.id]?c(t("multiple DI elements defined for {element}",{element:vr(n)}),{element:n}):(r[n.id]=e,yr(n)):c(t("no bpmnElement referenced in {element}",{element:vr(e)}),{element:e})}function p(e){var t;l(t=e.plane),w(t.planeElement,u)}function u(e){l(e)}function h(){for(;i.length;)i.shift()()}function d(e,t){T(e,t),E(e.ioSpecification,t),_(e.artifacts,t),a(e)}function m(e,t){s(e,t)}function f(e,t){s(e,t)}function v(e,t){s(e,t)}function g(e,t){s(e,t)}function y(e,t){s(e,t)}function _(e,t){w(e,(function(e){br(e,"bpmn:Association")?i.push((function(){y(e,t)})):y(e,t)}))}function E(e,t){e&&(w(e.dataInputs,o(v,t)),w(e.dataOutputs,o(g,t)))}function S(e,t){T(e,t),_(e.artifacts,t)}function C(e,t){var n=s(e,t);br(e,"bpmn:SubProcess")&&S(e,n||t),br(e,"bpmn:Activity")&&E(e.ioSpecification,t),i.push((function(){w(e.dataInputAssociations,o(f,t)),w(e.dataOutputAssociations,o(f,t))}))}function P(e,t){s(e,t)}function M(e,t){i.push((function(){var n=s(e,t);e.childLaneSet&&R(e.childLaneSet,n||t),function(e){w(e.flowNodeRef,(function(t){var n=t.get("lanes");n&&n.push(e)}))}(e)}))}function R(e,t){w(e.lanes,o(M,t))}function T(e,n){!function(e,n){w(e,(function(e){br(e,"bpmn:SequenceFlow")?i.push((function(){!function(e,t){s(e,t)}(e,n)})):br(e,"bpmn:BoundaryEvent")?i.unshift((function(){C(e,n)})):br(e,"bpmn:FlowNode")?C(e,n):br(e,"bpmn:DataObject")||(br(e,"bpmn:DataStoreReference")||br(e,"bpmn:DataObjectReference")?P(e,n):c(t("unrecognized flowElement {element} in context {context}",{element:vr(e),context:n?vr(n.businessObject):"null"}),{element:e,context:n}))}))}(e.flowElements,n),e.laneSets&&function(e,t){w(e,o(R,t))}(e.laneSets,n)}function k(e,t){var n=s(e,t),i=e.processRef;i&&d(i,n||t)}return{handleDeferred:h,handleDefinitions:function(a,s){var u=a.diagrams;if(s&&-1===u.indexOf(s))throw new Error(t("diagram not part of bpmn:Definitions"));if(!s&&u&&u.length&&(s=u[0]),!s)throw new Error(t("no diagram to display"));r={},p(s);var f=s.plane;if(!f)throw new Error(t("no plane for {element}",{element:vr(s)}));var v=f.bpmnElement;if(!v){if(!(v=function(e){return b(e.rootElements,(function(e){return br(e,"bpmn:Process")||br(e,"bpmn:Collaboration")}))}(a)))throw new Error(t("no process or collaboration to display"));c(t("correcting missing bpmnElement on {plane} to {rootElement}",{plane:vr(f),rootElement:vr(v)})),f.bpmnElement=v,l(f)}var g,y,E=function(t,n){return e.root(t,r[t.id],n)}(v,f);if(br(v,"bpmn:Process")||br(v,"bpmn:SubProcess"))d(v,E);else{if(!br(v,"bpmn:Collaboration"))throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}",{plane:vr(f),rootElement:vr(v)}));y=E,w((g=v).participants,o(k,y)),_(g.artifacts,y),i.push((function(){!function(e,t){w(e,o(m,t))}(g.messageFlows,y)})),function(e,t){x(e,(function(e){return!n[e.id]&&br(e,"bpmn:Process")&&e.laneSets})).forEach(o(d,t))}(a.rootElements,E)}h()},handleSubProcess:S,registerDi:l}}function xr(e,t){var n=Er(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function wr(e,t){return P(t,(function(t){return xr(e,t)}))}function Er(e){return e&&e.businessObject||e}function Sr(e){return e&&e.di}function Cr(e,t,n){var i,r,o,a,s=[];function c(e,t){var n=new _r({root:function(e,t){return i.add(e,t)},element:function(e,t,n){return i.add(e,t,n)},error:function(e,t){s.push({message:e,context:t})}},o);t=t||e.diagrams&&e.diagrams[0];var r=function(e,t){if(!t)return;var n,i=t.plane.bpmnElement,r=i;xr(i,"bpmn:Process")||xr(i,"bpmn:Collaboration")||(r=function(e){var t=e;for(;t;){if(xr(t,"bpmn:Process"))return t;t=t.$parent}}(i));n=xr(r,"bpmn:Collaboration")?r:b(e.rootElements,(function(e){if(xr(e,"bpmn:Collaboration"))return b(e.participants,(function(e){return e.processRef===r}))}));var o=[r];n&&(o=M(n.participants,(function(e){return e.processRef}))).push(n);var a=Pr(o),s=[t],c=[i];return w(e.diagrams,(function(e){var t=e.plane.bpmnElement;-1!==a.indexOf(t)&&-1===c.indexOf(t)&&(s.push(e),c.push(t))})),s}(e,t);if(!r)throw new Error(o("no diagram to display"));w(r,(function(t){n.handleDefinitions(e,t)}));var c=t.plane.bpmnElement.id;a.setRootElement(a.findRoot(c+"_plane")||a.findRoot(c))}return new Promise((function(l,p){try{return i=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("translate"),a=e.get("canvas"),r.fire("import.render.start",{definitions:t}),c(t,n),r.fire("import.render.complete",{error:undefined,warnings:s}),l({warnings:s})}catch(e){return e.warnings=s,p(e)}}))}function Pr(e){var t=[];return w(e,(function(e){e&&(t.push(e),t=t.concat(Pr(e.flowElements)))})),t}var Mr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21" style="vertical-align:middle"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>';function Rr(e){return e.join(";")}var Tr,kr=Rr(["color: #404040"]),Ar='<div class="bjs-powered-by-lightbox" style="'+Rr(["z-index: 1001","position: fixed","top: 0","left: 0","right: 0","bottom: 0"])+'"><div class="backdrop" style="'+Rr(["width: 100%","height: 100%","background: rgba(40,40,40,0.2)"])+'"></div><div class="notice" style="'+Rr(["position: absolute","left: 50%","top: 40%","transform: translate(-50%)","width: 260px","padding: 10px","background: white","box-shadow: 0 1px 4px rgba(0,0,0,0.3)","font-family: Helvetica, Arial, sans-serif","font-size: 14px","display: flex","line-height: 1.3"])+'"><a href="https://bpmn.io" target="_blank" rel="noopener" style="margin: 15px 20px 15px 10px; align-self: center;'+kr+'">'+Mr+'</a><span>Web-based tooling for BPMN, DMN and CMMN diagrams powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>';function zr(e){var t,n;e=G({},Dr,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),t=this._container,n=fe('<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" style="position: absolute; bottom: 15px; right: 15px; z-index: 100; '+kr+'">'+Mr+"</a>"),t.appendChild(n),ue.bind(n,"click",(function(e){Tr||(Tr=fe(Ar),me.bind(Tr,".backdrop","click",(function(e){document.body.removeChild(Tr)}))),document.body.appendChild(Tr),e.preventDefault()})),this._init(this._container,this._moddle,e)}function Or(e,t){return e.warnings=t,e}i(zr,ei),zr.prototype.importXML=gr((function(e,t){var n=this;return new Promise((function(i,r){e=n._emit("import.parse.start",{xml:e})||e,n._moddle.fromXML(e,"bpmn:Definitions").then((function(e){var o,a,s=e.rootElement,c=e.references,l=e.warnings,p=e.elementsById;s=n._emit("import.parse.complete",(o={error:null,definitions:s,elementsById:p,references:c,warnings:l},a=n.get("eventBus").createEvent(o),Object.defineProperty(a,"context",{enumerable:!0,get:function(){return console.warn(new Error("import.parse.complete <context> is deprecated and will be removed in future library versions")),{warnings:o.warnings,references:o.references,elementsById:o.elementsById}}}),a))||s,n.importDefinitions(s,t).then((function(e){var t=[].concat(l,e.warnings||[]);return n._emit("import.done",{error:null,warnings:t}),i({warnings:t})})).catch((function(e){var t=[].concat(l,e.warnings||[]);return n._emit("import.done",{error:e,warnings:t}),r(Or(e,t))}))})).catch((function(e){return n._emit("import.parse.complete",{error:e}),e=function(e){var 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),n._emit("import.done",{error:e,warnings:e.warnings}),r(e)}))}))})),zr.prototype.importDefinitions=gr((function(e,t){var n=this;return new Promise((function(i,r){n._setDefinitions(e),n.open(t).then((function(e){var t=e.warnings;return i({warnings:t})})).catch((function(e){return r(e)}))}))})),zr.prototype.open=gr((function(e){var t=this._definitions,n=e,i=this;return new Promise((function(r,o){if(!t){var a=new Error("no XML imported");return o(Or(a,[]))}if("string"==typeof e&&!(n=function(e,t){if(!t)return null;return b(e.diagrams,(function(e){return e.id===t}))||null}(t,e))){var s=new Error("BPMNDiagram <"+e+"> not found");return o(Or(s,[]))}try{i.clear()}catch(e){return o(Or(e,[]))}Cr(i,t,n).then((function(e){var t=e.warnings;return r({warnings:t})})).catch((function(e){return o(e)}))}))})),zr.prototype.saveXML=gr((function(e){e=e||{};var t=this,n=this._definitions;return new Promise((function(i){if(!n)return i({error:new Error("no definitions loaded")});n=t._emit("saveXML.start",{definitions:n})||n,t._moddle.toXML(n,e).then((function(e){var n=e.xml;return n=t._emit("saveXML.serialized",{xml:n})||n,i({xml:n})}))})).catch((function(e){return{error:e}})).then((function(e){t._emit("saveXML.done",e);var n=e.error;return n?Promise.reject(n):e}))})),zr.prototype.saveSVG=gr((function(e){var t=this;return new Promise((function(e,n){var i,r;t._emit("saveSVG.start");try{var o=t.get("canvas"),a=o.getActiveLayer(),s=ye("defs",o._svg),c=Ke(a),l=s?"<defs>"+Ke(s)+"</defs>":"",p=a.getBBox();i='<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+p.width+'" height="'+p.height+'" viewBox="'+p.x+" "+p.y+" "+p.width+" "+p.height+'" version="1.1">'+l+c+"</svg>"}catch(e){r=e}return t._emit("saveSVG.done",{error:r,svg:i}),r?n(r):e({svg:i})}))})),zr.prototype._setDefinitions=function(e){this._definitions=e},zr.prototype.getModules=function(){return this._modules},zr.prototype.clear=function(){this.getDefinitions()&&ei.prototype.clear.call(this)},zr.prototype.destroy=function(){ei.prototype.destroy.call(this),_e(this._container)},zr.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},zr.prototype.off=function(e,t){this.get("eventBus").off(e,t)},zr.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=ye(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},zr.prototype.getDefinitions=function(){return this._definitions},zr.prototype.detach=function(){var e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},zr.prototype._init=function(e,t,n){var i=n.modules||this.getModules(),r=n.additionalModules||[],o=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,r),a=G(K(n,["additionalModules"]),{canvas:G({},n.canvas,{container:e}),modules:o});ei.call(this,a),n&&n.container&&this.attachTo(n.container)},zr.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},zr.prototype._createContainer=function(e){var t=fe('<div class="bjs-container"></div>');return G(t.style,{width:Br(e.width),height:Br(e.height),position:e.position}),t},zr.prototype._createModdle=function(e){return new fr(G({},this._moddleExtensions,e.moddleExtensions))},zr.prototype._modules=[];var Dr={width:"100%",height:"100%",position:"relative"};function Br(e){return e+(m(e)?"px":"")}function jr(e){zr.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)}function Nr(e,t){return!xr(e,"bpmn:CallActivity")&&(xr(e,"bpmn:SubProcess")?!(!(t=t||Sr(e))||!xr(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded:!xr(e,"bpmn:Participant")||!!Er(e).processRef)}function Lr(e){return e&&!1!==Er(e).isInterrupting}function Ir(e){return e&&!!Er(e).triggeredByEvent}function Fr(e,t){var n=Er(e),i=!1;return n.eventDefinitions&&w(n.eventDefinitions,(function(e){xr(e,t)&&(i=!0)})),i}function Hr(e){return xr(e,"bpmn:FlowElement")||xr(e,"bpmn:Participant")||xr(e,"bpmn:Lane")||xr(e,"bpmn:SequenceFlow")||xr(e,"bpmn:MessageFlow")||xr(e,"bpmn:DataInput")||xr(e,"bpmn:DataOutput")?"name":xr(e,"bpmn:TextAnnotation")?"text":xr(e,"bpmn:Group")?"categoryValueRef":void 0}function Vr(e){var t=e.businessObject,n=Hr(t);if(n)return"categoryValueRef"===n?function(e){var t=e.categoryValueRef;return t&&t.value||""}(t):t[n]||""}function $r(e,t,n){return P(e.eventDefinitions,(function(i){return i.$type===t&&function(e,t){return C(t,(function(t,n){return e[n]==t}))}(e,n)}))}function Gr(e){return e.businessObject}function Wr(e,t){var n=Sr(e);return n.get("color:background-color")||n.get("bioc:fill")||t||"white"}function Ur(e,t){var n=Sr(e);return n.get("color:border-color")||n.get("bioc:stroke")||t||"black"}function qr(e,t,n){var i=Sr(e).get("label");return i&&i.get("color:color")||t||Ur(e,n)}i(jr,zr),jr.prototype._createModdle=function(e){var t=zr.prototype._createModdle.call(this,e);return t.ids=new o([32,36,1]),t},jr.prototype._collectIds=function(e,t){var n,i=e.$model.ids;for(n in i.clear(),t)i.claim(n,t[n])};var Kr=new o,Yr=.95;function Xr(e,t,n,i,r,o,a){st.call(this,t,a);var s=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,l=e&&e.defaultLabelColor,p=Kr.next(),u={},h=n.computeStyle;function m(e,t){var n=G({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},t.attrs),i=t.ref||{x:0,y:0},o=t.scale||1;"none"===n.strokeDasharray&&(n.strokeDasharray=[1e4,1]);var a=Le("marker");Ce(t.element,n),we(a,t.element),Ce(a,{id:e,viewBox:"0 0 20 20",refX:i.x,refY:i.y,markerWidth:20*o,markerHeight:20*o,orient:"auto"});var s=ye("defs",r._svg);s||(s=Le("defs"),we(r._svg,s)),we(s,a),u[e]=a}function f(e){return e.replace(/[^0-9a-zA-z]+/g,"_")}function v(e,t,n){var i=e+"-"+f(t)+"-"+f(n)+"-"+p;return u[i]||function(e,t,n,i){if("sequenceflow-end"===t){var r=Le("path");Ce(r,{d:"M 1 5 L 11 10 L 1 15 Z"}),m(e,{element:r,ref:{x:11,y:10},scale:.5,attrs:{fill:i,stroke:i}})}if("messageflow-start"===t){var o=Le("circle");Ce(o,{cx:6,cy:6,r:3.5}),m(e,{element:o,attrs:{fill:n,stroke:i},ref:{x:6,y:6}})}if("messageflow-end"===t){var a=Le("path");Ce(a,{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z"}),m(e,{element:a,attrs:{fill:n,stroke:i,strokeLinecap:"butt"},ref:{x:8.5,y:5}})}if("association-start"===t){var s=Le("path");Ce(s,{d:"M 11 5 L 1 10 L 11 15"}),m(e,{element:s,attrs:{fill:"none",stroke:i,strokeWidth:1.5},ref:{x:1,y:10},scale:.5})}if("association-end"===t){var c=Le("path");Ce(c,{d:"M 1 5 L 11 10 L 1 15"}),m(e,{element:c,attrs:{fill:"none",stroke:i,strokeWidth:1.5},ref:{x:12,y:10},scale:.5})}if("conditional-flow-marker"===t){var l=Le("path");Ce(l,{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z"}),m(e,{element:l,attrs:{fill:n,stroke:i},ref:{x:-1,y:10},scale:.5})}if("conditional-default-flow-marker"===t){var p=Le("path");Ce(p,{d:"M 6 4 L 10 16"}),m(e,{element:p,attrs:{stroke:i},ref:{x:0,y:10},scale:.5})}}(i,e,t,n),"url(#"+i+")"}function g(e,t,n,i,r){d(i)&&(r=i,i=0),i=i||0,"none"===(r=h(r,{stroke:"black",strokeWidth:2,fill:"white"})).fill&&delete r.fillOpacity;var o=t/2,a=n/2,s=Le("circle");return Ce(s,{cx:o,cy:a,r:Math.round((t+n)/4-i)}),Ce(s,r),we(e,s),s}function y(e,t,n,i,r,o){d(r)&&(o=r,r=0),r=r||0,o=h(o,{stroke:"black",strokeWidth:2,fill:"white"});var a=Le("rect");return Ce(a,{x:r,y:r,width:t-2*r,height:n-2*r,rx:i,ry:i}),Ce(a,o),we(e,a),a}function b(e,t,n){var i=pt(t,n=h(n,["no-fill"],{stroke:"black",strokeWidth:2,fill:"none"}));return we(e,i),i}function _(e,t,n){n=h(n,["no-fill"],{strokeWidth:2,stroke:"black"});var i=Le("path");return Ce(i,{d:t}),Ce(i,n),we(e,i),i}function x(e,t,n,i){return _(t,n,G({"data-marker":e},i))}function E(e){return k[e]}function S(e){return function(t,n){return E(e)(t,n)}}function C(e,t){var n=Gr(e),i=function(e){return"bpmn:IntermediateThrowEvent"===e.$type||"bpmn:EndEvent"===e.$type}(n);return n.eventDefinitions&&n.eventDefinitions.length>1?n.parallelMultiple?E("bpmn:ParallelMultipleEventDefinition")(t,e,i):E("bpmn:MultipleEventDefinition")(t,e,i):$r(n,"bpmn:MessageEventDefinition")?E("bpmn:MessageEventDefinition")(t,e,i):$r(n,"bpmn:TimerEventDefinition")?E("bpmn:TimerEventDefinition")(t,e,i):$r(n,"bpmn:ConditionalEventDefinition")?E("bpmn:ConditionalEventDefinition")(t,e):$r(n,"bpmn:SignalEventDefinition")?E("bpmn:SignalEventDefinition")(t,e,i):$r(n,"bpmn:EscalationEventDefinition")?E("bpmn:EscalationEventDefinition")(t,e,i):$r(n,"bpmn:LinkEventDefinition")?E("bpmn:LinkEventDefinition")(t,e,i):$r(n,"bpmn:ErrorEventDefinition")?E("bpmn:ErrorEventDefinition")(t,e,i):$r(n,"bpmn:CancelEventDefinition")?E("bpmn:CancelEventDefinition")(t,e,i):$r(n,"bpmn:CompensateEventDefinition")?E("bpmn:CompensateEventDefinition")(t,e,i):$r(n,"bpmn:TerminateEventDefinition")?E("bpmn:TerminateEventDefinition")(t,e,i):null}function P(e,t,n){n=G({size:{width:100}},n);var i=o.createText(t||"",n);return ke(i).add("djs-label"),we(e,i),i}function M(e,t,n){return P(e,Gr(t).name,{box:t,align:n,padding:5,style:{fill:qr(t,l,c)}})}function R(e,t,n){qn(P(e,t,{box:{height:30,width:n.height},align:"center-middle",style:{fill:qr(n,l,c)}}),0,-(-1*n.height),270)}function T(e){for(var t=e.waypoints,n="m "+t[0].x+","+t[0].y,i=1;i<t.length;i++)n+="L"+t[i].x+","+t[i].y+" ";return n}var k=this.handlers={"bpmn:Event":function(e,t,n){return"fillOpacity"in n||(n.fillOpacity=Yr),g(e,t.width,t.height,n)},"bpmn:StartEvent":function(e,t){var n={fill:Wr(t,s),stroke:Ur(t,c)};Gr(t).isInterrupting||(n={strokeDasharray:"6",strokeLinecap:"round",fill:Wr(t,s),stroke:Ur(t,c)});var i=E("bpmn:Event")(e,t,n);return C(t,e),i},"bpmn:MessageEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.235,my:.315}}),{strokeWidth:1,fill:n?Ur(t,c):Wr(t,s),stroke:n?Wr(t,s):Ur(t,c)})},"bpmn:TimerEventDefinition":function(e,t){var n=g(e,t.width,t.height,.2*t.height,{strokeWidth:2,fill:Wr(t,s),stroke:Ur(t,c)});_(e,i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{strokeWidth:2,strokeLinecap:"square",stroke:Ur(t,c)});for(var r=0;r<12;r++){var o=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),a=t.width/2;_(e,o,{strokeWidth:1,strokeLinecap:"square",transform:"rotate("+30*r+","+t.height/2+","+a+")",stroke:Ur(t,c)})}return n},"bpmn:EscalationEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:n?Ur(t,c):"none",stroke:Ur(t,c)})},"bpmn:ConditionalEventDefinition":function(e,t){return _(e,i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.222}}),{strokeWidth:1,stroke:Ur(t,c)})},"bpmn:LinkEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.57,my:.263}}),{strokeWidth:1,fill:n?Ur(t,c):"none",stroke:Ur(t,c)})},"bpmn:ErrorEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.2,my:.722}}),{strokeWidth:1,fill:n?Ur(t,c):"none",stroke:Ur(t,c)})},"bpmn:CancelEventDefinition":function(e,t,n){var r=_(e,i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.638,my:-.055}}),{strokeWidth:1,fill:n?Ur(t,c):"none",stroke:Ur(t,c)});return Yn(r,45),r},"bpmn:CompensateEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.22,my:.5}}),{strokeWidth:1,fill:n?Ur(t,c):"none",stroke:Ur(t,c)})},"bpmn:SignalEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:n?Ur(t,c):"none",stroke:Ur(t,c)})},"bpmn:MultipleEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.222,my:.36}}),{strokeWidth:1,fill:n?Ur(t,c):"none"})},"bpmn:ParallelMultipleEventDefinition":function(e,t){return _(e,i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:t.width,containerHeight:t.height,position:{mx:.458,my:.194}}),{strokeWidth:1,fill:Ur(t,c),stroke:Ur(t,c)})},"bpmn:EndEvent":function(e,t){var n=E("bpmn:Event")(e,t,{strokeWidth:4,fill:Wr(t,s),stroke:Ur(t,c)});return C(t,e),n},"bpmn:TerminateEventDefinition":function(e,t){return g(e,t.width,t.height,8,{strokeWidth:4,fill:Ur(t,c),stroke:Ur(t,c)})},"bpmn:IntermediateEvent":function(e,t){var n=E("bpmn:Event")(e,t,{strokeWidth:1,fill:Wr(t,s),stroke:Ur(t,c)});return g(e,t.width,t.height,3,{strokeWidth:1,fill:Wr(t,"none"),stroke:Ur(t,c)}),C(t,e),n},"bpmn:IntermediateCatchEvent":S("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":S("bpmn:IntermediateEvent"),"bpmn:Activity":function(e,t,n){return"fillOpacity"in(n=n||{})||(n.fillOpacity=Yr),y(e,t.width,t.height,10,n)},"bpmn:Task":function(e,t){var n={fill:Wr(t,s),stroke:Ur(t,c)},i=E("bpmn:Activity")(e,t,n);return M(e,t,"center-middle"),A(e,t),i},"bpmn:ServiceTask":function(e,t){var n=E("bpmn:Task")(e,t);return _(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{strokeWidth:1,fill:Wr(t,s),stroke:Ur(t,c)}),_(e,i.getScaledPath("TASK_TYPE_SERVICE_FILL",{abspos:{x:17.2,y:18}}),{strokeWidth:0,fill:Wr(t,s)}),_(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{strokeWidth:1,fill:Wr(t,s),stroke:Ur(t,c)}),n},"bpmn:UserTask":function(e,t){var n=E("bpmn:Task")(e,t);return _(e,i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:Wr(t,s),stroke:Ur(t,c)}),_(e,i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:Wr(t,s),stroke:Ur(t,c)}),_(e,i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:Ur(t,c),stroke:Ur(t,c)}),n},"bpmn:ManualTask":function(e,t){var n=E("bpmn:Task")(e,t);return _(e,i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{strokeWidth:.5,fill:Wr(t,s),stroke:Ur(t,c)}),n},"bpmn:SendTask":function(e,t){var n=E("bpmn:Task")(e,t);return _(e,i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{strokeWidth:1,fill:Ur(t,c),stroke:Wr(t,s)}),n},"bpmn:ReceiveTask":function(e,t){var n,r=Gr(t),o=E("bpmn:Task")(e,t);return r.instantiate?(g(e,28,28,4.4,{strokeWidth:1}),n=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):n=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),_(e,n,{strokeWidth:1,fill:Wr(t,s),stroke:Ur(t,c)}),o},"bpmn:ScriptTask":function(e,t){var n=E("bpmn:Task")(e,t);return _(e,i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{strokeWidth:1,stroke:Ur(t,c)}),n},"bpmn:BusinessRuleTask":function(e,t){var n=E("bpmn:Task")(e,t);return Ce(_(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}})),{strokeWidth:1,fill:Wr(t,"#aaaaaa"),stroke:Ur(t,c)}),Ce(_(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}})),{strokeWidth:1,stroke:Ur(t,c)}),n},"bpmn:SubProcess":function(e,t,n){n=G({fill:Wr(t,s),stroke:Ur(t,c)},n);var i=E("bpmn:Activity")(e,t,n),r=Nr(t);return Ir(t)&&Ce(i,{strokeDasharray:"1,2"}),M(e,t,r?"center-top":"center-middle"),r?A(e,t):A(e,t,["SubProcessMarker"]),i},"bpmn:AdHocSubProcess":function(e,t){return E("bpmn:SubProcess")(e,t)},"bpmn:Transaction":function(e,t){var i=E("bpmn:SubProcess")(e,t),r=n.style(["no-fill","no-events"],{stroke:Ur(t,c)});return y(e,t.width,t.height,8,3,r),i},"bpmn:CallActivity":function(e,t){return E("bpmn:SubProcess")(e,t,{strokeWidth:5})},"bpmn:Participant":function(e,t){var n={fillOpacity:Yr,fill:Wr(t,s),stroke:Ur(t,c)},i=E("bpmn:Lane")(e,t,n);Nr(t)?(b(e,[{x:30,y:0},{x:30,y:t.height}],{stroke:Ur(t,c)}),R(e,Gr(t).name,t)):P(e,Gr(t).name,{box:t,align:"center-middle",style:{fill:qr(t,l,c)}});return!!Gr(t).participantMultiplicity&&E("ParticipantMultiplicityMarker")(e,t),i},"bpmn:Lane":function(e,t,n){var i=y(e,t.width,t.height,0,G({fill:Wr(t,s),fillOpacity:.35,stroke:Ur(t,c)},n)),r=Gr(t);"bpmn:Lane"===r.$type&&R(e,r.name,t);return i},"bpmn:InclusiveGateway":function(e,t){var n=E("bpmn:Gateway")(e,t);return g(e,t.width,t.height,.24*t.height,{strokeWidth:2.5,fill:Wr(t,s),stroke:Ur(t,c)}),n},"bpmn:ExclusiveGateway":function(e,t){var n=E("bpmn:Gateway")(e,t),r=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return Sr(t).isMarkerVisible&&_(e,r,{strokeWidth:1,fill:Ur(t,c),stroke:Ur(t,c)}),n},"bpmn:ComplexGateway":function(e,t){var n=E("bpmn:Gateway")(e,t);return _(e,i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{strokeWidth:1,fill:Ur(t,c),stroke:Ur(t,c)}),n},"bpmn:ParallelGateway":function(e,t){var n=E("bpmn:Gateway")(e,t);return _(e,i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{strokeWidth:1,fill:Ur(t,c),stroke:Ur(t,c)}),n},"bpmn:EventBasedGateway":function(e,t){var n=Gr(t),r=E("bpmn:Gateway")(e,t);g(e,t.width,t.height,.2*t.height,{strokeWidth:1,fill:"none",stroke:Ur(t,c)});var o=n.eventGatewayType,a=!!n.instantiate;if("Parallel"===o){var s=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}});Ce(_(e,s),{strokeWidth:1,fill:"none"})}else if("Exclusive"===o){if(!a)Ce(g(e,t.width,t.height,.26*t.height),{strokeWidth:1,fill:"none",stroke:Ur(t,c)});!function(){var n=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:t.width,containerHeight:t.height,position:{mx:.36,my:.44}}),r={strokeWidth:2,fill:Wr(t,"none"),stroke:Ur(t,c)};_(e,n,r)}()}return r},"bpmn:Gateway":function(e,t){var n={fill:Wr(t,s),fillOpacity:Yr,stroke:Ur(t,c)};return function(e,t,n,i){var r=t/2,o=n/2,a=[{x:r,y:0},{x:t,y:o},{x:r,y:n},{x:0,y:o}].map((function(e){return e.x+","+e.y})).join(" ");i=h(i,{stroke:"black",strokeWidth:2,fill:"white"});var s=Le("polygon");return Ce(s,{points:a}),Ce(s,i),we(e,s),s}(e,t.width,t.height,n)},"bpmn:SequenceFlow":function(e,t){var n,i=T(t),r=Wr(t,s),o=Ur(t,c),a=_(e,i,{strokeLinejoin:"round",markerEnd:v("sequenceflow-end",r,o),stroke:Ur(t,c)}),l=Gr(t);return t.source&&(n=t.source.businessObject,l.conditionExpression&&n.$instanceOf("bpmn:Activity")&&Ce(a,{markerStart:v("conditional-flow-marker",r,o)}),n.default&&(n.$instanceOf("bpmn:Gateway")||n.$instanceOf("bpmn:Activity"))&&n.default===l&&Ce(a,{markerStart:v("conditional-default-flow-marker",r,o)})),a},"bpmn:Association":function(e,t,n){var i=Gr(t),r=Wr(t,s),o=Ur(t,c);return n=G({strokeDasharray:"0.5, 5",strokeLinecap:"round",strokeLinejoin:"round",stroke:Ur(t,c)},n||{}),"One"!==i.associationDirection&&"Both"!==i.associationDirection||(n.markerEnd=v("association-end",r,o)),"Both"===i.associationDirection&&(n.markerStart=v("association-start",r,o)),b(e,t.waypoints,n)},"bpmn:DataInputAssociation":function(e,t){var n=Wr(t,s),i=Ur(t,c);return E("bpmn:Association")(e,t,{markerEnd:v("association-end",n,i)})},"bpmn:DataOutputAssociation":function(e,t){var n=Wr(t,s),i=Ur(t,c);return E("bpmn:Association")(e,t,{markerEnd:v("association-end",n,i)})},"bpmn:MessageFlow":function(e,t){var n=Gr(t),r=Sr(t),o=Wr(t,s),a=Ur(t,c),p=_(e,T(t),{markerEnd:v("messageflow-end",o,a),markerStart:v("messageflow-start",o,a),strokeDasharray:"10, 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5px",stroke:Ur(t,c)});if(n.messageRef){var u=p.getPointAtLength(p.getTotalLength()/2),h=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:u.x,y:u.y}}),d={strokeWidth:1};"initiating"===r.messageVisibleKind?(d.fill="white",d.stroke="black"):(d.fill="#888",d.stroke="white");var m=_(e,h,d),f=P(e,n.messageRef.name,{align:"center-top",fitBox:!0,style:{fill:Ur(t,l)}}),g=m.getBBox(),y=f.getBBox();qn(f,u.x-y.width/2,u.y+g.height/2+10,0)}return p},"bpmn:DataObject":function(e,t){var n=_(e,i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:Wr(t,s),fillOpacity:Yr,stroke:Ur(t,c)});return function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}(Gr(t))&&function(e,t){var n=(t.height-18)/t.height,r=i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.33,my:n}});_(e,r,{strokeWidth:2})}(e,t),n},"bpmn:DataObjectReference":S("bpmn:DataObject"),"bpmn:DataInput":function(e,t){var n=i.getRawPath("DATA_ARROW"),r=E("bpmn:DataObject")(e,t);return _(e,n,{strokeWidth:1}),r},"bpmn:DataOutput":function(e,t){var n=i.getRawPath("DATA_ARROW"),r=E("bpmn:DataObject")(e,t);return _(e,n,{strokeWidth:1,fill:"black"}),r},"bpmn:DataStoreReference":function(e,t){return _(e,i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{strokeWidth:2,fill:Wr(t,s),fillOpacity:Yr,stroke:Ur(t,c)})},"bpmn:BoundaryEvent":function(e,t){var n=Gr(t).cancelActivity,i={strokeWidth:1,fill:Wr(t,s),stroke:Ur(t,c)};n||(i.strokeDasharray="6",i.strokeLinecap="round");var r=G({},i,{fillOpacity:1}),o=G({},i,{fill:"none"}),a=E("bpmn:Event")(e,t,r);return g(e,t.width,t.height,3,o),C(t,e),a},"bpmn:Group":function(e,t){return y(e,t.width,t.height,10,{stroke:Ur(t,c),strokeWidth:1,strokeDasharray:"8,3,1,3",fill:"none",pointerEvents:"none"})},label:function(e,t){return function(e,t){var n={width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y};return P(e,Vr(t),{box:n,fitBox:!0,style:G({},o.getExternalStyle(),{fill:qr(t,l,c)})})}(e,t)},"bpmn:TextAnnotation":function(e,t){var n=y(e,t.width,t.height,0,0,{fill:"none",stroke:"none"});return _(e,i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:0}}),{stroke:Ur(t,c)}),P(e,Gr(t).text||"",{box:t,align:"left-top",padding:5,style:{fill:qr(t,l,c)}}),n},ParticipantMultiplicityMarker:function(e,t){x("participant-multiplicity",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:t.width/2/t.width,my:(t.height-15)/t.height}}),{strokeWidth:2,fill:Wr(t,s),stroke:Ur(t,c)})},SubProcessMarker:function(e,t){Kn(y(e,14,14,0,{strokeWidth:1,fill:Wr(t,s),stroke:Ur(t,c)}),t.width/2-7.5,t.height-20),x("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:Wr(t,s),stroke:Ur(t,c)})},ParallelMarker:function(e,t,n){x("parallel",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.parallel)/t.width,my:(t.height-20)/t.height}}),{fill:Wr(t,s),stroke:Ur(t,c)})},SequentialMarker:function(e,t,n){x("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:Wr(t,s),stroke:Ur(t,c)})},CompensationMarker:function(e,t,n){x("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:Wr(t,s),stroke:Ur(t,c)})},LoopMarker:function(e,t,n){x("loop",e,i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.loop)/t.width,my:(t.height-7)/t.height}}),{strokeWidth:1,fill:Wr(t,s),stroke:Ur(t,c),strokeLinecap:"round",strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){x("adhoc",e,i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.adhoc)/t.width,my:(t.height-15)/t.height}}),{strokeWidth:1,fill:Ur(t,c),stroke:Ur(t,c)})}};function A(e,t,n){var i,r=Gr(t),o=n&&-1!==n.indexOf("SubProcessMarker");i=o?{seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{seq:-3,parallel:-6,compensation:-27,loop:0,adhoc:10},w(n,(function(n){E(n)(e,t,i)})),r.isForCompensation&&E("CompensationMarker")(e,t,i),"bpmn:AdHocSubProcess"===r.$type&&E("AdhocMarker")(e,t,i);var a=r.loopCharacteristics,s=a&&a.isSequential;a&&(void 0===s&&E("LoopMarker")(e,t,i),!1===s&&E("ParallelMarker")(e,t,i),!0===s&&E("SequentialMarker")(e,t,i))}this._drawPath=_,this._renderer=E}i(Xr,st),Xr.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],Xr.prototype.canRender=function(e){return xr(e,"bpmn:BaseElement")},Xr.prototype.drawShape=function(e,t){var n=t.type;return this._renderer(n)(e,t)},Xr.prototype.drawConnection=function(e,t){var n=t.type;return this._renderer(n)(e,t)},Xr.prototype.getShapePath=function(e){return xr(e,"bpmn:Event")?(n=(t=e).x+t.width/2,i=t.y+t.height/2,r=t.width/2,ct([["M",n,i],["m",0,-r],["a",r,r,0,1,1,0,2*r],["a",r,r,0,1,1,0,-2*r],["z"]])):xr(e,"bpmn:Activity")?function(e,t){var n=e.x,i=e.y,r=e.width,o=e.height;return ct([["M",n+t,i],["l",r-2*t,0],["a",t,t,0,0,1,t,t],["l",0,o-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-r,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-o],["a",t,t,0,0,1,t,-t],["z"]])}(e,10):xr(e,"bpmn:Gateway")?function(e){var t=e.width/2,n=e.height/2;return ct([["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 ct([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])}(e);var t,n,i,r};var Zr={width:150,height:50};function Qr(e,t){var n;t.textContent=e;try{var i,r=""===e;return t.textContent=r?"dummy":e,i={width:(n=t.getBBox()).width+2*n.x,height:n.height},r&&(i.width=0),i}catch(e){return{width:0,height:0}}}function Jr(e,t,n){for(var i,r=e.shift(),o=r;;){if((i=Qr(o,n)).width=o?i.width:0," "===o||""===o||i.width<Math.round(t)||o.length<2)return eo(e,o,r,i);o=to(o,i.width,t)}}function eo(e,t,n,i){if(t.length<n.length){var r=n.slice(t.length).trim();e.unshift(r)}return{width:i.width,height:i.height,text:t}}function to(e,t,n){var i=Math.max(e.length*(n/t),1),r=function(e,t){var n,i=e.split(/(\s|-|\u00AD)/g),r=[],o=0;if(i.length>1)for(;n=i.shift();){if(!(n.length+o<t)){"-"!==n&&"­"!==n||r.pop();break}r.push(n),o+=n.length}var a=r[r.length-1];return a&&"­"===a&&(r[r.length-1]="-"),r.join("")}(e,i);return r||(r=e.slice(0,Math.max(Math.round(i-1),1))),r}function no(e){this._config=G({},{size:Zr,padding:0,style:{},align:"center-top"},e||{})}no.prototype.createText=function(e,t){return this.layoutText(e,t).element},no.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions},no.prototype.layoutText=function(e,t){var n=G({},this._config.size,t.box),i=G({},this._config.style,t.style),r=function(e){var t=e.split("-");return{horizontal:t[0]||"center",vertical:t[1]||"top"}}(t.align||this._config.align),o=function(e){return d(e)?G({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}(void 0!==t.padding?t.padding:this._config.padding),a=t.fitBox||!1,s=function(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}(i),c=e.split(/\u00AD?\r?\n/),l=[],p=n.width-o.left-o.right,u=Le("text");for(Ce(u,{x:0,y:0}),Ce(u,i),we(function(){var e=document.getElementById("helper-svg");return e||(Ce(e=Le("svg"),{id:"helper-svg",width:0,height:0,style:"visibility: hidden; position: fixed"}),document.body.appendChild(e)),e}(),u);c.length;)l.push(Jr(c,p,u));"middle"===r.vertical&&(o.top=o.bottom=0);var h=S(l,(function(e,t,n){return e+(s||t.height)}),0)+o.top+o.bottom,m=S(l,(function(e,t,n){return t.width>e?t.width:e}),0),f=o.top;"middle"===r.vertical&&(f+=(n.height-h)/2),f-=(s||l[0].height)/4;var v=Le("text");return Ce(v,i),w(l,(function(e){var t;switch(f+=s||e.height,r.horizontal){case"left":t=o.left;break;case"right":t=(a?m:p)-o.right-e.width;break;default:t=Math.max(((a?m:p)-e.width)/2+o.left,0)}var n=Le("tspan");Ce(n,{x:t,y:f}),n.textContent=e.text,we(v,n)})),ze(u),{dimensions:{width:m,height:h},element:v}};function io(e){var t=G({fontFamily:"Arial, sans-serif",fontSize:12,fontWeight:"normal",lineHeight:1.2},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=G({},t,{fontSize:n},e&&e.externalStyle||{}),r=new no({style:t});this.getExternalLabelBounds=function(e,t){var n=r.getDimensions(t,{box:{width:90,height:30,x:e.width/2+e.x,y:e.height/2+e.y},style:i});return{x:Math.round(e.x+e.width/2-n.width/2),y:Math.round(e.y),width:Math.ceil(n.width),height:Math.ceil(n.height)}},this.getTextAnnotationBounds=function(e,n){var i=r.getDimensions(n,{box:e,style:t,align:"left-top",padding:5});return{x:e.x,y:e.y,width:e.width,height:Math.max(30,Math.round(i.height))}},this.createText=function(e,t){return r.createText(e,t||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}io.$inject=["config.textRenderer"];var ro=/\{([^{}]+)\}/g,oo=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;var ao={__init__:["bpmnRenderer"],bpmnRenderer:["type",Xr],textRenderer:["type",io],pathMap:["type",function(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,i,r=this.pathMap[e];t.abspos?(n=t.abspos.x,i=t.abspos.y):(n=t.containerWidth*t.position.mx,i=t.containerHeight*t.position.my);var o,a,s={};if(t.position){for(var c=t.containerHeight/r.height*t.yScaleFactor,l=t.containerWidth/r.width*t.xScaleFactor,p=0;p<r.heightElements.length;p++)s["y"+p]=r.heightElements[p]*c;for(var u=0;u<r.widthElements.length;u++)s["x"+u]=r.widthElements[u]*l}return o=r.d,a={mx:n,my:i,e:s},String(o).replace(ro,(function(e,t){return function(e,t,n){var i=n;return t.replace(oo,(function(e,t,n,r,o){t=t||r,i&&(t in i&&(i=i[t]),"function"==typeof i&&o&&(i=i()))})),i=(null==i||i==n?e:i)+""}(e,t,a)}))}}]};var so={translate:["value",function(e,t){return t=t||{},e.replace(/{([^}]+)}/g,(function(e,n){return t[n]||"{"+n+"}"}))}]},co={width:90,height:20};function lo(e){return xr(e,"bpmn:Event")||xr(e,"bpmn:Gateway")||xr(e,"bpmn:DataStoreReference")||xr(e,"bpmn:DataObjectReference")||xr(e,"bpmn:DataInput")||xr(e,"bpmn:DataOutput")||xr(e,"bpmn:SequenceFlow")||xr(e,"bpmn:MessageFlow")||xr(e,"bpmn:Group")}function po(e){return mo(e.label)}function uo(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],r=function(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)];return{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2}}(e),o=Math.atan((i.y-n.y)/(i.x-n.x)),a=r.x,s=r.y;return Math.abs(o)<Math.PI/2?s-=15:a+=15,{x:a,y:s}}function ho(e){return e.waypoints?uo(e.waypoints):xr(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+co.height/2}:{x:e.x+e.width/2,y:e.y+e.height+co.height/2}}function mo(e){return e&&!!e.labelTarget}function fo(e,t,n){return G({id:e.id,type:e.$type,businessObject:e,di:t},n)}function vo(e,t,n){var i=e.waypoint;return!i||i.length<2?[fn(t),fn(n)]:i.map((function(e){return{x:e.x,y:e.y}}))}function go(e,t,n,i){return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn",{element:vr(n),referenced:vr(t),property:i}))}function yo(e,t,n,i,r,o){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._translate=r,this._textRenderer=o}yo.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate","textRenderer"],yo.prototype.add=function(e,t,n){var i,r,o,a=this._translate;if(xr(t,"bpmndi:BPMNPlane")){var s=xr(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(fo(e,t,s)),this._canvas.addRootElement(i)}else if(xr(t,"bpmndi:BPMNShape")){var c=!Nr(e,t),l=function(e){return xr(e,"bpmn:Group")}(e);r=n&&(n.hidden||n.collapsed);var p=t.bounds;i=this._elementFactory.createShape(fo(e,t,{collapsed:c,hidden:r,x:Math.round(p.x),y:Math.round(p.y),width:Math.round(p.width),height:Math.round(p.height),isFrame:l})),xr(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),xr(e,"bpmn:Lane")&&(o=0),xr(e,"bpmn:DataStoreReference")&&(function(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}(n,fn(p))||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,o)}else{if(!xr(t,"bpmndi:BPMNEdge"))throw new Error(a("unknown di {di} for element {semantic}",{di:vr(t),semantic:vr(e)}));var u=this._getSource(e),h=this._getTarget(e);r=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(fo(e,t,{hidden:r,source:u,target:h,waypoints:vo(t,u,h)})),xr(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),xr(e,"bpmn:SequenceFlow")&&(o=0),this._canvas.addConnection(i,n,o)}return lo(e)&&Vr(i)&&this.addLabel(e,t,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},yo.prototype._attachBoundary=function(e,t){var n=this._translate,i=e.attachedToRef;if(!i)throw new Error(n("missing {semantic}#attachedToRef",{semantic:vr(e)}));var r=this._elementRegistry.get(i.id),o=r&&r.attachers;if(!r)throw go(n,e,i,"attachedToRef");t.host=r,o||(r.attachers=o=[]),-1===o.indexOf(t)&&o.push(t)},yo.prototype.addLabel=function(e,t,n){var i,r,o;return i=function(e,t){var n,i,r,o=e.label;return o&&o.bounds?(r=o.bounds,i={width:Math.max(co.width,r.width),height:r.height},n={x:r.x+r.width/2,y:r.y+r.height/2}):(n=ho(t),i=co),G({x:n.x-i.width/2,y:n.y-i.height/2},i)}(t,n),(r=Vr(n))&&(i=this._textRenderer.getExternalLabelBounds(i,r)),o=this._elementFactory.createLabel(fo(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!Vr(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(o,n.parent)},yo.prototype._getEnd=function(e,t){var n,i,r=e.$type,o=this._translate;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===r||"target"===t&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?go(o,e,i,t+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:vr(e),side:t}))},yo.prototype._getSource=function(e){return this._getEnd(e,"source")},yo.prototype._getTarget=function(e){return this._getEnd(e,"target")},yo.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};var bo={__depends__:[ao,{__depends__:[so],bpmnImporter:["type",yo]}]};function _o(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()}function xo(e){return e.originalEvent||e.srcEvent}function wo(e,t){_o(e),_o(xo(e))}function Eo(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 So(e,t){return(xo(e)||e).button===t}function Co(e){return So(e,0)}function Po(e){var t=xo(e)||e;return!!Co(e)&&(/mac/i.test(navigator.platform)?t.metaKey:t.ctrlKey)}function Mo(e){var t=xo(e)||e;return Co(e)&&t.shiftKey}function Ro(e){return!0}function To(e){return Co(e)||function(e){return So(e,1)}(e)}function ko(e,t,n){var i=this;function r(n,i,r){var o,a;(function(e,t){return!(c[e]||Co)(t)})(n,i)||(r?a=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(a=o,r=t.get(a)),a&&r&&!1===e.fire(n,{element:r,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function a(e){return o[e]}var s={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},c={"element.contextmenu":Ro,"element.mousedown":To,"element.mouseup":To,"element.click":To,"element.dblclick":To};function l(e,t,n,i){var a=o[n]=function(e){r(n,e)};i&&(c[n]=i),a.$delegate=me.bind(e,"svg, .djs-element",t,a)}function p(e,t,n){var i=a(n);i&&me.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,w(s,(function(e,n){p(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,w(s,(function(e,n){l(t,n,e)}))})),e.on(["shape.added","connection.added"],(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.createHit",{element:n,gfx:i})})),e.on(["shape.changed","connection.changed"],500,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",500,(function(e){var t=e.element,n=e.gfx;i.createDefaultHit(t,n)})),e.on("interactionEvents.updateHit",(function(e){var t=e.element,n=e.gfx;i.updateDefaultHit(t,n)}));var u=m("djs-hit djs-hit-stroke"),h=m("djs-hit djs-hit-click-stroke"),d={all:m("djs-hit djs-hit-all"),"click-stroke":h,stroke:u};function m(e,t){return t=G({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function f(e,t){var n=d[t];if(!n)throw new Error("invalid hit type <"+t+">");return Ce(e,n),e}function v(e,t){we(e,t)}this.removeHits=function(e){w(be(".djs-hit",e),ze)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,r=e.isFrame;return i?this.createWaypointsHit(t,i):(n=r?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n=pt(t);return f(n,"stroke"),v(e,n),n},this.createBoxHit=function(e,t,n){n=G({x:0,y:0},n);var i=Le("rect");return f(i,t),Ce(i,n),v(e,i),i},this.updateDefaultHit=function(e,t){var n=ye(".djs-hit",t);if(n)return e.waypoints?function(e,t){Ce(e,{points:lt(t)})}(n,e.waypoints):Ce(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=s[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=a,this.registerEvent=l,this.unregisterEvent=p}ko.$inject=["eventBus","elementRegistry","styles"];var Ao={__init__:["interactionEvents"],interactionEvents:["type",ko]};function zo(e,t,n){this.offset=6;var i=t.cls("djs-outline",["no-fill"]),r=this;function o(e,t){var n=Le("rect");return Ce(n,G({x:10,y:10,width:100,height:100},i)),we(e,n),n}e.on(["shape.added","shape.changed"],500,(function(e){var t=e.element,n=e.gfx,i=ye(".djs-outline",n);i||(i=o(n)),r.updateShapeOutline(i,t)})),e.on(["connection.added","connection.changed"],(function(e){var t=e.element,n=e.gfx,i=ye(".djs-outline",n);i||(i=o(n)),r.updateConnectionOutline(i,t)}))}zo.prototype.updateShapeOutline=function(e,t){Ce(e,{x:-this.offset,y:-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},zo.prototype.updateConnectionOutline=function(e,t){var n=vt(t);Ce(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},zo.$inject=["eventBus","styles","elementRegistry"];var Oo={__init__:["outline"],outline:["type",zo]};function Do(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)}))}Do.$inject=["eventBus","canvas"],Do.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})}},Do.prototype.get=function(){return this._selectedElements},Do.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},Do.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();h(e)||(e=e?[e]:[]);var r=this._canvas,o=r.getRootElement();e=e.filter((function(e){var t=r.findRoot(e);return o===t})),t?w(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 Bo="hover",jo="selected";function No(e,t,n,i){function r(e,n){t.addMarker(e,n)}function o(e,n){t.removeMarker(e,n)}this._multiSelectionBox=null,e.on("element.hover",(function(e){r(e.element,Bo)})),e.on("element.out",(function(e){o(e.element,Bo)})),e.on("selection.changed",(function(e){var t=e.oldSelection,n=e.newSelection;w(t,(function(e){-1===n.indexOf(e)&&function(e){o(e,jo)}(e)})),w(n,(function(e){-1===t.indexOf(e)&&function(e){r(e,jo)}(e)}))}))}function Lo(e,t,n,i){e.on("create.end",500,(function(e){var n=e.context,i=n.canExecute,r=n.elements,o=(n.hints||{}).autoSelect;if(i){if(!1===o)return;h(o)?t.select(o):t.select(r.filter(Io))}})),e.on("connect.end",500,(function(e){var n=e.context,i=n.canExecute,r=n.hover;i&&r&&t.select(r)})),e.on("shape.move.end",500,(function(e){var n=e.previousSelection||[],r=i.get(e.context.shape.id);b(n,(function(e){return r.id===e.id}))||t.select(r)})),e.on("element.click",(function(e){if(Co(e)){var i=e.element;i===n.getRootElement()&&(i=null);var r=t.isSelected(i),o=t.get().length>1,a=Po(e)||Mo(e);if(r&&o)return a?t.deselect(i):t.select(i);r?t.deselect(i):t.select(i,a)}}))}function Io(e){return!e.hidden}No.$inject=["eventBus","canvas","selection","styles"],Lo.$inject=["eventBus","selection","canvas","elementRegistry"];var Fo={__init__:["selectionVisuals","selectionBehavior"],__depends__:[Ao,Oo],selection:["type",Do],selectionVisuals:["type",No],selectionBehavior:["type",Lo]};function Ho(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}Ho.prototype.next=function(){return this._prefix+ ++this._counter};var Vo=new Ho("ov");function $o(e,t,n,i){var r,o;this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=Vo,this._overlayDefaults=G({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(r=n.getContainer(),o=fe('<div class="djs-overlay-container" style="position: absolute; width: 0; height: 0;" />'),r.insertBefore(o,r.firstChild),o),this._init()}function Go(e,t,n){G(e.style,{left:t+"px",top:n+"px"})}function Wo(e,t){e.style.display=!1===t?"none":""}function Uo(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}$o.$inject=["config.overlays","eventBus","canvas","elementRegistry"],$o.prototype.get=function(e){if(v(e)&&(e={id:e}),v(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?x(t.overlays,B({type:e.type})):t.overlays.slice():[]}return e.type?x(this._overlays,B({type:e.type})):e.id?this._overlays[e.id]:null},$o.prototype.add=function(e,t,n){if(d(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=G({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},$o.prototype.remove=function(e){var t=this.get(e)||[];h(t)||(t=[t]);var n=this;w(t,(function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(_e(e.html),_e(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)}}))},$o.prototype.show=function(){Wo(this._overlayRoot)},$o.prototype.hide=function(){Wo(this._overlayRoot,!1)},$o.prototype.clear=function(){this._overlays={},this._overlayContainers=[],ie(this._overlayRoot)},$o.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,r=t.y;if(t.waypoints){var o=vt(t);i=o.x,r=o.y}Go(n,i,r),X(e.html,"data-container-id",t.id)},$o.prototype._updateOverlay=function(e){var t,n,i=e.position,r=e.htmlContainer,o=e.element,a=i.left,s=i.top;void 0!==i.right&&(t=o.waypoints?vt(o).width:o.width,a=-1*i.right+t);void 0!==i.bottom&&(n=o.waypoints?vt(o).height:o.height,s=-1*i.bottom+n);Go(r,a||0,s||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},$o.prototype._createOverlayContainer=function(e){var t=fe('<div class="djs-overlays" style="position: absolute" />');this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},$o.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Uo(this._overlayRoot,n)},$o.prototype._getOverlayContainer=function(e,t){var n=b(this._overlayContainers,(function(t){return t.element===e}));return n||t?n:this._createOverlayContainer(e)},$o.prototype._addOverlay=function(e){var t,n,i=e.id,r=e.element,o=e.html;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),v(o)&&(o=fe(o)),n=this._getOverlayContainer(r),(t=fe('<div class="djs-overlay" data-overlay-id="'+i+'" style="position: absolute">')).appendChild(o),e.type&&te(t).add("djs-overlay-"+e.type),Wo(t,this._canvas.findRoot(r)===this._canvas.getRootElement()),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},$o.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=this._canvas.findRoot(e.element),r=n&&n.minZoom,o=n&&n.maxZoom,a=e.htmlContainer,s=!0;(i!==this._canvas.getRootElement()||n&&(p(r)&&r>t.scale||p(o)&&o<t.scale))&&(s=!1),Wo(a,s),this._updateOverlayScale(e,t)},$o.prototype._updateOverlayScale=function(e,t){var n,i,r,o=e.scale,a=e.htmlContainer,s="";!0!==o&&(!1===o?(n=1,i=1):(n=o.min,i=o.max),p(n)&&t.scale<n&&(r=(1/t.scale||1)*n),p(i)&&t.scale>i&&(r=(1/t.scale||1)*i)),p(r)&&(s="scale("+r+","+r+")"),Uo(a,s)},$o.prototype._updateOverlaysVisibilty=function(e){var t=this;w(this._overlays,(function(n){t._updateOverlayVisibilty(n,e)}))},$o.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;w(t.get({element:n}),(function(e){t.remove(e.id)}));var i=t._getOverlayContainer(n);if(i){_e(i.html);var r=t._overlayContainers.indexOf(i);-1!==r&&t._overlayContainers.splice(r,1)}})),e.on("element.changed",500,(function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(w(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&&te(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)};var qo={__init__:["overlays"],overlays:["type",$o]};function Ko(e,t,n,i){e.on("element.changed",(function(i){var r=i.element;(r.parent||r===t.getRootElement())&&(i.gfx=n.getGraphics(r)),i.gfx&&e.fire(gt(r)+".changed",i)})),e.on("elements.changed",(function(t){var n=t.elements;n.forEach((function(t){e.fire("element.changed",{element:t})})),i.updateContainments(n)})),e.on("shape.changed",(function(e){i.update("shape",e.element,e.gfx)})),e.on("connection.changed",(function(e){i.update("connection",e.element,e.gfx)}))}Ko.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];var Yo={__init__:["changeSupport"],changeSupport:["type",Ko]};function Xo(e){this._eventBus=e}Xo.$inject=["eventBus"],Xo.prototype.on=function(e,t,n,i,r,o){if((f(t)||m(t))&&(o=r,r=i,i=n,n=t,t=null),f(n)&&(o=r,r=i,i=n,n=1e3),d(r)&&(o=r,r=!1),!f(i))throw new Error("handlerFn must be a function");h(e)||(e=[e]);var a=this._eventBus;w(e,(function(e){var s=["commandStack",e,t].filter((function(e){return e})).join(".");a.on(s,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,o):i,o)}))};function Zo(e,t){t.invoke(Xo,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)}))}w(["canExecute","preExecute","preExecuted","execute","executed","postExecute","postExecuted","revert","reverted"],(function(e){Xo.prototype[e]=function(t,n,i,r,o){(f(t)||m(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}})),i(Zo,Xo),Zo.$inject=["canvas","injector"];var Qo={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Zo]},Jo=n((function(t,n){var i;i=e,t.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,n=String(e),i=n.length,r=-1,o="",a=n.charCodeAt(0);++r<i;)0!=(t=n.charCodeAt(r))?o+=t>=1&&t<=31||127==t||0==r&&t>=48&&t<=57||1==r&&t>=48&&t<=57&&45==a?"\\"+t.toString(16)+" ":0==r&&1==i&&45==t||!(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?"\\"+n.charAt(r):n.charAt(r):o+="�";return o};return e.CSS||(e.CSS={}),e.CSS.escape=t,t}(i)})),ea={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};
2
- /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */function ta(e){return(e=""+e)&&e.replace(/[&<>"']/g,(function(e){return ea[e]}))}var na="_plane";function ia(e){return function(e){return e.replace(new RegExp("_plane$"),"")}(e.id)}function ra(e){var t=e.id;return xr(e,"bpmn:SubProcess")?sa(t):t}function oa(e){return sa(e)}function aa(e){return xr(Sr(e),"bpmndi:BPMNPlane")}function sa(e){return e+na}function ca(e,t,n,i){var r=fe('<ul class="bjs-breadcrumbs"></ul>'),o=i.getContainer(),a=te(o);o.appendChild(r);var s=[];function c(e){e&&(s=function(e){for(var t=Er(e),n=[],i=t;i;i=i.$parent)(xr(i,"bpmn:SubProcess")||xr(i,"bpmn:Process"))&&n.push(i);return n.reverse()}(e));var n=s.map((function(e){var n=ta(e.name||e.id),r=fe('<li><span class="bjs-crumb"><a title="'+n+'">'+n+"</a></span></li>"),o=i.findRoot(ra(e))||i.findRoot(e.id);if(!o&&xr(e,"bpmn:Process")){var a=t.find((function(t){var n=Er(t);return n&&n.processRef&&n.processRef===e}));o=i.findRoot(a.id)}return r.addEventListener("click",(function(){i.setRootElement(o)})),r}));r.innerHTML="";var o=n.length>1;a.toggle("bjs-breadcrumbs-shown",o),n.forEach((function(e){r.appendChild(e)}))}e.on("element.changed",(function(e){var t=Er(e.element);b(s,(function(e){return e===t}))&&c()})),e.on("root.set",(function(e){c(e.element)}))}function la(e,t){var n=null,i=new pa;e.on("root.set",(function(e){var r=e.element,o=t.viewbox(),a=i.get(r);if(i.set(n,{x:o.x,y:o.y,zoom:o.scale}),n=r,!xr(r,"bpmn:Collaboration")||a){a=a||{x:0,y:0,zoom:1};var s=(o.x-a.x)*o.scale,c=(o.y-a.y)*o.scale;0===s&&0===c||t.scroll({dx:s,dy:c}),a.zoom!==o.scale&&t.zoom(a.zoom,{x:0,y:0})}})),e.on("diagram.clear",(function(){i.clear(),n=null}))}function pa(){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)}}ca.$inject=["eventBus","elementRegistry","overlays","canvas"],la.$inject=["eventBus","canvas"];var ua=180,ha=160;function da(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 ma(e){return xr(e,"bpmndi:BPMNDiagram")?e:ma(e.$parent)}da.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)}))}},da.prototype.createNewDiagrams=function(e){var t=this,n=[],i=[];e.get("planeElement").forEach((function(t){var r=t.bpmnElement;if(r){var o=r.$parent;xr(r,"bpmn:SubProcess")&&!t.isExpanded&&n.push(r),xr(o,"bpmn:SubProcess")&&o!==e.bpmnElement&&i.push({diElement:t,parent:o})}}));var r=[];return n.forEach((function(e){if(!t._processToDiagramMap[e.id]){var n=t.createDiagram(e);t._processToDiagramMap[e.id]=n,r.push(n)}})),i.forEach((function(e){for(var i=e.diElement,r=e.parent;r&&-1===n.indexOf(r);)r=r.$parent;if(r){var o=t._processToDiagramMap[r.id];t.moveToDiPlane(i,o.plane)}})),r},da.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=dn(e.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}})),mn(t)}(e),i=n.x-ua,r=n.y-ha;t.forEach((function(e){e.waypoint?e.waypoint.forEach((function(e){e.x=e.x-i,e.y=e.y-r})):e.bounds&&(e.bounds.x=e.bounds.x-i,e.bounds.y=e.bounds.y-r)}))},da.prototype.moveToDiPlane=function(e,t){var n=ma(e).plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},da.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},da.$inject=["eventBus","moddle"];var fa=250;function va(e,t,n,i){Xo.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=i;var r=this;this.executed("shape.toggleCollapse",fa,(function(e){var t=e.shape;r.canDrillDown(t)?r.addOverlay(t):r.removeOverlay(t)}),!0),this.reverted("shape.toggleCollapse",fa,(function(e){var t=e.shape;r.canDrillDown(t)?r.addOverlay(t):r.removeOverlay(t)}),!0),this.executed(["shape.create","shape.move","shape.delete"],fa,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;r.canDrillDown(i)&&r.addOverlay(i),r.updateDrilldownOverlay(t),r.updateDrilldownOverlay(n),r.updateDrilldownOverlay(i)}),!0),this.reverted(["shape.create","shape.move","shape.delete"],fa,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;r.canDrillDown(i)&&r.addOverlay(i),r.updateDrilldownOverlay(t),r.updateDrilldownOverlay(n),r.updateDrilldownOverlay(i)}),!0),t.on("import.done",(function(){n.filter((function(e){return r.canDrillDown(e)})).map((function(e){r.addOverlay(e)}))}))}i(va,Xo),va.prototype.updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this.updateOverlayVisibility(n)}},va.prototype.canDrillDown=function(e){var t=this._canvas;return xr(e,"bpmn:SubProcess")&&t.findRoot(ra(e))},va.prototype.updateOverlayVisibility=function(e){var t=this._overlays,n=e.businessObject,i=t.get({element:n.id,type:"drilldown"})[0];if(i){var r=n&&n.flowElements&&n.flowElements.length;te(i.html).toggle("bjs-drilldown-empty",!r)}},va.prototype.addOverlay=function(e){var t=this._canvas,n=this._overlays;n.get({element:e,type:"drilldown"}).length&&this.removeOverlay(e);var i=fe('<button class="bjs-drilldown"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg></button>');i.addEventListener("click",(function(){t.setRootElement(t.findRoot(ra(e)))})),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:i}),this.updateOverlayVisibility(e)},va.prototype.removeOverlay=function(e){this._overlays.remove({element:e,type:"drilldown"})},va.$inject=["canvas","eventBus","elementRegistry","overlays"];var ga={__depends__:[qo,Yo,Qo],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",ca],drilldownCentering:["type",la],drilldownOverlayBehavior:["type",va],subprocessCompatibility:["type",da]};function ya(e){zr.call(this,e)}function ba(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function _a(e,t){return-1!==(e=h(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.keyCode)}function xa(e){return e.shiftKey}i(ya,zr),ya.prototype._modules=[bo,so,Fo,qo,ga],ya.prototype._moddleExtensions={};var wa="keyboard.keydown",Ea="input-handle-modified-keys";function Sa(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()}))}Sa.$inject=["config.keyboard","eventBus"],Sa.prototype._keydownHandler=function(e){this._keyHandler(e,wa)},Sa.prototype._keyupHandler=function(e){this._keyHandler(e,"keyboard.keyup")},Sa.prototype._keyHandler=function(e,t){if(!this._isEventIgnored(e)){var n={keyEvent:e};this._eventBus.fire(t||wa,n)&&e.preventDefault()}},Sa.prototype._isEventIgnored=function(e){return(t=e.target)&&(ae(t,"input, textarea")||"true"===t.contentEditable)&&this._isModifiedKeyIgnored(e);var t},Sa.prototype._isModifiedKeyIgnored=function(e){return!ba(e)||-1===this._getAllowedModifiers(e.target).indexOf(e.key)},Sa.prototype._getAllowedModifiers=function(e){var t=se(e,"[input-handle-modified-keys]",!0);return!t||this._node&&!this._node.contains(t)?[]:t.getAttribute(Ea).split(",")},Sa.prototype.bind=function(e){this.unbind(),this._node=e,ue.bind(e,"keydown",this._keydownHandler,!0),ue.bind(e,"keyup",this._keyupHandler,!0),this._fire("bind")},Sa.prototype.getBinding=function(){return this._node},Sa.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),ue.unbind(e,"keydown",this._keydownHandler,!0),ue.unbind(e,"keyup",this._keyupHandler,!0)),this._node=null},Sa.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},Sa.prototype.addListener=function(e,t,n){f(e)&&(n=t,t=e,e=1e3),this._eventBus.on(n||wa,e,t)},Sa.prototype.removeListener=function(e,t){this._eventBus.off(t||wa,e)},Sa.prototype.hasModifier=function(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},Sa.prototype.isCmd=ba,Sa.prototype.isShift=xa,Sa.prototype.isKey=_a;var Ca=["c","C",67],Pa=["v","V",86],Ma=["y","Y",89],Ra=["z","Z",90];function Ta(e,t){var n=this;e.on("editorActions.init",500,(function(e){var i=e.editorActions;n.registerBindings(t,i)}))}Ta.$inject=["eventBus","keyboard"],Ta.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}n("undo",(function(e){var n=e.keyEvent;if(ba(n)&&!xa(n)&&_a(Ra,n))return t.trigger("undo"),!0})),n("redo",(function(e){var n=e.keyEvent;if(ba(n)&&(_a(Ma,n)||_a(Ra,n)&&xa(n)))return t.trigger("redo"),!0})),n("copy",(function(e){var n=e.keyEvent;if(ba(n)&&_a(Ca,n))return t.trigger("copy"),!0})),n("paste",(function(e){var n=e.keyEvent;if(ba(n)&&_a(Pa,n))return t.trigger("paste"),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(_a(["+","Add","="],n)&&ba(n))return t.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(_a(["-","Subtract"],n)&&ba(n))return t.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(e){var n=e.keyEvent;if(_a("0",n)&&ba(n))return t.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(e){if(_a(["Backspace","Delete","Del"],e.keyEvent))return t.trigger("removeSelection"),!0}))};var ka={__init__:["keyboard","keyboardBindings"],keyboard:["type",Sa],keyboardBindings:["type",Ta]},Aa={moveSpeed:50,moveSpeedAccelerated:200};function za(e,t,n){var i=this;this._config=G({},Aa,e||{}),t.addListener((function(e){var n=e.keyEvent,r=i._config;if(!t.isCmd(n))return;if(t.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],n)){var o,a=t.isShift(n)?r.moveSpeedAccelerated:r.moveSpeed;switch(n.key){case"ArrowLeft":case"Left":o="left";break;case"ArrowUp":case"Up":o="up";break;case"ArrowRight":case"Right":o="right";break;case"ArrowDown":case"Down":o="down"}return i.moveCanvas({speed:a,direction:o}),!0}})),this.moveCanvas=function(e){var t=0,i=0,r=e.speed/Math.min(Math.sqrt(n.viewbox().scale),1);switch(e.direction){case"left":t=r;break;case"up":i=r;break;case"right":t=-r;break;case"down":i=-r}n.scroll({dx:t,dy:i})}}za.$inject=["config.keyboardMove","keyboard","canvas"];var Oa={__depends__:[ka],__init__:["keyboardMove"],keyboardMove:["type",za]},Da=/^djs-cursor-.*$/;function Ba(e){var t=te(document.body);t.removeMatching(Da),e&&t.add("djs-cursor-"+e)}function ja(){Ba(null)}function Na(e,t){function n(){return!1}return t=t||"element.click",e.once(t,5e3,n),function(){e.off(t,n)}}function La(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function Ia(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fa(e,t){var n;function i(i){var r,o=n.start,a=n.button,s=Eo(i),c=Ia(s,o);(!n.dragging&&(r=c,Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))>15)&&(n.dragging=!0,0===a&&Na(e),Ba("grab")),n.dragging)&&(c=Ia(s,n.last||n.start),t.scroll({dx:c.x,dy:c.y}),n.last=s);i.preventDefault()}function r(e){ue.unbind(document,"mousemove",i),ue.unbind(document,"mouseup",r),n=null,ja()}e.on("element.mousedown",500,(function(e){return function(e){if(se(e.target,".djs-draggable"))return;var t=e.button;if(t>=2||e.ctrlKey||e.shiftKey||e.altKey)return;return n={button:t,start:Eo(e)},ue.bind(document,"mousemove",i),ue.bind(document,"mouseup",r),!0}(e.originalEvent)})),this.isActive=function(){return!!n}}Fa.$inject=["eventBus","canvas"];var Ha={__init__:["moveCanvas"],moveCanvas:["type",Fa]};function Va(e){return Math.log(e)/Math.log(10)}function $a(e,t){var n=Va(e.min),i=Va(e.max);return(Math.abs(n)+Math.abs(i))/t}var Ga=Math.sign||function(e){return e>=0?1:-1},Wa={min:.2,max:4};function Ua(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=H(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)}))}Ua.$inject=["config.zoomScroll","eventBus","canvas"],Ua.prototype.scroll=function(e){this._canvas.scroll(e)},Ua.prototype.reset=function(){this._canvas.zoom("fit-viewport")},Ua.prototype.zoom=function(e,t){var n=$a(Wa,20);this._totalDelta+=e,Math.abs(this._totalDelta)>.1&&(this._zoom(e,t,n),this._totalDelta=0)},Ua.prototype._handleWheel=function(e){if(!se(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,i=e.ctrlKey,r=e.shiftKey,o=-1*this._scale;if(o*=i?0===e.deltaMode?.02:.32:0===e.deltaMode?1:16,i){var a=t.getBoundingClientRect(),s={x:e.clientX-a.left,y:e.clientY-a.top};n=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*Ga(e.deltaY)*o,this.zoom(n,s)}else n=r?{dx:o*e.deltaY,dy:0}:{dx:o*e.deltaX,dy:o*e.deltaY},this.scroll(n)}},Ua.prototype.stepZoom=function(e,t){var n=$a(Wa,10);this._zoom(e,t,n)},Ua.prototype._zoom=function(e,t,n){var i=this._canvas,r=e>0?1:-1,o=Va(i.zoom()),a=Math.round(o/n)*n;a+=n*r;var s,c,l=Math.pow(10,a);i.zoom((s=Wa,c=l,Math.max(s.min,Math.min(s.max,c))),t)},Ua.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,i=this._enabled;return void 0===e&&(e=!i),i!==e&&ue[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e,e},Ua.prototype._init=function(e){this.toggle(e)};var qa={__init__:["zoomScroll"],zoomScroll:["type",Ua]};function Ka(e){ya.call(this,e)}i(Ka,ya),Ka.prototype._navigationModules=[Oa,Ha,qa],Ka.prototype._modules=[].concat(ya.prototype._modules,Ka.prototype._navigationModules);
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).BpmnModeler=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})})),t}function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var i=n((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}}));function r(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}var o=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(e,n){if(n||(n=16),void 0===e&&(e=128),e<=0)return"0";for(var i=Math.log(Math.pow(2,e))/Math.log(n),r=2;i===1/0;r*=2)i=Math.log(Math.pow(2,e/r))/Math.log(n)*r;var o=i-Math.floor(i),a="";for(r=0;r<Math.floor(i);r++){a=Math.floor(Math.random()*n).toString(n)+a}if(o){var s=Math.pow(n,o);a=Math.floor(Math.random()*s).toString(n)+a}var c=parseInt(a,n);return c!==1/0&&c>=Math.pow(2,e)?t(e,n):a};t.rack=function(e,n,i){var r=function(r){var a=0;do{if(a++>10){if(!i)throw new Error("too many ID collisions, use more bits");e+=i}var s=t(e,n)}while(Object.hasOwnProperty.call(o,s));return o[s]=r,s},o=r.hats={};return r.get=function(e){return r.hats[e]},r.set=function(e,t){return r.hats[e]=t,r},r.bits=e||128,r.base=n||16,r}}));function a(e){if(!(this instanceof a))return new a(e);e=e||[128,36,1],this._seed=e.length?o.rack(e[0],e[1],e[2]):e}function s(e){return Array.prototype.concat.apply([],e)}a.prototype.next=function(e){return this._seed(e||!0)},a.prototype.nextPrefixed=function(e,t){var n;do{n=e+this.next(!0)}while(this.assigned(n));return this.claim(n,t),n},a.prototype.claim=function(e,t){this._seed.set(e,t||!0)},a.prototype.assigned=function(e){return this._seed.get(e)||!1},a.prototype.unclaim=function(e){delete this._seed.hats[e]},a.prototype.clear=function(){var e,t=this._seed.hats;for(e in t)this.unclaim(e)};var c=Object.prototype.toString,l=Object.prototype.hasOwnProperty;function p(e){return void 0===e}function u(e){return void 0!==e}function h(e){return null==e}function d(e){return"[object Array]"===c.call(e)}function m(e){return"[object Object]"===c.call(e)}function f(e){return"[object Number]"===c.call(e)}function v(e){var t=c.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t||"[object Proxy]"===t}function g(e){return"[object String]"===c.call(e)}function y(e){if(!d(e))throw new Error("must supply array")}function b(e,t){return l.call(e,t)}function _(e,t){var n;return t=L(t),E(e,(function(e,i){if(t(e,i))return n=e,!1})),n}function x(e,t){t=L(t);var n=d(e)?-1:void 0;return E(e,(function(e,i){if(t(e,i))return n=i,!1})),n}function w(e,t){var n=[];return E(e,(function(e,i){t(e,i)&&n.push(e)})),n}function E(e,t){var n;if(!p(e)){var i=d(e)?F:I;for(var r in e)if(b(e,r)&&!1===t(n=e[r],i(r)))return n}}function S(e,t){return p(e)?[]:(y(e),t=L(t),e.filter((function(e,n){return!t(e,n)})))}function C(e,t,n){return E(e,(function(e,i){n=t(n,e,i)})),n}function P(e,t){return!!C(e,(function(e,n,i){return e&&t(n,i)}),!0)}function M(e,t){return!!_(e,t)}function R(e,t){var n=[];return E(e,(function(e,i){n.push(t(e,i))})),n}function A(e){return e&&Object.keys(e)||[]}function k(e){return A(e).length}function D(e){return R(e,(function(e){return e}))}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=N(t),E(e,(function(e){var i=t(e)||"_",r=n[i];r||(r=n[i]=[]),r.push(e)})),n}function z(e){e=N(e);for(var t={},n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];E(i,(function(n){return T(n,e,t)}));var o=R(t,(function(e,t){return e[0]}));return o}var O=z;function B(e,t){t=N(t);var n=[];return E(e,(function(e,i){for(var r=t(e,i),o={d:r,v:e},a=0;a<n.length;a++){if(r<n[a].d)return void n.splice(a,0,o)}n.push(o)})),R(n,(function(e){return e.v}))}function j(e){return function(t){return P(e,(function(e,n){return t[n]===e}))}}function N(e){return v(e)?e:function(t){return t[e]}}function L(e){return v(e)?e:function(t){return t===e}}function I(e){return e}function F(e){return Number(e)}function V(e,t){var n,i,r,o;function a(n){var a=Date.now(),l=n?0:o+t-a;if(l>0)return s(l);e.apply(r,i),c()}function s(e){n=setTimeout(a,e)}function c(){n&&clearTimeout(n),n=o=i=r=void 0}function l(){o=Date.now();for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];i=a,r=this,n||s(t)}return l.flush=function(){n&&a(!0),c()},l.cancel=c,l}function H(e,t){return e.bind(t)}function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(){return(G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function W(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return G.apply(void 0,[e].concat(n))}function U(e,t,n){var i=e;return E(t,(function(e,r){if("number"!=typeof e&&"string"!=typeof e)throw new Error("illegal key type: "+$(e)+". Key should be of type number or string.");if("constructor"===e)throw new Error("illegal key: constructor");if("__proto__"===e)throw new Error("illegal key: __proto__");var o=t[r+1],a=i[e];u(o)&&h(a)&&(a=i[e]=isNaN(+o)?{}:[]),p(o)?p(n)?delete i[e]:i[e]=n:i=a})),e}function q(e,t,n){var i=e;return E(t,(function(e){if(h(i))return i=void 0,!1;i=i[e]})),p(i)?n:i}function K(e,t){var n={},i=Object(e);return E(t,(function(t){t in i&&(n[t]=e[t])})),n}function Y(e,t){var n={};return E(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}var X=Object.freeze({__proto__:null,assign:W,bind:H,debounce:V,ensureArray:y,every:P,filter:w,find:_,findIndex:x,flatten:s,forEach:E,get:q,groupBy:T,has:b,isArray:d,isDefined:u,isFunction:v,isNil:h,isNumber:f,isObject:m,isString:g,isUndefined:p,keys:A,map:R,matchPattern:j,merge:function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.length?(E(i,(function(n){n&&m(n)&&E(n,(function(n,i){if("__proto__"!==i){var r=t[i];m(n)?(m(r)||(r={}),t[i]=e(r,n)):t[i]=n}}))})),t):t},omit:Y,pick:K,reduce:C,set:U,size:k,some:M,sortBy:B,throttle:function(e,t){var n=!1;return function(){n||(e.apply(void 0,arguments),n=!0,setTimeout((function(){n=!1}),t))}},unionBy:O,uniqueBy:z,values:D,without:S}),Z=Object.prototype.toString,Q=Object.prototype.hasOwnProperty;function J(e,t){return Q.call(e,t)}function ee(e,t){var n;if(void 0!==e){var i=function(e){return"[object Array]"===Z.call(e)}(e)?ne:te;for(var r in e)if(J(e,r)&&!1===t(n=e[r],i(r)))return n}}function te(e){return e}function ne(e){return Number(e)}function ie(e){for(var t=e.style,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return ee(i,(function(e){e&&ee(e,(function(e,n){t[n]=e}))})),e}function re(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)}var oe=[].indexOf,ae=function(e,t){if(oe)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1},se=/\s+/,ce=Object.prototype.toString;function le(e){return new pe(e)}function pe(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function ue(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}pe.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~ae(t,e)||t.push(e),this.el.className=t.join(" "),this},pe.prototype.remove=function(e){if("[object RegExp]"==ce.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=ae(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},pe.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},pe.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},pe.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(se);return""===e[0]&&e.shift(),e},pe.prototype.has=pe.prototype.contains=function(e){return this.list?this.list.contains(e):!!~ae(this.array(),e)};var he="undefined"!=typeof Element?Element.prototype:{},de=he.matches||he.matchesSelector||he.webkitMatchesSelector||he.mozMatchesSelector||he.msMatchesSelector||he.oMatchesSelector,me=function(e,t){if(!e||1!==e.nodeType)return!1;if(de)return de.call(e,t);for(var n=e.parentNode.querySelectorAll(t),i=0;i<n.length;i++)if(n[i]==e)return!0;return!1};function fe(e,t,n){for(var i=n?e:e.parentNode;i&&i.nodeType!==document.DOCUMENT_NODE&&i.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(me(i,t))return i;i=i.parentNode}return me(i,t)?i:null}var ve=window.addEventListener?"addEventListener":"attachEvent",ge=window.removeEventListener?"removeEventListener":"detachEvent",ye="addEventListener"!==ve?"on":"",be={bind:function(e,t,n,i){return e[ve](ye+t,n,i||!1),n},unbind:function(e,t,n,i){return e[ge](ye+t,n,i||!1),n}},_e=["focus","blur"];var xe,we={bind:function(e,t,n,i,r){return-1!==_e.indexOf(n)&&(r=!0),be.bind(e,n,(function(n){var r=n.target||n.srcElement;n.delegateTarget=fe(r,t,!0),n.delegateTarget&&i.call(e,n)}),r)},unbind:function(e,t,n,i){return-1!==_e.indexOf(t)&&(i=!0),be.unbind(e,t,n,i)}},Ee=function(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var i=n[1];if("body"==i){return(r=t.createElement("html")).innerHTML=e,r.removeChild(r.lastChild)}var r,o=Ce[i]||Ce._default,a=o[0],s=o[1],c=o[2];(r=t.createElement("div")).innerHTML=s+e+c;for(;a--;)r=r.lastChild;if(r.firstChild==r.lastChild)return r.removeChild(r.firstChild);var l=t.createDocumentFragment();for(;r.firstChild;)l.appendChild(r.removeChild(r.firstChild));return l},Se=!1;"undefined"!=typeof document&&((xe=document.createElement("div")).innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',Se=!xe.getElementsByTagName("link").length,xe=void 0);var Ce={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:Se?[1,"X<div>","</div>"]:[0,"",""]};function Pe(e,t){return(t=t||document).querySelector(e)}function Me(e,t){return(t=t||document).querySelectorAll(e)}function Re(e){e.parentNode&&e.parentNode.removeChild(e)}function Ae(e,t){return t.appendChild(function(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch(e){}return e}(e,t))}function ke(e,t){return Ae(t,e),e}Ce.td=Ce.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],Ce.option=Ce.optgroup=[1,'<select multiple="multiple">',"</select>"],Ce.thead=Ce.tbody=Ce.colgroup=Ce.caption=Ce.tfoot=[1,"<table>","</table>"],Ce.polyline=Ce.ellipse=Ce.polygon=Ce.circle=Ce.text=Ce.line=Ce.path=Ce.rect=Ce.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];var De={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":2,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":2,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Te(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=De[i];r?(2===r&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function ze(e,t,n){if("string"==typeof t){if(void 0===n)return function(e,t){return De[t]?e.style[t]:e.getAttributeNS(null,t)}(e,t);Te(e,t,n)}else!function(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)Te(e,i,t[i])}(e,t);return e}function Oe(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}var Be=/\s+/,je=Object.prototype.toString;function Ne(e){return void 0!==e}function Le(e){return new Ie(e)}function Ie(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function Fe(e){var t=e.parentNode;return t&&t.removeChild(e),e}function Ve(e){for(var t;t=e.firstChild;)Fe(t);return e}function He(e){return e.cloneNode(!0)}Ie.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~Oe(t,e)||t.push(e),Ne(this.el.className.baseVal)?this.el.className.baseVal=t.join(" "):this.el.className=t.join(" "),this},Ie.prototype.remove=function(e){if("[object RegExp]"===je.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=Oe(t,e);return~n&&t.splice(n,1),this.el.className.baseVal=t.join(" "),this},Ie.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},Ie.prototype.toggle=function(e,t){return this.list?(Ne(t)?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(Ne(t)?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},Ie.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(Be);return""===e[0]&&e.shift(),e},Ie.prototype.has=Ie.prototype.contains=function(e){return this.list?this.list.contains(e):!!~Oe(this.array(),e)};var $e="http://www.w3.org/2000/svg",Ge='<svg xmlns="'+$e+'"';function We(e){var t=!1;"<svg"===e.substring(0,4)?-1===e.indexOf($e)&&(e=Ge+e.substring(4)):(e=Ge+">"+e+"</svg>",t=!0);var n=function(e){var t;return(t=new DOMParser).async=!1,t.parseFromString(e,"text/xml")}(e);if(!t)return n;for(var i=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function Ue(e,t){var n;return"<"===e.charAt(0)?(n=We(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS($e,e),t&&ze(n,t),n}var qe=Ue("svg");function Ke(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)e[i]=t[i];return e}function Ye(e){return e?qe.createSVGTransformFromMatrix(e):qe.createSVGTransform()}var Xe=/([&<>]{1})/g,Ze=/([\n\r"]{1})/g,Qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function Je(e,t){return e.replace(t,(function(e,t){return Qe[t]||t}))}function et(e,t){var n,i,r,o,a;switch(e.nodeType){case 3:t.push(Je(e.textContent,Xe));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(r=e.attributes).length;n<i;++n)o=r.item(n),t.push(" ",o.name,'="',Je(o.value,Ze),'"');if(e.hasChildNodes()){for(t.push(">"),n=0,i=(a=e.childNodes).length;n<i;++n)et(a.item(n),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("\x3c!--",Je(e.nodeValue,Xe),"--\x3e");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function tt(e,t){var n=We(t);if(Ve(e),t){(function(e){return"#document-fragment"===e.nodeName})(n)||(n=n.documentElement);for(var i,r=(i=n.childNodes,Array.prototype.slice.call(i)),o=0;o<r.length;o++)Ae(r[o],e)}}function nt(e,t){if(void 0!==t){try{tt(e,t)}catch(e){throw new Error("error parsing SVG: "+e.message)}return e}return function(e){for(var t=e.firstChild,n=[];t;)et(t,n),t=t.nextSibling;return n.join("")}(e)}function it(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function rt(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(it(e,i))}(n,t)),n.consolidate()}var ot=/^class /;function at(e){return"[object Array]"===Object.prototype.toString.call(e)}function st(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ct(){var e=Array.prototype.slice.call(arguments);1===e.length&&at(e[0])&&(e=e[0]);var t=e.pop();return t.$inject=e,t}var lt=/constructor\s*[^(]*\(\s*([^)]*)\)/m,pt=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,ut=/\/\*([^*]*)\*\//m;function ht(e){if("function"!=typeof e)throw new Error('Cannot annotate "'+e+'". Expected a function!');var t=e.toString().match(function(e){return ot.test(e.toString())}(e)?lt:pt);if(!t)return[];var n=t[1]||t[2];return n&&n.split(",").map((function(e){var t=e.match(ut);return(t&&t[1]||e).trim()}))||[]}function dt(e,t){t=t||{get:function(e,t){if(n.push(e),!1===t)return null;throw a('No provider for "'+e+'"!')}};var n=[],i=this._providers=Object.create(t._providers||null),r=this._instances=Object.create(null),o=r.injector=this,a=function(e){var t=n.join(" -> ");return n.length=0,new Error(t?e+" (Resolving: "+t+")":e)};function s(e,o){if(!i[e]&&-1!==e.indexOf(".")){for(var c=e.split("."),l=s(c.shift());c.length;)l=l[c.shift()];return l}if(st(r,e))return r[e];if(st(i,e)){if(-1!==n.indexOf(e))throw n.push(e),a("Cannot resolve circular dependency!");return n.push(e),r[e]=i[e][0](i[e][1]),n.pop(),r[e]}return t.get(e,o)}function c(e,t){if(void 0===t&&(t={}),"function"!=typeof e){if(!at(e))throw new Error('Cannot invoke "'+e+'". Expected a function!');e=ct(e.slice())}return{fn:e,dependencies:(e.$inject||ht(e)).map((function(e){return st(t,e)?t[e]:s(e)}))}}function l(e){var t=c(e),n=t.fn,i=t.dependencies;return new(Function.prototype.bind.apply(n,[null].concat(i)))}function p(e,t,n){var i=c(e,n),r=i.fn,o=i.dependencies;return r.apply(t,o)}function u(e){return ct((function(t){return e.get(t)}))}function h(e,t){if(t&&t.length){var n,r,a,s,c=Object.create(null),l=Object.create(null),p=[],h=[],d=[];for(var m in i)n=i[m],-1!==t.indexOf(m)&&("private"===n[2]?-1===(r=p.indexOf(n[3]))?(s=u(a=n[3].createChild([],t)),p.push(n[3]),h.push(a),d.push(s),c[m]=[s,m,"private",a]):c[m]=[d[r],m,"private",h[r]]:c[m]=[n[2],n[1]],l[m]=!0),"factory"!==n[2]&&"type"!==n[2]||!n[1].$scope||t.forEach((function(e){-1!==n[1].$scope.indexOf(e)&&(c[m]=[n[2],n[1]],l[e]=!0)}));t.forEach((function(e){if(!l[e])throw new Error('No provider for "'+e+'". Cannot use provider from the parent!')})),e.unshift(c)}return new dt(e,o)}var d,m,f={factory:p,type:l,value:function(e){return e}};function v(e,t){var n=e.__init__||[];return function(){n.forEach((function(e){try{"string"==typeof e?t.get(e):t.invoke(e)}catch(e){if("undefined"!=typeof AggregateError)throw new AggregateError([e],"Failed to initialize!");throw new Error("Failed to initialize! "+e.message)}}))}}function g(e){var t=e.__exports__;if(t){var n=e.__modules__,r=Object.keys(e).reduce((function(t,n){return"__exports__"!==n&&"__modules__"!==n&&"__init__"!==n&&"__depends__"!==n&&(t[n]=e[n]),t}),Object.create(null)),a=h((n||[]).concat(r)),s=ct((function(e){return a.get(e)}));t.forEach((function(e){i[e]=[s,e,"private",a]}));var c=(e.__init__||[]).slice();return c.unshift((function(){a.init()})),v(e=Object.assign({},e,{__init__:c}),a)}return Object.keys(e).forEach((function(t){if("__init__"!==t&&"__depends__"!==t)if("private"!==e[t][2]){var n=e[t][0],r=e[t][1];i[t]=[f[n],mt(n,r),n]}else i[t]=e[t]})),v(e,o)}function y(e,t){return-1!==e.indexOf(t)||-1!==(e=(t.__depends__||[]).reduce(y,e)).indexOf(t)?e:e.concat(t)}this.get=s,this.invoke=p,this.instantiate=l,this.createChild=h,this.init=(d=e.reduce(y,[]).map(g),m=!1,function(){m||(m=!0,d.forEach((function(e){return e()})))})}function mt(e,t){return"value"!==e&&at(t)&&(t=ct(t.slice())),t}function ft(e,t){var n=this;t=t||1e3,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,r=t.element,o=t.gfx,a=t.attrs;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r,a):n.drawConnection(o,r,a)})),e.on(["render.getShapePath","render.getConnectionPath"],t,(function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)}))}function vt(e){return e.join(",").replace(/,?([A-z]),?/g,"$1")}function gt(e){for(var t,n="",i=0;t=e[i];i++)n+=t.x+","+t.y+" ";return n}function yt(e,t){var n=Ue("polyline");return ze(n,{points:gt(e)}),t&&ze(n,t),n}function bt(e){return w(e,(function(t){return!_(e,(function(e){return e!==t&&_t(t,e)}))}))}function _t(e,t){if(t){if(e===t)return t;if(e.parent)return _t(e.parent,t)}}function xt(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function wt(e,t,n){n=n||0,d(e)||(e=[e]),E(e,(function(e,i){var r=t(e,i,n);d(r)&&r.length&&wt(r,t,n+1)}))}function Et(e,t){return function(e,t,n){var i=[],r=[];return wt(e,(function(e,o,a){xt(i,e,t);var s=e.children;if((-1===n||a<n)&&s&&xt(r,s,t))return s})),i}(e,!t,-1)}function St(e,t){var n,i,r,o;return t=!!t,d(e)||(e=[e]),E(e,(function(e){var a=e;e.waypoints&&!t&&(a=St(e.waypoints,!0));var s=a.x,c=a.y,l=a.height||0,p=a.width||0;(s<n||void 0===n)&&(n=s),(c<i||void 0===i)&&(i=c),(s+p>r||void 0===r)&&(r=s+p),(c+l>o||void 0===o)&&(o=c+l)})),{x:n,y:i,height:o-i,width:r-n}}function Ct(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function Pt(e){return!(!e||!e.isFrame)}function Mt(e,t){return W({},e||{},t||{})}ft.prototype.canRender=function(){},ft.prototype.drawShape=function(){},ft.prototype.drawConnection=function(){},ft.prototype.getShapePath=function(){},ft.prototype.getConnectionPath=function(){};function Rt(e,t){ft.call(this,e,1),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}r(Rt,ft),Rt.prototype.canRender=function(){return!0},Rt.prototype.drawShape=function(e,t,n){var i=Ue("rect");return ze(i,{x:0,y:0,width:t.width||0,height:t.height||0}),Pt(t)?ze(i,W({},this.FRAME_STYLE,n||{})):ze(i,W({},this.SHAPE_STYLE,n||{})),ke(e,i),i},Rt.prototype.drawConnection=function(e,t,n){var i=yt(t.waypoints,W({},this.CONNECTION_STYLE,n||{}));return ke(e,i),i},Rt.prototype.getShapePath=function(e){var t=e.x,n=e.y,i=e.width;return vt([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])},Rt.prototype.getConnectionPath=function(e){var t,n,i=e.waypoints,r=[];for(t=0;n=i[t];t++)n=n.original||n,r.push([0===t?"M":"L",n.x,n.y]);return vt(r)},Rt.$inject=["eventBus","styles"];var At={__init__:["defaultRenderer"],defaultRenderer:["type",Rt],styles:["type",function(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(e,t,n){return W(this.style(t,n),{class:e})},this.style=function(t,n){d(t)||n||(n=t,t=[]);var i=C(t,(function(t,n){return W(t,e[n]||{})}),{});return n?W(i,n):i},this.computeStyle=function(e,n,i){return d(n)||(i=n,n=[]),t.style(n||[],W({},i,e||{}))}}]};function kt(e,t){if(!e||!t)return-1;var n=e.indexOf(t);return-1!==n&&e.splice(n,1),n}function Dt(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 Tt(e,t){return e&&t?e.indexOf(t):-1}function zt(e,t){return e&&t?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):-1}function Ot(e,t,n,i){if(void 0===i&&(i=5),!e||!t||!n)return!1;var r=(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x),o=zt(e,t);return Math.abs(r/o)<=i}function Bt(e,t){var n;return function(e,t){var n;n=d(e)?e:[e,t];var i=n.slice().shift();return P(n,(function(e){return Math.abs(i.y-e.y)<=2}))}(n=d(e)?e:[e,t])?"h":!!function(e,t){var n;n=d(e)?e:[e,t];var i=n.slice().shift();return P(n,(function(e){return Math.abs(i.x-e.x)<=2}))}(n)&&"v"}function jt(e,t,n){return n=n||0,e.x>t.x-n&&e.y>t.y-n&&e.x<t.x+t.width+n&&e.y<t.y+t.height+n}function Nt(e,t){return{x:Math.round(e.x+(t.x-e.x)/2),y:Math.round(e.y+(t.y-e.y)/2)}}var Lt=/,?([a-z]),?/gi,It=parseFloat,Ft=Math,Vt=Ft.PI,Ht=Ft.min,$t=Ft.max,Gt=Ft.pow,Wt=Ft.abs,Ut=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,qt=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi,Kt=Array.isArray||function(e){return e instanceof Array};function Yt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Xt(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)Yt(e,n)&&(t[n]=Xt(e[n]));return t}function Zt(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}function Qt(e){var t=Qt.ps=Qt.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout((function(){for(var n in t)Yt(t,n)&&n!=e&&(t[n].sleep--,!t[n].sleep&&delete t[n])})),t[e]}function Jt(e,t,n,i){return 1===arguments.length&&(t=e.y,n=e.width,i=e.height,e=e.x),{x:e,y:t,width:n,height:i,x2:e+n,y2:t+i}}function en(){return this.join(",").replace(Lt,"$1")}function tn(e){var t=Xt(e);return t.toString=en,t}function nn(e,t,n,i,r,o,a,s,c){var l=1-c,p=Gt(l,3),u=Gt(l,2),h=c*c*c,d=p*t+3*u*c*i+3*l*c*c*o+h*s;return{x:ln(p*e+3*u*c*n+3*l*c*c*r+h*a),y:ln(d)}}function rn(e){var t=vn.apply(null,e);return Jt(t.x0,t.y0,t.x1-t.x0,t.y1-t.y0)}function on(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function an(e,t,n,i,r){return e*(e*(-3*t+9*n-9*i+3*r)+6*t-12*n+6*i)-3*t+3*n}function sn(e,t,n,i,r,o,a,s,c){null==c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,d=0;d<12;d++){var m=l*p[d]+l,f=an(m,e,n,r,a),v=an(m,t,i,o,s),g=f*f+v*v;h+=u[d]*Ft.sqrt(g)}return l*h}function cn(e,t,n,i,r,o,a,s){if(!($t(e,n)<Ht(r,a)||Ht(e,n)>$t(r,a)||$t(t,i)<Ht(o,s)||Ht(t,i)>$t(o,s))){var c=(e*i-t*n)*(o-s)-(t-i)*(r*s-o*a),l=(e-n)*(o-s)-(t-i)*(r-a);if(l){var p=ln(((e*i-t*n)*(r-a)-(e-n)*(r*s-o*a))/l),u=ln(c/l),h=+p.toFixed(2),d=+u.toFixed(2);if(!(h<+Ht(e,n).toFixed(2)||h>+$t(e,n).toFixed(2)||h<+Ht(r,a).toFixed(2)||h>+$t(r,a).toFixed(2)||d<+Ht(t,i).toFixed(2)||d>+$t(t,i).toFixed(2)||d<+Ht(o,s).toFixed(2)||d>+$t(o,s).toFixed(2)))return{x:p,y:u}}}}function ln(e){return Math.round(1e11*e)/1e11}function pn(e,t,n){if(!function(e,t){return e=Jt(e),on(t=Jt(t),e.x,e.y)||on(t,e.x2,e.y)||on(t,e.x,e.y2)||on(t,e.x2,e.y2)||on(e,t.x,t.y)||on(e,t.x2,t.y)||on(e,t.x,t.y2)||on(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}(rn(e),rn(t)))return n?0:[];for(var i=sn.apply(0,e),r=sn.apply(0,t),o=hn(e)?1:~~(i/5)||1,a=hn(t)?1:~~(r/5)||1,s=[],c=[],l={},p=n?0:[],u=0;u<o+1;u++){var h=nn.apply(0,e.concat(u/o));s.push({x:h.x,y:h.y,t:u/o})}for(u=0;u<a+1;u++)h=nn.apply(0,t.concat(u/a)),c.push({x:h.x,y:h.y,t:u/a});for(u=0;u<o;u++)for(var d=0;d<a;d++){var m,f=s[u],v=s[u+1],g=c[d],y=c[d+1],b=Wt(v.x-f.x)<.01?"y":"x",_=Wt(y.x-g.x)<.01?"y":"x",x=cn(f.x,f.y,v.x,v.y,g.x,g.y,y.x,y.y);if(x){if(l[m=x.x.toFixed(9)+"#"+x.y.toFixed(9)])continue;l[m]=!0;var w=f.t+Wt((x[b]-f[b])/(v[b]-f[b]))*(v.t-f.t),E=g.t+Wt((x[_]-g[_])/(y[_]-g[_]))*(y.t-g.t);w>=0&&w<=1&&E>=0&&E<=1&&(n?p++:p.push({x:x.x,y:x.y,t1:w,t2:E}))}}return p}function un(e){var t=Qt(e);if(t.abs)return tn(t.abs);if(Kt(e)&&Kt(e&&e[0])||(e=function(e){if(!e)return null;var t=Qt(e);if(t.arr)return Xt(t.arr);var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[];return Kt(e)&&Kt(e[0])&&(i=Xt(e)),i.length||String(e).replace(Ut,(function(e,t,r){var o=[],a=t.toLowerCase();for(r.replace(qt,(function(e,t){t&&o.push(+t)})),"m"==a&&o.length>2&&(i.push([t].concat(o.splice(0,2))),a="l",t="m"==t?"l":"L");o.length>=n[a]&&(i.push([t].concat(o.splice(0,n[a]))),n[a]););})),i.toString=Qt.toString,t.arr=Xt(i),i}(e)),!e||!e.length)return[["M",0,0]];var n,i=[],r=0,o=0,a=0,s=0,c=0;"M"==e[0][0]&&(a=r=+e[0][1],s=o=+e[0][2],c++,i[0]=["M",r,o]);for(var l,p,u=c,h=e.length;u<h;u++){if(i.push(l=[]),(n=(p=e[u])[0])!=n.toUpperCase())switch(l[0]=n.toUpperCase(),l[0]){case"A":l[1]=p[1],l[2]=p[2],l[3]=p[3],l[4]=p[4],l[5]=p[5],l[6]=+p[6]+r,l[7]=+p[7]+o;break;case"V":l[1]=+p[1]+o;break;case"H":l[1]=+p[1]+r;break;case"M":a=+p[1]+r,s=+p[2]+o;default:for(var d=1,m=p.length;d<m;d++)l[d]=+p[d]+(d%2?r:o)}else for(var f=0,v=p.length;f<v;f++)l[f]=p[f];switch(n=n.toUpperCase(),l[0]){case"Z":r=+a,o=+s;break;case"H":r=l[1];break;case"V":o=l[1];break;case"M":a=l[l.length-2],s=l[l.length-1];default:r=l[l.length-2],o=l[l.length-1]}}return i.toString=en,t.abs=tn(i),i}function hn(e){return e[0]===e[2]&&e[1]===e[3]&&e[4]===e[6]&&e[5]===e[7]}function dn(e,t,n,i){return[e,t,n,i,n,i]}function mn(e,t,n,i,r,o){var a=1/3,s=2/3;return[a*e+s*n,a*t+s*i,a*r+s*n,a*o+s*i,r,o]}function fn(e,t,n,i,r,o,a,s,c,l){var p,u=120*Vt/180,h=Vt/180*(+r||0),d=[],m=function(e){return function t(){var n=Array.prototype.slice.call(arguments,0),i=n.join("␀"),r=t.cache=t.cache||{},o=t.count=t.count||[];return Yt(r,i)?(Zt(o,i),r[i]):(o.length>=1e3&&delete r[o.shift()],o.push(i),r[i]=e.apply(0,n),r[i])}}((function(e,t,n){return{x:e*Ft.cos(n)-t*Ft.sin(n),y:e*Ft.sin(n)+t*Ft.cos(n)}}));if(l)E=l[0],S=l[1],x=l[2],w=l[3];else{e=(p=m(e,t,-h)).x,t=p.y;var f=(e-(s=(p=m(s,c,-h)).x))/2,v=(t-(c=p.y))/2,g=f*f/(n*n)+v*v/(i*i);g>1&&(n*=g=Ft.sqrt(g),i*=g);var y=n*n,b=i*i,_=(o==a?-1:1)*Ft.sqrt(Wt((y*b-y*v*v-b*f*f)/(y*v*v+b*f*f))),x=_*n*v/i+(e+s)/2,w=_*-i*f/n+(t+c)/2,E=Ft.asin(((t-w)/i).toFixed(9)),S=Ft.asin(((c-w)/i).toFixed(9));(E=e<x?Vt-E:E)<0&&(E=2*Vt+E),(S=s<x?Vt-S:S)<0&&(S=2*Vt+S),a&&E>S&&(E-=2*Vt),!a&&S>E&&(S-=2*Vt)}var C=S-E;if(Wt(C)>u){var P=S,M=s,R=c;S=E+u*(a&&S>E?1:-1),d=fn(s=x+n*Ft.cos(S),c=w+i*Ft.sin(S),n,i,r,0,a,M,R,[S,P,x,w])}C=S-E;var A=Ft.cos(E),k=Ft.sin(E),D=Ft.cos(S),T=Ft.sin(S),z=Ft.tan(C/4),O=4/3*n*z,B=4/3*i*z,j=[e,t],N=[e+O*k,t-B*A],L=[s+O*T,c-B*D],I=[s,c];if(N[0]=2*j[0]-N[0],N[1]=2*j[1]-N[1],l)return[N,L,I].concat(d);for(var F=[],V=0,H=(d=[N,L,I].concat(d).join().split(",")).length;V<H;V++)F[V]=V%2?m(d[V-1],d[V],h).y:m(d[V],d[V+1],h).x;return F}function vn(e,t,n,i,r,o,a,s){for(var c,l,p,u,h,d,m,f,v=[],g=[[],[]],y=0;y<2;++y)if(0==y?(l=6*e-12*n+6*r,c=-3*e+9*n-9*r+3*a,p=3*n-3*e):(l=6*t-12*i+6*o,c=-3*t+9*i-9*o+3*s,p=3*i-3*t),Wt(c)<1e-12){if(Wt(l)<1e-12)continue;0<(u=-p/l)&&u<1&&v.push(u)}else m=l*l-4*p*c,f=Ft.sqrt(m),m<0||(0<(h=(-l+f)/(2*c))&&h<1&&v.push(h),0<(d=(-l-f)/(2*c))&&d<1&&v.push(d));for(var b,_=v.length,x=_;_--;)b=1-(u=v[_]),g[0][_]=b*b*b*e+3*b*b*u*n+3*b*u*u*r+u*u*u*a,g[1][_]=b*b*b*t+3*b*b*u*i+3*b*u*u*o+u*u*u*s;return g[0][x]=e,g[1][x]=t,g[0][x+1]=a,g[1][x+1]=s,g[0].length=g[1].length=x+2,{x0:Ht.apply(0,g[0]),y0:Ht.apply(0,g[1]),x1:$t.apply(0,g[0]),y1:$t.apply(0,g[1])}}function gn(e){var t=Qt(e);if(t.curve)return tn(t.curve);for(var n=un(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},r=function(e,t,n){var i,r;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"].concat(fn.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"==n||"S"==n?(i=2*t.x-t.bx,r=2*t.y-t.by):(i=t.x,r=t.y),e=["C",i,r].concat(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"].concat(mn(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"].concat(mn(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(dn(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(dn(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(dn(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(dn(t.x,t.y,t.X,t.Y))}return e},o=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"].concat(i.splice(0,6)));e.splice(t,1),p=n.length}},a=[],s="",c="",l=0,p=n.length;l<p;l++){n[l]&&(s=n[l][0]),"C"!=s&&(a[l]=s,l&&(c=a[l-1])),n[l]=r(n[l],i,c),"A"!=a[l]&&"C"==s&&(a[l]="C"),o(n,l);var u=n[l],h=u.length;i.x=u[h-2],i.y=u[h-1],i.bx=It(u[h-4])||i.x,i.by=It(u[h-3])||i.y}return t.curve=tn(n),n}var yn=function(e,t,n){e=gn(e),t=gn(t);for(var i,r,o,a,s,c,l,p,u,h,d=n?0:[],m=0,f=e.length;m<f;m++){var v=e[m];if("M"==v[0])i=s=v[1],r=c=v[2];else{"C"==v[0]?(u=[i,r].concat(v.slice(1)),i=u[6],r=u[7]):(u=[i,r,i,r,s,c,s,c],i=s,r=c);for(var g=0,y=t.length;g<y;g++){var b=t[g];if("M"==b[0])o=l=b[1],a=p=b[2];else{"C"==b[0]?(h=[o,a].concat(b.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,l,p,l,p],o=l,a=p);var _=pn(u,h,n);if(n)d+=_;else{for(var x=0,w=_.length;x<w;x++)_[x].segment1=m,_[x].segment2=g,_[x].bez1=u,_[x].bez2=h;d=d.concat(_)}}}}}return d};function bn(e){return{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}}function _n(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function xn(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function wn(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function En(e){for(var t=e.waypoints,n=t.reduce((function(e,n,i){var r=t[i-1];if(r){var o=e[e.length-1],a=o&&o.endLength||0,s=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}(r,n);e.push({start:r,end:n,startLength:a,endLength:a+s,length:s})}return e}),[]),i=n.reduce((function(e,t){return e+t.length}),0)/2,r=0,o=n[r];o.endLength<i;)o=n[++r];var a=(i-o.startLength)/o.length;return{x:o.start.x+(o.end.x-o.start.x)*a,y:o.start.y+(o.end.y-o.start.y)*a}}function Sn(e){return function(e){return!!e.waypoints}(e)?En(e):_n({x:(t=e).x+(t.width||0)/2,y:t.y+(t.height||0)/2});var t}function Cn(e,t,n){m(n=n||0)||(n={x:n,y:n});var i=xn(e),r=xn(t),o=i.bottom+n.y<=r.top,a=i.left-n.x>=r.right,s=i.top-n.y>=r.bottom,c=o?"top":s?"bottom":null,l=i.right+n.x<=r.left?"left":a?"right":null;return l&&c?c+"-"+l:l||c||"intersect"}function Pn(e,t,n){var i=function(e,t){return yn(e,t)}(e,t);return 1===i.length||2===i.length&&zt(i[0],i[1])<1?_n(i[0]):i.length>1?_n((i=B(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 Mn(e,t){return Math.round(e*t)/t}function Rn(e){return f(e)?e+"px":e}function An(e,t,n){var i=Ue("g");Le(i).add(t);var r=void 0!==n?n:e.childNodes.length-1;return e.insertBefore(i,e.childNodes[r]||null),i}var kn={shape:["x","y","width","height"],connection:["waypoints"]};function Dn(e,t,n,i){this._eventBus=t,this._elementRegistry=i,this._graphicsFactory=n,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._init(e||{})}function Tn(e,t){var n="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",n)}Dn.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],Dn.prototype._init=function(e){var t=this._eventBus,n=this._container=function(e){var t=(e=W({},{width:"100%",height:"100%"},e)).container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container"),ie(n,{position:"relative",overflow:"hidden",width:Rn(e.width),height:Rn(e.height)}),t.appendChild(n),n}(e),i=this._svg=Ue("svg");ze(i,{width:"100%",height:"100%"}),ke(n,i);var r=this._viewport=An(i,"viewport");!1!==e.deferUpdate&&(this._viewboxChanged=V(H(this._viewboxChanged,this),300)),t.on("diagram.init",(function(){t.fire("canvas.init",{svg:i,viewport:r})}),this),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],(function(){delete this._cachedViewbox}),this),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},Dn.prototype._destroy=function(e){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});var t=this._container.parentNode;t&&t.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},Dn.prototype._clear=function(){var e=this;this._elementRegistry.getAll().forEach((function(t){var n=Ct(t);"root"===n?e.removeRootElement(t):e._removeElement(t,n)})),this._planes=[],this._rootElement=null,delete this._cachedViewbox},Dn.prototype.getDefaultLayer=function(){return this.getLayer("base",0)},Dn.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");var n=this._layers[e];if(n||(n=this._layers[e]=this._createLayer(e,t)),void 0!==t&&n.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return n.group},Dn.prototype._getChildIndex=function(e){return C(this._layers,(function(t,n){return n.visible&&e>=n.index&&t++,t}),0)},Dn.prototype._createLayer=function(e,t){void 0===t&&(t=1);var n=this._getChildIndex(t);return{group:An(this._viewport,"layer-"+e,n),index:t,visible:!0}},Dn.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");var t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");var n=this._viewport,i=t.group,r=t.index;if(t.visible)return i;var o=this._getChildIndex(r);return n.insertBefore(i,n.childNodes[o]||null),t.visible=!0,i},Dn.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");var t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");var n=t.group;return t.visible?(Fe(n),t.visible=!1,n):n},Dn.prototype._removeLayer=function(e){var t=this._layers[e];t&&(delete this._layers[e],Fe(t.group))},Dn.prototype.getActiveLayer=function(){var e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},Dn.prototype.findRoot=function(e){if("string"==typeof e&&(e=this._elementRegistry.get(e)),e)return(this._findPlaneForRoot(function(e){for(;e.parent;)e=e.parent;return e}(e))||{}).rootElement},Dn.prototype.getRootElements=function(){return this._planes.map((function(e){return e.rootElement}))},Dn.prototype._findPlaneForRoot=function(e){return _(this._planes,(function(t){return t.rootElement===e}))},Dn.prototype.getContainer=function(){return this._container},Dn.prototype._updateMarker=function(e,t,n){var i;e.id||(e=this._elementRegistry.get(e)),(i=this._elementRegistry._elements[e.id])&&(E([i.gfx,i.secondaryGfx],(function(e){e&&(n?Le(e).add(t):Le(e).remove(t))})),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:t,add:!!n}))},Dn.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},Dn.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},Dn.prototype.hasMarker=function(e,t){return e.id||(e=this._elementRegistry.get(e)),Le(this.getGraphics(e)).has(t)},Dn.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},Dn.prototype.getRootElement=function(){var e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},Dn.prototype.addRootElement=function(e){var t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});var n=e.layer="root-"+t;this._ensureValid("root",e);var i=this.getLayer(n,0);return this.hideLayer(n),this._addRoot(e,i),this._planes.push({rootElement:e,layer:i}),e},Dn.prototype.removeRootElement=function(e){if("string"==typeof e&&(e=this._elementRegistry.get(e)),this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter((function(t){return t.rootElement!==e})),this._rootElement===e&&(this._rootElement=null),e},Dn.prototype.setRootElement=function(e,t){if(u(t))throw new Error("override not supported");if(e!==this._rootElement){if(!e)throw new Error("rootElement required");return this._findPlaneForRoot(e)||(e=this.addRootElement(e)),this._setRoot(e),e}},Dn.prototype._removeRoot=function(e){var t=this._elementRegistry,n=this._eventBus;n.fire("root.remove",{element:e}),n.fire("root.removed",{element:e}),t.remove(e)},Dn.prototype._addRoot=function(e,t){var n=this._elementRegistry,i=this._eventBus;i.fire("root.add",{element:e}),n.add(e,t),i.fire("root.added",{element:e,gfx:t})},Dn.prototype._setRoot=function(e,t){var n=this._rootElement;n&&(this._elementRegistry.updateGraphics(n,null,!0),this.hideLayer(n.layer)),e&&(t||(t=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},Dn.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");var n=kn[e];if(!P(n,(function(e){return void 0!==t[e]})))throw new Error("must supply { "+n.join(", ")+" } with "+e)},Dn.prototype._setParent=function(e,t,n){Dt(t.children,e,n),e.parent=t},Dn.prototype._addElement=function(e,t,n,i){n=n||this.getRootElement();var r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,i);var a=o.create(e,t,i);return this._elementRegistry.add(t,a),o.update(e,t,a),r.fire(e+".added",{element:t,gfx:a}),t},Dn.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)},Dn.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)},Dn.prototype._removeElement=function(e,t){var n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=n.get(e.id||e))return r.fire(t+".remove",{element:e}),i.remove(e),kt(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),n.remove(e),e},Dn.prototype.removeShape=function(e){return this._removeElement(e,"shape")},Dn.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},Dn.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},Dn.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},Dn.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},Dn.prototype.viewbox=function(e){if(void 0===e&&this._cachedViewbox)return this._cachedViewbox;var t,n,i,r,o,a,s,c=this._viewport,l=this.getSize();return e?(this._changeViewbox((function(){o=Math.min(l.width/e.width,l.height/e.height);var t=this._svg.createSVGMatrix().scale(o).translate(-e.x,-e.y);rt(c,t)})),e):(t=(i=this._rootElement?this.getActiveLayer():null)&&i.getBBox()||{},n=(r=rt(c))?r.matrix:function(e,t,n,i,r,o){var a=qe.createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return Ke(a,e);case 6:return Ke(a,{a:e,b:t,c:n,d:i,e:r,f:o})}}(),o=Mn(n.a,1e3),a=Mn(-n.e||0,1e3),s=Mn(-n.f||0,1e3),e=this._cachedViewbox={x:a?a/o:0,y:s?s/o:0,width:l.width/o,height:l.height/o,scale:o,inner:{width:t.width||0,height:t.height||0,x:t.x||0,y:t.y||0},outer:l})},Dn.prototype.scroll=function(e){var t=this._viewport,n=t.getCTM();return e&&this._changeViewbox((function(){e=W({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),Tn(t,n)})),{x:n.e,y:n.f}},Dn.prototype.scrollToElement=function(e,t){var n=100;"string"==typeof e&&(e=this._elementRegistry.get(e));var i=this.findRoot(e);i!==this.getRootElement()&&this.setRootElement(i),t||(t={}),"number"==typeof t&&(n=t),t={top:t.top||n,right:t.right||n,bottom:t.bottom||n,left:t.left||n};var r,o,a=St(e),s=xn(a),c=this.viewbox(),l=this.zoom();c.y+=t.top/l,c.x+=t.left/l,c.width-=(t.right+t.left)/l,c.height-=(t.bottom+t.top)/l;var p=xn(c);if(a.width<c.width&&a.height<c.height){var u=Math.max(0,s.right-p.right),h=Math.min(0,s.left-p.left),d=Math.max(0,s.bottom-p.bottom),m=Math.min(0,s.top-p.top);r=u||h,o=d||m}else r=a.x-c.x,o=a.y-c.y;this.scroll({dx:-r*l,dy:-o*l})},Dn.prototype.zoom=function(e,t){return e?"fit-viewport"===e?this._fitViewport(t):(this._changeViewbox((function(){"object"!=typeof t&&(n=this.viewbox().outer,t={x:n.width/2,y:n.height/2}),i=this._setZoom(e,t)})),Mn(i.a,1e3)):this.viewbox(e).scale;var n,i},Dn.prototype._fitViewport=function(e){var t,n,i=this.viewbox(),r=i.outer,o=i.inner;return o.x>=0&&o.y>=0&&o.x+o.width<=r.width&&o.y+o.height<=r.height&&!e?n={x:0,y:0,width:Math.max(o.width+o.x,r.width),height:Math.max(o.height+o.y,r.height)}:(t=Math.min(1,r.width/o.width,r.height/o.height),n={x:o.x+(e?o.width/2-r.width/t/2:0),y:o.y+(e?o.height/2-r.height/t/2:0),width:r.width/t,height:r.height/t}),this.viewbox(n),this.viewbox(!1).scale},Dn.prototype._setZoom=function(e,t){var n,i,r,o,a=this._svg,s=this._viewport,c=a.createSVGMatrix(),l=a.createSVGPoint(),p=(i=s.getCTM()).a;return t?(n=W(l,t).matrixTransform(i.inverse()),r=c.translate(n.x,n.y).scale(1/p*e).translate(-n.x,-n.y),o=i.multiply(r)):o=c.scale(e),Tn(this._viewport,o),o},Dn.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},Dn.prototype.getAbsoluteBBox=function(e){var t,n=this.viewbox();e.waypoints?t=this.getGraphics(e).getBBox():t=e;return{x:t.x*n.scale-n.x*n.scale,y:t.y*n.scale-n.y*n.scale,width:t.width*n.scale,height:t.height*n.scale}},Dn.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var zn="data-element-id";function On(e){this._elements={},this._eventBus=e}On.$inject=["eventBus"],On.prototype.add=function(e,t,n){var i=e.id;this._validateId(i),ze(t,zn,i),n&&ze(n,zn,i),this._elements[i]={element:e,gfx:t,secondaryGfx:n}},On.prototype.remove=function(e){var t=this._elements,n=e.id||e,i=n&&t[n];i&&(ze(i.gfx,zn,""),i.secondaryGfx&&ze(i.secondaryGfx,zn,""),delete t[n])},On.prototype.updateId=function(e,t){this._validateId(t),"string"==typeof e&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var n=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,i)},On.prototype.updateGraphics=function(e,t,n){var i=e.id||e,r=this._elements[i];return n?r.secondaryGfx=t:r.gfx=t,t&&ze(t,zn,i),t},On.prototype.get=function(e){var t;t="string"==typeof e?e:e&&ze(e,zn);var n=this._elements[t];return n&&n.element},On.prototype.filter=function(e){var t=[];return this.forEach((function(n,i){e(n,i)&&t.push(n)})),t},On.prototype.find=function(e){for(var t=this._elements,n=Object.keys(t),i=0;i<n.length;i++){var r=t[n[i]],o=r.element;if(e(o,r.gfx))return o}},On.prototype.getAll=function(){return this.filter((function(e){return e}))},On.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach((function(n){var i=t[n],r=i.element,o=i.gfx;return e(r,o)}))},On.prototype.getGraphics=function(e,t){var n=e.id||e,i=this._elements[n];return i&&(t?i.secondaryGfx:i.gfx)},On.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};var Bn={extend:function(e,t,n,i){var r=n.inverse;return Object.defineProperty(e,"remove",{value:function(e){var n=this.indexOf(e);return-1!==n&&(this.splice(n,1),t.unset(e,r,i)),e}}),Object.defineProperty(e,"contains",{value:function(e){return-1!==this.indexOf(e)}}),Object.defineProperty(e,"add",{value:function(e,n){var o=this.indexOf(e);if(void 0===n){if(-1!==o)return;n=this.length}-1!==o&&this.splice(o,1),this.splice(n,0,e),-1===o&&t.set(e,r,i)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e},isExtended:function(e){return!0===e.__refs_collection}};function jn(e,t,n){var i=Bn.extend(n[t.name]||[],e,t,n);Object.defineProperty(n,t.name,{enumerable:t.enumerable,value:i}),i.length&&i.forEach((function(i){e.set(i,t.inverse,n)}))}function Nn(e,t){if(!(this instanceof Nn))return new Nn(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}Nn.prototype.bind=function(e,t){if("string"==typeof t){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?jn(this,t,e):function(e,t,n){var i=t.inverse,r=n[t.name];Object.defineProperty(n,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return r},set:function(t){if(t!==r){var o=r;r=null,o&&e.unset(o,i,n),r=t,e.set(r,i,n)}}})}(this,t,e)},Nn.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return Bn.isExtended(n)||jn(this,t,e),n},Nn.prototype.ensureBound=function(e,t){(function(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)})(e,t)||this.bind(e,t)},Nn.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)},Nn.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)};var Ln=Nn,In=Bn;Ln.Collection=In;var Fn=new Ln({name:"children",enumerable:!0,collection:!0},{name:"parent"}),Vn=new Ln({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Hn=new Ln({name:"attachers",collection:!0},{name:"host"}),$n=new Ln({name:"outgoing",collection:!0},{name:"source"}),Gn=new Ln({name:"incoming",collection:!0},{name:"target"});function Wn(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,n=this.labels;!e&&t?n.remove(t):n.add(e,0)}}),Fn.bind(this,"parent"),Vn.bind(this,"labels"),$n.bind(this,"outgoing"),Gn.bind(this,"incoming")}function Un(){Wn.call(this),Fn.bind(this,"children"),Hn.bind(this,"host"),Hn.bind(this,"attachers")}function qn(){Un.call(this)}function Kn(){Un.call(this),Vn.bind(this,"labelTarget")}function Yn(){Wn.call(this),$n.bind(this,"source"),Gn.bind(this,"target")}r(Un,Wn),r(qn,Un),r(Kn,Un),r(Yn,Wn);var Xn={connection:Yn,shape:Un,label:Kn,root:qn};function Zn(){this._uid=12}Zn.prototype.createRoot=function(e){return this.create("root",e)},Zn.prototype.createLabel=function(e){return this.create("label",e)},Zn.prototype.createShape=function(e){return this.create("shape",e)},Zn.prototype.createConnection=function(e){return this.create("connection",e)},Zn.prototype.create=function(e,t){return(t=W({},t||{})).id||(t.id=e+"_"+this._uid++),function(e,t){var n=Xn[e];if(!n)throw new Error("unknown type: <"+e+">");return W(new n,t)}(e,t)};var Qn=Array.prototype.slice;function Jn(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function ei(){}function ti(e){return e.childNodes[0]}function ni(e,t,n,i,r){var o=Ye();o.setTranslate(t,n);var a=Ye();a.setRotate(i||0,0,0);var s=Ye();s.setScale(r||1,r||1),rt(e,[o,a,s])}function ii(e,t,n){var i=Ye();i.setTranslate(t,n),rt(e,i)}function ri(e,t){var n=Ye();n.setRotate(t,0,0),rt(e,n)}function oi(e,t){this._eventBus=e,this._elementRegistry=t}function ai(e,t,n){var i=n||t.firstChild;e!==i&&t.insertBefore(e,i)}Jn.prototype.on=function(e,t,n,i){if(e=d(e)?e:[e],v(t)&&(i=n,n=t,t=1e3),!f(t))throw new Error("priority must be a number");var r=n;i&&((r=H(n,i)).__fn=n.__fn||n);var o=this;e.forEach((function(e){o._addListener(e,{priority:t,callback:r,next:null})}))},Jn.prototype.once=function(e,t,n,i){var r=this;if(v(t)&&(i=n,n=t,t=1e3),!f(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var t=n.apply(i,arguments);return r.off(e,o),t}o.__fn=n,this.on(e,t,o)},Jn.prototype.off=function(e,t){e=d(e)?e:[e];var n=this;e.forEach((function(e){n._removeListener(e,t)}))},Jn.prototype.createEvent=function(e){var t=new ei;return t.init(e),t},Jn.prototype.fire=function(e,t){var n,i,r,o;if(o=Qn.call(arguments),"object"==typeof e&&(e=(t=e).type),!e)throw new Error("no event type specified");if(i=this._listeners[e]){n=t instanceof ei?t:this.createEvent(t),o[0]=n;var a=n.type;e!==a&&(n.type=e);try{r=this._invokeListeners(n,o,i)}finally{e!==a&&(n.type=a)}return void 0===r&&n.defaultPrevented&&(r=!1),r}},Jn.prototype.handleError=function(e){return!1===this.fire("error",{error:e})},Jn.prototype._destroy=function(){this._listeners={}},Jn.prototype._invokeListeners=function(e,t,n){for(var i;n&&!e.cancelBubble;)i=this._invokeListener(e,t,n),n=n.next;return i},Jn.prototype._invokeListener=function(e,t,n){var i;if(n.callback.__isTomb)return i;try{void 0!==(i=function(e,t){return e.apply(null,t)}(n.callback,t))&&(e.returnValue=i,e.stopPropagation()),!1===i&&e.preventDefault()}catch(e){if(!this.handleError(e))throw console.error("unhandled error in event listener",e),e}return i},Jn.prototype._addListener=function(e,t){var n,i=this._getListeners(e);if(i){for(;i;){if(i.priority<t.priority)return t.next=i,void(n?n.next=t:this._setListeners(e,t));n=i,i=i.next}n.next=t}else this._setListeners(e,t)},Jn.prototype._getListeners=function(e){return this._listeners[e]},Jn.prototype._setListeners=function(e,t){this._listeners[e]=t},Jn.prototype._removeListener=function(e,t){var n,i,r,o=this._getListeners(e);if(t)for(;o;)n=o.next,(r=o.callback)!==t&&r.__fn!==t||(i?i.next=n:this._setListeners(e,n)),i=o,o=n;else this._setListeners(e,null)},ei.prototype.stopPropagation=function(){this.cancelBubble=!0},ei.prototype.preventDefault=function(){this.defaultPrevented=!0},ei.prototype.init=function(e){W(this,e||{})},oi.$inject=["eventBus","elementRegistry"],oi.prototype._getChildrenContainer=function(e){var t,n=this._elementRegistry.getGraphics(e);return e.parent?(t=function(e){return e.parentNode.childNodes[1]}(n))||(Le(t=Ue("g")).add("djs-children"),ke(n.parentNode,t)):t=n,t},oi.prototype._clear=function(e){var t=ti(e);return ue(t),t},oi.prototype._createContainer=function(e,t,n,i){var r=Ue("g");Le(r).add("djs-group"),void 0!==n?ai(r,t,t.childNodes[n]):ke(t,r);var o=Ue("g");Le(o).add("djs-element"),Le(o).add("djs-"+e),i&&Le(o).add("djs-frame"),ke(r,o);var a=Ue("g");return Le(a).add("djs-visual"),ke(o,a),o},oi.prototype.create=function(e,t,n){var i=this._getChildrenContainer(t.parent);return this._createContainer(e,i,n,Pt(t))},oi.prototype.updateContainments=function(e){var t=this,n=this._elementRegistry;E(C(e,(function(e,t){return t.parent&&(e[t.parent.id]=t.parent),e}),{}),(function(e){var i=e.children;if(i){var r=t._getChildrenContainer(e);E(i.slice().reverse(),(function(e){ai(n.getGraphics(e).parentNode,r)}))}}))},oi.prototype.drawShape=function(e,t){return this._eventBus.fire("render.shape",{gfx:e,element:t})},oi.prototype.getShapePath=function(e){return this._eventBus.fire("render.getShapePath",e)},oi.prototype.drawConnection=function(e,t){return this._eventBus.fire("render.connection",{gfx:e,element:t})},oi.prototype.getConnectionPath=function(e){return this._eventBus.fire("render.getConnectionPath",e)},oi.prototype.update=function(e,t,n){if(t.parent){var i=this._clear(n);if("shape"===e)this.drawShape(i,t),ii(n,t.x,t.y);else{if("connection"!==e)throw new Error("unknown type: "+e);this.drawConnection(i,t)}t.hidden?ze(n,"display","none"):ze(n,"display","block")}},oi.prototype.remove=function(e){Fe(this._elementRegistry.getGraphics(e).parentNode)};var si={__depends__:[At],__init__:["canvas"],canvas:["type",Dn],elementRegistry:["type",On],elementFactory:["type",Zn],eventBus:["type",Jn],graphicsFactory:["type",oi]};function ci(e){return function(e){var t=new dt(e);return t.init(),t}([{config:["value",e=e||{}]},si].concat(e.modules||[]))}function li(e,t){this.injector=t=t||ci(e),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}function pi(){}function ui(e,t){this.model=e,this.properties=t}li.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},li.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")},pi.prototype.get=function(e){return this.$model.properties.get(this,e)},pi.prototype.set=function(e,t){this.$model.properties.set(this,e,t)},ui.prototype.createType=function(e){var t=this.model,n=this.properties,i=Object.create(pi.prototype);E(e.properties,(function(e){e.isMany||void 0===e.default||(i[e.name]=e.default)})),n.defineModel(i,t),n.defineDescriptor(i,e);var r=e.ns.name;function o(e){n.define(this,"$type",{value:r,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),E(e,H((function(e,t){this.set(t,e)}),this))}return o.prototype=i,o.hasType=i.$instanceOf=this.model.hasType,n.defineModel(o,t),n.defineDescriptor(o,e),o};var hi={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},di={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function mi(e,t){var n=di[e];return n?n(t):t}function fi(e){return!!hi[e]}function vi(e){return!!di[e]}function gi(e,t){var n,i,r=e.split(/:/);if(1===r.length)n=e,i=t;else{if(2!==r.length)throw new Error("expected <prefix:localName> or <localName>, got "+e);n=r[1],i=r[0]}return{name:e=(i?i+":":"")+n,prefix:i,localName:n}}function yi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function bi(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,E(e,H(this.registerPackage,this))}function _i(e,t,n){var i=t[n];if(i in e)throw new Error("package with "+n+" <"+i+"> already defined")}function xi(e){this.model=e}function wi(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function Ei(e){this.properties=new xi(this),this.factory=new ui(this,this.properties),this.registry=new bi(e,this.properties),this.typeCache={}}yi.prototype.build=function(){return K(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},yi.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},yi.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=r.indexOf(e);if(-1===s)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(t,n?void 0:s,a),o[i.name]=o[i.localName]=t},yi.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),o=gi(r[0],i),a=gi(r[1],o.prefix).name,s=this.propertiesByName[a];if(!s)throw new Error("refined property <"+a+"> not found");this.replaceProperty(s,e,n),delete e.redefines},yi.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},yi.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},yi.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},yi.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},yi.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},yi.prototype.hasProperty=function(e){return this.propertiesByName[e]},yi.prototype.addTrait=function(e,t){var n=this.allTypesByName,i=this.allTypes,r=e.name;r in n||(E(e.properties,H((function(n){n=W({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,r=n.redefines;i||r?this.redefineProperty(n,i||r,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))}),this)),i.push(e),n[r]=e)},bi.prototype.getPackage=function(e){return this.packageMap[e]},bi.prototype.getPackages=function(){return this.packages},bi.prototype.registerPackage=function(e){e=W({},e);var t=this.packageMap;_i(t,e,"prefix"),_i(t,e,"uri"),E(e.types,H((function(t){this.registerType(t,e)}),this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},bi.prototype.registerType=function(e,t){var n=gi((e=W({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:W(e.meta||{})})).name,t.prefix),i=n.name,r={};E(e.properties,H((function(e){var t=gi(e.name,n.prefix),i=t.name;fi(e.type)||(e.type=gi(e.type,t.prefix).name),W(e,{ns:t,name:i}),r[i]=e}),this)),W(e,{ns:n,name:i,propertiesByName:r}),E(e.extends,H((function(e){var t=this.typeMap[e];t.traits=t.traits||[],t.traits.push(i)}),this)),this.definePackage(e,t),this.typeMap[i]=e},bi.prototype.mapTypes=function(e,t,n){var i=fi(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(e){return a(e,!0)}function a(n,i){var o=gi(n,fi(n)?"":e.prefix);r.mapTypes(o,t,i)}if(!i)throw new Error("unknown type <"+e.name+">");E(i.superClass,n?o:a),t(i,!n),E(i.traits,o)},bi.prototype.getEffectiveDescriptor=function(e){var t=gi(e),n=new yi(t);this.mapTypes(t,(function(e,t){n.addTrait(e,t)}));var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},bi.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})},xi.prototype.set=function(e,t,n){var i=this.model.getPropertyDescriptor(e,t),r=i&&i.name;void 0===n?i?delete e[r]:delete e.$attrs[t]:i?r in e?e[r]=n:wi(e,i,n):e.$attrs[t]=n},xi.prototype.get=function(e,t){var n=this.model.getPropertyDescriptor(e,t);if(!n)return e.$attrs[t];var i=n.name;return!e[i]&&n.isMany&&wi(e,n,[]),e[i]},xi.prototype.define=function(e,t,n){if(!n.writable){var i=n.value;delete(n=W({},n,{get:function(){return i}})).value}Object.defineProperty(e,t,n)},xi.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},xi.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},Ei.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},Ei.prototype.getType=function(e){var t=this.typeCache,n=g(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},Ei.prototype.createAny=function(e,t,n){var i=gi(e),r={$type:e,$instanceOf:function(e){return e===this.$type}},o={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:t}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),E(n,(function(e,t){m(e)&&void 0!==e.value?r[e.name]=e.value:r[t]=e})),r},Ei.prototype.getPackage=function(e){return this.registry.getPackage(e)},Ei.prototype.getPackages=function(){return this.registry.getPackages()},Ei.prototype.getElementDescriptor=function(e){return e.$descriptor},Ei.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},Ei.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},Ei.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var Si=String.fromCharCode,Ci=Object.prototype.hasOwnProperty,Pi=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,Mi={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function Ri(e,t,n,i){return i?Ci.call(Mi,i)?Mi[i]:"&"+i+";":Si(t||parseInt(n,16))}function Ai(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(Pi,Ri):e}Object.keys(Mi).forEach((function(e){Mi[e.toUpperCase()]=Mi[e]}));var ki="xsi:type",Di="non-whitespace outside of root node";function Ti(e){return new Error(e)}function zi(e){return"missing namespace for prefix <"+e+">"}function Oi(e){return{get:e,enumerable:!0}}function Bi(e){var t,n={};for(t in e)n[t]=e[t];return n}function ji(e){return e+"$uri"}function Ni(){return{line:0,column:0}}function Li(e){throw e}function Ii(e){if(!this)return new Ii(e);var t,n,i,r,o,a,s,c,l,p=e&&e.proxy,u=Li,h=Ni,d=!1,m=!1,f=null,v=!1;function g(e){e instanceof Error||(e=Ti(e)),f=e,u(e,h)}function y(e){o&&(e instanceof Error||(e=Ti(e)),o(e,h))}this.on=function(e,l){if("function"!=typeof l)throw Ti("required args <name, cb>");switch(e){case"openTag":n=l;break;case"text":t=l;break;case"closeTag":i=l;break;case"error":u=l;break;case"warn":o=l;break;case"cdata":r=l;break;case"attention":c=l;break;case"question":s=l;break;case"comment":a=l;break;default:throw Ti("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw Ti("required args <nsMap={}>");var t,n={};for(t in e)n[t]=e[t];return n["http://www.w3.org/2001/XMLSchema-instance"]="xsi",m=!0,l=n,this},this.parse=function(e){if("string"!=typeof e)throw Ti("required args <xml=string>");return f=null,function(e){var o,u,f,b,_,x,w,E,S,C,P,M=m?[]:null,R=m?function(e){var t,n,i={};for(t in e)i[n=e[t]]=n,i[ji(n)]=t;return i}(l):null,A=[],k=0,D=!1,T=!1,z=0,O=0,B="",j=0;function N(){if(null!==P)return P;var e,t,n,i,r,o,a,s,c,p,u,h=m&&R.xmlns,f=m&&d?[]:null,v=j,g=B,b=g.length,_={},x={};e:for(;v<b;v++)if(c=!1,!(32===(p=g.charCodeAt(v))||p<14&&p>8)){for((p<65||p>122||p>90&&p<97)&&95!==p&&58!==p&&(y("illegal first char attribute name"),c=!0),u=v+1;u<b;u++)if(!((p=g.charCodeAt(u))>96&&p<123||p>64&&p<91||p>47&&p<59||46===p||45===p||95===p)){if(32===p||p<14&&p>8){y("missing attribute value"),v=u;continue e}if(61===p)break;y("illegal attribute name char"),c=!0}if("xmlns:xmlns"===(s=g.substring(v,u))&&(y("illegal declaration of xmlns"),c=!0),34===(p=g.charCodeAt(u+1)))-1===(u=g.indexOf('"',v=u+2))&&-1!==(u=g.indexOf("'",v))&&(y("attribute value quote missmatch"),c=!0);else if(39===p)-1===(u=g.indexOf("'",v=u+2))&&-1!==(u=g.indexOf('"',v))&&(y("attribute value quote missmatch"),c=!0);else for(y("missing attribute value quotes"),c=!0,u+=1;u<b&&!(32===(p=g.charCodeAt(u+1))||p<14&&p>8);u++);for(-1===u&&(y("missing closing quotes"),u=b,c=!0),c||(o=g.substring(v,u)),v=u;u+1<b&&!(32===(p=g.charCodeAt(u+1))||p<14&&p>8);u++)v===u&&(y("illegal character after attribute end"),c=!0);if(v=u+1,!c)if(s in x)y("attribute <"+s+"> already defined");else if(x[s]=!0,m)if(d){if(null!==(r="xmlns"===s?"xmlns":120===s.charCodeAt(0)&&"xmlns:"===s.substr(0,6)?s.substr(6):null)){if(e=Ai(o),t=ji(r),!(a=l[e])){if("xmlns"===r||t in R&&R[t]!==e)do{a="ns"+k++}while(void 0!==R[a]);else a=r;l[e]=a}R[r]!==a&&(i||(R=Bi(R),i=!0),R[r]=a,"xmlns"===r&&(R[ji(a)]=e,h=a),R[t]=e),_[s]=o;continue}f.push(s,o)}else-1!==(p=s.indexOf(":"))?(n=R[s.substring(0,p)])?((s=h===n?s.substr(p+1):n+s.substr(p))===ki&&(-1!==(p=o.indexOf(":"))?(n=o.substring(0,p),o=(n=R[n]||n)+o.substring(p)):o=h+":"+o),_[s]=o):y(zi(s.substring(0,p))):_[s]=o;else _[s]=o}if(d)for(v=0,b=f.length;v<b;v++){if(s=f[v++],o=f[v],-1!==(p=s.indexOf(":"))){if(!(n=R[s.substring(0,p)])){y(zi(s.substring(0,p)));continue}(s=h===n?s.substr(p+1):n+s.substr(p))===ki&&(-1!==(p=o.indexOf(":"))?(n=o.substring(0,p),o=(n=R[n]||n)+o.substring(p)):o=h+":"+o)}_[s]=o}return P=_}function L(){for(var t,n,i=/(\r\n|\r|\n)/g,r=0,o=0,a=0,s=O;z>=a&&(t=i.exec(e))&&!((s=t[0].length+t.index)>z);)r+=1,a=s;return-1==z?(o=s,n=e.substring(O)):0===O?n=e.substring(O,z):(o=z-a,n=-1==O?e.substring(z):e.substring(z,O+1)),{data:n,line:r,column:o}}h=L,p&&(C=Object.create({},{name:Oi((function(){return E})),originalName:Oi((function(){return S})),attrs:Oi(N),ns:Oi((function(){return R}))}));for(;-1!==O;){if(-1===(z=60===e.charCodeAt(O)?O:e.indexOf("<",O)))return A.length?g("unexpected end of file"):0===O?g("missing start tag"):void(O<e.length&&e.substring(O).trim()&&y(Di));if(O!==z)if(A.length){if(t&&(t(e.substring(O,z),Ai,h),v))return}else if(e.substring(O,z).trim()&&(y(Di),v))return;if(33===(_=e.charCodeAt(z+1))){if(91===(b=e.charCodeAt(z+2))&&"CDATA["===e.substr(z+3,6)){if(-1===(O=e.indexOf("]]>",z)))return g("unclosed cdata");if(r&&(r(e.substring(z+9,O),h),v))return;O+=3;continue}if(45===b&&45===e.charCodeAt(z+3)){if(-1===(O=e.indexOf("--\x3e",z)))return g("unclosed comment");if(a&&(a(e.substring(z+4,O),Ai,h),v))return;O+=3;continue}}if(63!==_){for(u=z+1;;u++){if(x=e.charCodeAt(u),isNaN(x))return O=-1,g("unclosed tag");if(34===x)u=-1!==(b=e.indexOf('"',u+1))?b:u;else if(39===x)u=-1!==(b=e.indexOf("'",u+1))?b:u;else if(62===x){O=u;break}}if(33!==_){if(P={},47===_){if(D=!1,T=!0,!A.length)return g("missing open tag");if(u=E=A.pop(),b=z+2+u.length,e.substring(z+2,b)!==u)return g("closing tag mismatch");for(;b<O;b++)if(!(32===(_=e.charCodeAt(b))||_>8&&_<14))return g("close tag")}else{if(47===e.charCodeAt(O-1)?(u=E=e.substring(z+1,O-1),D=!0,T=!0):(u=E=e.substring(z+1,O),D=!0,T=!1),!(_>96&&_<123||_>64&&_<91||95===_||58===_))return g("illegal first char nodeName");for(b=1,f=u.length;b<f;b++)if(!((_=u.charCodeAt(b))>96&&_<123||_>64&&_<91||_>47&&_<59||45===_||95===_||46==_)){if(32===_||_<14&&_>8){E=u.substring(0,b),P=null;break}return g("invalid nodeName")}T||A.push(E)}if(m){if(o=R,D&&(T||M.push(o),null===P&&(d=-1!==u.indexOf("xmlns",b))&&(j=b,B=u,N(),d=!1)),S=E,-1!==(_=E.indexOf(":"))){if(!(w=R[E.substring(0,_)]))return g("missing namespace on <"+S+">");E=E.substr(_+1)}else w=R.xmlns;w&&(E=w+":"+E)}if(D&&(j=b,B=u,n&&(p?n(C,Ai,T,h):n(E,N,Ai,T,h),v)))return;if(T){if(i&&(i(p?C:E,Ai,D,h),v))return;m&&(R=D?o:M.pop())}O+=1}else{if(c&&(c(e.substring(z,O+1),Ai,h),v))return;O+=1}}else{if(-1===(O=e.indexOf("?>",z)))return g("unclosed question");if(s&&(s(e.substring(z,O+2),h),v))return;O+=2}}}(e),h=Ni,v=!1,f},this.stop=function(){v=!0}}function Fi(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var Vi={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Hi="xsi:type";function $i(e){return e.xml&&e.xml.serialize}function Gi(e){return $i(e)===Hi}function Wi(e,t){return Fi(t)?e.prefix+":"+((n=e.localName).charAt(0).toUpperCase()+n.slice(1)):e.name;var n}function Ui(e){return new Error(e)}function qi(e){return e.$descriptor}function Ki(e){W(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw Ui("expected element");var t,n=this.elementsById,i=qi(e).idProperty;if(i&&(t=e.get(i.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(t))throw new Error("illegal ID <"+t+">");if(n[t])throw Ui("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function Yi(){}function Xi(){}function Zi(){}function Qi(e,t){this.property=e,this.context=t}function Ji(e,t){this.element=t,this.propertyDesc=e}function er(){}function tr(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function nr(e,t,n){tr.call(this,e,t,n)}function ir(e,t,n){this.model=e,this.context=n}function rr(e){e instanceof Ei&&(e={model:e}),W(this,{lax:!1},e)}Yi.prototype.handleEnd=function(){},Yi.prototype.handleText=function(){},Yi.prototype.handleNode=function(){},Xi.prototype=Object.create(Yi.prototype),Xi.prototype.handleNode=function(){return this},Zi.prototype=Object.create(Yi.prototype),Zi.prototype.handleText=function(e){this.body=(this.body||"")+e},Qi.prototype=Object.create(Zi.prototype),Qi.prototype.handleNode=function(e){if(this.element)throw Ui("expected no sub nodes");return this.element=this.createReference(e),this},Qi.prototype.handleEnd=function(){this.element.id=this.body},Qi.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},Ji.prototype=Object.create(Zi.prototype),Ji.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=mi(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},er.prototype=Object.create(Zi.prototype),er.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},tr.prototype=Object.create(er.prototype),tr.prototype.addReference=function(e){this.context.addReference(e)},tr.prototype.handleText=function(e){if(!qi(this.element).bodyProperty)throw Ui("unexpected body text <"+e+">");Zi.prototype.handleText.call(this,e)},tr.prototype.handleEnd=function(){var e=this.body,t=this.element,n=qi(t).bodyProperty;n&&void 0!==e&&(e=mi(n.type,e),t.set(n.name,e))},tr.prototype.createElement=function(e){var t,n=e.attributes,i=this.type,r=qi(i),o=this.context,a=new i({}),s=this.model;return E(n,(function(e,n){var i=r.propertiesByName[n];i&&i.isReference?i.isMany?E(e.split(" "),(function(e){o.addReference({element:a,property:i.ns.name,id:e})})):o.addReference({element:a,property:i.ns.name,id:e}):(i?e=mi(i.type,e):"xmlns"!==n&&(t=gi(n,r.ns.prefix),s.getPackage(t.prefix)&&o.addWarning({message:"unknown attribute <"+n+">",element:a,property:n,value:e})),a.set(n,e))})),a},tr.prototype.getPropertyForNode=function(e){var t,n,i=gi(e.name),r=this.type,o=this.model,a=qi(r),s=i.name,c=a.propertiesByName[s];if(c&&!c.isAttr)return Gi(c)&&(t=e.attributes[Hi])?(t=function(e,t){var n=gi(e);return function(e,t){var n=e.name,i=e.localName,r=t.xml&&t.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):n}(n,t.getPackage(n.prefix))}(t,o),W({},c,{effectiveType:qi(n=o.getType(t)).name})):c;var l=o.getPackage(i.prefix);if(l){if(t=Wi(i,l),n=o.getType(t),c=_(a.properties,(function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)})))return W({},c,{effectiveType:qi(n).name})}else if(c=_(a.properties,(function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type})))return c;throw Ui("unrecognized element <"+i.name+">")},tr.prototype.toString=function(){return"ElementDescriptor["+qi(this.type).name+"]"},tr.prototype.valueHandler=function(e,t){return new Ji(e,t)},tr.prototype.referenceHandler=function(e){return new Qi(e,this.context)},tr.prototype.handler=function(e){return"Element"===e?new ir(this.model,e,this.context):new tr(this.model,e,this.context)},tr.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,vi(n=t.effectiveType||t.type))return this.valueHandler(t,i);var o=(r=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==o&&(t.isMany?i.get(t.name).push(o):i.set(t.name,o),t.isReference?(W(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},nr.prototype=Object.create(tr.prototype),nr.prototype.createElement=function(e){var t=e.name,n=gi(t),i=this.model,r=this.type,o=i.getPackage(n.prefix),a=o&&Wi(n,o)||t;if(!r.hasType(a))throw Ui("unexpected element <"+e.originalName+">");return tr.prototype.createElement.call(this,e)},ir.prototype=Object.create(er.prototype),ir.prototype.createElement=function(e){var t=e.name,n=gi(t).prefix,i=e.ns[n+"$uri"],r=e.attributes;return this.model.createAny(t,i,r)},ir.prototype.handleChild=function(e){var t=new ir(this.model,"Element",this.context).handleNode(e),n=this.element,i=t.element;return void 0!==i&&((n.$children=n.$children||[]).push(i),i.$parent=n),t},ir.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},rr.prototype.fromXML=function(e,t,n){var i=t.rootHandler;t instanceof tr?(i=t,t={}):"string"==typeof t?(i=this.handler(t),t={}):"string"==typeof i&&(i=this.handler(i));var r=this.model,o=this.lax,a=new Ki(W({},t,{rootHandler:i})),s=new Ii({proxy:!0}),c=function(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}();function l(e,t,n){var i=t(),r=i.line,o=i.column,s=i.data;"<"===s.charAt(0)&&-1!==s.indexOf(" ")&&(s=s.slice(0,s.indexOf(" "))+">");var c="unparsable content "+(s?s+" ":"")+"detected\n\tline: "+r+"\n\tcolumn: "+o+"\n\tnested error: "+e.message;if(n)return a.addWarning({message:c,error:e}),!0;throw Ui(c)}function p(e,t){return l(e,t,!0)}i.context=a,c.push(i);var u=/^<\?xml /i,h=/ encoding="([^"]+)"/i,d=/^utf-8$/i;function m(e,t){try{c.peek().handleText(e)}catch(e){p(e,t)}}var f=r.getPackages().reduce((function(e,t){return e[t.uri]=t.prefix,e}),{"http://www.w3.org/XML/1998/namespace":"xml"});return s.ns(f).on("openTag",(function(e,t,n,i){var r=e.attrs||{},a=Object.keys(r).reduce((function(e,n){var i=t(r[n]);return e[n]=i,e}),{});!function(e,t){var n=c.peek();try{c.push(n.handleNode(e))}catch(e){l(e,t,o)&&c.push(new Xi)}}({name:e.name,originalName:e.originalName,attributes:a,ns:e.ns},i)})).on("question",(function(e){if(u.test(e)){var t=h.exec(e),n=t&&t[1];n&&!d.test(n)&&a.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}})).on("closeTag",(function(){c.pop().handleEnd()})).on("cdata",m).on("text",(function(e,t,n){!function(e,t){e.trim()&&m(e,t)}(t(e),n)})).on("error",l).on("warn",p),new Promise((function(t,n){var r;try{s.parse(e),function(){var e,t,n=a.elementsById,i=a.references;for(e=0;t=i[e];e++){var r=t.element,o=n[t.id],s=qi(r).propertiesByName[t.property];if(o||a.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),s.isMany){var c=r.get(s.name),l=c.indexOf(t);-1===l&&(l=c.length),o?c[l]=o:c.splice(l,1)}else r.set(s.name,o)}}()}catch(e){r=e}var o=i.element;r||o||(r=Ui("failed to parse document as <"+i.type.$descriptor.name+">"));var c=a.warnings,l=a.references,p=a.elementsById;return r?(r.warnings=c,n(r)):t({rootElement:o,elementsById:p,references:l,warnings:c})}))},rr.prototype.handler=function(e){return new nr(this.model,e)};var or=/<|>|'|"|&|\n\r|\n/g,ar=/<|>|&/g;function sr(e){var t={},n={},i={},r=[],o=[];this.byUri=function(t){return n[t]||e&&e.byUri(t)},this.add=function(e,t){n[e.uri]=e,t?r.push(e):o.push(e),this.mapPrefix(e.prefix,e.uri)},this.uriByPrefix=function(e){return t[e||"xmlns"]},this.mapPrefix=function(e,n){t[e||"xmlns"]=n},this.getNSKey=function(e){return void 0!==e.prefix?e.uri+"|"+e.prefix:e.uri},this.logUsed=function(t){var n=t.uri,r=this.getNSKey(t);i[r]=this.byUri(n),e&&e.logUsed(t)},this.getUsed=function(e){var t=this;return[].concat(r,o).filter((function(e){var n=t.getNSKey(e);return i[n]}))}}function cr(e,t){return Fi(t)?(n=e).charAt(0).toLowerCase()+n.slice(1):e;var n}function lr(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function pr(e){return g(e)?e:(e.prefix?e.prefix+":":"")+e.localName}var ur={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},hr={"<":"lt",">":"gt","&":"amp"};function dr(e,t,n){return(e=g(e)?e:""+e).replace(t,(function(e){return"&"+n[e]+";"}))}function mr(e){this.tagName=e}function fr(){}function vr(e){this.tagName=e}function gr(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}function yr(e,t){gr.call(this,e,t)}function br(){this.value="",this.write=function(e){this.value+=e}}function _r(e,t){var n=[""];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write("\n"),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function xr(e){return e=W({format:!1,preamble:!0},e||{}),{toXML:function(t,n){var i=n||new br,r=new _r(i,e.format);if(e.preamble&&r.append('<?xml version="1.0" encoding="UTF-8"?>\n'),(new gr).build(t).serializeTo(r),!n)return i.value}}}function wr(e,t){Ei.call(this,e,t)}mr.prototype.build=function(e){return this.element=e,this},mr.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()},fr.prototype.serializeValue=fr.prototype.serializeTo=function(e){e.append(this.escape?dr(this.value,ar,hr):this.value)},fr.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(ar)&&(this.escape=!0),this},lr(vr,fr),vr.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()},gr.prototype.build=function(e){this.element=e;var t,n,i=e.$descriptor,r=this.propertyDescriptor,o=i.isGeneric;return t=o?this.parseGeneric(e):this.parseNsAttributes(e),this.ns=r?this.nsPropertyTagName(r):this.nsTagName(i),this.tagName=this.addTagName(this.ns),o||(n=function(e){return w(e.$descriptor.properties,(function(t){var n=t.name;if(t.isVirtual)return!1;if(!b(e,n))return!1;var i=e[n];return i!==t.default&&null!==i&&(!t.isMany||i.length)}))}(e),this.parseAttributes(w(n,(function(e){return e.isAttr}))),this.parseContainments(function(e){return w(e,(function(e){return!e.isAttr}))}(n))),this.parseGenericAttributes(e,t),this},gr.prototype.nsTagName=function(e){return function(e,t){return t.isGeneric?W({localName:t.ns.localName},e):W({localName:cr(t.ns.localName,t.$pkg)},e)}(this.logNamespaceUsed(e.ns),e)},gr.prototype.nsPropertyTagName=function(e){return function(e,t){return W({localName:t.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},gr.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},gr.prototype.nsAttributeName=function(e){var t;if(t=g(e)?gi(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:W({localName:t.localName},n)},gr.prototype.parseGeneric=function(e){var t=this,n=this.body,i=[];return E(e,(function(r,o){"$body"===o?n.push((new fr).build({type:"String"},r)):"$children"===o?E(r,(function(e){n.push(new gr(t).build(e))})):0!==o.indexOf("$")&&t.parseNsAttribute(e,o,r)&&i.push({name:o,value:r})})),i},gr.prototype.parseNsAttribute=function(e,t,n){var i,r=e.$model,o=gi(t);if("xmlns"===o.prefix&&(i={prefix:o.localName,uri:n}),o.prefix||"xmlns"!==o.localName||(i={uri:n}),!i)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(i,!0,!0);else{var a=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(a)}},gr.prototype.parseNsAttributes=function(e,t){var n=this,i=e.$attrs,r=[];return E(i,(function(t,i){var o=n.parseNsAttribute(e,i,t);o&&r.push(o)})),r},gr.prototype.parseGenericAttributes=function(e,t){var n=this;E(t,(function(t){if(t.name!==Hi)try{n.addAttribute(n.nsAttributeName(t.name),t.value)}catch(n){console.warn("missing namespace information for ",t.name,"=",t.value,"on",e,n)}}))},gr.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;E(e,(function(e){var r=i.get(e.name),o=e.isReference;if(e.isMany||(r=[r]),e.isBody)n.push((new fr).build(e,r[0]));else if(vi(e.type))E(r,(function(i){n.push(new vr(t.addTagName(t.nsPropertyTagName(e))).build(e,i))}));else if(o)E(r,(function(i){n.push(new mr(t.addTagName(t.nsPropertyTagName(e))).build(i))}));else{var a=Gi(e),s=function(e){return"property"===$i(e)}(e);E(r,(function(i){var r;r=a?new yr(t,e):s?new gr(t,e):new gr(t),n.push(r.build(i))}))}}))},gr.prototype.getNamespaces=function(e){var t,n=this.namespaces,i=this.parent;return n||(t=i&&i.getNamespaces(),e||!t?this.namespaces=n=new sr(t):n=t),n},gr.prototype.logNamespace=function(e,t,n){var i=this.getNamespaces(n),r=e.uri,o=e.prefix;return i.byUri(r)&&!n||i.add(e,t),i.mapPrefix(o,r),e},gr.prototype.logNamespaceUsed=function(e,t){var n,i,r,o=this.element.$model,a=this.getNamespaces(t),s=e.prefix,c=e.uri;if(!s&&!c)return{localName:e.localName};if(r=Vi[s]||o&&(o.getPackage(s)||{}).uri,!(c=c||r||a.uriByPrefix(s)))throw new Error("no namespace uri given for prefix <"+s+">");if(!(e=a.byUri(c))){for(n=s,i=1;a.uriByPrefix(n);)n=s+"_"+i++;e=this.logNamespace({prefix:n,uri:c},r===c)}return s&&a.mapPrefix(s,c),e},gr.prototype.parseAttributes=function(e){var t=this,n=this.element;E(e,(function(e){var i=n.get(e.name);if(e.isReference)if(e.isMany){var r=[];E(i,(function(e){r.push(e.id)})),i=r.join(" ")}else i=i.id;t.addAttribute(t.nsAttributeName(e),i)}))},gr.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),pr(e)},gr.prototype.addAttribute=function(e,t){var n=this.attrs;g(t)&&(t=dr(t,or,ur)),n.push({name:e,value:t})},gr.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=function(e){return e.getUsed().filter((function(e){return"xml"!==e.prefix})).map((function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}))}(n).concat(t)),E(t,(function(t){e.append(" ").append(pr(t.name)).append('="').append(t.value).append('"')}))},gr.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==fr;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),E(this.body,(function(t){t.serializeTo(e)})),n&&e.unindent().appendIndent(),e.append("</"+this.tagName+">")),e.appendNewLine()},lr(yr,gr),yr.prototype.parseNsAttributes=function(e){var t=gr.prototype.parseNsAttributes.call(this,e),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var i=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(Hi),(i.prefix?i.prefix+":":"")+o+n.ns.localName),t},yr.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},wr.prototype=Object.create(Ei.prototype),wr.prototype.fromXML=function(e,t,n){g(t)||(n=t,t="bpmn:Definitions");var i=new rr(W({model:this,lax:!0},n)),r=i.handler(t);return i.fromXML(e,r)},wr.prototype.toXML=function(e,t){var n=new xr(t);return new Promise((function(t,i){try{return t({xml:n.toXML(e)})}catch(e){return i(e)}}))};var Er={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isAttr:!0,isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};function Sr(e,t){return new wr(W({},Er,e),t)}function Cr(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function Pr(e){return function(){if(!window.Promise)throw new Error("Promises is not supported in this environment. Please polyfill Promise.");var t=arguments.length;if(!(t>=1&&v(arguments[t-1])))return e.apply(this,arguments);var n=arguments[t-1];console.warn(new Error("Passing callbacks to "+e.name+" is deprecated and will be removed in a future major release. Please switch to promises: https://bpmn.io/l/moving-to-promises.html"));var i=Array.prototype.slice.call(arguments,0,-1);e.apply(this,i).then((function(e){var t=Object.keys(e)[0];return n(null,e[t])}),(function(e){return n(e,e.warnings)}))}}function Mr(e){b(e,"di")||Object.defineProperty(e,"di",{get:function(){throw new Error("Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472")}})}function Rr(e,t){return e.$instanceOf(t)}function Ar(e,t){var n={},i=[],r={};function o(e,t){return function(n){e(n,t)}}function a(e){n[e.id]=e}function s(n,i){try{var o=r[n.id]&&function(n,i){if(n.gfx)throw new Error(t("already rendered {element}",{element:Cr(n)}));return e.element(n,r[n.id],i)}(n,i);return a(n),o}catch(e){c(e.message,{element:n,error:e}),console.error(t("failed to import {element}",{element:Cr(n)})),console.error(e)}}function c(t,n){e.error(t,n)}function l(e){var n=e.bpmnElement;n?r[n.id]?c(t("multiple DI elements defined for {element}",{element:Cr(n)}),{element:n}):(r[n.id]=e,Mr(n)):c(t("no bpmnElement referenced in {element}",{element:Cr(e)}),{element:e})}function p(e){var t;l(t=e.plane),E(t.planeElement,u)}function u(e){l(e)}function h(){for(;i.length;)i.shift()()}function d(e,t){A(e,t),x(e.ioSpecification,t),b(e.artifacts,t),a(e)}function m(e,t){s(e,t)}function f(e,t){s(e,t)}function v(e,t){s(e,t)}function g(e,t){s(e,t)}function y(e,t){s(e,t)}function b(e,t){E(e,(function(e){Rr(e,"bpmn:Association")?i.push((function(){y(e,t)})):y(e,t)}))}function x(e,t){e&&(E(e.dataInputs,o(v,t)),E(e.dataOutputs,o(g,t)))}function S(e,t){A(e,t),b(e.artifacts,t)}function C(e,t){var n=s(e,t);Rr(e,"bpmn:SubProcess")&&S(e,n||t),Rr(e,"bpmn:Activity")&&x(e.ioSpecification,t),i.push((function(){E(e.dataInputAssociations,o(f,t)),E(e.dataOutputAssociations,o(f,t))}))}function P(e,t){s(e,t)}function M(e,t){i.push((function(){var n=s(e,t);e.childLaneSet&&R(e.childLaneSet,n||t),function(e){E(e.flowNodeRef,(function(t){var n=t.get("lanes");n&&n.push(e)}))}(e)}))}function R(e,t){E(e.lanes,o(M,t))}function A(e,n){!function(e,n){E(e,(function(e){Rr(e,"bpmn:SequenceFlow")?i.push((function(){!function(e,t){s(e,t)}(e,n)})):Rr(e,"bpmn:BoundaryEvent")?i.unshift((function(){C(e,n)})):Rr(e,"bpmn:FlowNode")?C(e,n):Rr(e,"bpmn:DataObject")||(Rr(e,"bpmn:DataStoreReference")||Rr(e,"bpmn:DataObjectReference")?P(e,n):c(t("unrecognized flowElement {element} in context {context}",{element:Cr(e),context:n?Cr(n.businessObject):"null"}),{element:e,context:n}))}))}(e.flowElements,n),e.laneSets&&function(e,t){E(e,o(R,t))}(e.laneSets,n)}function k(e,t){var n=s(e,t),i=e.processRef;i&&d(i,n||t)}return{handleDeferred:h,handleDefinitions:function(a,s){var u=a.diagrams;if(s&&-1===u.indexOf(s))throw new Error(t("diagram not part of bpmn:Definitions"));if(!s&&u&&u.length&&(s=u[0]),!s)throw new Error(t("no diagram to display"));r={},p(s);var f=s.plane;if(!f)throw new Error(t("no plane for {element}",{element:Cr(s)}));var v=f.bpmnElement;if(!v){if(!(v=function(e){return _(e.rootElements,(function(e){return Rr(e,"bpmn:Process")||Rr(e,"bpmn:Collaboration")}))}(a)))throw new Error(t("no process or collaboration to display"));c(t("correcting missing bpmnElement on {plane} to {rootElement}",{plane:Cr(f),rootElement:Cr(v)})),f.bpmnElement=v,l(f)}var g,y,x=function(t,n){return e.root(t,r[t.id],n)}(v,f);if(Rr(v,"bpmn:Process")||Rr(v,"bpmn:SubProcess"))d(v,x);else{if(!Rr(v,"bpmn:Collaboration"))throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}",{plane:Cr(f),rootElement:Cr(v)}));y=x,E((g=v).participants,o(k,y)),b(g.artifacts,y),i.push((function(){!function(e,t){E(e,o(m,t))}(g.messageFlows,y)})),function(e,t){w(e,(function(e){return!n[e.id]&&Rr(e,"bpmn:Process")&&e.laneSets})).forEach(o(d,t))}(a.rootElements,x)}h()},handleSubProcess:S,registerDi:l}}function kr(e,t){var n=Tr(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function Dr(e,t){return M(t,(function(t){return kr(e,t)}))}function Tr(e){return e&&e.businessObject||e}function zr(e){return e&&e.di}function Or(e,t,n){var i,r,o,a,s=[];function c(e,t){var n=new Ar({root:function(e,t){return i.add(e,t)},element:function(e,t,n){return i.add(e,t,n)},error:function(e,t){s.push({message:e,context:t})}},o);t=t||e.diagrams&&e.diagrams[0];var r=function(e,t){if(!t)return;var n,i=t.plane.bpmnElement,r=i;kr(i,"bpmn:Process")||kr(i,"bpmn:Collaboration")||(r=function(e){var t=e;for(;t;){if(kr(t,"bpmn:Process"))return t;t=t.$parent}}(i));n=kr(r,"bpmn:Collaboration")?r:_(e.rootElements,(function(e){if(kr(e,"bpmn:Collaboration"))return _(e.participants,(function(e){return e.processRef===r}))}));var o=[r];n&&(o=R(n.participants,(function(e){return e.processRef}))).push(n);var a=Br(o),s=[t],c=[i];return E(e.diagrams,(function(e){var t=e.plane.bpmnElement;-1!==a.indexOf(t)&&-1===c.indexOf(t)&&(s.push(e),c.push(t))})),s}(e,t);if(!r)throw new Error(o("no diagram to display"));E(r,(function(t){n.handleDefinitions(e,t)}));var c=t.plane.bpmnElement.id;a.setRootElement(a.findRoot(c+"_plane")||a.findRoot(c))}return new Promise((function(l,p){try{return i=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("translate"),a=e.get("canvas"),r.fire("import.render.start",{definitions:t}),c(t,n),r.fire("import.render.complete",{error:undefined,warnings:s}),l({warnings:s})}catch(e){return e.warnings=s,p(e)}}))}function Br(e){var t=[];return E(e,(function(e){e&&(t.push(e),t=t.concat(Br(e.flowElements)))})),t}var jr,Nr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',Lr={verticalAlign:"middle"},Ir={color:"#404040"},Fr={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Vr={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Hr={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"};function $r(){jr||(ie(jr=Ee('<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg></a><span>Web-based tooling for BPMN, DMN and CMMN diagrams powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>'),Fr),ie(Pe("svg",jr),Lr),ie(Pe(".backdrop",jr),Vr),ie(Pe(".notice",jr),Hr),ie(Pe(".link",jr),Ir,{margin:"15px 20px 15px 10px",alignSelf:"center"}),we.bind(jr,".backdrop","click",(function(e){document.body.removeChild(jr)}))),document.body.appendChild(jr)}function Gr(e){var t,n;e=W({},Ur,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),t=this._container,ie(Pe("svg",n=Ee('<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+Nr+"</a>")),Lr),ie(n,Ir,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),t.appendChild(n),be.bind(n,"click",(function(e){$r(),e.preventDefault()})),this._init(this._container,this._moddle,e)}function Wr(e,t){return e.warnings=t,e}r(Gr,li),Gr.prototype.importXML=Pr((function(e,t){var n=this;return new Promise((function(i,r){e=n._emit("import.parse.start",{xml:e})||e,n._moddle.fromXML(e,"bpmn:Definitions").then((function(e){var o,a,s=e.rootElement,c=e.references,l=e.warnings,p=e.elementsById;s=n._emit("import.parse.complete",(o={error:null,definitions:s,elementsById:p,references:c,warnings:l},a=n.get("eventBus").createEvent(o),Object.defineProperty(a,"context",{enumerable:!0,get:function(){return console.warn(new Error("import.parse.complete <context> is deprecated and will be removed in future library versions")),{warnings:o.warnings,references:o.references,elementsById:o.elementsById}}}),a))||s,n.importDefinitions(s,t).then((function(e){var t=[].concat(l,e.warnings||[]);return n._emit("import.done",{error:null,warnings:t}),i({warnings:t})})).catch((function(e){var t=[].concat(l,e.warnings||[]);return n._emit("import.done",{error:e,warnings:t}),r(Wr(e,t))}))})).catch((function(e){return n._emit("import.parse.complete",{error:e}),e=function(e){var 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),n._emit("import.done",{error:e,warnings:e.warnings}),r(e)}))}))})),Gr.prototype.importDefinitions=Pr((function(e,t){var n=this;return new Promise((function(i,r){n._setDefinitions(e),n.open(t).then((function(e){var t=e.warnings;return i({warnings:t})})).catch((function(e){return r(e)}))}))})),Gr.prototype.open=Pr((function(e){var t=this._definitions,n=e,i=this;return new Promise((function(r,o){if(!t){var a=new Error("no XML imported");return o(Wr(a,[]))}if("string"==typeof e&&!(n=function(e,t){if(!t)return null;return _(e.diagrams,(function(e){return e.id===t}))||null}(t,e))){var s=new Error("BPMNDiagram <"+e+"> not found");return o(Wr(s,[]))}try{i.clear()}catch(e){return o(Wr(e,[]))}Or(i,t,n).then((function(e){var t=e.warnings;return r({warnings:t})})).catch((function(e){return o(e)}))}))})),Gr.prototype.saveXML=Pr((function(e){e=e||{};var t=this,n=this._definitions;return new Promise((function(i){if(!n)return i({error:new Error("no definitions loaded")});n=t._emit("saveXML.start",{definitions:n})||n,t._moddle.toXML(n,e).then((function(e){var n=e.xml;return n=t._emit("saveXML.serialized",{xml:n})||n,i({xml:n})}))})).catch((function(e){return{error:e}})).then((function(e){t._emit("saveXML.done",e);var n=e.error;return n?Promise.reject(n):e}))})),Gr.prototype.saveSVG=Pr((function(e){var t=this;return new Promise((function(e,n){var i,r;t._emit("saveSVG.start");try{var o=t.get("canvas"),a=o.getActiveLayer(),s=Pe("defs",o._svg),c=nt(a),l=s?"<defs>"+nt(s)+"</defs>":"",p=a.getBBox();i='<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+p.width+'" height="'+p.height+'" viewBox="'+p.x+" "+p.y+" "+p.width+" "+p.height+'" version="1.1">'+l+c+"</svg>"}catch(e){r=e}return t._emit("saveSVG.done",{error:r,svg:i}),r?n(r):e({svg:i})}))})),Gr.prototype._setDefinitions=function(e){this._definitions=e},Gr.prototype.getModules=function(){return this._modules},Gr.prototype.clear=function(){this.getDefinitions()&&li.prototype.clear.call(this)},Gr.prototype.destroy=function(){li.prototype.destroy.call(this),Re(this._container)},Gr.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},Gr.prototype.off=function(e,t){this.get("eventBus").off(e,t)},Gr.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=Pe(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},Gr.prototype.getDefinitions=function(){return this._definitions},Gr.prototype.detach=function(){var e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},Gr.prototype._init=function(e,t,n){var i=n.modules||this.getModules(),r=n.additionalModules||[],o=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,r),a=W(Y(n,["additionalModules"]),{canvas:W({},n.canvas,{container:e}),modules:o});li.call(this,a),n&&n.container&&this.attachTo(n.container)},Gr.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},Gr.prototype._createContainer=function(e){var t=Ee('<div class="bjs-container"></div>');return ie(t,{width:qr(e.width),height:qr(e.height),position:e.position}),t},Gr.prototype._createModdle=function(e){return new Sr(W({},this._moddleExtensions,e.moddleExtensions))},Gr.prototype._modules=[];var Ur={width:"100%",height:"100%",position:"relative"};function qr(e){return e+(f(e)?"px":"")}function Kr(e){Gr.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)}function Yr(e,t){return!kr(e,"bpmn:CallActivity")&&(kr(e,"bpmn:SubProcess")?!(!(t=t||zr(e))||!kr(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded:!kr(e,"bpmn:Participant")||!!Tr(e).processRef)}function Xr(e){return e&&!1!==Tr(e).isInterrupting}function Zr(e){return e&&!!Tr(e).triggeredByEvent}function Qr(e,t){var n=Tr(e),i=!1;return n.eventDefinitions&&E(n.eventDefinitions,(function(e){kr(e,t)&&(i=!0)})),i}function Jr(e){return kr(e,"bpmn:FlowElement")||kr(e,"bpmn:Participant")||kr(e,"bpmn:Lane")||kr(e,"bpmn:SequenceFlow")||kr(e,"bpmn:MessageFlow")||kr(e,"bpmn:DataInput")||kr(e,"bpmn:DataOutput")?"name":kr(e,"bpmn:TextAnnotation")?"text":kr(e,"bpmn:Group")?"categoryValueRef":void 0}function eo(e){var t=e.businessObject,n=Jr(t);if(n)return"categoryValueRef"===n?function(e){var t=e.categoryValueRef;return t&&t.value||""}(t):t[n]||""}r(Kr,Gr),Kr.prototype._createModdle=function(e){var t=Gr.prototype._createModdle.call(this,e);return t.ids=new a([32,36,1]),t},Kr.prototype._collectIds=function(e,t){var n,i=e.$model.ids;for(n in i.clear(),t)i.claim(n,t[n])};var to="hsl(225, 10%, 15%)";function no(e,t,n){return M(e.eventDefinitions,(function(i){return i.$type===t&&function(e,t){return P(t,(function(t,n){return e[n]==t}))}(e,n)}))}function io(e){return e.businessObject}function ro(e,t){var n=zr(e);return n.get("color:background-color")||n.get("bioc:fill")||t||"white"}function oo(e,t){var n=zr(e);return n.get("color:border-color")||n.get("bioc:stroke")||t||to}function ao(e,t,n){var i=zr(e).get("label");return i&&i.get("color:color")||t||oo(e,n)}var so=new a,co=.95;function lo(e,t,n,i,r,o,a){ft.call(this,t,a);var s=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,l=e&&e.defaultLabelColor,p=so.next(),u={},h=n.computeStyle;function d(e,t){var n=W({fill:to,strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},t.attrs),i=t.ref||{x:0,y:0},o=t.scale||1;"none"===n.strokeDasharray&&(n.strokeDasharray=[1e4,1]);var a=Ue("marker");ze(t.element,n),ke(a,t.element),ze(a,{id:e,viewBox:"0 0 20 20",refX:i.x,refY:i.y,markerWidth:20*o,markerHeight:20*o,orient:"auto"});var s=Pe("defs",r._svg);s||(s=Ue("defs"),ke(r._svg,s)),ke(s,a),u[e]=a}function f(e){return e.replace(/[^0-9a-zA-z]+/g,"_")}function v(e,t,n){var i=e+"-"+f(t)+"-"+f(n)+"-"+p;return u[i]||function(e,t,n,i){if("sequenceflow-end"===t){var r=Ue("path");ze(r,{d:"M 1 5 L 11 10 L 1 15 Z"}),d(e,{element:r,ref:{x:11,y:10},scale:.5,attrs:{fill:i,stroke:i}})}if("messageflow-start"===t){var o=Ue("circle");ze(o,{cx:6,cy:6,r:3.5}),d(e,{element:o,attrs:{fill:n,stroke:i},ref:{x:6,y:6}})}if("messageflow-end"===t){var a=Ue("path");ze(a,{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z"}),d(e,{element:a,attrs:{fill:n,stroke:i,strokeLinecap:"butt"},ref:{x:8.5,y:5}})}if("association-start"===t){var s=Ue("path");ze(s,{d:"M 11 5 L 1 10 L 11 15"}),d(e,{element:s,attrs:{fill:"none",stroke:i,strokeWidth:1.5},ref:{x:1,y:10},scale:.5})}if("association-end"===t){var c=Ue("path");ze(c,{d:"M 1 5 L 11 10 L 1 15"}),d(e,{element:c,attrs:{fill:"none",stroke:i,strokeWidth:1.5},ref:{x:12,y:10},scale:.5})}if("conditional-flow-marker"===t){var l=Ue("path");ze(l,{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z"}),d(e,{element:l,attrs:{fill:n,stroke:i},ref:{x:-1,y:10},scale:.5})}if("conditional-default-flow-marker"===t){var p=Ue("path");ze(p,{d:"M 6 4 L 10 16"}),d(e,{element:p,attrs:{stroke:i},ref:{x:0,y:10},scale:.5})}}(i,e,t,n),"url(#"+i+")"}function g(e,t,n,i,r){m(i)&&(r=i,i=0),i=i||0,"none"===(r=h(r,{stroke:to,strokeWidth:2,fill:"white"})).fill&&delete r.fillOpacity;var o=t/2,a=n/2,s=Ue("circle");return ze(s,{cx:o,cy:a,r:Math.round((t+n)/4-i)}),ze(s,r),ke(e,s),s}function y(e,t,n,i,r,o){m(r)&&(o=r,r=0),r=r||0,o=h(o,{stroke:to,strokeWidth:2,fill:"white"});var a=Ue("rect");return ze(a,{x:r,y:r,width:t-2*r,height:n-2*r,rx:i,ry:i}),ze(a,o),ke(e,a),a}function b(e,t,n){var i=yt(t,n=h(n,["no-fill"],{stroke:to,strokeWidth:2,fill:"none"}));return ke(e,i),i}function _(e,t,n){n=h(n,["no-fill"],{strokeWidth:2,stroke:to});var i=Ue("path");return ze(i,{d:t}),ze(i,n),ke(e,i),i}function x(e,t,n,i){return _(t,n,W({"data-marker":e},i))}function w(e){return k[e]}function S(e){return function(t,n){return w(e)(t,n)}}function C(e,t){var n=io(e),i=function(e){return"bpmn:IntermediateThrowEvent"===e.$type||"bpmn:EndEvent"===e.$type}(n);return n.eventDefinitions&&n.eventDefinitions.length>1?n.parallelMultiple?w("bpmn:ParallelMultipleEventDefinition")(t,e,i):w("bpmn:MultipleEventDefinition")(t,e,i):no(n,"bpmn:MessageEventDefinition")?w("bpmn:MessageEventDefinition")(t,e,i):no(n,"bpmn:TimerEventDefinition")?w("bpmn:TimerEventDefinition")(t,e,i):no(n,"bpmn:ConditionalEventDefinition")?w("bpmn:ConditionalEventDefinition")(t,e):no(n,"bpmn:SignalEventDefinition")?w("bpmn:SignalEventDefinition")(t,e,i):no(n,"bpmn:EscalationEventDefinition")?w("bpmn:EscalationEventDefinition")(t,e,i):no(n,"bpmn:LinkEventDefinition")?w("bpmn:LinkEventDefinition")(t,e,i):no(n,"bpmn:ErrorEventDefinition")?w("bpmn:ErrorEventDefinition")(t,e,i):no(n,"bpmn:CancelEventDefinition")?w("bpmn:CancelEventDefinition")(t,e,i):no(n,"bpmn:CompensateEventDefinition")?w("bpmn:CompensateEventDefinition")(t,e,i):no(n,"bpmn:TerminateEventDefinition")?w("bpmn:TerminateEventDefinition")(t,e,i):null}function P(e,t,n){n=W({size:{width:100}},n);var i=o.createText(t||"",n);return Le(i).add("djs-label"),ke(e,i),i}function M(e,t,n){return P(e,io(t).name,{box:t,align:n,padding:5,style:{fill:ao(t,l,c)}})}function R(e,t,n){ni(P(e,t,{box:{height:30,width:n.height},align:"center-middle",style:{fill:ao(n,l,c)}}),0,-(-1*n.height),270)}function A(e){for(var t=e.waypoints,n="m "+t[0].x+","+t[0].y,i=1;i<t.length;i++)n+="L"+t[i].x+","+t[i].y+" ";return n}var k=this.handlers={"bpmn:Event":function(e,t,n){return"fillOpacity"in n||(n.fillOpacity=co),g(e,t.width,t.height,n)},"bpmn:StartEvent":function(e,t){var n={fill:ro(t,s),stroke:oo(t,c)};io(t).isInterrupting||(n={strokeDasharray:"6",strokeLinecap:"round",fill:ro(t,s),stroke:oo(t,c)});var i=w("bpmn:Event")(e,t,n);return C(t,e),i},"bpmn:MessageEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.235,my:.315}}),{strokeWidth:1,fill:n?oo(t,c):ro(t,s),stroke:n?ro(t,s):oo(t,c)})},"bpmn:TimerEventDefinition":function(e,t){var n=g(e,t.width,t.height,.2*t.height,{strokeWidth:2,fill:ro(t,s),stroke:oo(t,c)});_(e,i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{strokeWidth:2,strokeLinecap:"square",stroke:oo(t,c)});for(var r=0;r<12;r++){var o=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),a=t.width/2;_(e,o,{strokeWidth:1,strokeLinecap:"square",transform:"rotate("+30*r+","+t.height/2+","+a+")",stroke:oo(t,c)})}return n},"bpmn:EscalationEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:n?oo(t,c):"none",stroke:oo(t,c)})},"bpmn:ConditionalEventDefinition":function(e,t){return _(e,i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.222}}),{strokeWidth:1,stroke:oo(t,c)})},"bpmn:LinkEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.57,my:.263}}),{strokeWidth:1,fill:n?oo(t,c):"none",stroke:oo(t,c)})},"bpmn:ErrorEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.2,my:.722}}),{strokeWidth:1,fill:n?oo(t,c):"none",stroke:oo(t,c)})},"bpmn:CancelEventDefinition":function(e,t,n){var r=_(e,i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.638,my:-.055}}),{strokeWidth:1,fill:n?oo(t,c):"none",stroke:oo(t,c)});return ri(r,45),r},"bpmn:CompensateEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.22,my:.5}}),{strokeWidth:1,fill:n?oo(t,c):"none",stroke:oo(t,c)})},"bpmn:SignalEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:n?oo(t,c):"none",stroke:oo(t,c)})},"bpmn:MultipleEventDefinition":function(e,t,n){return _(e,i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.222,my:.36}}),{strokeWidth:1,fill:n?oo(t,c):"none"})},"bpmn:ParallelMultipleEventDefinition":function(e,t){return _(e,i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:t.width,containerHeight:t.height,position:{mx:.458,my:.194}}),{strokeWidth:1,fill:oo(t,c),stroke:oo(t,c)})},"bpmn:EndEvent":function(e,t){var n=w("bpmn:Event")(e,t,{strokeWidth:4,fill:ro(t,s),stroke:oo(t,c)});return C(t,e),n},"bpmn:TerminateEventDefinition":function(e,t){return g(e,t.width,t.height,8,{strokeWidth:4,fill:oo(t,c),stroke:oo(t,c)})},"bpmn:IntermediateEvent":function(e,t){var n=w("bpmn:Event")(e,t,{strokeWidth:1,fill:ro(t,s),stroke:oo(t,c)});return g(e,t.width,t.height,3,{strokeWidth:1,fill:ro(t,"none"),stroke:oo(t,c)}),C(t,e),n},"bpmn:IntermediateCatchEvent":S("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":S("bpmn:IntermediateEvent"),"bpmn:Activity":function(e,t,n){return"fillOpacity"in(n=n||{})||(n.fillOpacity=co),y(e,t.width,t.height,10,n)},"bpmn:Task":function(e,t){var n={fill:ro(t,s),stroke:oo(t,c)},i=w("bpmn:Activity")(e,t,n);return M(e,t,"center-middle"),D(e,t),i},"bpmn:ServiceTask":function(e,t){var n=w("bpmn:Task")(e,t);return _(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{strokeWidth:1,fill:ro(t,s),stroke:oo(t,c)}),_(e,i.getScaledPath("TASK_TYPE_SERVICE_FILL",{abspos:{x:17.2,y:18}}),{strokeWidth:0,fill:ro(t,s)}),_(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{strokeWidth:1,fill:ro(t,s),stroke:oo(t,c)}),n},"bpmn:UserTask":function(e,t){var n=w("bpmn:Task")(e,t);return _(e,i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:ro(t,s),stroke:oo(t,c)}),_(e,i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:ro(t,s),stroke:oo(t,c)}),_(e,i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:oo(t,c),stroke:oo(t,c)}),n},"bpmn:ManualTask":function(e,t){var n=w("bpmn:Task")(e,t);return _(e,i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{strokeWidth:.5,fill:ro(t,s),stroke:oo(t,c)}),n},"bpmn:SendTask":function(e,t){var n=w("bpmn:Task")(e,t);return _(e,i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{strokeWidth:1,fill:oo(t,c),stroke:ro(t,s)}),n},"bpmn:ReceiveTask":function(e,t){var n,r=io(t),o=w("bpmn:Task")(e,t);return r.instantiate?(g(e,28,28,4.4,{strokeWidth:1}),n=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):n=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),_(e,n,{strokeWidth:1,fill:ro(t,s),stroke:oo(t,c)}),o},"bpmn:ScriptTask":function(e,t){var n=w("bpmn:Task")(e,t);return _(e,i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{strokeWidth:1,stroke:oo(t,c)}),n},"bpmn:BusinessRuleTask":function(e,t){var n=w("bpmn:Task")(e,t);return ze(_(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}})),{strokeWidth:1,fill:ro(t,"#aaaaaa"),stroke:oo(t,c)}),ze(_(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}})),{strokeWidth:1,stroke:oo(t,c)}),n},"bpmn:SubProcess":function(e,t,n){n=W({fill:ro(t,s),stroke:oo(t,c)},n);var i=w("bpmn:Activity")(e,t,n),r=Yr(t);return Zr(t)&&ze(i,{strokeDasharray:"1,2"}),M(e,t,r?"center-top":"center-middle"),r?D(e,t):D(e,t,["SubProcessMarker"]),i},"bpmn:AdHocSubProcess":function(e,t){return w("bpmn:SubProcess")(e,t)},"bpmn:Transaction":function(e,t){var i=w("bpmn:SubProcess")(e,t),r=n.style(["no-fill","no-events"],{stroke:oo(t,c)});return y(e,t.width,t.height,8,3,r),i},"bpmn:CallActivity":function(e,t){return w("bpmn:SubProcess")(e,t,{strokeWidth:5})},"bpmn:Participant":function(e,t){var n={fillOpacity:co,fill:ro(t,s),stroke:oo(t,c)},i=w("bpmn:Lane")(e,t,n);Yr(t)?(b(e,[{x:30,y:0},{x:30,y:t.height}],{stroke:oo(t,c)}),R(e,io(t).name,t)):P(e,io(t).name,{box:t,align:"center-middle",style:{fill:ao(t,l,c)}});return!!io(t).participantMultiplicity&&w("ParticipantMultiplicityMarker")(e,t),i},"bpmn:Lane":function(e,t,n){var i=y(e,t.width,t.height,0,W({fill:ro(t,s),fillOpacity:.35,stroke:oo(t,c)},n)),r=io(t);"bpmn:Lane"===r.$type&&R(e,r.name,t);return i},"bpmn:InclusiveGateway":function(e,t){var n=w("bpmn:Gateway")(e,t);return g(e,t.width,t.height,.24*t.height,{strokeWidth:2.5,fill:ro(t,s),stroke:oo(t,c)}),n},"bpmn:ExclusiveGateway":function(e,t){var n=w("bpmn:Gateway")(e,t),r=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return zr(t).isMarkerVisible&&_(e,r,{strokeWidth:1,fill:oo(t,c),stroke:oo(t,c)}),n},"bpmn:ComplexGateway":function(e,t){var n=w("bpmn:Gateway")(e,t);return _(e,i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{strokeWidth:1,fill:oo(t,c),stroke:oo(t,c)}),n},"bpmn:ParallelGateway":function(e,t){var n=w("bpmn:Gateway")(e,t);return _(e,i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{strokeWidth:1,fill:oo(t,c),stroke:oo(t,c)}),n},"bpmn:EventBasedGateway":function(e,t){var n=io(t),r=w("bpmn:Gateway")(e,t);g(e,t.width,t.height,.2*t.height,{strokeWidth:1,fill:"none",stroke:oo(t,c)});var o=n.eventGatewayType,a=!!n.instantiate;if("Parallel"===o){var s=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}});ze(_(e,s),{strokeWidth:1,fill:"none"})}else if("Exclusive"===o){if(!a)ze(g(e,t.width,t.height,.26*t.height),{strokeWidth:1,fill:"none",stroke:oo(t,c)});!function(){var n=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:t.width,containerHeight:t.height,position:{mx:.36,my:.44}}),r={strokeWidth:2,fill:ro(t,"none"),stroke:oo(t,c)};_(e,n,r)}()}return r},"bpmn:Gateway":function(e,t){var n={fill:ro(t,s),fillOpacity:co,stroke:oo(t,c)};return function(e,t,n,i){var r=t/2,o=n/2,a=[{x:r,y:0},{x:t,y:o},{x:r,y:n},{x:0,y:o}].map((function(e){return e.x+","+e.y})).join(" ");i=h(i,{stroke:to,strokeWidth:2,fill:"white"});var s=Ue("polygon");return ze(s,{points:a}),ze(s,i),ke(e,s),s}(e,t.width,t.height,n)},"bpmn:SequenceFlow":function(e,t){var n,i=A(t),r=ro(t,s),o=oo(t,c),a=_(e,i,{strokeLinejoin:"round",markerEnd:v("sequenceflow-end",r,o),stroke:oo(t,c)}),l=io(t);return t.source&&(n=t.source.businessObject,l.conditionExpression&&n.$instanceOf("bpmn:Activity")&&ze(a,{markerStart:v("conditional-flow-marker",r,o)}),n.default&&(n.$instanceOf("bpmn:Gateway")||n.$instanceOf("bpmn:Activity"))&&n.default===l&&ze(a,{markerStart:v("conditional-default-flow-marker",r,o)})),a},"bpmn:Association":function(e,t,n){var i=io(t),r=ro(t,s),o=oo(t,c);return n=W({strokeDasharray:"0.5, 5",strokeLinecap:"round",strokeLinejoin:"round",stroke:oo(t,c)},n||{}),"One"!==i.associationDirection&&"Both"!==i.associationDirection||(n.markerEnd=v("association-end",r,o)),"Both"===i.associationDirection&&(n.markerStart=v("association-start",r,o)),b(e,t.waypoints,n)},"bpmn:DataInputAssociation":function(e,t){var n=ro(t,s),i=oo(t,c);return w("bpmn:Association")(e,t,{markerEnd:v("association-end",n,i)})},"bpmn:DataOutputAssociation":function(e,t){var n=ro(t,s),i=oo(t,c);return w("bpmn:Association")(e,t,{markerEnd:v("association-end",n,i)})},"bpmn:MessageFlow":function(e,t){var n=io(t),r=zr(t),o=ro(t,s),a=oo(t,c),p=_(e,A(t),{markerEnd:v("messageflow-end",o,a),markerStart:v("messageflow-start",o,a),strokeDasharray:"10, 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5px",stroke:oo(t,c)});if(n.messageRef){var u=p.getPointAtLength(p.getTotalLength()/2),h=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:u.x,y:u.y}}),d={strokeWidth:1};"initiating"===r.messageVisibleKind?(d.fill="white",d.stroke=to):(d.fill="#888",d.stroke="white");var m=_(e,h,d),f=P(e,n.messageRef.name,{align:"center-top",fitBox:!0,style:{fill:oo(t,l)}}),g=m.getBBox(),y=f.getBBox();ni(f,u.x-y.width/2,u.y+g.height/2+10,0)}return p},"bpmn:DataObject":function(e,t){var n=_(e,i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:ro(t,s),fillOpacity:co,stroke:oo(t,c)});return function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}(io(t))&&function(e,t){var n=(t.height-18)/t.height,r=i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.33,my:n}});_(e,r,{strokeWidth:2})}(e,t),n},"bpmn:DataObjectReference":S("bpmn:DataObject"),"bpmn:DataInput":function(e,t){var n=i.getRawPath("DATA_ARROW"),r=w("bpmn:DataObject")(e,t);return _(e,n,{strokeWidth:1}),r},"bpmn:DataOutput":function(e,t){var n=i.getRawPath("DATA_ARROW"),r=w("bpmn:DataObject")(e,t);return _(e,n,{strokeWidth:1,fill:to}),r},"bpmn:DataStoreReference":function(e,t){return _(e,i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{strokeWidth:2,fill:ro(t,s),fillOpacity:co,stroke:oo(t,c)})},"bpmn:BoundaryEvent":function(e,t){var n=io(t).cancelActivity,i={strokeWidth:1,fill:ro(t,s),stroke:oo(t,c)};n||(i.strokeDasharray="6",i.strokeLinecap="round");var r=W({},i,{fillOpacity:1}),o=W({},i,{fill:"none"}),a=w("bpmn:Event")(e,t,r);return g(e,t.width,t.height,3,o),C(t,e),a},"bpmn:Group":function(e,t){return y(e,t.width,t.height,10,{stroke:oo(t,c),strokeWidth:1,strokeDasharray:"8,3,1,3",fill:"none",pointerEvents:"none"})},label:function(e,t){return function(e,t){var n={width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y};return P(e,eo(t),{box:n,fitBox:!0,style:W({},o.getExternalStyle(),{fill:ao(t,l,c)})})}(e,t)},"bpmn:TextAnnotation":function(e,t){var n=y(e,t.width,t.height,0,0,{fill:"none",stroke:"none"});return _(e,i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:0}}),{stroke:oo(t,c)}),P(e,io(t).text||"",{box:t,align:"left-top",padding:5,style:{fill:ao(t,l,c)}}),n},ParticipantMultiplicityMarker:function(e,t){x("participant-multiplicity",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:t.width/2/t.width,my:(t.height-15)/t.height}}),{strokeWidth:2,fill:ro(t,s),stroke:oo(t,c)})},SubProcessMarker:function(e,t){ii(y(e,14,14,0,{strokeWidth:1,fill:ro(t,s),stroke:oo(t,c)}),t.width/2-7.5,t.height-20),x("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:ro(t,s),stroke:oo(t,c)})},ParallelMarker:function(e,t,n){x("parallel",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.parallel)/t.width,my:(t.height-20)/t.height}}),{fill:ro(t,s),stroke:oo(t,c)})},SequentialMarker:function(e,t,n){x("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:ro(t,s),stroke:oo(t,c)})},CompensationMarker:function(e,t,n){x("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:ro(t,s),stroke:oo(t,c)})},LoopMarker:function(e,t,n){x("loop",e,i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.loop)/t.width,my:(t.height-7)/t.height}}),{strokeWidth:1,fill:ro(t,s),stroke:oo(t,c),strokeLinecap:"round",strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){x("adhoc",e,i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.adhoc)/t.width,my:(t.height-15)/t.height}}),{strokeWidth:1,fill:oo(t,c),stroke:oo(t,c)})}};function D(e,t,n){var i,r=io(t),o=n&&-1!==n.indexOf("SubProcessMarker");i=o?{seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{seq:-3,parallel:-6,compensation:-27,loop:0,adhoc:10},E(n,(function(n){w(n)(e,t,i)})),r.isForCompensation&&w("CompensationMarker")(e,t,i),"bpmn:AdHocSubProcess"===r.$type&&w("AdhocMarker")(e,t,i);var a=r.loopCharacteristics,s=a&&a.isSequential;a&&(void 0===s&&w("LoopMarker")(e,t,i),!1===s&&w("ParallelMarker")(e,t,i),!0===s&&w("SequentialMarker")(e,t,i))}this._drawPath=_,this._renderer=w}r(lo,ft),lo.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],lo.prototype.canRender=function(e){return kr(e,"bpmn:BaseElement")},lo.prototype.drawShape=function(e,t){var n=t.type;return this._renderer(n)(e,t)},lo.prototype.drawConnection=function(e,t){var n=t.type;return this._renderer(n)(e,t)},lo.prototype.getShapePath=function(e){return kr(e,"bpmn:Event")?(n=(t=e).x+t.width/2,i=t.y+t.height/2,r=t.width/2,vt([["M",n,i],["m",0,-r],["a",r,r,0,1,1,0,2*r],["a",r,r,0,1,1,0,-2*r],["z"]])):kr(e,"bpmn:Activity")?function(e,t){var n=e.x,i=e.y,r=e.width,o=e.height;return vt([["M",n+t,i],["l",r-2*t,0],["a",t,t,0,0,1,t,t],["l",0,o-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-r,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-o],["a",t,t,0,0,1,t,-t],["z"]])}(e,10):kr(e,"bpmn:Gateway")?function(e){var t=e.width/2,n=e.height/2;return vt([["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 vt([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])}(e);var t,n,i,r};var po={width:150,height:50};function uo(e,t){var n;t.textContent=e;try{var i,r=""===e;return t.textContent=r?"dummy":e,i={width:(n=t.getBBox()).width+2*n.x,height:n.height},r&&(i.width=0),i}catch(e){return{width:0,height:0}}}function ho(e,t,n){for(var i,r=e.shift(),o=r;;){if((i=uo(o,n)).width=o?i.width:0," "===o||""===o||i.width<Math.round(t)||o.length<2)return mo(e,o,r,i);o=fo(o,i.width,t)}}function mo(e,t,n,i){if(t.length<n.length){var r=n.slice(t.length).trim();e.unshift(r)}return{width:i.width,height:i.height,text:t}}function fo(e,t,n){var i=Math.max(e.length*(n/t),1),r=function(e,t){var n,i=e.split(/(\s|-|\u00AD)/g),r=[],o=0;if(i.length>1)for(;n=i.shift();){if(!(n.length+o<t)){"-"!==n&&"­"!==n||r.pop();break}r.push(n),o+=n.length}var a=r[r.length-1];return a&&"­"===a&&(r[r.length-1]="-"),r.join("")}(e,i);return r||(r=e.slice(0,Math.max(Math.round(i-1),1))),r}function vo(e){this._config=W({},{size:po,padding:0,style:{},align:"center-top"},e||{})}vo.prototype.createText=function(e,t){return this.layoutText(e,t).element},vo.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions},vo.prototype.layoutText=function(e,t){var n=W({},this._config.size,t.box),i=W({},this._config.style,t.style),r=function(e){var t=e.split("-");return{horizontal:t[0]||"center",vertical:t[1]||"top"}}(t.align||this._config.align),o=function(e){return m(e)?W({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}(void 0!==t.padding?t.padding:this._config.padding),a=t.fitBox||!1,s=function(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}(i),c=e.split(/\u00AD?\r?\n/),l=[],p=n.width-o.left-o.right,u=Ue("text");for(ze(u,{x:0,y:0}),ze(u,i),ke(function(){var e=document.getElementById("helper-svg");return e||(ze(e=Ue("svg"),{id:"helper-svg",width:0,height:0,visibility:"hidden",position:"fixed"}),document.body.appendChild(e)),e}(),u);c.length;)l.push(ho(c,p,u));"middle"===r.vertical&&(o.top=o.bottom=0);var h=C(l,(function(e,t,n){return e+(s||t.height)}),0)+o.top+o.bottom,d=C(l,(function(e,t,n){return t.width>e?t.width:e}),0),f=o.top;"middle"===r.vertical&&(f+=(n.height-h)/2),f-=(s||l[0].height)/4;var v=Ue("text");return ze(v,i),E(l,(function(e){var t;switch(f+=s||e.height,r.horizontal){case"left":t=o.left;break;case"right":t=(a?d:p)-o.right-e.width;break;default:t=Math.max(((a?d:p)-e.width)/2+o.left,0)}var n=Ue("tspan");ze(n,{x:t,y:f}),n.textContent=e.text,ke(v,n)})),Fe(u),{dimensions:{width:d,height:h},element:v}};function go(e){var t=W({fontFamily:"Arial, sans-serif",fontSize:12,fontWeight:"normal",lineHeight:1.2},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=W({},t,{fontSize:n},e&&e.externalStyle||{}),r=new vo({style:t});this.getExternalLabelBounds=function(e,t){var n=r.getDimensions(t,{box:{width:90,height:30,x:e.width/2+e.x,y:e.height/2+e.y},style:i});return{x:Math.round(e.x+e.width/2-n.width/2),y:Math.round(e.y),width:Math.ceil(n.width),height:Math.ceil(n.height)}},this.getTextAnnotationBounds=function(e,n){var i=r.getDimensions(n,{box:e,style:t,align:"left-top",padding:5});return{x:e.x,y:e.y,width:e.width,height:Math.max(30,Math.round(i.height))}},this.createText=function(e,t){return r.createText(e,t||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}go.$inject=["config.textRenderer"];var yo=/\{([^{}]+)\}/g,bo=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;var _o={__init__:["bpmnRenderer"],bpmnRenderer:["type",lo],textRenderer:["type",go],pathMap:["type",function(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,i,r=this.pathMap[e];t.abspos?(n=t.abspos.x,i=t.abspos.y):(n=t.containerWidth*t.position.mx,i=t.containerHeight*t.position.my);var o,a,s={};if(t.position){for(var c=t.containerHeight/r.height*t.yScaleFactor,l=t.containerWidth/r.width*t.xScaleFactor,p=0;p<r.heightElements.length;p++)s["y"+p]=r.heightElements[p]*c;for(var u=0;u<r.widthElements.length;u++)s["x"+u]=r.widthElements[u]*l}return o=r.d,a={mx:n,my:i,e:s},String(o).replace(yo,(function(e,t){return function(e,t,n){var i=n;return t.replace(bo,(function(e,t,n,r,o){t=t||r,i&&(t in i&&(i=i[t]),"function"==typeof i&&o&&(i=i()))})),i=(null==i||i==n?e:i)+""}(e,t,a)}))}}]};var xo={translate:["value",function(e,t){return t=t||{},e.replace(/{([^}]+)}/g,(function(e,n){return t[n]||"{"+n+"}"}))}]},wo={width:90,height:20};function Eo(e){return kr(e,"bpmn:Event")||kr(e,"bpmn:Gateway")||kr(e,"bpmn:DataStoreReference")||kr(e,"bpmn:DataObjectReference")||kr(e,"bpmn:DataInput")||kr(e,"bpmn:DataOutput")||kr(e,"bpmn:SequenceFlow")||kr(e,"bpmn:MessageFlow")||kr(e,"bpmn:Group")}function So(e){return Mo(e.label)}function Co(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],r=function(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)];return{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2}}(e),o=Math.atan((i.y-n.y)/(i.x-n.x)),a=r.x,s=r.y;return Math.abs(o)<Math.PI/2?s-=15:a+=15,{x:a,y:s}}function Po(e){return e.waypoints?Co(e.waypoints):kr(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+wo.height/2}:{x:e.x+e.width/2,y:e.y+e.height+wo.height/2}}function Mo(e){return e&&!!e.labelTarget}function Ro(e,t,n){return W({id:e.id,type:e.$type,businessObject:e,di:t},n)}function Ao(e,t,n){var i=e.waypoint;return!i||i.length<2?[Sn(t),Sn(n)]:i.map((function(e){return{x:e.x,y:e.y}}))}function ko(e,t,n,i){return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn",{element:Cr(n),referenced:Cr(t),property:i}))}function Do(e,t,n,i,r,o){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._translate=r,this._textRenderer=o}Do.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate","textRenderer"],Do.prototype.add=function(e,t,n){var i,r,o,a=this._translate;if(kr(t,"bpmndi:BPMNPlane")){var s=kr(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(Ro(e,t,s)),this._canvas.addRootElement(i)}else if(kr(t,"bpmndi:BPMNShape")){var c=!Yr(e,t),l=function(e){return kr(e,"bpmn:Group")}(e);r=n&&(n.hidden||n.collapsed);var p=t.bounds;i=this._elementFactory.createShape(Ro(e,t,{collapsed:c,hidden:r,x:Math.round(p.x),y:Math.round(p.y),width:Math.round(p.width),height:Math.round(p.height),isFrame:l})),kr(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),kr(e,"bpmn:Lane")&&(o=0),kr(e,"bpmn:DataStoreReference")&&(function(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}(n,Sn(p))||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,o)}else{if(!kr(t,"bpmndi:BPMNEdge"))throw new Error(a("unknown di {di} for element {semantic}",{di:Cr(t),semantic:Cr(e)}));var u=this._getSource(e),h=this._getTarget(e);r=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(Ro(e,t,{hidden:r,source:u,target:h,waypoints:Ao(t,u,h)})),kr(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),kr(e,"bpmn:SequenceFlow")&&(o=0),this._canvas.addConnection(i,n,o)}return Eo(e)&&eo(i)&&this.addLabel(e,t,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},Do.prototype._attachBoundary=function(e,t){var n=this._translate,i=e.attachedToRef;if(!i)throw new Error(n("missing {semantic}#attachedToRef",{semantic:Cr(e)}));var r=this._elementRegistry.get(i.id),o=r&&r.attachers;if(!r)throw ko(n,e,i,"attachedToRef");t.host=r,o||(r.attachers=o=[]),-1===o.indexOf(t)&&o.push(t)},Do.prototype.addLabel=function(e,t,n){var i,r,o;return i=function(e,t){var n,i,r,o=e.label;return o&&o.bounds?(r=o.bounds,i={width:Math.max(wo.width,r.width),height:r.height},n={x:r.x+r.width/2,y:r.y+r.height/2}):(n=Po(t),i=wo),W({x:n.x-i.width/2,y:n.y-i.height/2},i)}(t,n),(r=eo(n))&&(i=this._textRenderer.getExternalLabelBounds(i,r)),o=this._elementFactory.createLabel(Ro(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!eo(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(o,n.parent)},Do.prototype._getEnd=function(e,t){var n,i,r=e.$type,o=this._translate;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===r||"target"===t&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?ko(o,e,i,t+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:Cr(e),side:t}))},Do.prototype._getSource=function(e){return this._getEnd(e,"source")},Do.prototype._getTarget=function(e){return this._getEnd(e,"target")},Do.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};var To={__depends__:[_o,{__depends__:[xo],bpmnImporter:["type",Do]}]};function zo(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()}function Oo(e){return e.originalEvent||e.srcEvent}function Bo(e,t){zo(e),zo(Oo(e))}function jo(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 No(e,t){return(Oo(e)||e).button===t}function Lo(e){return No(e,0)}function Io(e){var t=Oo(e)||e;return!!Lo(e)&&(/mac/i.test(navigator.platform)?t.metaKey:t.ctrlKey)}function Fo(e){var t=Oo(e)||e;return Lo(e)&&t.shiftKey}function Vo(e){return!0}function Ho(e){return Lo(e)||function(e){return No(e,1)}(e)}function $o(e,t,n){var i=this;function r(n,i,r){var o,a;(function(e,t){return!(c[e]||Lo)(t)})(n,i)||(r?a=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(a=o,r=t.get(a)),a&&r&&!1===e.fire(n,{element:r,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function a(e){return o[e]}var s={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},c={"element.contextmenu":Vo,"element.mousedown":Ho,"element.mouseup":Ho,"element.click":Ho,"element.dblclick":Ho};function l(e,t,n,i){var a=o[n]=function(e){r(n,e)};i&&(c[n]=i),a.$delegate=we.bind(e,"svg, .djs-element",t,a)}function p(e,t,n){var i=a(n);i&&we.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,E(s,(function(e,n){p(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,E(s,(function(e,n){l(t,n,e)}))})),e.on(["shape.added","connection.added"],(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.createHit",{element:n,gfx:i})})),e.on(["shape.changed","connection.changed"],500,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",500,(function(e){var t=e.element,n=e.gfx;i.createDefaultHit(t,n)})),e.on("interactionEvents.updateHit",(function(e){var t=e.element,n=e.gfx;i.updateDefaultHit(t,n)}));var u=m("djs-hit djs-hit-stroke"),h=m("djs-hit djs-hit-click-stroke"),d={all:m("djs-hit djs-hit-all"),"click-stroke":h,stroke:u,"no-move":m("djs-hit djs-hit-no-move")};function m(e,t){return t=W({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function f(e,t){var n=d[t];if(!n)throw new Error("invalid hit type <"+t+">");return ze(e,n),e}function v(e,t){ke(e,t)}this.removeHits=function(e){E(Me(".djs-hit",e),Fe)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,r=e.isFrame;return i?this.createWaypointsHit(t,i):(n=r?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n=yt(t);return f(n,"stroke"),v(e,n),n},this.createBoxHit=function(e,t,n){n=W({x:0,y:0},n);var i=Ue("rect");return f(i,t),ze(i,n),v(e,i),i},this.updateDefaultHit=function(e,t){var n=Pe(".djs-hit",t);if(n)return e.waypoints?function(e,t){ze(e,{points:gt(t)})}(n,e.waypoints):ze(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=s[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=a,this.registerEvent=l,this.unregisterEvent=p}$o.$inject=["eventBus","elementRegistry","styles"];var Go={__init__:["interactionEvents"],interactionEvents:["type",$o]};function Wo(e,t,n){this.offset=6;var i=t.cls("djs-outline",["no-fill"]),r=this;function o(e,t){var n=Ue("rect");return ze(n,W({x:10,y:10,rx:3,width:100,height:100},i)),ke(e,n),n}e.on(["shape.added","shape.changed"],500,(function(e){var t=e.element,n=e.gfx,i=Pe(".djs-outline",n);i||(i=o(n)),r.updateShapeOutline(i,t)})),e.on(["connection.added","connection.changed"],(function(e){var t=e.element,n=e.gfx,i=Pe(".djs-outline",n);i||(i=o(n)),r.updateConnectionOutline(i,t)}))}Wo.prototype.updateShapeOutline=function(e,t){ze(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=St(t);ze(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},Wo.$inject=["eventBus","styles","elementRegistry"];var Uo={__init__:["outline"],outline:["type",Wo]};function qo(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)}))}qo.$inject=["eventBus","canvas"],qo.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})}},qo.prototype.get=function(){return this._selectedElements},qo.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},qo.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();d(e)||(e=e?[e]:[]);var r=this._canvas,o=r.getRootElement();e=e.filter((function(e){var t=r.findRoot(e);return o===t})),t?E(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 Ko="hover",Yo="selected";function Xo(e,t,n){this._canvas=e;var i=this;function r(t,n){e.addMarker(t,n)}function o(t,n){e.removeMarker(t,n)}this._multiSelectionBox=null,t.on("element.hover",(function(e){r(e.element,Ko)})),t.on("element.out",(function(e){o(e.element,Ko)})),t.on("selection.changed",(function(e){var t=e.oldSelection,n=e.newSelection;E(t,(function(e){-1===n.indexOf(e)&&function(e){o(e,Yo)}(e)})),E(n,(function(e){-1===t.indexOf(e)&&function(e){r(e,Yo)}(e)})),i._updateSelectionOutline(n)})),t.on("element.changed",(function(e){n.isSelected(e.element)&&i._updateSelectionOutline(n.get())}))}function Zo(e,t,n,i){e.on("create.end",500,(function(e){var n=e.context,i=n.canExecute,r=n.elements,o=(n.hints||{}).autoSelect;if(i){if(!1===o)return;d(o)?t.select(o):t.select(r.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||[],r=i.get(e.context.shape.id);_(n,(function(e){return r.id===e.id}))||t.select(r)})),e.on("element.click",(function(e){if(Lo(e)){var i=e.element;i===n.getRootElement()&&(i=null);var r=t.isSelected(i),o=t.get().length>1,a=Io(e)||Fo(e);if(r&&o)return a?t.deselect(i):t.select(i);r?t.deselect(i):t.select(i,a)}}))}function Qo(e){return!e.hidden}Xo.$inject=["canvas","eventBus","selection"],Xo.prototype._updateSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");Ve(t);var n=e.length>1;if(Le(this._canvas.getContainer())[n?"add":"remove"]("djs-multi-select"),n){var i=function(e){return{x:e.x-6,y:e.y-6,width:e.width+12,height:e.height+12}}(St(e)),r=Ue("rect");ze(r,W({rx:3},i)),Le(r).add("djs-selection-outline"),ke(t,r)}},Zo.$inject=["eventBus","selection","canvas","elementRegistry"];var Jo={__init__:["selectionVisuals","selectionBehavior"],__depends__:[Go,Uo],selection:["type",qo],selectionVisuals:["type",Xo],selectionBehavior:["type",Zo]};function ea(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}ea.prototype.next=function(){return this._prefix+ ++this._counter};var ta=new ea("ov");function na(e,t,n,i){var r,o;this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=ta,this._overlayDefaults=W({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(r=n.getContainer(),ie(o=Ee('<div class="djs-overlay-container" />'),{position:"absolute",width:0,height:0}),r.insertBefore(o,r.firstChild),o),this._init()}function ia(e,t,n){ie(e,{left:t+"px",top:n+"px"})}function ra(e,t){e.style.display=!1===t?"none":""}function oa(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}na.$inject=["config.overlays","eventBus","canvas","elementRegistry"],na.prototype.get=function(e){if(g(e)&&(e={id:e}),g(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?w(t.overlays,j({type:e.type})):t.overlays.slice():[]}return e.type?w(this._overlays,j({type:e.type})):e.id?this._overlays[e.id]:null},na.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=W({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},na.prototype.remove=function(e){var t=this.get(e)||[];d(t)||(t=[t]);var n=this;E(t,(function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(Re(e.html),Re(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)}}))},na.prototype.show=function(){ra(this._overlayRoot)},na.prototype.hide=function(){ra(this._overlayRoot,!1)},na.prototype.clear=function(){this._overlays={},this._overlayContainers=[],ue(this._overlayRoot)},na.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,r=t.y;if(t.waypoints){var o=St(t);i=o.x,r=o.y}ia(n,i,r),re(e.html,"data-container-id",t.id)},na.prototype._updateOverlay=function(e){var t,n,i=e.position,r=e.htmlContainer,o=e.element,a=i.left,s=i.top;void 0!==i.right&&(t=o.waypoints?St(o).width:o.width,a=-1*i.right+t);void 0!==i.bottom&&(n=o.waypoints?St(o).height:o.height,s=-1*i.bottom+n);ia(r,a||0,s||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},na.prototype._createOverlayContainer=function(e){var t=Ee('<div class="djs-overlays" />');ie(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},na.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";oa(this._overlayRoot,n)},na.prototype._getOverlayContainer=function(e,t){var n=_(this._overlayContainers,(function(t){return t.element===e}));return n||t?n:this._createOverlayContainer(e)},na.prototype._addOverlay=function(e){var t,n,i=e.id,r=e.element,o=e.html;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),g(o)&&(o=Ee(o)),n=this._getOverlayContainer(r),ie(t=Ee('<div class="djs-overlay" data-overlay-id="'+i+'">'),{position:"absolute"}),t.appendChild(o),e.type&&le(t).add("djs-overlay-"+e.type),ra(t,this._canvas.findRoot(r)===this._canvas.getRootElement()),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},na.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=this._canvas.findRoot(e.element),r=n&&n.minZoom,o=n&&n.maxZoom,a=e.htmlContainer,s=!0;(i!==this._canvas.getRootElement()||n&&(u(r)&&r>t.scale||u(o)&&o<t.scale))&&(s=!1),ra(a,s),this._updateOverlayScale(e,t)},na.prototype._updateOverlayScale=function(e,t){var n,i,r,o=e.scale,a=e.htmlContainer,s="";!0!==o&&(!1===o?(n=1,i=1):(n=o.min,i=o.max),u(n)&&t.scale<n&&(r=(1/t.scale||1)*n),u(i)&&t.scale>i&&(r=(1/t.scale||1)*i)),u(r)&&(s="scale("+r+","+r+")"),oa(a,s)},na.prototype._updateOverlaysVisibilty=function(e){var t=this;E(this._overlays,(function(n){t._updateOverlayVisibilty(n,e)}))},na.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;E(t.get({element:n}),(function(e){t.remove(e.id)}));var i=t._getOverlayContainer(n);if(i){Re(i.html);var r=t._overlayContainers.indexOf(i);-1!==r&&t._overlayContainers.splice(r,1)}})),e.on("element.changed",500,(function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(E(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&&le(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)};var aa={__init__:["overlays"],overlays:["type",na]};function sa(e,t,n,i){e.on("element.changed",(function(i){var r=i.element;(r.parent||r===t.getRootElement())&&(i.gfx=n.getGraphics(r)),i.gfx&&e.fire(Ct(r)+".changed",i)})),e.on("elements.changed",(function(t){var n=t.elements;n.forEach((function(t){e.fire("element.changed",{element:t})})),i.updateContainments(n)})),e.on("shape.changed",(function(e){i.update("shape",e.element,e.gfx)})),e.on("connection.changed",(function(e){i.update("connection",e.element,e.gfx)}))}sa.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];var ca={__init__:["changeSupport"],changeSupport:["type",sa]};function la(e){this._eventBus=e}la.$inject=["eventBus"],la.prototype.on=function(e,t,n,i,r,o){if((v(t)||f(t))&&(o=r,r=i,i=n,n=t,t=null),v(n)&&(o=r,r=i,i=n,n=1e3),m(r)&&(o=r,r=!1),!v(i))throw new Error("handlerFn must be a function");d(e)||(e=[e]);var a=this._eventBus;E(e,(function(e){var s=["commandStack",e,t].filter((function(e){return e})).join(".");a.on(s,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,o):i,o)}))};function pa(e,t){t.invoke(la,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)}))}E(["canExecute","preExecute","preExecuted","execute","executed","postExecute","postExecuted","revert","reverted"],(function(e){la.prototype[e]=function(t,n,i,r,o){(v(t)||f(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}})),r(pa,la),pa.$inject=["canvas","injector"];var ua={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",pa]},ha=n((function(t,n){var i;i=e,t.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,n=String(e),i=n.length,r=-1,o="",a=n.charCodeAt(0);++r<i;)0!=(t=n.charCodeAt(r))?o+=t>=1&&t<=31||127==t||0==r&&t>=48&&t<=57||1==r&&t>=48&&t<=57&&45==a?"\\"+t.toString(16)+" ":0==r&&1==i&&45==t||!(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?"\\"+n.charAt(r):n.charAt(r):o+="�";return o};return e.CSS||(e.CSS={}),e.CSS.escape=t,t}(i)})),da={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};
2
+ /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */function ma(e){return(e=""+e)&&e.replace(/[&<>"']/g,(function(e){return da[e]}))}var fa="_plane";function va(e){return function(e){return e.replace(new RegExp("_plane$"),"")}(e.id)}function ga(e){var t=e.id;return kr(e,"bpmn:SubProcess")?_a(t):t}function ya(e){return _a(e)}function ba(e){return kr(zr(e),"bpmndi:BPMNPlane")}function _a(e){return e+fa}function xa(e,t,n,i){var r=Ee('<ul class="bjs-breadcrumbs"></ul>'),o=i.getContainer(),a=le(o);o.appendChild(r);var s=[];function c(e){e&&(s=function(e){for(var t=Tr(e),n=[],i=t;i;i=i.$parent)(kr(i,"bpmn:SubProcess")||kr(i,"bpmn:Process"))&&n.push(i);return n.reverse()}(e));var n=s.map((function(e){var n=ma(e.name||e.id),r=Ee('<li><span class="bjs-crumb"><a title="'+n+'">'+n+"</a></span></li>"),o=i.findRoot(ga(e))||i.findRoot(e.id);if(!o&&kr(e,"bpmn:Process")){var a=t.find((function(t){var n=Tr(t);return n&&n.processRef&&n.processRef===e}));o=i.findRoot(a.id)}return r.addEventListener("click",(function(){i.setRootElement(o)})),r}));r.innerHTML="";var o=n.length>1;a.toggle("bjs-breadcrumbs-shown",o),n.forEach((function(e){r.appendChild(e)}))}e.on("element.changed",(function(e){var t=Tr(e.element);_(s,(function(e){return e===t}))&&c()})),e.on("root.set",(function(e){c(e.element)}))}function wa(e,t){var n=null,i=new Ea;e.on("root.set",(function(e){var r=e.element,o=t.viewbox(),a=i.get(r);if(i.set(n,{x:o.x,y:o.y,zoom:o.scale}),n=r,!kr(r,"bpmn:Collaboration")||a){a=a||{x:0,y:0,zoom:1};var s=(o.x-a.x)*o.scale,c=(o.y-a.y)*o.scale;0===s&&0===c||t.scroll({dx:s,dy:c}),a.zoom!==o.scale&&t.zoom(a.zoom,{x:0,y:0})}})),e.on("diagram.clear",(function(){i.clear(),n=null}))}function Ea(){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)}}xa.$inject=["eventBus","elementRegistry","overlays","canvas"],wa.$inject=["eventBus","canvas"];var Sa=180,Ca=160;function Pa(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 Ma(e){return kr(e,"bpmndi:BPMNDiagram")?e:Ma(e.$parent)}Pa.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)}))}},Pa.prototype.createNewDiagrams=function(e){var t=this,n=[],i=[];e.get("planeElement").forEach((function(t){var r=t.bpmnElement;if(r){var o=r.$parent;kr(r,"bpmn:SubProcess")&&!t.isExpanded&&n.push(r),function(e,t){var n=e.$parent;if(!kr(n,"bpmn:SubProcess")||n===t.bpmnElement)return!1;if(Dr(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))return!1;return!0}(r,e)&&i.push({diElement:t,parent:o})}}));var r=[];return n.forEach((function(e){if(!t._processToDiagramMap[e.id]){var n=t.createDiagram(e);t._processToDiagramMap[e.id]=n,r.push(n)}})),i.forEach((function(e){for(var i=e.diElement,r=e.parent;r&&-1===n.indexOf(r);)r=r.$parent;if(r){var o=t._processToDiagramMap[r.id];t.moveToDiPlane(i,o.plane)}})),r},Pa.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=xn(e.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}})),wn(t)}(e),i=n.x-Sa,r=n.y-Ca;t.forEach((function(e){e.waypoint?e.waypoint.forEach((function(e){e.x=e.x-i,e.y=e.y-r})):e.bounds&&(e.bounds.x=e.bounds.x-i,e.bounds.y=e.bounds.y-r)}))},Pa.prototype.moveToDiPlane=function(e,t){var n=Ma(e).plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},Pa.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},Pa.$inject=["eventBus","moddle"];var Ra=250;function Aa(e,t,n,i){la.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=i;var r=this;this.executed("shape.toggleCollapse",Ra,(function(e){var t=e.shape;r.canDrillDown(t)?r.addOverlay(t):r.removeOverlay(t)}),!0),this.reverted("shape.toggleCollapse",Ra,(function(e){var t=e.shape;r.canDrillDown(t)?r.addOverlay(t):r.removeOverlay(t)}),!0),this.executed(["shape.create","shape.move","shape.delete"],Ra,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;r.canDrillDown(i)&&r.addOverlay(i),r.updateDrilldownOverlay(t),r.updateDrilldownOverlay(n),r.updateDrilldownOverlay(i)}),!0),this.reverted(["shape.create","shape.move","shape.delete"],Ra,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;r.canDrillDown(i)&&r.addOverlay(i),r.updateDrilldownOverlay(t),r.updateDrilldownOverlay(n),r.updateDrilldownOverlay(i)}),!0),t.on("import.render.complete",(function(){n.filter((function(e){return r.canDrillDown(e)})).map((function(e){r.addOverlay(e)}))}))}r(Aa,la),Aa.prototype.updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this.updateOverlayVisibility(n)}},Aa.prototype.canDrillDown=function(e){var t=this._canvas;return kr(e,"bpmn:SubProcess")&&t.findRoot(ga(e))},Aa.prototype.updateOverlayVisibility=function(e){var t=this._overlays,n=e.businessObject,i=t.get({element:n.id,type:"drilldown"})[0];if(i){var r=n&&n.flowElements&&n.flowElements.length;le(i.html).toggle("bjs-drilldown-empty",!r)}},Aa.prototype.addOverlay=function(e){var t=this._canvas,n=this._overlays;n.get({element:e,type:"drilldown"}).length&&this.removeOverlay(e);var i=Ee('<button class="bjs-drilldown"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg></button>');i.addEventListener("click",(function(){t.setRootElement(t.findRoot(ga(e)))})),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:i}),this.updateOverlayVisibility(e)},Aa.prototype.removeOverlay=function(e){this._overlays.remove({element:e,type:"drilldown"})},Aa.$inject=["canvas","eventBus","elementRegistry","overlays"];var ka={__depends__:[aa,ca,ua],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",xa],drilldownCentering:["type",wa],drilldownOverlayBehavior:["type",Aa],subprocessCompatibility:["type",Pa]};function Da(e){Gr.call(this,e)}function Ta(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function za(e,t){return-1!==(e=d(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.keyCode)}function Oa(e){return e.shiftKey}r(Da,Gr),Da.prototype._modules=[To,xo,Jo,aa,ka],Da.prototype._moddleExtensions={};var Ba="keyboard.keydown",ja="input-handle-modified-keys";function Na(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()}))}Na.$inject=["config.keyboard","eventBus"],Na.prototype._keydownHandler=function(e){this._keyHandler(e,Ba)},Na.prototype._keyupHandler=function(e){this._keyHandler(e,"keyboard.keyup")},Na.prototype._keyHandler=function(e,t){if(!this._isEventIgnored(e)){var n={keyEvent:e};this._eventBus.fire(t||Ba,n)&&e.preventDefault()}},Na.prototype._isEventIgnored=function(e){return(t=e.target)&&(me(t,"input, textarea")||"true"===t.contentEditable)&&this._isModifiedKeyIgnored(e);var t},Na.prototype._isModifiedKeyIgnored=function(e){return!Ta(e)||-1===this._getAllowedModifiers(e.target).indexOf(e.key)},Na.prototype._getAllowedModifiers=function(e){var t=fe(e,"[input-handle-modified-keys]",!0);return!t||this._node&&!this._node.contains(t)?[]:t.getAttribute(ja).split(",")},Na.prototype.bind=function(e){this.unbind(),this._node=e,be.bind(e,"keydown",this._keydownHandler,!0),be.bind(e,"keyup",this._keyupHandler,!0),this._fire("bind")},Na.prototype.getBinding=function(){return this._node},Na.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),be.unbind(e,"keydown",this._keydownHandler,!0),be.unbind(e,"keyup",this._keyupHandler,!0)),this._node=null},Na.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},Na.prototype.addListener=function(e,t,n){v(e)&&(n=t,t=e,e=1e3),this._eventBus.on(n||Ba,e,t)},Na.prototype.removeListener=function(e,t){this._eventBus.off(t||Ba,e)},Na.prototype.hasModifier=function(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},Na.prototype.isCmd=Ta,Na.prototype.isShift=Oa,Na.prototype.isKey=za;var La=["c","C",67],Ia=["v","V",86],Fa=["y","Y",89],Va=["z","Z",90];function Ha(e,t){var n=this;e.on("editorActions.init",500,(function(e){var i=e.editorActions;n.registerBindings(t,i)}))}Ha.$inject=["eventBus","keyboard"],Ha.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}n("undo",(function(e){var n=e.keyEvent;if(Ta(n)&&!Oa(n)&&za(Va,n))return t.trigger("undo"),!0})),n("redo",(function(e){var n=e.keyEvent;if(Ta(n)&&(za(Fa,n)||za(Va,n)&&Oa(n)))return t.trigger("redo"),!0})),n("copy",(function(e){var n=e.keyEvent;if(Ta(n)&&za(La,n))return t.trigger("copy"),!0})),n("paste",(function(e){var n=e.keyEvent;if(Ta(n)&&za(Ia,n))return t.trigger("paste"),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(za(["+","Add","="],n)&&Ta(n))return t.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(za(["-","Subtract"],n)&&Ta(n))return t.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(e){var n=e.keyEvent;if(za("0",n)&&Ta(n))return t.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(e){if(za(["Backspace","Delete","Del"],e.keyEvent))return t.trigger("removeSelection"),!0}))};var $a={__init__:["keyboard","keyboardBindings"],keyboard:["type",Na],keyboardBindings:["type",Ha]},Ga={moveSpeed:50,moveSpeedAccelerated:200};function Wa(e,t,n){var i=this;this._config=W({},Ga,e||{}),t.addListener((function(e){var n=e.keyEvent,r=i._config;if(!t.isCmd(n))return;if(t.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],n)){var o,a=t.isShift(n)?r.moveSpeedAccelerated:r.moveSpeed;switch(n.key){case"ArrowLeft":case"Left":o="left";break;case"ArrowUp":case"Up":o="up";break;case"ArrowRight":case"Right":o="right";break;case"ArrowDown":case"Down":o="down"}return i.moveCanvas({speed:a,direction:o}),!0}})),this.moveCanvas=function(e){var t=0,i=0,r=e.speed/Math.min(Math.sqrt(n.viewbox().scale),1);switch(e.direction){case"left":t=r;break;case"up":i=r;break;case"right":t=-r;break;case"down":i=-r}n.scroll({dx:t,dy:i})}}Wa.$inject=["config.keyboardMove","keyboard","canvas"];var Ua={__depends__:[$a],__init__:["keyboardMove"],keyboardMove:["type",Wa]},qa=/^djs-cursor-.*$/;function Ka(e){var t=le(document.body);t.removeMatching(qa),e&&t.add("djs-cursor-"+e)}function Ya(){Ka(null)}function Xa(e,t){function n(){return!1}return t=t||"element.click",e.once(t,5e3,n),function(){e.off(t,n)}}function Za(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function Qa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ja(e,t){var n;function i(i){var r,o=n.start,a=n.button,s=jo(i),c=Qa(s,o);(!n.dragging&&(r=c,Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))>15)&&(n.dragging=!0,0===a&&Xa(e),Ka("grab")),n.dragging)&&(c=Qa(s,n.last||n.start),t.scroll({dx:c.x,dy:c.y}),n.last=s);i.preventDefault()}function r(e){be.unbind(document,"mousemove",i),be.unbind(document,"mouseup",r),n=null,Ya()}e.on("element.mousedown",500,(function(e){return function(e){if(fe(e.target,".djs-draggable"))return;var t=e.button;if(t>=2||e.ctrlKey||e.shiftKey||e.altKey)return;return n={button:t,start:jo(e)},be.bind(document,"mousemove",i),be.bind(document,"mouseup",r),!0}(e.originalEvent)})),this.isActive=function(){return!!n}}Ja.$inject=["eventBus","canvas"];var es={__init__:["moveCanvas"],moveCanvas:["type",Ja]};function ts(e){return Math.log(e)/Math.log(10)}function ns(e,t){var n=ts(e.min),i=ts(e.max);return(Math.abs(n)+Math.abs(i))/t}var is=Math.sign||function(e){return e>=0?1:-1},rs={min:.2,max:4};function os(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=H(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)}))}os.$inject=["config.zoomScroll","eventBus","canvas"],os.prototype.scroll=function(e){this._canvas.scroll(e)},os.prototype.reset=function(){this._canvas.zoom("fit-viewport")},os.prototype.zoom=function(e,t){var n=ns(rs,20);this._totalDelta+=e,Math.abs(this._totalDelta)>.1&&(this._zoom(e,t,n),this._totalDelta=0)},os.prototype._handleWheel=function(e){if(!fe(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,i=e.ctrlKey,r=e.shiftKey,o=-1*this._scale;if(o*=i?0===e.deltaMode?.02:.32:0===e.deltaMode?1:16,i){var a=t.getBoundingClientRect(),s={x:e.clientX-a.left,y:e.clientY-a.top};n=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*is(e.deltaY)*o,this.zoom(n,s)}else n=r?{dx:o*e.deltaY,dy:0}:{dx:o*e.deltaX,dy:o*e.deltaY},this.scroll(n)}},os.prototype.stepZoom=function(e,t){var n=ns(rs,10);this._zoom(e,t,n)},os.prototype._zoom=function(e,t,n){var i=this._canvas,r=e>0?1:-1,o=ts(i.zoom()),a=Math.round(o/n)*n;a+=n*r;var s,c,l=Math.pow(10,a);i.zoom((s=rs,c=l,Math.max(s.min,Math.min(s.max,c))),t)},os.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,i=this._enabled;return void 0===e&&(e=!i),i!==e&&be[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e,e},os.prototype._init=function(e){this.toggle(e)};var as={__init__:["zoomScroll"],zoomScroll:["type",os]};function ss(e){Da.call(this,e)}r(ss,Da),ss.prototype._navigationModules=[Ua,es,as],ss.prototype._modules=[].concat(Da.prototype._modules,ss.prototype._navigationModules);
3
3
  /*! Hammer.JS - v2.0.7 - 2016-04-22
4
4
  * http://hammerjs.github.io/
5
5
  *
6
6
  * Copyright (c) 2016 Jorik Tangelder;
7
7
  * Licensed under the MIT license */
8
- var Ya=n((function(e){!function(t,n,i,r){var o,a=["","webkit","Moz","MS","ms","o"],s=n.createElement("div"),c=Math.round,l=Math.abs,p=Date.now;function u(e,t,n){return setTimeout(y(e,n),t)}function h(e,t,n){return!!Array.isArray(e)&&(d(e,n[t],n),!0)}function d(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function m(e,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,r,i),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(e){if(e===r||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==r&&null!==i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var f=m((function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&e[i[o]]===r)&&(e[i[o]]=t[i[o]]),o++;return e}),"extend","Use `assign`."),v=m((function(e,t){return f(e,t,!0)}),"merge","Use `assign`.");function g(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&o(i,n)}function y(e,t){return function(){return e.apply(t,arguments)}}function b(e,t){return"function"==typeof e?e.apply(t&&t[0]||r,t):e}function _(e,t){return e===r?t:e}function x(e,t,n){d(C(t),(function(t){e.addEventListener(t,n,!1)}))}function w(e,t,n){d(C(t),(function(t){e.removeEventListener(t,n,!1)}))}function E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function S(e,t){return e.indexOf(t)>-1}function C(e){return e.trim().split(/\s+/g)}function P(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function M(e){return Array.prototype.slice.call(e,0)}function R(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];P(r,a)<0&&i.push(e[o]),r[o]=a,o++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function T(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),s=0;s<a.length;){if((i=(n=a[s])?n+o:t)in e)return i;s++}return r}var k=1;function A(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var z="ontouchstart"in t,O=T(t,"PointerEvent")!==r,D=z&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),B="touch",j="mouse",N=24,L=["x","y"],I=["clientX","clientY"];function F(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){b(e.options.enable,[e])&&n.handler(t)},this.init()}function H(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,a=1&t&&i-o==0,s=12&t&&i-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=V(t));o>1&&!n.firstMultiple?n.firstMultiple=V(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,c=s?s.center:a.center,u=t.center=$(i);t.timeStamp=p(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=q(c,u),t.distance=U(c,u),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=W(t.deltaX,t.deltaY);var h=G(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=l(h.x)>l(h.y)?h.x:h.y,t.scale=s?(d=s.pointers,m=i,U(m[0],m[1],I)/U(d[0],d[1],I)):1,t.rotation=s?function(e,t){return q(t[1],t[0],I)+q(e[1],e[0],I)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,a,s=e.lastInterval||t,c=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(c>25||s.velocity===r)){var p=t.deltaX-s.deltaX,u=t.deltaY-s.deltaY,h=G(c,p,u);i=h.x,o=h.y,n=l(h.x)>l(h.y)?h.x:h.y,a=W(p,u),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=a}(n,t);var d,m;var f=e.element;E(t.srcEvent.target,f)&&(f=t.srcEvent.target);t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function V(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:c(e.pointers[n].clientX),clientY:c(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:$(t),deltaX:e.deltaX,deltaY:e.deltaY}}function $(e){var t=e.length;if(1===t)return{x:c(e[0].clientX),y:c(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:c(n/t),y:c(i/t)}}function G(e,t,n){return{x:t/e||0,y:n/e||0}}function W(e,t){return e===t?1:l(e)>=l(t)?e<0?2:4:t<0?8:16}function U(e,t,n){n||(n=L);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function q(e,t,n){n||(n=L);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}F.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(A(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4},Y="mousedown",X="mousemove mouseup";function Z(){this.evEl=Y,this.evWin=X,this.pressed=!1,F.apply(this,arguments)}g(Z,F,{handler:function(e){var t=K[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:j,srcEvent:e}))}});var Q={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:B,3:"pen",4:j,5:"kinect"},ee="pointerdown",te="pointermove pointerup pointercancel";function ne(){this.evEl=ee,this.evWin=te,F.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(ee="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),g(ne,F,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=Q[i],o=J[e.pointerType]||e.pointerType,a=o==B,s=P(t,e.pointerId,"pointerId");1&r&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&r&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var ie={touchstart:1,touchmove:2,touchend:4,touchcancel:8},re="touchstart",oe="touchstart touchmove touchend touchcancel";function ae(){this.evTarget=re,this.evWin=oe,this.started=!1,F.apply(this,arguments)}function se(e,t){var n=M(e.touches),i=M(e.changedTouches);return 12&t&&(n=R(n.concat(i),"identifier",!0)),[n,i]}g(ae,F,{handler:function(e){var t=ie[e.type];if(1===t&&(this.started=!0),this.started){var n=se.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:B,srcEvent:e})}}});var ce={touchstart:1,touchmove:2,touchend:4,touchcancel:8},le="touchstart touchmove touchend touchcancel";function pe(){this.evTarget=le,this.targetIds={},F.apply(this,arguments)}function ue(e,t){var n=M(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=M(e.changedTouches),s=[],c=this.target;if(o=n.filter((function(e){return E(e.target,c)})),1===t)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),12&t&&delete i[a[r].identifier],r++;return s.length?[R(o.concat(s),"identifier",!0),s]:void 0}g(pe,F,{handler:function(e){var t=ce[e.type],n=ue.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:B,srcEvent:e})}});function he(){F.apply(this,arguments);var e=y(this.handler,this);this.touch=new pe(this.manager,e),this.mouse=new Z(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function de(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,me.call(this,t)):12&e&&me.call(this,t)}function me(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),2500)}}function fe(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),a=Math.abs(n-r.y);if(o<=25&&a<=25)return!0}return!1}g(he,F,{handler:function(e,t,n){var i=n.pointerType==B,r=n.pointerType==j;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)de.call(this,t,n);else if(r&&fe.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ve=T(s.style,"touchAction"),ge=ve!==r,ye="compute",be="auto",_e="manipulation",xe="none",we="pan-x",Ee="pan-y",Se=function(){if(!ge)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){e[i]=!n||t.CSS.supports("touch-action",i)})),e}();function Ce(e,t){this.manager=e,this.set(t)}Ce.prototype={set:function(e){e==ye&&(e=this.compute()),ge&&this.manager.element.style&&Se[e]&&(this.manager.element.style[ve]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return d(this.manager.recognizers,(function(t){b(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(S(e,xe))return xe;var t=S(e,we),n=S(e,Ee);if(t&&n)return xe;if(t||n)return t?we:Ee;if(S(e,_e))return _e;return be}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=S(i,xe)&&!Se.none,o=S(i,Ee)&&!Se["pan-y"],a=S(i,we)&&!Se["pan-x"];if(r){var s=1===e.pointers.length,c=e.distance<2,l=e.deltaTime<250;if(s&&c&&l)return}if(!a||!o)return r||o&&6&n||a&&n&N?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Pe=32;function Me(e){this.options=o({},this.defaults,e||{}),this.id=k++,this.manager=null,this.options.enable=_(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Re(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Te(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ke(e,t){var n=t.manager;return n?n.get(e):e}function Ae(){Me.apply(this,arguments)}function ze(){Ae.apply(this,arguments),this.pX=null,this.pY=null}function Oe(){Ae.apply(this,arguments)}function De(){Me.apply(this,arguments),this._timer=null,this._input=null}function Be(){Ae.apply(this,arguments)}function je(){Ae.apply(this,arguments)}function Ne(){Me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Le(e,t){return(t=t||{}).recognizers=_(t.recognizers,Le.defaults.preset),new Ie(e,t)}Me.prototype={defaults:{},set:function(e){return o(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(h(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ke(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return h(e,"dropRecognizeWith",this)||(e=ke(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(h(e,"requireFailure",this))return this;var t=this.requireFail;return-1===P(t,e=ke(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(h(e,"dropRequireFailure",this))return this;e=ke(e,this);var t=P(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+Re(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+Re(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Pe},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!b(this.options.enable,[this,t]))return this.reset(),void(this.state=Pe);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},g(Ae,Me,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,r=this.attrTest(e);return i&&(8&n||!r)?16|t:i||r?4&n?8|t:2&t?4|t:2:Pe}}),g(ze,Ae,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ee),e&N&&t.push(we),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,a=e.deltaY;return r&t.direction||(6&t.direction?(r=0===o?1:o<0?2:4,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===a?1:a<0?8:16,n=a!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return Ae.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Te(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),g(Oe,Ae,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),g(De,Me,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[be]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!r)this.reset();else if(1&e.eventType)this.reset(),this._timer=u((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Pe},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),g(Be,Ae,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),g(je,Ae,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return ze.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&N&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&l(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Te(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),g(Ne,Me,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[_e]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||U(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=u((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Pe},failTimeout:function(){return this._timer=u((function(){this.state=Pe}),this.options.interval,this),Pe},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Le.VERSION="2.0.7",Le.defaults={domEvents:!1,touchAction:ye,enable:!0,inputTarget:null,inputClass:null,preset:[[Be,{enable:!1}],[Oe,{enable:!1},["rotate"]],[je,{direction:6}],[ze,{direction:6},["swipe"]],[Ne],[Ne,{event:"doubletap",taps:2},["tap"]],[De]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ie(e,t){var n;this.options=o({},Le.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(O?ne:D?pe:z?he:Z))(n,H),this.touchAction=new Ce(this,this.options.touchAction),Fe(this,!0),d(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Fe(e,t){var n,i=e.element;i.style&&(d(e.options.cssProps,(function(r,o){n=T(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Ie.prototype={set:function(e){return o(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&8&r.state)&&(r=t.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&14&n.state&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Me)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(h(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(h(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=P(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==r&&t!==r){var n=this.handlers;return d(C(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==r){var n=this.handlers;return d(C(e),(function(e){t?n[e]&&n[e].splice(P(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var i=n.createEvent("Event");i.initEvent(e,!0,!0),i.gesture=t,t.target.dispatchEvent(i)}(e,t);var i=this.handlers[e]&&this.handlers[e].slice();if(i&&i.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<i.length;)i[r](t),r++}},destroy:function(){this.element&&Fe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Le,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Pe,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:N,DIRECTION_ALL:30,Manager:Ie,Input:F,TouchAction:Ce,TouchInput:pe,MouseInput:Z,PointerEventInput:ne,TouchMouseInput:he,SingleTouchInput:ae,Recognizer:Me,AttrRecognizer:Ae,Tap:Ne,Pan:ze,Swipe:je,Pinch:Oe,Rotate:Be,Press:De,on:x,off:w,each:d,merge:v,extend:f,assign:o,inherit:g,bindFn:y,prefixed:T}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Le,e.exports?e.exports=Le:t.Hammer=Le}(window,document)})),Xa=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];function Za(e,t){return t.get(e,!1)}function Qa(e){e.preventDefault(),"function"==typeof e.stopPropagation?e.stopPropagation():e.srcEvent&&"function"==typeof e.srcEvent.stopPropagation&&e.srcEvent.stopPropagation(),"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation()}function Ja(e){function t(t){setTimeout((function(){w(Xa,(function(t){ue.unbind(e,t,Qa,!0)}))}),500)}ue.bind(e,"touchstart",(function(t){w(Xa,(function(t){ue.bind(e,t,Qa,!0)}))}),!0),ue.bind(e,"touchend",t,!0),ue.bind(e,"touchcancel",t,!0);var n=new Ya.Manager(e,{inputClass:Ya.TouchInput,recognizers:[],domEvents:!0}),i=new Ya.Tap,r=new Ya.Pan({threshold:10}),o=new Ya.Press,a=new Ya.Pinch,s=new Ya.Tap({event:"doubletap",taps:2});return a.requireFailure(r),a.requireFailure(o),n.add([r,o,a,s,i]),n.reset=function(e){var t=this.recognizers,i=this.session;i.stopped||(n.stop(e),setTimeout((function(){var e,n;for(e=0;n=t[e];e++)n.reset(),n.state=8;i.curRecognizer=null}),0))},n.on("hammer.input",(function(e){e.srcEvent.defaultPrevented&&n.reset(!0)})),n}function es(e,t,n,i,r){var o,a=Za("dragging",e),s=Za("move",e),c=Za("contextPad",e),l=Za("palette",e);function p(e,t){return function(n){var o=u(n.target),a=o&&i.get(o);return t&&(n.srcEvent.button=t),r.fire(e,n,a)}}function u(e){return se(e,"svg, .djs-element",!0)}function h(e){function n(e){var n=u(e.target),r=n&&i.get(n);if(s&&t.getRootElement()!==r)return s.start(e,r,!0);!function(e){var n=0,i=0;function r(e){var r=e.deltaX-n,o=e.deltaY-i;t.scroll({dx:r,dy:o}),n=e.deltaX,i=e.deltaY}function a(e){o.off("panmove",r),o.off("panend",a),o.off("pancancel",a)}o.on("panmove",r),o.on("panend",a),o.on("pancancel",a)}()}(o=Ja(e)).on("tap",p("element.click")),o.on("doubletap",p("element.dblclick",1)),o.on("panstart",n),o.on("press",n),o.on("pinchstart",(function(e){var n=t.zoom(),i=e.center;function r(e){var r=1-(1-e.scale)/1.5,o=Math.max(.2,Math.min(4,r*n));t.zoom(o,i),Qa(e)}function a(e){o.off("pinchmove",r),o.off("pinchend",a),o.off("pinchcancel",a),o.reset(!0)}o.on("pinchmove",r),o.on("pinchend",a),o.on("pinchcancel",a)}))}a&&n.on("drag.move",(function(e){var t=e.originalEvent;if(t&&!(t instanceof MouseEvent)){var n=Eo(t),r=u(document.elementFromPoint(n.x,n.y)),o=r&&i.get(r);o!==e.hover&&(e.hover&&a.out(e),o&&(a.hover({element:o,gfx:r}),e.hover=o,e.hoverGfx=r))}})),c&&n.on("contextPad.create",(function(e){var t=Ja(e.pad.html);t.on("panstart",(function(e){c.trigger("dragstart",e,!0)})),t.on("press",(function(e){c.trigger("dragstart",e,!0)})),t.on("tap",(function(e){c.trigger("click",e)}))})),l&&n.on("palette.create",(function(e){var t=Ja(e.container);t.on("panstart",(function(e){l.trigger("dragstart",e,!0)})),t.on("press",(function(e){l.trigger("dragstart",e,!0)})),t.on("tap",(function(e){l.trigger("click",e)}))})),n.on("canvas.init",(function(e){h(e.svg)}))}function ts(e,t){var n=this;t.on("canvas.init",(function(e){n.addBBoxMarker(e.svg)}))}es.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"],ts.$inject=["canvas","eventBus"],ts.prototype.addBBoxMarker=function(e){var t={fill:"none",class:"outer-bound-marker"},n=Le("rect");Ce(n,{x:-1e4,y:1e4,width:10,height:10}),Ce(n,t),we(e,n);var i=Le("rect");Ce(i,{x:1e4,y:1e4,width:10,height:10}),Ce(i,t),we(e,i)};var ns={__depends__:[{__depends__:[Ao],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",es],touchFix:["type",ts]}]};function is(e){return e&&e[e.length-1]}function rs(e){return e.y}function os(e){return e.x}var as={left:os,center:os,right:function(e){return e.x+e.width},top:rs,middle:rs,bottom:function(e){return e.y+e.height}};function ss(e){this._modeling=e}ss.$inject=["modeling"],ss.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},ss.prototype._isType=function(e,t){return-1!==t.indexOf(e)},ss.prototype._alignmentPosition=function(e,t){var n,i,r,o=this._getOrientationDetails(e),a=o.axis,s=o.dimension,c={},l={},p=!1;if(this._isType(e,["left","top"]))c[e]=t[0][a];else if(this._isType(e,["right","bottom"]))r=is(t),c[e]=r[a]+r[s];else if(this._isType(e,["center","middle"])){if(w(t,(function(e){var t=e[a]+Math.round(e[s]/2);l[t]?l[t].elements.push(e):l[t]={elements:[e],center:t}})),n=D(l,(function(e){return e.elements.length>1&&(p=!0),e.elements.length})),p)return c[e]=is(n).center,c;i=t[0],r=is(t=D(t,(function(e){return e[a]+e[s]}))),c[e]=function(e,t){return Math.round((e[a]+t[a]+t[s])/2)}(i,r)}return c},ss.prototype.trigger=function(e,t){var n=this._modeling,i=x(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(!(i.length<2)){var r=D(i,as[t]),o=this._alignmentPosition(t,r);n.alignElements(r,o)}};var cs={__init__:["alignElements"],alignElements:["type",ss]};function ls(e,t,n,i){for(var r;r=us(e,n,t);)n=i(t,n,r);return n}function ps(e){return function(t,n,i){var r={x:n.x,y:n.y};return["x","y"].forEach((function(o){var a=e[o];if(a){var s="x"===o?"width":"height",c=a.margin,l=a.minDistance;r[o]=c<0?Math.min(i[o]+c-t[s]/2,n[o]-l+c):Math.max(i[o]+i[s]+c+t[s]/2,n[o]+l+c)}})),r}}function us(e,t,n){var i={x:t.x-n.width/2,y:t.y-n.height/2,width:n.width,height:n.height};return b(function(e){var t=hs(e);e.host&&(t=t.concat(hs(e.host)));e.attachers&&(t=t.concat(e.attachers.reduce((function(e,t){return e.concat(hs(t))}),[])));return t}(e),(function(e){return e!==n&&"intersect"===vn(e,i,10)}))}function hs(e){return(t=e,t.outgoing.map((function(e){return e.target}))).concat(function(e){return e.incoming.map((function(e){return e.source}))}(e));var t}function ds(){return!0}function ms(e,t,n){e.on("autoPlace",100,(function(e){var t=e.shape;return function(e,t,n){n||(n={});var i=n.defaultDistance||50,r=fn(e);return{x:dn(e).right+i+t.width/2,y:r.y}}(e.source,t)})),e.on("autoPlace.end",(function(e){n.scrollToElement(e.shape)})),this.append=function(n,i,r){e.fire("autoPlace.start",{source:n,shape:i});var o=e.fire("autoPlace",{source:n,shape:i}),a=t.appendShape(n,i,o,n.parent,r);return e.fire("autoPlace.end",{source:n,shape:a}),a}}function fs(e,t){e.on("autoPlace.end",500,(function(e){t.select(e.shape)}))}ms.$inject=["eventBus","modeling","canvas"],fs.$inject=["eventBus","selection"];var vs={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",ms],autoPlaceSelectionBehavior:["type",fs]};function gs(e,t){for("string"==typeof t&&(t=[t]);e=e.parent;)if(wr(e,t))return e;return null}function ys(e,t){return xr(t,"bpmn:TextAnnotation")?function(e,t){var n=dn(e),i={x:n.right+t.width/2,y:n.top-50-t.height/2};return ls(e,t,i,ps({y:{margin:-30,minDistance:20}}))}(e,t):wr(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])?function(e,t){var n=dn(e),i={x:n.right-10+t.width/2,y:n.bottom+40+t.width/2};return ls(e,t,i,ps({x:{margin:30,minDistance:30}}))}(e,t):xr(t,"bpmn:FlowNode")?function(e,t){var n=dn(e),i=fn(e),r=function(e,t){t||(t={});var n=t.defaultDistance||50,i=t.direction||"e",r=t.filter,o=t.getWeight||function(t){return t.source===e?1:-1},a=t.maxDistance||250,s=t.reference||"start";function c(e,t){return"n"===i?"start"===s?dn(e).top-dn(t).bottom:"center"===s?dn(e).top-fn(t).y:dn(e).top-dn(t).top:"w"===i?"start"===s?dn(e).left-dn(t).right:"center"===s?dn(e).left-fn(t).x:dn(e).left-dn(t).left:"s"===i?"start"===s?dn(t).top-dn(e).bottom:"center"===s?fn(t).y-dn(e).bottom:dn(t).bottom-dn(e).bottom:"start"===s?dn(t).left-dn(e).right:"center"===s?fn(t).x-dn(e).right:dn(t).right-dn(e).right}r||(r=ds);var l=e.incoming.filter(r).map((function(t){var n=o(t),i=n<0?c(t.source,e):c(e,t.source);return{id:t.source.id,distance:i,weight:n}})),p=e.outgoing.filter(r).map((function(t){var n=o(t),i=n>0?c(e,t.target):c(t.target,e);return{id:t.target.id,distance:i,weight:n}}));return S(l.concat(p).reduce((function(e,t){return e[t.id+"__weight_"+t.weight]=t,e}),{}),(function(e,t){var n=t.distance,i=t.weight;return n<0||n>a||(e[String(n)]||(e[String(n)]=0),e[String(n)]+=1*i,(!e.distance||e[e.distance]<e[String(n)])&&(e.distance=n)),e}),{}).distance||n}(e,{filter:function(e){return xr(e,"bpmn:SequenceFlow")}}),o=30,a=80,s="left";xr(e,"bpmn:BoundaryEvent")&&-1!==(s=vn(e,e.host,-25)).indexOf("top")&&(o*=-1);var c={x:n.right+r+t.width/2,y:i.y+bs(s,a)};return ls(e,t,c,ps({y:{margin:o,minDistance:a}}))}(e,t):void 0}function bs(e,t){return-1!=e.indexOf("top")?-1*t:-1!=e.indexOf("bottom")?t:0}function _s(e){e.on("autoPlace",(function(e){var t=e.shape;return ys(e.source,t)}))}_s.$inject=["eventBus"];var xs={__depends__:[vs],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",_s]};function ws(e,t,n,i){Xo.call(this,e),this._elementRegistry=t,this._modeling=n,this._rules=i;var r=this;this.postExecuted(["shape.create"],(function(e){var t=e.context,n=t.hints||{},i=t.shape,o=t.parent||t.newParent;!1!==n.autoResize&&r._expand([i],o)})),this.postExecuted(["elements.move"],(function(e){var t=e.context,n=a(k(t.closure.topLevel)),i=t.hints,o=!i||i.autoResize;!1!==o&&w(A(n,(function(e){return e.parent.id})),(function(e,t){h(o)&&(e=e.filter((function(e){return b(o,B({id:e.id}))}))),r._expand(e,t)}))})),this.postExecuted(["shape.toggleCollapse"],(function(e){var t=e.context,n=t.hints,i=t.shape;n&&!1===n.autoResize||i.collapsed||r._expand(i.children||[],i)})),this.postExecuted(["shape.resize"],(function(e){var t=e.context,n=t.hints,i=t.shape,o=i.parent;n&&!1===n.autoResize||o&&r._expand([i],o)}))}function Es(e){e.invoke(ws,this)}function Ss(e){Xo.call(this,e),this.init()}function Cs(e){Ss.call(this,e);var t=this;this.addRule("element.autoResize",(function(e){return t.canResize(e.elements,e.target)}))}function Ps(e,t){Cs.call(this,e),this._modeling=t}ws.$inject=["eventBus","elementRegistry","modeling","rules"],i(ws,Xo),ws.prototype._getOptimalBounds=function(e,t){var n=this.getOffset(t),i=this.getPadding(t),r=dn(vt(e)),o=dn(t),a={};return r.top-o.top<i.top&&(a.top=r.top-n.top),r.left-o.left<i.left&&(a.left=r.left-n.left),o.right-r.right<i.right&&(a.right=r.right+n.right),o.bottom-r.bottom<i.bottom&&(a.bottom=r.bottom+n.bottom),mn(G({},o,a))},ws.prototype._expand=function(e,t){if("string"==typeof t&&(t=this._elementRegistry.get(t)),this._rules.allowed("element.autoResize",{elements:e,target:t})){var n=this._getOptimalBounds(e,t);if(function(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}(n,t)){var i=function(e,t){var n="";e=dn(e),t=dn(t),e.top>t.top&&(n=n.concat("n"));e.right<t.right&&(n=n.concat("w"));e.bottom<t.bottom&&(n=n.concat("s"));e.left>t.left&&(n=n.concat("e"));return n}(q(t,["x","y","width","height"]),n);this.resize(t,n,{autoResize:i});var r=t.parent;r&&this._expand([t],r)}}},ws.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}},ws.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}},ws.prototype.resize=function(e,t,n){this._modeling.resizeShape(e,t,null,n)},Es.$inject=["injector"],i(Es,ws),Es.prototype.resize=function(e,t,n){xr(e,"bpmn:Participant")?this._modeling.resizeLane(e,t,null,n):this._modeling.resizeShape(e,t,null,n)},Ss.$inject=["eventBus"],i(Ss,Xo),Ss.prototype.addRule=function(e,t,n){var i=this;"string"==typeof e&&(e=[e]),e.forEach((function(e){i.canExecute(e,t,(function(e,t,i){return n(e)}),!0)}))},Ss.prototype.init=function(){},Cs.$inject=["eventBus"],i(Cs,Ss),Cs.prototype.canResize=function(e,t){return!1},i(Ps,Cs),Ps.$inject=["eventBus","modeling"],Ps.prototype.canResize=function(e,t){if(xr(t.di,"bpmndi:BPMNPlane"))return!1;if(!xr(t,"bpmn:Participant")&&!xr(t,"bpmn:Lane")&&!xr(t,"bpmn:SubProcess"))return!1;var n=!0;return w(e,(function(e){(xr(e,"bpmn:Lane")||e.labelTarget)&&(n=!1)})),n};var Ms={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Es],bpmnAutoResizeProvider:["type",Ps]};function Rs(e,t,n){var i,r,o=this,a=n.get("dragging",!1);a&&t.on("drag.start",(function(n){t.once("drag.move",1500,(function(t){!function(t){if(!t.hover){var n=t.originalEvent,i=o._findTargetGfx(n),r=i&&e.get(i);i&&r&&(t.stopPropagation(),a.hover({element:r,gfx:i}),a.move(n))}}(t)}))})),t.on("element.hover",(function(e){i=e.gfx,r=e.element})),t.on("element.hover",1500,(function(e){r&&t.fire("element.out",{element:r,gfx:i})})),t.on("element.out",(function(){i=null,r=null})),this._findTargetGfx=function(e){var t;if(e instanceof MouseEvent)return t=Eo(e),function(e){return se(e,"svg, .djs-element",!0)}(document.elementFromPoint(t.x,t.y))}}Rs.$inject=["elementRegistry","eventBus","injector"];var Ts={__init__:["hoverFix"],hoverFix:["type",Rs]},ks=Math.round,As="djs-drag-active";function zs(e){e.preventDefault()}function Os(e,t,n,i){var r,o={threshold:5,trapClick:!0};function a(e){var n=t.viewbox(),i=t._container.getBoundingClientRect();return{x:n.x+(e.x-i.left)/n.scale,y:n.y+(e.y-i.top)/n.scale}}function s(t,n){n=n||r;var i=e.createEvent(G({},n.payload,n.data,{isTouch:n.isTouch}));return!1!==e.fire("drag."+t,i)&&e.fire(n.prefix+"."+t,i)}function c(e,i){var o,c=r.payload,l=r.displacement,p=r.globalStart,u=Eo(e),h=Ia(u,p),d=r.localStart,m=a(u),v=Ia(m,d);if(!r.active&&(i||(o=h,Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))>r.threshold))){if(G(c,{x:ks(d.x+l.x),y:ks(d.y+l.y),dx:0,dy:0},{originalEvent:e}),!1===s("start"))return f();r.active=!0,r.keepSelection||(c.previousSelection=n.get(),n.select(null)),r.cursor&&Ba(r.cursor),t.addMarker(t.getRootElement(),As)}wo(e),r.active&&(G(c,{x:ks(m.x+l.x),y:ks(m.y+l.y),dx:ks(v.x),dy:ks(v.y)},{originalEvent:e}),s("move"))}function l(e){var t=!0;r.active&&(e&&(r.payload.originalEvent=e,wo(e)),t=s("end")),!1===t&&s("rejected"),s("ended",v(!0!==t))}function p(e){27===e.which&&(zs(e),f())}function u(t){var n;r.active&&(n=Na(e),setTimeout(n,400),zs(t)),l(t)}function h(e){c(e)}function d(e){var t=r.payload;t.hoverGfx=e.gfx,t.hover=e.element,s("hover")}function m(e){s("out");var t=r.payload;t.hoverGfx=null,t.hover=null}function f(e){var t;if(r){var n=r.active;n&&s("cancel"),t=v(e),n&&s("canceled",t)}}function v(o){var a,v;s("cleanup"),ja(),v=r.trapClick?u:l,ue.unbind(document,"mousemove",c),ue.unbind(document,"dragstart",zs),ue.unbind(document,"selectstart",zs),ue.unbind(document,"mousedown",v,!0),ue.unbind(document,"mouseup",v,!0),ue.unbind(document,"keyup",p),ue.unbind(document,"touchstart",h,!0),ue.unbind(document,"touchcancel",f,!0),ue.unbind(document,"touchmove",c,!0),ue.unbind(document,"touchend",l,!0),e.off("element.hover",d),e.off("element.out",m),t.removeMarker(t.getRootElement(),As);var g=r.payload.previousSelection;return!1!==o&&g&&!n.get().length&&function(e){var t=e.filter((function(e){return i.get(e.id)}));t.length&&n.select(t)}(g),a=r,r=null,a}e.on("diagram.destroy",f),this.init=function(t,n,i,v){r&&f(!1),"string"==typeof n&&(v=i,i=n,n=null);var g,y,b,_,x,w=(v=G({},o,v||{})).data||{};_=v.trapClick?u:l,t?(g=xo(t)||t,y=Eo(t),wo(t),"dragstart"===g.type&&zs(g)):(g=null,y={x:0,y:0}),b=a(y),n||(n=b),x=function(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}(g),r=G({prefix:i,data:w,payload:{},globalStart:y,displacement:Ia(n,b),localStart:b,isTouch:x},v),v.manual||(x?(ue.bind(document,"touchstart",h,!0),ue.bind(document,"touchcancel",f,!0),ue.bind(document,"touchmove",c,!0),ue.bind(document,"touchend",l,!0)):(ue.bind(document,"mousemove",c),ue.bind(document,"dragstart",zs),ue.bind(document,"selectstart",zs),ue.bind(document,"mousedown",_,!0),ue.bind(document,"mouseup",_,!0)),ue.bind(document,"keyup",p),e.on("element.hover",d),e.on("element.out",m)),s("init"),v.autoActivate&&c(t,!0)},this.move=c,this.hover=d,this.out=m,this.end=l,this.cancel=f,this.context=function(){return r},this.setOptions=function(e){G(o,e)}}Os.$inject=["eventBus","canvas","selection","elementRegistry"];var Ds={__depends__:[Ts,Fo],dragging:["type",Os]};function Bs(e,t,n){this._canvas=n,this._opts=G({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var i=this;t.on("drag.move",(function(e){var t=i._toBorderPoint(e);i.startScroll(t)})),t.on(["drag.cleanup"],(function(){i.stopScroll()}))}function js(e,t,n){return t<e&&e<n}Bs.$inject=["config.autoScroll","eventBus","canvas"],Bs.prototype.startScroll=function(e){var t=this._canvas,n=this._opts,i=this,r=t.getContainer().getBoundingClientRect(),o=[e.x,e.y,r.width-e.x,r.height-e.y];this.stopScroll();for(var a=0,s=0,c=0;c<4;c++)js(o[c],n.scrollThresholdOut[c],n.scrollThresholdIn[c])&&(0===c?a=n.scrollStep:1==c?s=n.scrollStep:2==c?a=-n.scrollStep:3==c&&(s=-n.scrollStep));0===a&&0===s||(t.scroll({dx:a,dy:s}),this._scrolling=setTimeout((function(){i.startScroll(e)}),n.scrollRepeatTimeout))},Bs.prototype.stopScroll=function(){clearTimeout(this._scrolling)},Bs.prototype.setOptions=function(e){this._opts=G({},this._opts,e)},Bs.prototype._toBorderPoint=function(e){var t=this._canvas._container.getBoundingClientRect(),n=Eo(e.originalEvent);return{x:n.x-t.left,y:n.y-t.top}};var Ns={__depends__:[Ds],__init__:["autoScroll"],autoScroll:["type",Bs]};function Ls(e){this._commandStack=e.get("commandStack",!1)}Ls.$inject=["injector"],Ls.prototype.allowed=function(e,t){var n=!0,i=this._commandStack;return i&&(n=i.canExecute(e,t)),void 0===n||n};var Is={__init__:["rules"],rules:["type",Ls]},Fs=Math.round,Hs=Math.max;function Vs(e,t){return function(e,t){var n,i;for(n=0;i=e[n];n++)if(Ct(i,t)<=10)return{point:e[n],bendpoint:!0,index:n};return null}(e,t)||function(e,t){var n,i,r=pn(function(e,t){return[["M",e.x,e.y],["m",0,-t],["a",t,t,0,1,1,0,2*t],["a",t,t,0,1,1,0,-2*t],["z"]]}(t,10),(n=[],e.forEach((function(e,t){n.push([0===t?"M":"L",e.x,e.y])})),n)),o=r[0],a=r[r.length-1];return o?o!==a?o.segment2!==a.segment2?{point:e[i=Hs(o.segment2,a.segment2)-1],bendpoint:!0,index:i}:{point:{x:Fs(o.x+a.x)/2,y:Fs(o.y+a.y)/2},index:o.segment2}:{point:{x:Fs(o.x),y:Fs(o.y)},index:o.segment2}:null}(e,t)}var $s="djs-bendpoint",Gs="djs-segment-dragger";function Ws(e,t,n){return Vs(t,function(e,t){var n,i=Eo(t),r=e._container.getBoundingClientRect();n={x:r.left,y:r.top};var o=e.viewbox();return{x:o.x+(i.x-n.x)/o.scale,y:o.y+(i.y-n.y)/o.scale}}(e,n))}function Us(e,t){var n=Le("g");ke(n).add($s),we(e,n);var i=Le("circle");Ce(i,{cx:0,cy:0,r:4}),ke(i).add("djs-visual"),we(n,i);var r=Le("circle");return Ce(r,{cx:0,cy:0,r:10}),ke(r).add("djs-hit"),we(n,r),t&&ke(n).add(t),n}function qs(e,t,n,i){var r=Le("g");we(e,r);var o=function(e,t,n){var i=t.x-e.x,r=t.y-e.y;return Ys("h"===n?i:r)}(t,n,i),a=Le("rect");Ce(a,{x:-7,y:-1.5,width:14,height:3}),ke(a).add("djs-visual"),we(r,a);var s=Le("rect");return Ce(s,{x:-o/2,y:-7,width:o,height:14}),ke(s).add("djs-hit"),we(r,s),Yn(r,"v"===i?90:0),r}function Ks(e,t,n){var i=Le("g"),r=Tt(t,n),o=Mt(t,n);return we(e,i),qs(i,t,n,o),ke(i).add(Gs),ke(i).add("h"===o?"horizontal":"vertical"),Kn(i,r.x,r.y),i}function Ys(e){return Math.abs(Math.round(2*e/3))}function Xs(e,t,n,i,r){function o(e,n){var o=n.waypoints,a=Ws(t,o,e);if(a)return!function(e,t,n){var i,r,o,a,s,c,l=e.index,p=e.point;return!(l<=0||e.bendpoint)&&(o=Tt(i=t[l-1],r=t[l]),a=Mt(i,r),s=Math.abs(p.x-o.x),c=Math.abs(p.y-o.y),a&&s<=n&&c<=n)}(a,o,function(e,t){var n,i,r=e.waypoints;return t.index<=0||t.bendpoint?null:(i=Mt((n={start:r[t.index-1],end:r[t.index]}).start,n.end))?Ys("h"===i?n.end.x-n.start.x:n.end.y-n.start.y)/2:null}(n,a))?i.start(e,n,a.index,!a.bendpoint):r.start(e,n,a.index),!0}function a(e,t,i){ue.bind(e,t,(function(e){n.triggerMouseEvent(t,e,i),e.stopPropagation()}))}function s(e,n){var i=t.getLayer("overlays"),r=ye('.djs-bendpoints[data-element-id="'+Jo(e.id)+'"]',i);return!r&&n&&(Ce(r=Le("g"),{"data-element-id":e.id}),ke(r).add("djs-bendpoints"),we(i,r),a(r,"mousedown",e),a(r,"click",e),a(r,"dblclick",e)),r}function c(e,t){return ye('.djs-segment-dragger[data-segment-idx="'+e+'"]',t)}function l(e,t){t.waypoints.forEach((function(t,n){var i=Us(e);we(e,i),Kn(i,t.x,t.y)})),Us(e,"floating")}function p(e,t){for(var n,i,r,o=t.waypoints,s=1;s<o.length;s++)Mt(n=o[s-1],i=o[s])&&(Ce(r=Ks(e,n,i),{"data-segment-idx":s}),a(r,"mousemove",t))}function u(e){var t=s(e);return t||(l(t=s(e,!0),e),p(t,e)),t}function h(e){var t=s(e);t&&(!function(e){w(be(".djs-segment-dragger",e),(function(e){ze(e)}))}(t),function(e){w(be(".djs-bendpoint",e),(function(e){ze(e)}))}(t),p(t,e),l(t,e))}function d(e,t,n){var i,r,o=c(t.index,e),a=n[t.index-1],s=n[t.index],l=t.point,p=Tt(a,s),u=Mt(a,s);o&&(i=function(e){return ye(".djs-visual",e)}(o),r={x:l.x-p.x,y:l.y-p.y},"v"===u&&(r={x:r.y,y:r.x}),Kn(i,r.x,r.y))}e.on("connection.changed",(function(e){h(e.element)})),e.on("connection.remove",(function(e){var t=s(e.element);t&&ze(t)})),e.on("element.marker.update",(function(e){var t,n=e.element;n.waypoints&&(t=u(n),e.add?ke(t).add(e.marker):ke(t).remove(e.marker))})),e.on("element.mousemove",(function(e){var n,i,r=e.element,o=r.waypoints;if(o){if(n=s(r,!0),!(i=Ws(t,o,e.originalEvent)))return;!function(e,t){var n=ye(".floating",e),i=t.point;n&&Kn(n,i.x,i.y)}(n,i),i.bendpoint||d(n,i,o)}})),e.on("element.mousedown",(function(e){if(Co(e)){var t=e.originalEvent,n=e.element;if(n.waypoints)return o(t,n)}})),e.on("selection.changed",(function(e){var t=e.newSelection[0];t&&t.waypoints&&u(t)})),e.on("element.hover",(function(e){var t=e.element;t.waypoints&&(u(t),n.registerEvent(e.gfx,"mousemove","element.mousemove"))})),e.on("element.out",(function(e){n.unregisterEvent(e.gfx,"mousemove","element.mousemove")})),e.on("element.updateId",(function(e){var t=e.element,n=e.newId;if(t.waypoints){var i=s(t);i&&Ce(i,{"data-element-id":n})}})),this.addHandles=u,this.updateHandles=h,this.getBendpointsContainer=s,this.getSegmentDragger=c}Xs.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];var Zs=Math.round,Qs="reconnectStart",Js="reconnectEnd",ec="updateWaypoints";function tc(e,t,n,i,r,o){this._injector=e,this.start=function(e,t,o,a){var s,c=n.getGraphics(t),l=t.source,p=t.target,u=t.waypoints,h=(s=a||0!==o?a||o!==u.length-1?ec:Js:Qs)===ec?"connection.updateWaypoints":"connection.reconnect",d=r.allowed(h,{connection:t,source:l,target:p});!1===d&&(d=r.allowed(h,{connection:t,source:p,target:l})),!1!==d&&i.init(e,"bendpoint.move",{data:{connection:t,connectionGfx:c,context:{allowed:d,bendpointIndex:o,connection:t,source:l,target:p,insert:a,type:s}}})},t.on("bendpoint.move.hover",(function(e){var t,n=e.context,i=n.connection,o=i.source,a=i.target,s=e.hover,c=n.type;if(n.hover=s,s){var l=c===ec?"connection.updateWaypoints":"connection.reconnect";if(t=n.allowed=r.allowed(l,{connection:i,source:c===Qs?s:o,target:c===Js?s:a}))return n.source=c===Qs?s:o,void(n.target=c===Js?s:a);!1===t&&(t=n.allowed=r.allowed(l,{connection:i,source:c===Js?s:a,target:c===Qs?s:o})),t&&(n.source=c===Js?s:a,n.target=c===Qs?s:o)}})),t.on(["bendpoint.move.out","bendpoint.move.cleanup"],(function(e){var t=e.context,n=t.type;t.hover=null,t.source=null,t.target=null,n!==ec&&(t.allowed=!1)})),t.on("bendpoint.move.end",(function(e){var t=e.context,n=t.allowed,i=t.bendpointIndex,r=t.connection,a=t.insert,s=r.waypoints.slice(),c=t.source,l=t.target,p=t.type,u=t.hints||{},h={x:Zs(e.x),y:Zs(e.y)};if(!n)return!1;p===ec?(a?s.splice(i,0,h):s[i]=h,u.bendpointMove={insert:a,bendpointIndex:i},s=this.cropWaypoints(r,s),o.updateWaypoints(r,function(e){e=e.slice();for(var t,n,i,r=0;e[r];)t=e[r],n=e[r-1],0===Ct(t,i=e[r+1])||Pt(n,i,t)?e.splice(r,1):r++;return e}(s),u)):(p===Qs?(u.docking="source",nc(t)&&(u.docking="target",u.newWaypoints=s.reverse())):p===Js&&(u.docking="target",nc(t)&&(u.docking="source",u.newWaypoints=s.reverse())),o.reconnect(r,c,l,h,u))}),this)}function nc(e){var t=e.hover,n=e.source,i=e.target,r=e.type;return r===Qs?t&&i&&t===i&&n!==i:r===Js?t&&n&&t===n&&n!==i:void 0}tc.$inject=["injector","eventBus","canvas","dragging","rules","modeling"],tc.prototype.cropWaypoints=function(e,t){var n=this._injector.get("connectionDocking",!1);if(!n)return t;var i=e.waypoints;return e.waypoints=t,e.waypoints=n.getCroppedWaypoints(e),t=e.waypoints,e.waypoints=i,t};var ic="updateWaypoints",rc="connect-ok",oc="connect-not-ok",ac="connect-hover",sc="djs-updating",cc="djs-element-hidden";function lc(e,t,n,i){this._injector=t;var r=t.get("connectionPreview",!1);n.on("bendpoint.move.start",(function(e){var t=e.context,n=t.bendpointIndex,r=t.connection,o=t.insert,a=r.waypoints,s=a.slice();t.waypoints=a,o&&s.splice(n,0,{x:e.x,y:e.y}),r.waypoints=s,ke(t.draggerGfx=Us(i.getLayer("overlays"))).add("djs-dragging"),i.addMarker(r,cc),i.addMarker(r,sc)})),n.on("bendpoint.move.hover",(function(e){var t=e.context,n=t.allowed,r=t.hover,o=t.type;if(r){if(i.addMarker(r,ac),o===ic)return;n?(i.removeMarker(r,oc),i.addMarker(r,rc)):!1===n&&(i.removeMarker(r,rc),i.addMarker(r,oc))}})),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],1100,(function(e){var t=e.context,n=t.hover,r=t.target;n&&(i.removeMarker(n,ac),i.removeMarker(n,r?rc:oc))})),n.on("bendpoint.move.move",(function(t){var n=t.context,i=n.allowed,o=n.bendpointIndex,a=n.draggerGfx,s=n.hover,c=n.type,l=n.connection,p=l.source,u=l.target,h=l.waypoints.slice(),d={x:t.x,y:t.y},m=n.hints||{},f={};r&&(m.connectionStart&&(f.connectionStart=m.connectionStart),m.connectionEnd&&(f.connectionEnd=m.connectionEnd),"reconnectStart"===c?nc(n)?(f.connectionEnd=f.connectionEnd||d,f.source=u,f.target=s||p,h=h.reverse()):(f.connectionStart=f.connectionStart||d,f.source=s||p,f.target=u):"reconnectEnd"===c?nc(n)?(f.connectionStart=f.connectionStart||d,f.source=s||u,f.target=p,h=h.reverse()):(f.connectionEnd=f.connectionEnd||d,f.source=p,f.target=s||u):(f.noCropping=!0,f.noLayout=!0,h[o]=d),c===ic&&(h=e.cropWaypoints(l,h)),f.waypoints=h,r.drawPreview(n,i,f)),Kn(a,t.x,t.y)}),this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],1100,(function(e){var t=e.context,n=t.connection,o=t.draggerGfx,a=t.hover,s=t.target,c=t.waypoints;n.waypoints=c,ze(o),i.removeMarker(n,sc),i.removeMarker(n,cc),a&&(i.removeMarker(a,rc),i.removeMarker(a,s?rc:oc)),r&&r.cleanUp(t)}))}lc.$inject=["bendpointMove","injector","eventBus","canvas"];var pc="connect-hover",uc="djs-updating";function hc(e,t,n){return dc(e,t,e[t]+n)}function dc(e,t,n){return{x:"x"===t?n:e.x,y:"y"===t?n:e.y}}function mc(e){return"x"===e?"y":"x"}function fc(e,t,n){var i,r;return e.original?e.original:(i=fn(t),dc(e,r=mc(n),i[r]))}function vc(e,t,n,i,r,o){var a=e.get("connectionDocking",!1);function s(e,t){if(!a)return t;var n,i=e.waypoints;return e.waypoints=t,n=a.getCroppedWaypoints(e),e.waypoints=i,n}function c(e){r.update("connection",e.connection,e.connectionGfx)}function l(e,t,n){var i=e.newWaypoints,r=function(e,t,n,i){var r=Math.max(t[i],n[i]),o=Math.min(t[i],n[i]);return dc(t,i,Math.min(Math.max(o+20,e[i]),r-20))}(n,i[e.segmentStartIndex+t],i[e.segmentEndIndex+t],mc(e.axis));Kn(e.draggerGfx,r.x,r.y)}this.start=function(e,t,r){var o,a,s,c,l=n.getGraphics(t),p=r-1,u=r,h=t.waypoints,d=h[p],m=h[u],f=Ws(n,h,e);(a=Mt(d,m))&&(s="v"===a?"x":"y",0===p&&(d=fc(d,t.source,s)),u===h.length-1&&(m=fc(m,t.target,s)),o={connection:t,segmentStartIndex:p,segmentEndIndex:u,segmentStart:d,segmentEnd:m,axis:s,dragPosition:c=f?f.point:{x:(d.x+m.x)/2,y:(d.y+m.y)/2}},i.init(e,c,"connectionSegment.move",{cursor:"x"===s?"resize-ew":"resize-ns",data:{connection:t,connectionGfx:l,context:o}}))},t.on("connectionSegment.move.start",(function(e){var t=e.context,i=e.connection,r=n.getLayer("overlays");t.originalWaypoints=i.waypoints.slice(),t.draggerGfx=Ks(r,t.segmentStart,t.segmentEnd),ke(t.draggerGfx).add("djs-dragging"),n.addMarker(i,uc)})),t.on("connectionSegment.move.move",(function(e){var t,n,i=e.context,r=i.connection,o=i.segmentStartIndex,a=i.segmentEndIndex,p=i.segmentStart,u=i.segmentEnd,h=i.axis,d=i.originalWaypoints.slice(),m=hc(p,h,e["d"+h]),f=hc(u,h,e["d"+h]),v=d.length,g=0;d[o]=m,d[a]=f,o<2&&(t=vn(r.source,m),1===o?"intersect"===t&&(d.shift(),d[0]=m,g--):"intersect"!==t&&(d.unshift(p),g++)),a>v-3&&(n=vn(r.target,f),a===v-2?"intersect"===n&&(d.pop(),d[d.length-1]=f):"intersect"!==n&&d.push(u)),i.newWaypoints=r.waypoints=s(r,d),l(i,g,e),i.newSegmentStartIndex=o+g,c(e)})),t.on("connectionSegment.move.hover",(function(e){e.context.hover=e.hover,n.addMarker(e.hover,pc)})),t.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],(function(e){var t=e.context.hover;t&&n.removeMarker(t,pc)})),t.on("connectionSegment.move.cleanup",(function(e){var t=e.context,i=t.connection;t.draggerGfx&&ze(t.draggerGfx),n.removeMarker(i,uc)})),t.on(["connectionSegment.move.cancel","connectionSegment.move.end"],(function(e){var t=e.context;t.connection.waypoints=t.originalWaypoints,c(e)})),t.on("connectionSegment.move.end",(function(e){var t=e.context,n=t.connection,i=t.newWaypoints,r=t.newSegmentStartIndex,a=function(e,t){var n=0;return{waypoints:e.filter((function(i,r){return!Pt(e[r-1],e[r+1],i)||(n=r<=t?n-1:n,!1)})),segmentOffset:n}}(i=i.map((function(e){return{original:e.original,x:Math.round(e.x),y:Math.round(e.y)}})),r),c=s(n,a.waypoints),l=a.segmentOffset,p={segmentMove:{segmentStartIndex:t.segmentStartIndex,newSegmentStartIndex:r+l}};o.updateWaypoints(n,c,p)}))}vc.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var gc=Math.abs,yc=Math.round;function bc(e){return{x:e.x,y:e.y}}function _c(e){return{x:e.x+e.width,y:e.y+e.height}}function xc(e,t){return!e||isNaN(e.x)||isNaN(e.y)?t:{x:yc(e.x+e.width/2),y:yc(e.y+e.height/2)}}function wc(e,t){var n=e.snapped;return!!n&&("string"==typeof t?n[t]:n.x&&n.y)}function Ec(e,t,n){if("string"!=typeof t)throw new Error("axis must be in [x, y]");if("number"!=typeof n&&!1!==n)throw new Error("value must be Number or false");var i,r=e[t],o=e.snapped=e.snapped||{};return!1===n?o[t]=!1:(o[t]=!0,i=n-r,e[t]+=i,e["d"+t]+=i),r}function Sc(e){return e.children||[]}var Cc=Math.abs,Pc=Math.round;function Mc(e){function t(e,t){if(h(e)){for(var n=e.length;n--;)if(Cc(e[n]-t)<=10)return e[n]}else{var i=t%(e=+e);if(i<10)return t-i;if(i>e-10)return t-i+e}return t}function n(e){if(e.width)return{x:Pc(e.width/2+e.x),y:Pc(e.height/2+e.y)}}e.on("connectionSegment.move.move",1500,(function(e){var i,r,o=function(e){var t=e.snapPoints,i=e.connection,r=i.waypoints,o=e.segmentStart,a=e.segmentStartIndex,s=e.segmentEnd,c=e.segmentEndIndex,l=e.axis;if(t)return t;var p=[r[a-1],o,s,r[c+1]];return a<2&&p.unshift(n(i.source)),c>r.length-3&&p.unshift(n(i.target)),e.snapPoints=t={horizontal:[],vertical:[]},w(p,(function(e){e&&(e=e.original||e,"y"===l&&t.horizontal.push(e.y),"x"===l&&t.vertical.push(e.x))})),t}(e.context),a=e.x,s=e.y;if(o){var c=a-(i=t(o.vertical,a)),l=s-(r=t(o.horizontal,s));G(e,{dx:e.dx-c,dy:e.dy-l,x:i,y:r}),(c||-1!==o.vertical.indexOf(a))&&Ec(e,"x",i),(l||-1!==o.horizontal.indexOf(s))&&Ec(e,"y",r)}})),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,(function(e){var i,r,o=e.context,a=function(e){var t=e.snapPoints,n=e.connection.waypoints,i=e.bendpointIndex;if(t)return t;var r=[n[i-1],n[i+1]];return e.snapPoints=t={horizontal:[],vertical:[]},w(r,(function(e){e&&(e=e.original||e,t.horizontal.push(e.y),t.vertical.push(e.x))})),t}(o),s=o.hover,c=s&&n(s),l=e.x,p=e.y;if(a){var u=l-(i=t(c?a.vertical.concat([c.x]):a.vertical,l)),h=p-(r=t(c?a.horizontal.concat([c.y]):a.horizontal,p));G(e,{dx:e.dx-u,dy:e.dy-h,x:e.x-u,y:e.y-h}),(u||-1!==a.vertical.indexOf(l))&&Ec(e,"x",i),(h||-1!==a.horizontal.indexOf(p))&&Ec(e,"y",r)}}))}Mc.$inject=["eventBus"];var Rc={__depends__:[Ds,Is],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",Xs],bendpointMove:["type",tc],bendpointMovePreview:["type",lc],connectionSegmentMove:["type",vc],bendpointSnapping:["type",Mc]};function Tc(e,t,n,i){function r(e,t){return i.allowed("connection.create",{source:e,target:t})}e.on("connect.hover",(function(e){var t,n=e.context,i=n.start,o=e.hover;if(n.hover=o,!u(t=n.canExecute=r(i,o))){if(!1!==t)return n.source=i,void(n.target=o);u(t=n.canExecute=r(o,i))||!1!==t&&(n.source=o,n.target=i)}})),e.on(["connect.out","connect.cleanup"],(function(e){var t=e.context;t.hover=null,t.source=null,t.target=null,t.canExecute=!1})),e.on("connect.end",(function(e){var t=e.context,i=t.canExecute,r=t.connectionStart,o={x:e.x,y:e.y},a=t.source,s=t.target;if(!i)return!1;var c=null,l={connectionStart:kc(t)?o:r,connectionEnd:kc(t)?r:o};d(i)&&(c=i),n.connect(a,s,c,l)})),this.start=function(e,n,i,r){d(i)||(r=i,i=fn(n)),t.init(e,"connect",{autoActivate:r,data:{shape:n,context:{start:n,connectionStart:i}}})}}function kc(e){var t=e.hover,n=e.source,i=e.target;return t&&n&&t===n&&n!==i}Tc.$inject=["eventBus","dragging","modeling","rules"];var Ac="connect-ok",zc="connect-not-ok";function Oc(e,t,n){var i=e.get("connectionPreview",!1);i&&t.on("connect.move",(function(e){var t=e.context,n=t.canExecute,r=t.hover,o=t.source,a=t.start,s=t.startPosition,c=t.target,l=t.connectionStart||s,p=t.connectionEnd||{x:e.x,y:e.y},u=l,h=p;kc(t)&&(u=p,h=l),i.drawPreview(t,n,{source:o||a,target:c||r,connectionStart:u,connectionEnd:h})})),t.on("connect.hover",900,(function(e){var t=e.context,i=e.hover,r=t.canExecute;null!==r&&n.addMarker(i,r?Ac:zc)})),t.on(["connect.out","connect.cleanup"],1100,(function(e){var t=e.hover;t&&(n.removeMarker(t,Ac),n.removeMarker(t,zc))})),i&&t.on("connect.cleanup",(function(e){i.cleanUp(e.context)}))}Oc.$inject=["injector","eventBus","canvas"];var Dc={__depends__:[Fo,Is,Ds],__init__:["connectPreview"],connect:["type",Tc],connectPreview:["type",Oc]};function Bc(e,t,n,i){this._canvas=t,this._graphicsFactory=n,this._elementFactory=i,this._connectionDocking=e.get("connectionDocking",!1),this._layouter=e.get("layouter",!1)}Bc.$inject=["injector","canvas","graphicsFactory","elementFactory"],Bc.prototype.drawPreview=function(e,t,n){n=n||{};var i,r=e.connectionPreviewGfx,o=e.getConnection,a=n.source,s=n.target,c=n.waypoints,l=n.connectionStart,p=n.connectionEnd,u=n.noLayout,h=n.noCropping,d=n.noNoop,m=this;r||(r=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),Oe(r),o||(o=e.getConnection=function(e){var t={};return function(n){var i=JSON.stringify(n),r=t[i];return r||(r=t[i]=e.apply(null,arguments)),r}}((function(e,t,n){return m.getConnection(e,t,n)}))),t&&(i=o(t,a,s)),i?(i.waypoints=c||[],this._layouter&&!u&&(i.waypoints=this._layouter.layoutConnection(i,{source:a,target:s,connectionStart:l,connectionEnd:p,waypoints:n.waypoints||i.waypoints})),i.waypoints&&i.waypoints.length||(i.waypoints=[a?fn(a):l,s?fn(s):p]),this._connectionDocking&&(a||s)&&!h&&(i.waypoints=this._connectionDocking.getCroppedWaypoints(i,a,s)),this._graphicsFactory.drawConnection(r,i)):!d&&this.drawNoopPreview(r,n)},Bc.prototype.drawNoopPreview=function(e,t){var n=t.source,i=t.target,r=t.connectionStart||fn(n),o=t.connectionEnd||fn(i),a=this.cropWaypoints(r,o,n,i);we(e,this.createNoopConnection(a[0],a[1]))},Bc.prototype.cropWaypoints=function(e,t,n,i){var r=this._graphicsFactory,o=n&&r.getShapePath(n),a=i&&r.getShapePath(i),s=r.getConnectionPath({waypoints:[e,t]});return[e=n&&gn(o,s,!0)||e,t=i&&gn(a,s,!1)||t]},Bc.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&ze(e.connectionPreviewGfx)},Bc.prototype.getConnection=function(e){var t=function(e){return d(e)?e:{}}(e);return this._elementFactory.createConnection(t)},Bc.prototype.createConnectionPreviewGfx=function(){var e=Le("g");return Ce(e,{pointerEvents:"none"}),ke(e).add("djs-connection-preview"),we(this._canvas.getActiveLayer(),e),e},Bc.prototype.createNoopConnection=function(e,t){var n=Le("polyline");return Ce(n,{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"}),Ce(n,{points:[e.x,e.y,t.x,t.y]}),n};var jc={__init__:["connectionPreview"],connectionPreview:["type",Bc]};function Nc(e,t){return(function(e){return e.originalEvent||e.srcEvent}(e)||e).button===t}function Lc(e){return Nc(e,0)}function Ic(e){for(var t,n="",i=0;t=e[i];i++)n+=t.x+","+t.y+" ";return n}function Fc(e){return!0}function Hc(e){return Lc(e)||function(e){return Nc(e,1)}(e)}function Vc(e,t,n){var i=this;function r(n,i,r){var o,a;(function(e,t){return!(c[e]||Lc)(t)})(n,i)||(r?a=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(a=o,r=t.get(a)),a&&r&&!1===e.fire(n,{element:r,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function a(e){return o[e]}var s={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},c={"element.contextmenu":Fc,"element.mousedown":Hc,"element.mouseup":Hc,"element.click":Hc,"element.dblclick":Hc};function l(e,t,n,i){var a=o[n]=function(e){r(n,e)};i&&(c[n]=i),a.$delegate=me.bind(e,"svg, .djs-element",t,a)}function p(e,t,n){var i=a(n);i&&me.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,w(s,(function(e,n){p(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,w(s,(function(e,n){l(t,n,e)}))})),e.on(["shape.added","connection.added"],(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.createHit",{element:n,gfx:i})})),e.on(["shape.changed","connection.changed"],500,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",500,(function(e){var t=e.element,n=e.gfx;i.createDefaultHit(t,n)})),e.on("interactionEvents.updateHit",(function(e){var t=e.element,n=e.gfx;i.updateDefaultHit(t,n)}));var u=m("djs-hit djs-hit-stroke"),h=m("djs-hit djs-hit-click-stroke"),d={all:m("djs-hit djs-hit-all"),"click-stroke":h,stroke:u};function m(e,t){return t=G({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function f(e,t){var n=d[t];if(!n)throw new Error("invalid hit type <"+t+">");return Ce(e,n),e}function v(e,t){we(e,t)}this.removeHits=function(e){w(be(".djs-hit",e),ze)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,r=e.isFrame;return i?this.createWaypointsHit(t,i):(n=r?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n,i,r,o=(n=t,Ce(r=Le("polyline"),{points:Ic(n)}),i&&Ce(r,i),r);return f(o,"stroke"),v(e,o),o},this.createBoxHit=function(e,t,n){n=G({x:0,y:0},n);var i=Le("rect");return f(i,t),Ce(i,n),v(e,i),i},this.updateDefaultHit=function(e,t){var n=ye(".djs-hit",t);if(n)return e.waypoints?function(e,t){Ce(e,{points:Ic(t)})}(n,e.waypoints):Ce(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=s[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=a,this.registerEvent=l,this.unregisterEvent=p}Vc.$inject=["eventBus","elementRegistry","styles"];var $c={__init__:["interactionEvents"],interactionEvents:["type",Vc]},Gc=Math.min,Wc=Math.max;function Uc(e){e.preventDefault()}function qc(e){e.stopPropagation()}function Kc(e){this.container=e.container,this.parent=fe('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=ye("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=H(this.autoResize,this),this.handlePaste=H(this.handlePaste,this)}function Yc(e,t){this._eventBus=e,this._providers=[],this._textbox=new Kc({container:t.getContainer(),keyHandler:H(this._handleKey,this),resizeHandler:H(this._handleResize,this)})}Kc.prototype.create=function(e,t,n,i){var r=this.parent,o=this.content,a=this.container;i=this.options=i||{};var s=q(t=this.style=t||{},["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);G(r.style,{width:e.width+"px",height:e.height+"px",maxWidth:e.maxWidth+"px",maxHeight:e.maxHeight+"px",minWidth:e.minWidth+"px",minHeight:e.minHeight+"px",left:e.x+"px",top:e.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},s);var c=q(t,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return G(o.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},c),i.centerVertically&&G(o.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},c),o.innerText=n,ue.bind(o,"keydown",this.keyHandler),ue.bind(o,"mousedown",qc),ue.bind(o,"paste",this.handlePaste),i.autoResize&&ue.bind(o,"input",this.autoResize),i.resizable&&this.resizable(t),a.appendChild(r),this.setSelection(o.lastChild,o.lastChild&&o.lastChild.length),r},Kc.prototype.handlePaste=function(e){var t,n=this.options,i=this.style;if(e.preventDefault(),t=e.clipboardData?e.clipboardData.getData("text/plain"):window.clipboardData.getData("Text"),this.insertText(t),n.autoResize){var r=this.autoResize(i);r&&this.resizeHandler(r)}},Kc.prototype.insertText=function(e){e=e.replace(/\r\n|\r|\n/g,"\n"),document.execCommand("insertText",!1,e)||this._insertTextIE(e)},Kc.prototype._insertTextIE=function(e){var t,n,i,r=this.getSelection(),o=r.startContainer,a=r.endContainer,s=r.startOffset,c=r.endOffset,l=r.commonAncestorContainer,p=(t=l.childNodes,[].slice.call(t));if(function(e){return e.nodeType===Node.TEXT_NODE}(l)){var u=o.textContent;o.textContent=u.substring(0,s)+e+u.substring(c),n=o,i=s+e.length}else if(o===this.content&&a===this.content){var h=document.createTextNode(e);this.content.insertBefore(h,p[s]),n=h,i=h.textContent.length}else{var d=p.indexOf(o),m=p.indexOf(a);p.forEach((function(t,n){n===d?t.textContent=o.textContent.substring(0,s)+e+a.textContent.substring(c):n>d&&n<=m&&_e(t)})),n=o,i=s+e.length}n&&void 0!==i&&setTimeout((function(){self.setSelection(n,i)}))},Kc.prototype.autoResize=function(){var e=this.parent,t=this.content,n=parseInt(this.style.fontSize)||12;if(t.scrollHeight>e.offsetHeight||t.scrollHeight<e.offsetHeight-n){var i=e.getBoundingClientRect(),r=t.scrollHeight;e.style.height=r+"px",this.resizeHandler({width:i.width,height:i.height,dx:0,dy:r-i.height})}},Kc.prototype.resizable=function(){var e=this,t=this.parent,n=this.resizeHandle,i=parseInt(this.style.minWidth)||0,r=parseInt(this.style.minHeight)||0,o=parseInt(this.style.maxWidth)||1/0,a=parseInt(this.style.maxHeight)||1/0;if(!n){var s,c,l,p;n=this.resizeHandle=fe('<div class="djs-direct-editing-resize-handle"></div>');var u=function(n){Uc(n),qc(n);var u=Gc(Wc(l+n.clientX-s,i),o),h=Gc(Wc(p+n.clientY-c,r),a);t.style.width=u+"px",t.style.height=h+"px",e.resizeHandler({width:l,height:p,dx:n.clientX-s,dy:n.clientY-c})},h=function(e){Uc(e),qc(e),ue.unbind(document,"mousemove",u,!1),ue.unbind(document,"mouseup",h,!1)};ue.bind(n,"mousedown",(function(e){Uc(e),qc(e),s=e.clientX,c=e.clientY;var n=t.getBoundingClientRect();l=n.width,p=n.height,ue.bind(document,"mousemove",u),ue.bind(document,"mouseup",h)}))}G(n.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),t.appendChild(n)},Kc.prototype.destroy=function(){var e=this.parent,t=this.content,n=this.resizeHandle;t.innerText="",e.removeAttribute("style"),t.removeAttribute("style"),ue.unbind(t,"keydown",this.keyHandler),ue.unbind(t,"mousedown",qc),ue.unbind(t,"input",this.autoResize),ue.unbind(t,"paste",this.handlePaste),n&&(n.removeAttribute("style"),_e(n)),_e(e)},Kc.prototype.getValue=function(){return this.content.innerText.trim()},Kc.prototype.getSelection=function(){return window.getSelection().getRangeAt(0)},Kc.prototype.setSelection=function(e,t){var n=document.createRange();null===e?n.selectNodeContents(this.content):(n.setStart(e,t),n.setEnd(e,t));var i=window.getSelection();i.removeAllRanges(),i.addRange(n)},Yc.$inject=["eventBus","canvas"],Yc.prototype.registerProvider=function(e){this._providers.push(e)},Yc.prototype.isActive=function(){return!!this._active},Yc.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},Yc.prototype._fire=function(e,t){this._eventBus.fire("directEditing."+e,t||{active:this._active})},Yc.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0},Yc.prototype.complete=function(){var e=this._active;if(e){var t,n=e.context.bounds,i=this.$textbox.getBoundingClientRect(),r=this.getValue();r===e.context.text&&i.height===n.height&&i.width===n.width||(t=this._textbox.container.getBoundingClientRect(),e.provider.update(e.element,r,e.context.text,{x:i.left-t.left,y:i.top-t.top,width:i.width,height:i.height})),this._fire("complete"),this.close()}},Yc.prototype.getValue=function(){return this._textbox.getValue()},Yc.prototype._handleKey=function(e){e.stopPropagation();var t=e.keyCode||e.charCode;return 27===t?(e.preventDefault(),this.cancel()):13!==t||e.shiftKey?void 0:(e.preventDefault(),this.complete())},Yc.prototype._handleResize=function(e){this._fire("resize",e)},Yc.prototype.activate=function(e){var t;this.isActive()&&this.cancel();var n=b(this._providers,(function(n){return(t=n.activate(e))?n:null}));return t&&(this.$textbox=this._textbox.create(t.bounds,t.style,t.text,t.options),this._active={element:e,context:t,provider:n},t.options&&t.options.resizable&&(this.resizable=!0),this._fire("activate")),!!t};var Xc={__depends__:[$c],__init__:["directEditing"],directEditing:["type",Yc]},Zc=".entry";function Qc(e,t,n){this._eventBus=t,this._overlays=n;var i=p(e&&e.scale)?e.scale:{min:1,max:1.5};this._overlaysConfig={position:{right:-9,top:-6},scale:i},this._current=null,this._init()}Qc.$inject=["config.contextPad","eventBus","overlays"],Qc.prototype._init=function(){var e=this._eventBus,t=this;e.on("selection.changed",(function(e){var n=e.newSelection;1===n.length?t.open(n[0]):t.close()})),e.on("elements.delete",(function(e){w(e.elements,(function(e){t.isOpen(e)&&t.close()}))})),e.on("element.changed",(function(e){var n=e.element,i=t._current;i&&i.element===n&&t.open(n,!0)}))},Qc.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},Qc.prototype.getEntries=function(e){var t=this._getProviders(),n={};return w(t,(function(t){var i=t.getContextPadEntries(e);f(i)?n=i(n):w(i,(function(e,t){n[t]=e}))})),n},Qc.prototype.trigger=function(e,t,n){var i,r,o=this._current.element,a=this._current.entries,s=t.delegateTarget||t.target;if(!s)return t.preventDefault();if(i=a[X(s,"data-action")].action,r=t.originalEvent||t,f(i)){if("click"===e)return i(r,o,n)}else if(i[e])return i[e](r,o,n);t.preventDefault()},Qc.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},Qc.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Qc.prototype._updateAndOpen=function(e){var t=this.getEntries(e),n=this.getPad(e),i=n.html;w(t,(function(e,t){var n,r=e.group||"default",o=fe(e.html||'<div class="entry" draggable="true"></div>');X(o,"data-action",t),(n=ye("[data-group="+r+"]",i))||(n=fe('<div class="group" data-group="'+r+'"></div>'),i.appendChild(n)),n.appendChild(o),e.className&&function(e,t){var n=te(e);(h(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(o,e.className),e.title&&X(o,"title",e.title),e.imageUrl&&o.appendChild(fe('<img src="'+e.imageUrl+'">'))})),te(i).add("open"),this._current={element:e,pad:n,entries:t},this._eventBus.fire("contextPad.open",{current:this._current})},Qc.prototype.getPad=function(e){if(this.isOpen())return this._current.pad;var t=this,n=this._overlays,i=fe('<div class="djs-context-pad"></div>'),r=G({html:i},this._overlaysConfig);me.bind(i,Zc,"click",(function(e){t.trigger("click",e)})),me.bind(i,Zc,"dragstart",(function(e){t.trigger("dragstart",e)})),ue.bind(i,"mousedown",(function(e){e.stopPropagation()})),this._overlayId=n.add(e,"context-pad",r);var o=n.get(this._overlayId);return this._eventBus.fire("contextPad.create",{element:e,pad:o}),o},Qc.prototype.close=function(){this.isOpen()&&(this._overlays.remove(this._overlayId),this._overlayId=null,this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},Qc.prototype.isOpen=function(e){return!(!this._current||e&&this._current.element!==e)};var Jc={__depends__:[Ao,qo],contextPad:["type",Qc]},el=["marker-start","marker-mid","marker-end"],tl=["circle","ellipse","line","path","polygon","polyline","rect"];function nl(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._styles=i,this._clonedMarkers={};var r=this;t.on("drag.cleanup",(function(){w(r._clonedMarkers,(function(e){ze(e)})),r._clonedMarkers={}}))}nl.$inject=["elementRegistry","eventBus","canvas","styles"],nl.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)},nl.prototype.addDragger=function(e,t,n){var i=De(n=n||this.getGfx(e)),r=n.getBoundingClientRect();return this._cloneMarkers(Un(i)),Ce(i,this._styles.cls("djs-dragger",[],{x:r.top,y:r.left})),we(t,i),i},nl.prototype.addFrame=function(e,t){var n=Le("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return we(t,n),n},nl.prototype._cloneMarkers=function(e){var t=this;if(e.childNodes)for(var n=0;n<e.childNodes.length;n++)t._cloneMarkers(e.childNodes[n]);(function(e){return-1!==tl.indexOf(e.nodeName)})(e)&&el.forEach((function(n){if(Ce(e,n)){var i=function(e,t,n){return ye("marker#"+(i=Ce(e,t),i.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]),n||document);var i}(e,n,t._canvas.getContainer());t._cloneMarker(e,i,n)}}))},nl.prototype._cloneMarker=function(e,t,n){var i=t.id,r=this._clonedMarkers[i];if(!r){var o=i+"-clone";(r=De(t)).id=o,ke(r).add("djs-dragger").add("djs-dragger-marker"),this._clonedMarkers[i]=r;var a=ye("defs",this._canvas._svg);a||(a=Le("defs"),we(this._canvas._svg,a)),we(a,r)}Ce(e,n,"url(#"+this._clonedMarkers[i].id+")")};var il={__init__:["previewSupport"],previewSupport:["type",nl]},rl="drop-ok",ol="drop-not-ok",al="attach-ok",sl="new-parent",cl="create";function ll(e,t,n,i,r){function o(t,n){[al,rl,ol,sl].forEach((function(i){i===n?e.addMarker(t,i):e.removeMarker(t,i)}))}function a(){var e=t.context();e&&e.prefix===cl&&t.cancel()}n.on(["create.move","create.hover"],(function(e){var t=e.context,n=t.elements,i=e.hover,a=t.source,s=t.hints||{};if(!i)return t.canExecute=!1,void(t.target=null);pl(e);var c={x:e.x,y:e.y},l=t.canExecute=i&&function(e,t,n,i,o){if(!t)return!1;var a=b(e=x(e,(function(t){var n=t.labelTarget;return!(t.parent||function(e){return!!e.labelTarget}(t)&&-1!==e.indexOf(n))})),(function(e){return!ul(e)})),s=!1,c=!1,l=!1;hl(e)&&(s=r.allowed("shape.attach",{position:n,shape:a,target:t})),s||(l=hl(e)?r.allowed("shape.create",{position:n,shape:a,source:i,target:t}):r.allowed("elements.create",{elements:e,position:n,target:t}));var p=o.connectionTarget;return l||s?(a&&i&&(c=r.allowed("connection.create",{source:p===i?a:i,target:p===i?i:a,hints:{targetParent:t,targetAttach:s}})),{attach:s,connect:c}):(null===l||null===s)&&null}(n,i,c,a,s);i&&null!==l&&(t.target=i,l&&l.attach?o(i,al):o(i,l?sl:ol))})),n.on(["create.end","create.out","create.cleanup"],(function(e){var t=e.hover;t&&o(t,null)})),n.on("create.end",(function(e){var t=e.context,n=t.source,r=t.shape,o=t.elements,a=t.target,s=t.canExecute,c=s&&s.attach,l=s&&s.connect,p=t.hints||{};if(!1===s||!a)return!1;pl(e);var u={x:e.x,y:e.y};r=l?i.appendShape(n,r,u,a,{attach:c,connection:!0===l?{}:l,connectionTarget:p.connectionTarget}):b(o=i.createElements(o,u,a,G({},p,{attach:c})),(function(e){return!ul(e)})),G(t,{elements:o,shape:r}),G(e,{elements:o,shape:r})})),n.on("create.init",(function(){n.on("elements.changed",a),n.once(["create.cancel","create.end"],2e3,(function(){n.off("elements.changed",a)}))})),this.start=function(e,n,i){h(n)||(n=[n]);var r=b(n,(function(e){return!ul(e)}));if(r){i=G({elements:n,hints:{},shape:r},i||{}),w(n,(function(e){m(e.x)||(e.x=0),m(e.y)||(e.y=0)}));var o=vt(x(n,(function(e){return!e.hidden})));w(n,(function(e){ul(e)&&(e.waypoints=M(e.waypoints,(function(e){return{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2}}))),G(e,{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2})})),t.init(e,cl,{cursor:"grabbing",autoActivate:!0,data:{shape:r,elements:n,context:i}})}}}function pl(e){var t=e.context.createConstraints;t&&(t.left&&(e.x=Math.max(e.x,t.left)),t.right&&(e.x=Math.min(e.x,t.right)),t.top&&(e.y=Math.max(e.y,t.top)),t.bottom&&(e.y=Math.min(e.y,t.bottom)))}function ul(e){return!!e.waypoints}function hl(e){return e&&1===e.length&&!ul(e[0])}ll.$inject=["canvas","dragging","eventBus","modeling","rules"];function dl(e,t,n,i,r){t.on("create.move",750,(function(t){var o=t.hover,a=t.context,s=a.elements,c=a.dragGroup;c||(c=a.dragGroup=function(e){var t=Le("g");Ce(t,r.cls("djs-drag-group",["no-events"]));var o=Le("g");return e.forEach((function(e){var r;e.hidden||(e.waypoints?(r=n._createContainer("connection",o),n.drawConnection(Un(r),e)):(r=n._createContainer("shape",o),n.drawShape(Un(r),e),Kn(r,e.x,e.y)),i.addDragger(e,t,r))})),t}(s)),o?(c.parentNode||we(e.getActiveLayer(),c),Kn(c,t.x,t.y)):ze(c)})),t.on("create.cleanup",(function(e){var t=e.context.dragGroup;t&&ze(t)}))}dl.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];var ml={__depends__:[Ds,il,Is,Fo],__init__:["create","createPreview"],create:["type",ll],createPreview:["type",dl]},fl="data-id",vl=["contextPad.close","canvas.viewbox.changing","commandStack.changed"];function gl(e,t,n){var i=p(e&&e.scale)?e.scale:{min:1,max:1.5};this._config={scale:i},this._eventBus=t,this._canvas=n,this._providers={},this._current={}}gl.$inject=["config.popupMenu","eventBus","canvas"],gl.prototype.registerProvider=function(e,t,n){n||(n=t,t=1e3),this._eventBus.on("popupMenu.getProviders."+e,t,(function(e){e.providers.push(n)}))},gl.prototype.isEmpty=function(e,t){if(!e)throw new Error("element parameter is missing");if(!t)throw new Error("providerId parameter is missing");var n=this._getProviders(t);if(!n)return!0;var i=this._getEntries(e,n),r=this._getHeaderEntries(e,n),o=T(i)>0,a=r&&T(r)>0;return!o&&!a},gl.prototype.open=function(e,t,n){var i=this._getProviders(t);if(!e)throw new Error("Element is missing");if(!i||!i.length)throw new Error("No registered providers for: "+t);if(!n)throw new Error("the position argument is missing");this.isOpen()&&this.close(),this._emit("open");var r=this._current={className:t,element:e,position:n},o=this._getEntries(e,i),a=this._getHeaderEntries(e,i);r.entries=G({},o,a),r.container=this._createContainer(),T(a)&&r.container.appendChild(this._createEntries(a,"djs-popup-header")),T(o)&&r.container.appendChild(this._createEntries(o,"djs-popup-body"));var s=this._canvas.getContainer();this._attachContainer(r.container,s,n.cursor),this._bindAutoClose()},gl.prototype.close=function(){this.isOpen()&&(this._emit("close"),this._unbindAutoClose(),_e(this._current.container),this._current.container=null)},gl.prototype.isOpen=function(){return!!this._current.container},gl.prototype.trigger=function(e){e.preventDefault();var t=X(e.delegateTarget||e.target,fl),n=this._getEntry(t);if(n.action)return n.action.call(null,e,n)},gl.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(t),t.providers},gl.prototype._getEntries=function(e,t){var n={};return w(t,(function(t){if(t.getPopupMenuEntries){var i=t.getPopupMenuEntries(e);f(i)?n=i(n):w(i,(function(e,t){n[t]=e}))}else w(t.getEntries(e),(function(e){var t=e.id;if(!t)throw new Error("every entry must have the id property set");n[t]=K(e,["id"])}))})),n},gl.prototype._getHeaderEntries=function(e,t){var n={};return w(t,(function(t){if(t.getPopupMenuHeaderEntries){var i=t.getPopupMenuHeaderEntries(e);f(i)?n=i(n):w(i,(function(e,t){n[t]=e}))}else{if(!t.getHeaderEntries)return;w(t.getHeaderEntries(e),(function(e){var t=e.id;if(!t)throw new Error("every entry must have the id property set");n[t]=K(e,["id"])}))}})),n},gl.prototype._getEntry=function(e){var t=this._current.entries[e];if(!t)throw new Error("entry not found");return t},gl.prototype._emit=function(e){this._eventBus.fire("popupMenu."+e)},gl.prototype._createContainer=function(){var e=fe('<div class="djs-popup">'),t=this._current.position,n=this._current.className;return G(e.style,{position:"absolute",left:t.x+"px",top:t.y+"px",visibility:"hidden"}),te(e).add(n),e},gl.prototype._attachContainer=function(e,t,n){var i=this;me.bind(e,".entry","click",(function(e){i.trigger(e)})),this._updateScale(e),t.appendChild(e),n&&this._assureIsInbounds(e,n)},gl.prototype._updateScale=function(e){var t,n,i=this._canvas.zoom(),r=this._config.scale,o=i;!0!==r&&(!1===r?(t=1,n=1):(t=r.min,n=r.max),p(t)&&i<t&&(o=t),p(n)&&i>n&&(o=n)),function(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}(e,"scale("+o+")")},gl.prototype._assureIsInbounds=function(e,t){var n,i,r=this._canvas._container.getBoundingClientRect(),o=e.offsetLeft,a=e.offsetTop,s=e.scrollWidth,c=e.scrollHeight,l={},p=t.x-r.left,u=t.y-r.top;o+s>r.width&&(l.x=!0),a+c>r.height&&(l.y=!0),l.x&&l.y?(n=p-s+"px",i=u-c+"px"):l.x?(n=p-s+"px",i=u+"px"):l.y&&u<c?(n=p+"px",i="10px"):l.y&&(n=p+"px",i=u-c+"px"),G(e.style,{left:n,top:i},{visibility:"visible","z-index":1e3})},gl.prototype._createEntries=function(e,t){var n=fe("<div>"),i=this;return te(n).add(t),w(e,(function(e,t){var r=i._createEntry(e,t);n.appendChild(r)})),n},gl.prototype._createEntry=function(e,t){var n=fe("<div>"),i=te(n);if(i.add("entry"),e.className&&e.className.split(" ").forEach((function(e){i.add(e)})),X(n,fl,t),e.label){var r=fe("<span>");r.textContent=e.label,n.appendChild(r)}return e.imageUrl&&n.appendChild(fe('<img src="'+e.imageUrl+'" />')),!0===e.active&&i.add("active"),!0===e.disabled&&i.add("disabled"),e.title&&(n.title=e.title),n},gl.prototype._bindAutoClose=function(){this._eventBus.once(vl,this.close,this)},gl.prototype._unbindAutoClose=function(){this._eventBus.off(vl,this.close,this)};var yl={__init__:["popupMenu"],popupMenu:["type",gl]};function bl(){}bl.prototype.get=function(){return this._data},bl.prototype.set=function(e){this._data=e},bl.prototype.clear=function(){var e=this._data;return delete this._data,e},bl.prototype.isEmpty=function(){return!this._data};var _l={clipboard:["type",bl]};function xl(e){var t=this;function n(e){t._lastMoveEvent=e}this._lastMoveEvent=null,e.on("canvas.init",(function(e){(t._svg=e.svg).addEventListener("mousemove",n)})),e.on("canvas.destroy",(function(){t._lastMouseEvent=null,t._svg.removeEventListener("mousemove",n)}))}xl.$inject=["eventBus"],xl.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||function(e,t){var n=document.createEvent("MouseEvent"),i=e,r=t,o=e,a=t;n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,i,r,o,a,!1,!1,!1,!1,0,null);return n}(0,0)};var wl={__init__:["mouse"],mouse:["type",xl]};function El(e,t,n,i,r,o,a,s){this._canvas=e,this._create=t,this._clipboard=n,this._elementFactory=i,this._eventBus=r,this._modeling=o,this._mouse=a,this._rules=s,r.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element,i=e.elements;t.priority=1,t.id=n.id,b(i,(function(e){return e===n.parent}))&&(t.parent=n.parent.id),function(e){return!!e.host}(n)&&(t.priority=2,t.host=n.host.id),Sl(n)&&(t.priority=3,t.source=n.source.id,t.target=n.target.id,t.waypoints=function(e){return M(e.waypoints,(function(e){return(e=Pl(e)).original&&(e.original=Pl(e.original)),e}))}(n)),Cl(n)&&(t.priority=4,t.labelTarget=n.labelTarget.id),w(["x","y","width","height"],(function(e){m(n[e])&&(t[e]=n[e])})),t.hidden=n.hidden,t.collapsed=n.collapsed})),r.on("copyPaste.pasteElements",(function(e){G(e.hints,{createElementsBehavior:!1})}))}function Sl(e){return!!e.waypoints}function Cl(e){return!!e.labelTarget}function Pl(e){return G({},e)}function Ml(e,t){var n=t.indexOf(e);return-1===n?t:t.splice(n,1)}El.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],El.prototype.copy=function(e){var t,n;return h(e)||(e=e?[e]:[]),n=!1===(t=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}))?{}:this.createTree(h(t)?t:e),this._clipboard.set(n),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:n}),n},El.prototype.paste=function(e){var t=this._clipboard.get();if(!this._clipboard.isEmpty()){var n=e&&e.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:n});var i=this._createElements(t);if(e&&e.element&&e.point)return this._paste(i,e.element,e.point,n);this._create.start(this._mouse.getLastMoveEvent(),i,{hints:n||{}})}},El.prototype._paste=function(e,t,n,i){w(e,(function(e){m(e.x)||(e.x=0),m(e.y)||(e.y=0)}));var r=vt(e);return w(e,(function(e){Sl(e)&&(e.waypoints=M(e.waypoints,(function(e){return{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2}}))),G(e,{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2})})),this._modeling.createElements(e,n,t,G({},i))},El.prototype._createElements=function(e){var t=this,n=this._eventBus,i={},r=[];return w(e,(function(e,o){w(e=D(e,"priority"),(function(e){var o,a=G({},K(e,["priority"]));return i[e.parent]?a.parent=i[e.parent]:delete a.parent,n.fire("copyPaste.pasteElement",{cache:i,descriptor:a}),Sl(a)?(a.source=i[e.source],a.target=i[e.target],o=i[e.id]=t.createConnection(a),void r.push(o)):Cl(a)?(a.labelTarget=i[a.labelTarget],o=i[e.id]=t.createLabel(a),void r.push(o)):(a.host&&(a.host=i[a.host]),o=i[e.id]=t.createShape(a),void r.push(o))}))})),r},El.prototype.createConnection=function(e){return this._elementFactory.createConnection(K(e,["id"]))},El.prototype.createLabel=function(e){return this._elementFactory.createLabel(K(e,["id"]))},El.prototype.createShape=function(e){return this._elementFactory.createShape(K(e,["id"]))},El.prototype.hasRelations=function(e,t){var n,i;return!(Sl(e)&&(n=b(t,B({id:e.source.id})),i=b(t,B({id:e.target.id})),!n||!i))&&!(Cl(e)&&!b(t,B({id:e.labelTarget.id})))},El.prototype.createTree=function(e){var t=this._rules,n=this,i={},r=[];function o(e,t){var n=b(r,(function(t){return e===t.element}));n?n.depth<t&&(r=function(e,t){var n=t.indexOf(e);-1!==n&&t.splice(n,1);return t}(n,r)).push({element:n.element,depth:t}):r.push({element:e,depth:t})}return mt(ut(e),(function(e,t,i){if(!Cl(e)){w(e.labels,(function(e){o(e,i)})),w([e.attachers,e.incoming,e.outgoing],(function(e){e&&e.length&&w(e,(function(e){w(e.labels,(function(e){o(e,i)})),o(e,i)}))})),o(e,i);var r=[];return e.children&&(r=e.children.slice()),n._eventBus.fire("copyPaste.createTree",{element:e,children:r}),r}})),e=M(r,(function(e){return e.element})),r=D(r=M(r,(function(t){return t.descriptor={},n._eventBus.fire("copyPaste.copyElement",{descriptor:t.descriptor,element:t.element,elements:e}),t})),(function(e){return e.descriptor.priority})),e=M(r,(function(e){return e.element})),w(r,(function(r){var o=r.depth;n.hasRelations(r.element,e)?!function(e,n){return t.allowed("element.copy",{element:e,elements:n})}(r.element,e)?Ml(r.element,e):(i[o]||(i[o]=[]),i[o].push(r.descriptor)):Ml(r.element,e)})),i};var Rl={__depends__:[_l,ml,wl,Is],__init__:["copyPaste"],copyPaste:["type",El]};function Tl(e,t,n){h(n)||(n=[n]),w(n,(function(n){l(e[n])||(t[n]=e[n])}))}function kl(e,t,n){var i;t.on("copyPaste.copyElement",750,(function(e){var t=e.descriptor,n=e.element,i=t.oldBusinessObject=Er(n),r=t.oldDi=Sr(n);if(t.type=n.type,Tl(i,t,"name"),Tl(r,t,"isExpanded"),Al(t))return t;i.default&&(t.default=i.default.id)})),t.on("moddleCopy.canCopyProperty",(function(t){var i,r=t.parent,o=t.property;if("processRef"===t.propertyName&&xr(r,"bpmn:Participant")&&xr(o,"bpmn:Process"))return i=e.create("bpmn:Process"),n.copyElement(o,i)})),t.on("copyPaste.pasteElements",(function(){i={}})),t.on("copyPaste.pasteElement",(function(t){var r,o,a,s,c=t.cache,l=t.descriptor,p=l.oldBusinessObject,u=l.oldDi;if(Al(l))return l.businessObject=Er(c[l.labelTarget]),void(l.di=Sr(c[l.labelTarget]));r=e.create(p.$type),l.businessObject=n.copyElement(p,r),(o=e.create(u.$type)).bpmnElement=r,l.di=n.copyElement(u,o),function(e,t){var n=Er(e);e.default&&(i[e.default]={element:n,property:"default"}),e.host&&(Er(e).attachedToRef=Er(t[e.host])),i=K(i,S(i,(function(t,i,r){var o=i.element,a=i.property;return r===e.id&&(o[a]=n,t.push(e.id)),t}),[]))}(l,c),Tl(l,r,["isExpanded","name"]),a=l,h(s="oldBusinessObject")||(s=[s]),w(s,(function(e){a[e]&&delete a[e]}))}))}function Al(e){return!!e.labelTarget}kl.$inject=["bpmnFactory","eventBus","moddleCopy"];var zl=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing"];function Ol(e,t,n){this._bpmnFactory=t,this._eventBus=e,this._moddle=n,e.on("moddleCopy.canCopyProperties",(function(e){var t=e.propertyNames;if(t&&t.length)return D(t,(function(e){return"extensionElements"===e}))})),e.on("moddleCopy.canCopyProperty",(function(e){var t=e.parent,n=d(t)&&t.$descriptor,i=e.propertyName;return(!i||-1===zl.indexOf(i))&&(!(i&&n&&!b(n.properties,B({name:i})))&&void 0)})),e.on("moddleCopy.canSetCopiedProperty",(function(e){var t,n,i=e.property;if(n="bpmn:ExtensionElements",(t=i)&&"function"==typeof t.$instanceOf&&t.$instanceOf(n)&&(!i.values||!i.values.length))return!1}))}function Dl(e,t){return S(e.properties,(function(e,n){return t&&n.default?e:e.concat(n.name)}),[])}Ol.$inject=["eventBus","bpmnFactory","moddle"],Ol.prototype.copyElement=function(e,t,n){var i=this;n&&!h(n)&&(n=[n]),n=n||Dl(e.$descriptor);var r=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:n,sourceElement:e,targetElement:t});return!1===r||(h(r)&&(n=r),w(n,(function(n){var r;y(e,n)&&(r=e.get(n));var o=i.copyProperty(r,t,n);!1!==i._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:t,property:o,propertyName:n})&&p(o)&&t.set(n,o)}))),t},Ol.prototype.copyProperty=function(e,t,n){var i=this,r=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:t,property:e,propertyName:n});if(!1!==r){if(r)return d(r)&&r.$type&&!r.$parent&&(r.$parent=t),r;var o=this._moddle.getPropertyDescriptor(t,n);if(!o.isReference){if(o.isId)return this._copyId(e,t);if(h(e))return S(e,(function(e,o){return(r=i.copyProperty(o,t,n))?(r.$parent=t,e.concat(r)):e}),[]);if(d(e)&&e.$type){if(this._moddle.getElementDescriptor(e).isGeneric)return;return(r=i._bpmnFactory.create(e.$type)).$parent=t,r=i.copyElement(e,r)}return e}}},Ol.prototype._copyId=function(e,t){return this._moddle.ids.assigned(e)?void 0:(this._moddle.ids.claim(e,t),e)};var Bl={__depends__:[Rl],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",kl],moddleCopy:["type",Ol]},jl=Math.round;function Nl(e){this._modeling=e}Nl.$inject=["modeling"],Nl.prototype.replaceElement=function(e,t,n){if(e.waypoints)return null;var i=this._modeling,r=t.width||e.width,o=t.height||e.height,a=t.x||e.x,s=t.y||e.y,c=jl(a+r/2),l=jl(s+o/2);return i.replaceShape(e,G({},t,{x:c,y:l,width:r,height:o}),n)};var Ll={__init__:["replace"],replace:["type",Nl]};var Il=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];function Fl(e,t,n,i,r,o,a){this.replaceElement=function(s,c,p){p=p||{};var u=c.type,d=s.businessObject;if(Hl(d)&&"bpmn:SubProcess"===u&&function(e,t){var n=e&&y(e,"collapsed")?e.collapsed:!Nr(e);return n!==(t&&(y(t,"collapsed")||y(t,"isExpanded"))?y(t,"collapsed")?t.collapsed:!t.isExpanded:n)}(s,c))return i.toggleCollapse(s),s;var m=e.create(u),f={type:u,businessObject:m,di:{}};!function(e,t,n){h(n)||(n=[n]),w(n,(function(n){l(e[n])||(t[n]=e[n])}))}(s.di,f.di,["fill","stroke","background-color","border-color","color"]);var v,g=Dl(d.$descriptor),b=Dl(m.$descriptor,!0),_=(v=b,g.filter((function(e){return-1!==v.indexOf(e)})));G(m,q(c,Il));var E=x(_,(function(e){return"eventDefinitions"===e?Vl(s,c.eventDefinitionType):"loopCharacteristics"===e?!Ir(m):!y(m,e)&&(("processRef"!==e||!1!==c.isExpanded)&&"triggeredByEvent"!==e)}));return m=n.copyElement(d,m,E),c.eventDefinitionType&&(Vl(m,c.eventDefinitionType)||(f.eventDefinitionType=c.eventDefinitionType,f.eventDefinitionAttrs=c.eventDefinitionAttrs)),xr(d,"bpmn:Activity")&&(Hl(d)?f.isExpanded=Nr(s):c&&y(c,"isExpanded")&&(f.isExpanded=c.isExpanded),Nr(s)&&!xr(d,"bpmn:Task")&&f.isExpanded&&(f.width=s.width,f.height=s.height)),Hl(d)&&!Hl(m)&&(p.moveChildren=!1),xr(d,"bpmn:Participant")&&(!0===c.isExpanded?m.processRef=e.create("bpmn:Process"):p.moveChildren=!1,f.width=s.width,f.height=t.getDefaultSize(f).height),o.allowed("shape.resize",{shape:m})||(f.height=t.getDefaultSize(f).height,f.width=t.getDefaultSize(f).width),m.name=d.name,wr(d,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&wr(m,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(m.default=d.default),c.host&&!xr(d,"bpmn:BoundaryEvent")&&xr(m,"bpmn:BoundaryEvent")&&(f.host=c.host),"bpmn:DataStoreReference"!==f.type&&"bpmn:DataObjectReference"!==f.type||(f.x=s.x+(s.width-f.width)/2),f=r.replaceElement(s,f,p),!1!==p.select&&a.select(f),f}}function Hl(e){return xr(e,"bpmn:SubProcess")}function Vl(e,t){var n=Er(e);return t&&n.get("eventDefinitions").some((function(e){return xr(e,t)}))}Fl.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules","selection"];var $l={__depends__:[Bl,Ll,Fo],bpmnReplace:["type",Fl]};function Gl(e){return function(t){var n=t.target,i=Er(e),r=i.eventDefinitions&&i.eventDefinitions[0],o=i.$type===n.type,a=(r&&r.$type)===n.eventDefinitionType,s=i.triggeredByEvent===n.triggeredByEvent,c=void 0===n.isExpanded||n.isExpanded===Nr(e);return!(o&&a&&s&&c)}}var Wl=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],Ul=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}],ql=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Intermediate Catch Event",actionName:"replace-with-message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message Intermediate Throw Event",actionName:"replace-with-message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Intermediate Catch Event",actionName:"replace-with-timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Intermediate Throw Event",actionName:"replace-with-escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Intermediate Catch Event",actionName:"replace-with-conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link Intermediate Catch Event",actionName:"replace-with-link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Link Intermediate Throw Event",actionName:"replace-with-link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation Intermediate Throw Event",actionName:"replace-with-compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal Intermediate Catch Event",actionName:"replace-with-signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal Intermediate Throw Event",actionName:"replace-with-signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],Kl=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message End Event",actionName:"replace-with-message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation End Event",actionName:"replace-with-escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error End Event",actionName:"replace-with-error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel End Event",actionName:"replace-with-cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation End Event",actionName:"replace-with-compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal End Event",actionName:"replace-with-signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate End Event",actionName:"replace-with-terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}],Yl=[{label:"Exclusive Gateway",actionName:"replace-with-exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel Gateway",actionName:"replace-with-parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive Gateway",actionName:"replace-with-inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex Gateway",actionName:"replace-with-complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event based Gateway",actionName:"replace-with-event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],Xl=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}}],Zl=[{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],Ql=[{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}}],Jl=[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"Send Task",actionName:"replace-with-send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive Task",actionName:"replace-with-receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"User Task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Manual Task",actionName:"replace-with-manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Business Rule Task",actionName:"replace-with-rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Service Task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Script Task",actionName:"replace-with-script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Call Activity",actionName:"replace-with-call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},{label:"Sub Process (expanded)",actionName:"replace-with-expanded-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}}],ep=[{label:"Data Store Reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],tp=[{label:"Data Object Reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],np=[{label:"Message Boundary Event",actionName:"replace-with-message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Boundary Event",actionName:"replace-with-timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Boundary Event",actionName:"replace-with-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Boundary Event",actionName:"replace-with-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Error Boundary Event",actionName:"replace-with-error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel Boundary Event",actionName:"replace-with-cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Signal Boundary Event",actionName:"replace-with-signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Compensation Boundary Event",actionName:"replace-with-compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Signal Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}],ip=[{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Error Start Event",actionName:"replace-with-error-start",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Escalation Start Event",actionName:"replace-with-escalation-start",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Compensation Start Event",actionName:"replace-with-compensation-start",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-start",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},{label:"Timer Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-start",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},{label:"Conditional Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-start",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},{label:"Signal Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-start",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},{label:"Escalation Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-start",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}}],rp=[{label:"Sequence Flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default Flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional Flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],op=[{label:"Expanded Pool",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:function(e){var t="Empty Pool";return e.children&&e.children.length&&(t+=" (removes content)"),t},actionName:"replace-with-collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}];function ap(e,t,n,i,r,o,a){this._bpmnFactory=e,this._popupMenu=t,this._modeling=n,this._moddle=i,this._bpmnReplace=r,this._rules=o,this._translate=a,this.register()}ap.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate"],ap.prototype.register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},ap.prototype.getEntries=function(e){var t,n=e.businessObject;if(!this._rules.allowed("shape.replace",{element:e}))return[];var i=Gl(e);return xr(n,"bpmn:DataObjectReference")?this._createEntries(e,ep):xr(n,"bpmn:DataStoreReference")&&!xr(e.parent,"bpmn:Collaboration")?this._createEntries(e,tp):xr(n,"bpmn:StartEvent")&&!xr(n.$parent,"bpmn:SubProcess")?(t=x(Wl,i),this._createEntries(e,t)):xr(n,"bpmn:Participant")?(t=x(op,(function(t){return Nr(e)!==t.target.isExpanded})),this._createEntries(e,t)):xr(n,"bpmn:StartEvent")&&Ir(n.$parent)?(t=x(ip,(function(t){var n=!1!==t.target.isInterrupting,r=Er(e).isInterrupting===n;return i(t)||!i(t)&&!r})),this._createEntries(e,t)):xr(n,"bpmn:StartEvent")&&!Ir(n.$parent)&&xr(n.$parent,"bpmn:SubProcess")?(t=x(Ul,i),this._createEntries(e,t)):xr(n,"bpmn:EndEvent")?(t=x(Kl,(function(e){return!("bpmn:CancelEventDefinition"==e.target.eventDefinitionType&&!xr(n.$parent,"bpmn:Transaction"))&&i(e)})),this._createEntries(e,t)):xr(n,"bpmn:BoundaryEvent")?(t=x(np,(function(e){var t=e.target;if("bpmn:CancelEventDefinition"==t.eventDefinitionType&&!xr(n.attachedToRef,"bpmn:Transaction"))return!1;var r=!1!==t.cancelActivity,o=n.cancelActivity==r;return i(e)||!i(e)&&!o})),this._createEntries(e,t)):xr(n,"bpmn:IntermediateCatchEvent")||xr(n,"bpmn:IntermediateThrowEvent")?(t=x(ql,i),this._createEntries(e,t)):xr(n,"bpmn:Gateway")?(t=x(Yl,i),this._createEntries(e,t)):xr(n,"bpmn:Transaction")?(t=x(Zl,i),this._createEntries(e,t)):Ir(n)&&Nr(e)?(t=x(Ql,i),this._createEntries(e,t)):xr(n,"bpmn:SubProcess")&&Nr(e)?(t=x(Xl,i),this._createEntries(e,t)):xr(n,"bpmn:AdHocSubProcess")&&!Nr(e)?(t=x(Jl,(function(t){var n=t.target,i="bpmn:SubProcess"===n.type,r=!0===n.isExpanded;return Gl(e)&&(!i||r)})),this._createEntries(e,t)):xr(n,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(e,rp):xr(n,"bpmn:FlowNode")?(t=x(Jl,i),xr(n,"bpmn:SubProcess")&&!Nr(e)&&(t=x(t,(function(e){return"Sub Process (collapsed)"!==e.label}))),this._createEntries(e,t)):[]},ap.prototype.getHeaderEntries=function(e){var t=[];return xr(e,"bpmn:Activity")&&!Ir(e)&&(t=t.concat(this._getLoopEntries(e))),xr(e,"bpmn:DataObjectReference")&&(t=t.concat(this._getDataObjectIsCollection(e))),xr(e,"bpmn:Participant")&&(t=t.concat(this._getParticipantMultiplicity(e))),!xr(e,"bpmn:SubProcess")||xr(e,"bpmn:Transaction")||Ir(e)||t.push(this._getAdHocEntry(e)),t},ap.prototype._createEntries=function(e,t){var n=[],i=this;return w(t,(function(t){var r=i._createMenuEntry(t,e);n.push(r)})),n},ap.prototype._createSequenceFlowEntries=function(e,t){var n=Er(e),i=[],r=this._modeling,o=this._moddle,a=this;return w(t,(function(t){switch(t.actionName){case"replace-with-default-flow":n.sourceRef.default!==n&&(xr(n.sourceRef,"bpmn:ExclusiveGateway")||xr(n.sourceRef,"bpmn:InclusiveGateway")||xr(n.sourceRef,"bpmn:ComplexGateway")||xr(n.sourceRef,"bpmn:Activity"))&&i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e.source,{default:n})})));break;case"replace-with-conditional-flow":!n.conditionExpression&&xr(n.sourceRef,"bpmn:Activity")&&i.push(a._createMenuEntry(t,e,(function(){var t=o.create("bpmn:FormalExpression",{body:""});r.updateProperties(e,{conditionExpression:t})})));break;default:if(xr(n.sourceRef,"bpmn:Activity")&&n.conditionExpression)return i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e,{conditionExpression:void 0})})));if((xr(n.sourceRef,"bpmn:ExclusiveGateway")||xr(n.sourceRef,"bpmn:InclusiveGateway")||xr(n.sourceRef,"bpmn:ComplexGateway")||xr(n.sourceRef,"bpmn:Activity"))&&n.sourceRef.default===n)return i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e.source,{default:void 0})})))}})),i},ap.prototype._createMenuEntry=function(e,t,n){var i=this._translate,r=this._bpmnReplace.replaceElement,o=e.label;return o&&"function"==typeof o&&(o=o(t)),n=n||function(){return r(t,e.target)},{label:i(o),className:e.className,id:e.actionName,action:n}},ap.prototype._getLoopEntries=function(e){var t=this,n=this._translate;function i(n,i){var r;i.active?r=void 0:(r=t._moddle.create(i.options.loopCharacteristics),i.options.isSequential&&(r.isSequential=i.options.isSequential)),t._modeling.updateProperties(e,{loopCharacteristics:r})}var r,o,a,s=Er(e).loopCharacteristics;return s&&(r=s.isSequential,o=void 0===s.isSequential,a=void 0!==s.isSequential&&!s.isSequential),[{id:"toggle-parallel-mi",className:"bpmn-icon-parallel-mi-marker",title:n("Parallel Multi Instance"),active:a,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},{id:"toggle-sequential-mi",className:"bpmn-icon-sequential-mi-marker",title:n("Sequential Multi Instance"),active:r,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},{id:"toggle-loop",className:"bpmn-icon-loop-marker",title:n("Loop"),active:o,action:i,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}]},ap.prototype._getDataObjectIsCollection=function(e){var t=this,n=this._translate;var i=e.businessObject.dataObjectRef,r=i.isCollection;return[{id:"toggle-is-collection",className:"bpmn-icon-parallel-mi-marker",title:n("Collection"),active:r,action:function(n,r){t._modeling.updateModdleProperties(e,i,{isCollection:!r.active})}}]},ap.prototype._getParticipantMultiplicity=function(e){var t=this,n=this._bpmnFactory,i=this._translate;var r=e.businessObject.participantMultiplicity;return[{id:"toggle-participant-multiplicity",className:"bpmn-icon-parallel-mi-marker",title:i("Participant Multiplicity"),active:!!r,action:function(i,r){var o;r.active||(o=n.create("bpmn:ParticipantMultiplicity")),t._modeling.updateProperties(e,{participantMultiplicity:o})}}]},ap.prototype._getAdHocEntry=function(e){var t=this._translate,n=xr(Er(e),"bpmn:AdHocSubProcess"),i=this._bpmnReplace.replaceElement;return{id:"toggle-adhoc",className:"bpmn-icon-ad-hoc-marker",title:t("Ad-hoc"),active:n,action:function(t,r){return i(e,n?{type:"bpmn:SubProcess"}:{type:"bpmn:AdHocSubProcess"},{autoResize:!1,layoutConnection:!1})}}};var sp={__depends__:[yl,$l],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",ap]},cp=Math.max,lp=Math.min;function pp(e,t){return{top:e.top-t.top,right:e.right-t.right,bottom:e.bottom-t.bottom,left:e.left-t.left}}function up(e,t,n){var i=t[e],r=n.min&&n.min[e],o=n.max&&n.max[e];return m(r)&&(i=(/top|left/.test(e)?lp:cp)(i,r)),m(o)&&(i=(/top|left/.test(e)?cp:lp)(i,o)),i}function hp(e,t){return void 0!==e?e:20}function dp(e){return!e.waypoints&&"label"!==e.type}function mp(e,t){var n;if((n=void 0===e.length?x(e.children,dp):e).length)return function(e,t){var n,i,r,o;return"object"==typeof t?(n=hp(t.left),i=hp(t.right),r=hp(t.top),o=hp(t.bottom)):n=i=r=o=hp(t),{x:e.x-n,y:e.y-r,width:e.width+n+i,height:e.height+r+o}}(vt(n),t)}var fp=Math.abs;var vp=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"],gp=30;function yp(e,t){return t=t||[],e.children.filter((function(e){xr(e,"bpmn:Lane")&&(yp(e,t),t.push(e))})),t}function bp(e){return e.children.filter((function(e){return xr(e,"bpmn:Lane")}))}function _p(e){return gs(e,vp)||e}function xp(e,t){var n=_p(e),i=yp(n,xr(n,"bpmn:Process")?[]:[n]),r=dn(e),o=dn(t),a=function(e,t){return pp(dn(t),dn(e))}(e,t),s=[];return i.forEach((function(t){if(t!==e){var n,i,c=0,l=a.right,p=0,u=a.left,h=dn(t);a.top&&(fp(h.bottom-r.top)<10&&(p=o.top-h.bottom),fp(h.top-r.top)<5&&(c=o.top-h.top)),a.bottom&&(fp(h.top-r.bottom)<10&&(c=o.bottom-h.top),fp(h.bottom-r.bottom)<5&&(p=o.bottom-h.bottom)),(c||l||p||u)&&s.push({shape:t,newBounds:(n=t,i={top:c,right:l,bottom:p,left:u},{x:n.x+(i.left||0),y:n.y+(i.top||0),width:n.width-(i.left||0)+(i.right||0),height:n.height-(i.top||0)+(i.bottom||0)})})}})),s}function wp(e,t,n,i,r,o,a,s,c,l,p,u){e=e||{},i.registerProvider(this),this._contextPad=i,this._modeling=r,this._elementFactory=o,this._connect=a,this._create=s,this._popupMenu=c,this._canvas=l,this._rules=p,this._translate=u,!1!==e.autoPlace&&(this._autoPlace=t.get("autoPlace",!1)),n.on("create.end",250,(function(e){var t=e.context.shape;if(Po(e)&&i.isOpen(t)){var n=i.getEntries(t);n.replace&&n.replace.action.click(e,t)}}))}function Ep(e,t,n){var i=e.$instanceOf(t),r=!1;return w(e.eventDefinitions||[],(function(e){e.$type===n&&(r=!0)})),i&&r}wp.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate"],wp.prototype.getContextPadEntries=function(e){var t=this._contextPad,n=this._modeling,i=this._elementFactory,r=this._connect,o=this._create,a=this._popupMenu,s=this._canvas,c=this._rules,l=this._autoPlace,p=this._translate,u={};if("label"===e.type)return u;var d=e.businessObject;function m(e,t){r.start(e,t)}function f(e,t,n,r){function a(t,n){var a=i.createShape(G({type:e},r));o.start(t,a,{source:n})}return"string"!=typeof n&&(r=n,n=p("Append {type}",{type:e.replace(/^bpmn:/,"")})),{group:"model",className:t,title:n,action:{dragstart:a,click:l?function(t,n){var o=i.createShape(G({type:e},r));l.append(n,o)}:a}}}function v(e){return function(i,r){n.splitLane(r,e),t.open(r,!0)}}if(wr(d,["bpmn:Lane","bpmn:Participant"])&&Nr(e)){var g=bp(e);G(u,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:p("Add Lane above"),action:{click:function(e,t){n.addLane(t,"top")}}}}),g.length<2&&(e.height>=120&&G(u,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:p("Divide into two Lanes"),action:{click:v(2)}}}),e.height>=180&&G(u,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:p("Divide into three Lanes"),action:{click:v(3)}}})),G(u,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:p("Add Lane below"),action:{click:function(e,t){n.addLane(t,"bottom")}}}})}xr(d,"bpmn:FlowNode")&&(xr(d,"bpmn:EventBasedGateway")?G(u,{"append.receive-task":f("bpmn:ReceiveTask","bpmn-icon-receive-task",p("Append ReceiveTask")),"append.message-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",p("Append MessageIntermediateCatchEvent"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",p("Append TimerIntermediateCatchEvent"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",p("Append ConditionIntermediateCatchEvent"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",p("Append SignalIntermediateCatchEvent"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):Ep(d,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?G(u,{"append.compensation-activity":f("bpmn:Task","bpmn-icon-task",p("Append compensation activity"),{isForCompensation:!0})}):xr(d,"bpmn:EndEvent")||d.isForCompensation||Ep(d,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")||Ir(d)||G(u,{"append.end-event":f("bpmn:EndEvent","bpmn-icon-end-event-none",p("Append EndEvent")),"append.gateway":f("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",p("Append Gateway")),"append.append-task":f("bpmn:Task","bpmn-icon-task",p("Append Task")),"append.intermediate-event":f("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",p("Append Intermediate/Boundary Event"))})),a.isEmpty(e,"bpmn-replace")||G(u,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:p("Change type"),action:{click:function(e,n){var i=G(function(e){var n=s.getContainer(),i=t.getPad(e).html,r=n.getBoundingClientRect(),o=i.getBoundingClientRect(),a=o.top-r.top;return{x:o.left-r.left,y:a+o.height+5}}(n),{cursor:{x:e.x,y:e.y}});a.open(n,"bpmn-replace",i)}}}}),wr(d,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&G(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation"),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:p("Connect using "+(d.isForCompensation?"":"Sequence/MessageFlow or ")+"Association"),action:{click:m,dragstart:m}}}),xr(d,"bpmn:TextAnnotation")&&G(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:p("Connect using Association"),action:{click:m,dragstart:m}}}),wr(d,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&G(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:p("Connect using DataInputAssociation"),action:{click:m,dragstart:m}}}),xr(d,"bpmn:Group")&&G(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation")});var y=c.allowed("elements.delete",{elements:[e]});return h(y)&&(y=y[0]===e),y&&G(u,{delete:{group:"edit",className:"bpmn-icon-trash",title:p("Remove"),action:{click:function(t){n.removeElements([e])}}}}),u};var Sp={__depends__:[Xc,Jc,Fo,Dc,ml,sp],__init__:["contextPadProvider"],contextPadProvider:["type",wp]},Cp={horizontal:["x","width"],vertical:["y","height"]};function Pp(e){this._modeling=e,this._filters=[],this.registerFilter((function(e,t,n){var i,r=0,o=0;return w(e,(function(e){e.waypoints||e.labelTarget||(r+=e[n],o+=1)})),i=Math.round(r/o),x(e,(function(e){return e[n]<i+50}))}))}Pp.$inject=["modeling"],Pp.prototype.registerFilter=function(e){if("function"!=typeof e)throw new Error("the filter has to be a function");this._filters.push(e)},Pp.prototype.trigger=function(e,t){var n,i,r=this._modeling;if(!(e.length<3||(this._setOrientation(t),i=this._filterElements(e),(n=this._createGroups(i)).length<=2)))return r.distributeElements(n,this._axis,this._dimension),n},Pp.prototype._filterElements=function(e){var t=this._filters,n=this._axis,i=this._dimension,r=[].concat(e);return t.length?(w(t,(function(e){r=e(r,n,i)})),r):e},Pp.prototype._createGroups=function(e){var t=[],n=this,i=this._axis,r=this._dimension;if(!i)throw new Error('must have a defined "axis" and "dimension"');return w(D(e,i),(function(e,o){var a,s=n._findRange(e,i,r),c=t[t.length-1];c&&n._hasIntersection(c.range,s)?t[t.length-1].elements.push(e):(a={range:s,elements:[e]},t.push(a))})),t},Pp.prototype._setOrientation=function(e){var t=Cp[e];this._axis=t[0],this._dimension=t[1]},Pp.prototype._hasIntersection=function(e,t){return Math.max(e.min,e.max)>=Math.min(t.min,t.max)&&Math.min(e.min,e.max)<=Math.max(t.min,t.max)},Pp.prototype._findRange=function(e){var t=e[this._axis];return{min:t+5,max:t+e[this._dimension]-5}};var Mp={__init__:["distributeElements"],distributeElements:["type",Pp]};function Rp(e){e.registerFilter((function(e){return x(e,(function(e){var t=wr(e,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:Participant","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(e.labelTarget||t)}))}))}Rp.$inject=["distributeElements"];var Tp={__depends__:[Mp],__init__:["bpmnDistributeElements"],bpmnDistributeElements:["type",Rp]},kp="is not a registered action";function Ap(e,t){this._actions={};var n=this;e.on("diagram.init",(function(){n._registerDefaultActions(t),e.fire("editorActions.init",{editorActions:n})}))}function zp(e,t){return new Error(e+" "+t)}Ap.$inject=["eventBus","injector"],Ap.prototype._registerDefaultActions=function(e){var t=e.get("commandStack",!1),n=e.get("modeling",!1),i=e.get("selection",!1),r=e.get("zoomScroll",!1),o=e.get("copyPaste",!1),a=e.get("canvas",!1),s=e.get("rules",!1),c=e.get("keyboardMove",!1),l=e.get("keyboardMoveSelection",!1);t&&(this.register("undo",(function(){t.undo()})),this.register("redo",(function(){t.redo()}))),o&&i&&this.register("copy",(function(){var e=i.get();o.copy(e)})),o&&this.register("paste",(function(){o.paste()})),r&&this.register("stepZoom",(function(e){r.stepZoom(e.value)})),a&&this.register("zoom",(function(e){a.zoom(e.value)})),n&&i&&s&&this.register("removeSelection",(function(){var e=i.get();if(e.length){var t,r=s.allowed("elements.delete",{elements:e});!1!==r&&(t=h(r)?r:e).length&&n.removeElements(t.slice())}})),c&&this.register("moveCanvas",(function(e){c.moveCanvas(e)})),l&&this.register("moveSelection",(function(e){l.moveSelection(e.direction,e.accelerated)}))},Ap.prototype.trigger=function(e,t){if(!this._actions[e])throw zp(e,kp);return this._actions[e](t)},Ap.prototype.register=function(e,t){var n=this;if("string"==typeof e)return this._registerAction(e,t);w(e,(function(e,t){n._registerAction(t,e)}))},Ap.prototype._registerAction=function(e,t){if(this.isRegistered(e))throw zp(e,"is already registered");this._actions[e]=t},Ap.prototype.unregister=function(e){if(!this.isRegistered(e))throw zp(e,kp);this._actions[e]=void 0},Ap.prototype.getActions=function(){return Object.keys(this._actions)},Ap.prototype.isRegistered=function(e){return!!this._actions[e]};var Op={__init__:["editorActions"],editorActions:["type",Ap]};function Dp(e){e.invoke(Ap,this)}i(Dp,Ap),Dp.$inject=["injector"],Dp.prototype._registerDefaultActions=function(e){Ap.prototype._registerDefaultActions.call(this,e);var t=e.get("canvas",!1),n=e.get("elementRegistry",!1),i=e.get("selection",!1),r=e.get("spaceTool",!1),o=e.get("lassoTool",!1),a=e.get("handTool",!1),s=e.get("globalConnect",!1),c=e.get("distributeElements",!1),l=e.get("alignElements",!1),p=e.get("directEditing",!1),u=e.get("searchPad",!1),h=e.get("modeling",!1);t&&n&&i&&this._registerAction("selectElements",(function(){var e=t.getRootElement(),r=n.filter((function(t){return t!==e}));return i.select(r),r})),r&&this._registerAction("spaceTool",(function(){r.toggle()})),o&&this._registerAction("lassoTool",(function(){o.toggle()})),a&&this._registerAction("handTool",(function(){a.toggle()})),s&&this._registerAction("globalConnectTool",(function(){s.toggle()})),i&&c&&this._registerAction("distributeElements",(function(e){var t=i.get(),n=e.type;t.length&&c.trigger(t,n)})),i&&l&&this._registerAction("alignElements",(function(e){var t=i.get(),n=[],r=e.type;t.length&&(n=x(t,(function(e){return!xr(e,"bpmn:Lane")})),l.trigger(n,r))})),i&&h&&this._registerAction("setColor",(function(e){var t=i.get();t.length&&h.setColor(t,e)})),i&&p&&this._registerAction("directEditing",(function(){var e=i.get();e.length&&p.activate(e[0])})),u&&this._registerAction("find",(function(){u.toggle()})),t&&h&&this._registerAction("moveToOrigin",(function(){var e,i,r=t.getRootElement();e=vt(i=xr(r,"bpmn:Collaboration")?n.filter((function(e){return xr(e.parent,"bpmn:Collaboration")})):n.filter((function(e){return e!==r&&!xr(e.parent,"bpmn:SubProcess")}))),h.moveElements(i,{x:-e.x,y:-e.y},r)}))};var Bp={__depends__:[Op],editorActions:["type",Dp]};function jp(e){e.on(["create.init","shape.move.init"],(function(e){var t=e.context;wr(e.shape,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(t.gridSnappingContext||(t.gridSnappingContext={}),t.gridSnappingContext.snapLocation="top-left")}))}jp.$inject=["eventBus"];function Np(e,t,n){return n||(n="round"),Math[n](e/t)*t}function Lp(e,t,n){var i=!n||!1!==n.active;this._eventBus=t;var r=this;t.on("diagram.init",800,(function(){r.setActive(i)})),t.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],1200,(function(t){var n=t.originalEvent;if(!(!r.active||n&&ba(n))){var i=t.context,o=i.gridSnappingContext;o||(o=i.gridSnappingContext={}),["x","y"].forEach((function(n){var i={},o=function(e,t,n){var i=e.context,r=e.shape,o=i.gridSnappingContext,a=o.snapLocation,s=o.snapOffset;if(s&&m(s[t]))return s[t];s||(s=o.snapOffset={});m(s[t])||(s[t]=0);if(!r)return s[t];n.get(r.id)||(Ip(t)?s[t]+=r[t]+r.width/2:s[t]+=r[t]+r.height/2);if(!a)return s[t];"x"===t?/left/.test(a)?s[t]-=r.width/2:/right/.test(a)&&(s[t]+=r.width/2):/top/.test(a)?s[t]-=r.height/2:/bottom/.test(a)&&(s[t]+=r.height/2);return s[t]}(t,n,e);o&&(i.offset=o);var a=function(e,t){var n=e.context,i=n.createConstraints,r=n.resizeConstraints||{},o=n.gridSnappingContext,a=o.snapConstraints;if(a&&a[t])return a[t];a||(a=o.snapConstraints={});a[t]||(a[t]={});var s=n.direction;i&&(Ip(t)?(a.x.min=i.left,a.x.max=i.right):(a.y.min=i.top,a.y.max=i.bottom));var c=r.min,l=r.max;c&&(Ip(t)?Hp(s)?a.x.max=c.left:a.x.min=c.right:Fp(s)?a.y.max=c.top:a.y.min=c.bottom);l&&(Ip(t)?Hp(s)?a.x.min=l.left:a.x.max=l.right:Fp(s)?a.y.min=l.top:a.y.max=l.bottom);return a[t]}(t,n);a&&G(i,a),wc(t,n)||r.snapEvent(t,n,i)}))}}))}function Ip(e){return"x"===e}function Fp(e){return-1!==e.indexOf("n")}function Hp(e){return-1!==e.indexOf("w")}function Vp(e,t){Xo.call(this,e),this._gridSnapping=t;var n=this;this.preExecute("shape.resize",(function(e){var t=e.context,i=(t.hints||{}).autoResize;if(i){var r=t.shape,o=t.newBounds;v(i)?t.newBounds=n.snapComplex(o,i):t.newBounds=n.snapSimple(r,o)}}))}Lp.prototype.snapEvent=function(e,t,n){Ec(e,t,this.snapValue(e[t],n))},Lp.prototype.getGridSpacing=function(){return 10},Lp.prototype.snapValue=function(e,t){var n,i,r=0;return t&&t.offset&&(r=t.offset),e=Np(e+=r,10),t&&t.min&&m(n=t.min)&&(n=Np(n+r,10,"ceil"),e=Math.max(e,n)),t&&t.max&&m(i=t.max)&&(i=Np(i+r,10,"floor"),e=Math.min(e,i)),e-=r},Lp.prototype.isActive=function(){return this.active},Lp.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})},Lp.prototype.toggleActive=function(){this.setActive(!this.active)},Lp.$inject=["elementRegistry","eventBus","config.gridSnapping"],Vp.$inject=["eventBus","gridSnapping","modeling"],i(Vp,Xo),Vp.prototype.snapSimple=function(e,t){var n=this._gridSnapping;return t.width=n.snapValue(t.width,{min:t.width}),t.height=n.snapValue(t.height,{min:t.height}),t.x=e.x+e.width/2-t.width/2,t.y=e.y+e.height/2-t.height/2,t},Vp.prototype.snapComplex=function(e,t){return/w|e/.test(t)&&(e=this.snapHorizontally(e,t)),/n|s/.test(t)&&(e=this.snapVertically(e,t)),e},Vp.prototype.snapHorizontally=function(e,t){var n=this._gridSnapping,i=/w/.test(t),r=/e/.test(t),o={};return o.width=n.snapValue(e.width,{min:e.width}),r&&(i?(o.x=n.snapValue(e.x,{max:e.x}),o.width+=n.snapValue(e.x-o.x,{min:e.x-o.x})):e.x=e.x+e.width-o.width),G(e,o),e},Vp.prototype.snapVertically=function(e,t){var n=this._gridSnapping,i=/n/.test(t),r=/s/.test(t),o={};return o.height=n.snapValue(e.height,{min:e.height}),i&&(r?(o.y=n.snapValue(e.y,{max:e.y}),o.height+=n.snapValue(e.y-o.y,{min:e.y-o.y})):e.y=e.y+e.height-o.height),G(e,o),e};function $p(e,t){e.on(["spaceTool.move","spaceTool.end"],2e3,(function(e){var n,i=e.context;i.initialized&&("x"===i.axis?(n=t.snapValue(e.dx),e.x=e.x+n-e.dx,e.dx=n):(n=t.snapValue(e.dy),e.y=e.y+n-e.dy,e.dy=n))}))}$p.$inject=["eventBus","gridSnapping"];var Gp={__depends__:[{__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",Vp],gridSnappingSpaceToolBehavior:["type",$p]}],__init__:["gridSnapping"],gridSnapping:["type",Lp]};function Wp(e,t){e.on("autoPlace",2e3,(function(e){var n=e.source,i=fn(n),r=e.shape,o=ys(n,r);return["x","y"].forEach((function(e){var n={};o[e]!==i[e]&&(o[e]>i[e]?n.min=o[e]:n.max=o[e],xr(r,"bpmn:TextAnnotation")&&(!function(e){return"x"===e}(e)?n.offset=-r.height/2:n.offset=-r.width/2),o[e]=t.snapValue(o[e],n))})),o}))}Wp.$inject=["eventBus","gridSnapping"];function Up(e,t,n){t.on(["create.start","shape.move.start"],1750,(function(t){var i=t.context,r=i.shape,o=e.getRootElement();xr(r,"bpmn:Participant")&&xr(o,"bpmn:Process")&&o.children.length&&(i.createConstraints&&(r.width=n.snapValue(r.width,{min:r.width}),r.height=n.snapValue(r.height,{min:r.height})))}))}Up.$inject=["canvas","eventBus","gridSnapping"];function qp(e,t,n){Xo.call(this,e),this._gridSnapping=t;var i=this;this.postExecuted(["connection.create","connection.layout"],3e3,(function(e){var t=e.context,r=t.connection,o=t.hints||{},a=r.waypoints;o.connectionStart||o.connectionEnd||!1===o.createElementsBehavior||function(e){return e.length>3}(a)&&n.updateWaypoints(r,i.snapMiddleSegments(a))}))}function Kp(e,t,n){var i=Mt(t,n),r={};return function(e){return"h"===e}(i)&&(r.y=e.snapValue(t.y)),function(e){return"v"===e}(i)&&(r.x=e.snapValue(t.x)),("x"in r||"y"in r)&&(t=G({},t,r),n=G({},n,r)),[t,n]}qp.$inject=["eventBus","gridSnapping","modeling"],i(qp,Xo),qp.prototype.snapMiddleSegments=function(e){var t,n=this._gridSnapping;e=e.slice();for(var i=1;i<e.length-2;i++)t=Kp(n,e[i],e[i+1]),e[i]=t[0],e[i+1]=t[1];return e};var Yp={__depends__:[Gp,{__init__:["gridSnappingAutoPlaceBehavior","gridSnappingCreateParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",Wp],gridSnappingCreateParticipantBehavior:["type",Up],gridSnappingLayoutConnectionBehavior:["type",qp]}],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",jp]};function Xp(e,t){this._interactionEvents=t;var n=this;e.on(["interactionEvents.createHit","interactionEvents.updateHit"],(function(e){var t=e.element,i=e.gfx;return xr(t,"bpmn:Lane")?n.createParticipantHit(t,i):xr(t,"bpmn:Participant")?Nr(t)?n.createParticipantHit(t,i):n.createDefaultHit(t,i):xr(t,"bpmn:SubProcess")?Nr(t)?n.createSubProcessHit(t,i):n.createDefaultHit(t,i):void 0}))}Xp.$inject=["eventBus","interactionEvents"],Xp.prototype.createDefaultHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createDefaultHit(e,t),!0},Xp.prototype.createParticipantHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:30,height:e.height}),!0},Xp.prototype.createSubProcessHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:e.width,height:30}),!0};var Zp={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",Xp]};function Qp(e){e.invoke(Ta,this)}i(Qp,Ta),Qp.$inject=["injector"],Qp.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}Ta.prototype.registerBindings.call(this,e,t),n("selectElements",(function(n){var i=n.keyEvent;if(e.isKey(["a","A"],i)&&e.isCmd(i))return t.trigger("selectElements"),!0})),n("find",(function(n){var i=n.keyEvent;if(e.isKey(["f","F"],i)&&e.isCmd(i))return t.trigger("find"),!0})),n("spaceTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["s","S"],i)?(t.trigger("spaceTool"),!0):void 0})),n("lassoTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["l","L"],i)?(t.trigger("lassoTool"),!0):void 0})),n("handTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["h","H"],i)?(t.trigger("handTool"),!0):void 0})),n("globalConnectTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["c","C"],i)?(t.trigger("globalConnectTool"),!0):void 0})),n("directEditing",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["e","E"],i)?(t.trigger("directEditing"),!0):void 0}))};var Jp={__depends__:[ka],__init__:["keyboardBindings"],keyboardBindings:["type",Qp]},eu={moveSpeed:1,moveSpeedAccelerated:10},tu="left",nu="right",iu="down",ru={ArrowLeft:tu,Left:tu,ArrowUp:"up",Up:"up",ArrowRight:nu,Right:nu,ArrowDown:iu,Down:iu},ou={left:function(e){return{x:-e,y:0}},up:function(e){return{x:0,y:-e}},right:function(e){return{x:e,y:0}},down:function(e){return{x:0,y:e}}};function au(e,t,n,i,r){var o=this;this._config=G({},eu,e||{}),t.addListener(1500,(function(e){var n=e.keyEvent,i=ru[n.key];if(i&&!t.isCmd(n)){var r=t.isShift(n);return o.moveSelection(i,r),!0}})),this.moveSelection=function(e,t){var o=r.get();if(o.length){var a=this._config[t?"moveSpeedAccelerated":"moveSpeed"],s=ou[e](a);i.allowed("elements.move",{shapes:o})&&n.moveElements(o,s)}}}au.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];var su={__depends__:[ka,Fo],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",au]};function cu(e,t,n,i){this._dragging=i,this._rules=t;var r=this;function o(e,t){var n,i=e.shape,o=e.direction,a=e.resizeConstraints;e.delta=t,n=function(e,t,n){var i=n.x,r=n.y,o={x:e.x,y:e.y,width:e.width,height:e.height};return-1!==t.indexOf("n")?(o.y=e.y+r,o.height=e.height-r):-1!==t.indexOf("s")&&(o.height=e.height+r),-1!==t.indexOf("e")?o.width=e.width+i:-1!==t.indexOf("w")&&(o.x=e.x+i,o.width=e.width-i),o}(i,o,t),e.newBounds=function(e,t){if(!t)return e;var n=dn(e);return mn({top:up("top",n,t),right:up("right",n,t),bottom:up("bottom",n,t),left:up("left",n,t)})}(n,a),e.canExecute=r.canResize(e)}e.on("resize.start",(function(e){var t,n,i;t=e.context,n=t.resizeConstraints,i=t.minBounds,void 0===n&&(void 0===i&&(i=r.computeMinResizeBox(t)),t.resizeConstraints={min:dn(i)})})),e.on("resize.move",(function(e){var t={x:e.dx,y:e.dy};o(e.context,t)})),e.on("resize.end",(function(e){!function(e){var t=e.shape,i=e.canExecute,r=e.newBounds;if(i){if(!function(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}(t,r=un(r)))return;n.resizeShape(t,r)}}(e.context)}))}function lu(e,t){var n=fn(e),i=dn(e),r={x:n.x,y:n.y};return-1!==t.indexOf("n")?r.y=i.top:-1!==t.indexOf("s")&&(r.y=i.bottom),-1!==t.indexOf("e")?r.x=i.right:-1!==t.indexOf("w")&&(r.x=i.left),r}function pu(e){return"n"===e||"s"===e?"resize-ns":"e"===e||"w"===e?"resize-ew":"nw"===e||"se"===e?"resize-nwse":"resize-nesw"}cu.prototype.canResize=function(e){var t=this._rules,n=q(e,["newBounds","shape","delta","direction"]);return t.allowed("shape.resize",n)},cu.prototype.activate=function(e,t,n){var i,r,o=this._dragging;if("string"==typeof n&&(n={direction:n}),!(r=(i=G({shape:t},n)).direction))throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");o.init(e,lu(t,r),"resize",{autoActivate:!0,cursor:pu(r),data:{shape:t,context:i}})},cu.prototype.computeMinResizeBox=function(e){var t=e.shape;return function(e,t,n,i){var r=dn(t),o={top:/n/.test(e)?r.bottom-n.height:r.top,left:/w/.test(e)?r.right-n.width:r.left,bottom:/s/.test(e)?r.top+n.height:r.bottom,right:/e/.test(e)?r.left+n.width:r.right},a=i?dn(i):o;return mn({top:lp(o.top,a.top),left:lp(o.left,a.left),bottom:cp(o.bottom,a.bottom),right:cp(o.right,a.right)})}(e.direction,t,e.minDimensions||{width:10,height:10},mp(t,e.childrenBoxPadding))},cu.$inject=["eventBus","rules","modeling","dragging"];var uu="djs-resizing",hu="resize-not-ok";function du(e,t,n){e.on("resize.move",500,(function(e){var i,r,o,a;i=e.context,r=i.shape,o=i.newBounds,(a=i.frame)||(a=i.frame=n.addFrame(r,t.getActiveLayer()),t.addMarker(r,uu)),o.width>5&&Ce(a,{x:o.x,width:o.width}),o.height>5&&Ce(a,{y:o.y,height:o.height}),i.canExecute?ke(a).remove(hu):ke(a).add(hu)})),e.on("resize.cleanup",(function(e){var n,i;n=e.context,i=n.shape,n.frame&&ze(n.frame),t.removeMarker(i,uu)}))}du.$inject=["eventBus","canvas","previewSupport"];var mu=-6,fu="djs-resizer",vu=["n","w","s","e","nw","ne","se","sw"];function gu(e,t,n,i){this._resize=i,this._canvas=t;var r=this;e.on("selection.changed",(function(e){var t=e.newSelection;r.removeResizers(),1===t.length&&w(t,H(r.addResizer,r))})),e.on("shape.changed",(function(e){var t=e.element;n.isSelected(t)&&(r.removeResizers(),r.addResizer(t))}))}gu.prototype.makeDraggable=function(e,t,n){var i=this._resize;function r(t){Co(t)&&i.activate(t,e,n)}ue.bind(t,"mousedown",r),ue.bind(t,"touchstart",r)},gu.prototype._createResizer=function(e,t,n,i){var r=this._getResizersParent(),o=function(e){var t={x:0,y:0};-1!==e.indexOf("e")?t.x=6:-1!==e.indexOf("w")&&(t.x=mu);-1!==e.indexOf("s")?t.y=6:-1!==e.indexOf("n")&&(t.y=mu);return t}(i),a=Le("g");ke(a).add(fu),ke(a).add("djs-resizer-"+e.id),ke(a).add("djs-resizer-"+i),we(r,a);var s=Le("rect");Ce(s,{x:-2+o.x,y:-2+o.y,width:4,height:4}),ke(s).add("djs-resizer-visual"),we(a,s);var c=Le("rect");return Ce(c,{x:-10+o.x,y:-10+o.y,width:20,height:20}),ke(c).add("djs-resizer-hit"),we(a,c),qn(a,t,n),a},gu.prototype.createResizer=function(e,t){var n=lu(e,t),i=this._createResizer(e,n.x,n.y,t);this.makeDraggable(e,i,t)},gu.prototype.addResizer=function(e){var t=this;this._resize.canResize({shape:e})&&w(vu,(function(n){t.createResizer(e,n)}))},gu.prototype.removeResizers=function(){Oe(this._getResizersParent())},gu.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},gu.$inject=["eventBus","canvas","selection","resize"];var yu={__depends__:[Is,Ds,il],__init__:["resize","resizePreview","resizeHandles"],resize:["type",cu],resizePreview:["type",du],resizeHandles:["type",gu]};function bu(e,t){var n=t.create("bpmn:CategoryValue"),i=t.create("bpmn:Category",{categoryValue:[n]});return Et(e.get("rootElements"),i),Er(i).$parent=e,Er(n).$parent=i,n}function _u(e,t,n,i,r,o,a){function s(e,t){(t||wr(e,["bpmn:Task","bpmn:TextAnnotation"])||xu(e))&&i.activate(e)}this._bpmnFactory=t,this._canvas=n,this._modeling=r,this._textRenderer=a,i.registerProvider(this),e.on("element.dblclick",(function(e){s(e.element,!0)})),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set"],(function(e){i.isActive()&&i.complete()})),e.on(["commandStack.changed"],(function(e){i.isActive()&&i.cancel()})),e.on("directEditing.activate",(function(e){o.removeResizers()})),e.on("create.end",500,(function(e){var t=e.context,n=t.shape,i=e.context.canExecute;e.isTouch||i&&(t.hints&&!1===t.hints.createElementsBehavior||s(n))})),e.on("autoPlace.end",500,(function(e){s(e.shape)}))}function xu(e){return xr(e,"bpmn:SubProcess")&&!Nr(e)}_u.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],_u.prototype.activate=function(e){var t=Vr(e);if(void 0!==t){var n={text:t};G(n,this.getEditingBBox(e));var i={};return(wr(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||xu(e))&&G(i,{centerVertically:!0}),lo(e)&&G(i,{autoResize:!0}),xr(e,"bpmn:TextAnnotation")&&G(i,{resizable:!0,autoResize:!0}),G(n,{options:i}),n}},_u.prototype.getEditingBBox=function(e){var t=this._canvas,n=e.label||e,i=t.getAbsoluteBBox(n),r=i.x+i.width/2,o=i.y+i.height/2,a={x:i.x,y:i.y},s=t.zoom(),c=this._textRenderer.getDefaultStyle(),l=this._textRenderer.getExternalStyle(),p=l.fontSize*s,u=l.lineHeight,h=c.fontSize*s,d=c.lineHeight,m={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};(xr(e,"bpmn:Lane")||function(e){return xr(e,"bpmn:Participant")&&Nr(e)}(e))&&(G(a,{width:i.height,height:30*s,x:i.x-i.height/2+15*s,y:o-30*s/2}),G(m,{fontSize:h+"px",lineHeight:d,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px",transform:"rotate(-90deg)"})),(wr(e,["bpmn:Task","bpmn:CallActivity"])||function(e){return xr(e,"bpmn:Participant")&&!Nr(e)}(e)||xu(e))&&(G(a,{width:i.width,height:i.height}),G(m,{fontSize:h+"px",lineHeight:d,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"})),function(e){return xr(e,"bpmn:SubProcess")&&Nr(e)}(e)&&(G(a,{width:i.width,x:i.x}),G(m,{fontSize:h+"px",lineHeight:d,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"}));var f=90*s,v=7*s,g=4*s;if(n.labelTarget&&(G(a,{width:f,height:i.height+v+g,x:r-f/2,y:i.y-v}),G(m,{fontSize:p+"px",lineHeight:u,paddingTop:v+"px",paddingBottom:g+"px"})),lo(n)&&!po(n)&&!mo(n)){var y=ho(e),b=t.getAbsoluteBBox({x:y.x,y:y.y,width:0,height:0}),_=p+v+g;G(a,{width:f,height:_,x:b.x-f/2,y:b.y-_/2}),G(m,{fontSize:p+"px",lineHeight:u,paddingTop:v+"px",paddingBottom:g+"px"})}return xr(e,"bpmn:TextAnnotation")&&(G(a,{width:i.width,height:i.height,minWidth:30*s,minHeight:10*s}),G(m,{textAlign:"left",paddingTop:5*s+"px",paddingBottom:7*s+"px",paddingLeft:7*s+"px",paddingRight:5*s+"px",fontSize:h+"px",lineHeight:d})),{bounds:a,style:m}},_u.prototype.update=function(e,t,n,i){var r,o,a;if((xr(e,"bpmn:TextAnnotation")&&(o=this._canvas.getAbsoluteBBox(e),r={x:e.x,y:e.y,width:e.width/o.width*i.width,height:e.height/o.height*i.height}),xr(e,"bpmn:Group"))&&!Er(e).categoryValueRef){var s=bu(Er(this._canvas.getRootElement()).$parent,this._bpmnFactory);Er(e).categoryValueRef=s}(a=t)&&a.trim()||(t=null),this._modeling.updateLabel(e,t,r)};var wu="djs-element-hidden",Eu="djs-label-hidden";function Su(e,t,n,i){var r,o,a,s=this,c=t.getDefaultLayer();e.on("directEditing.activate",(function(e){var n=e.active;if(xr(r=n.element.label||n.element,"bpmn:TextAnnotation")){o=t.getAbsoluteBBox(r),a=Le("g");var l=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:r.height,position:{mx:0,my:0}}),p=s.path=Le("path");Ce(p,{d:l,strokeWidth:2,stroke:Cu(r)}),we(a,p),we(c,a),Kn(a,r.x,r.y)}xr(r,"bpmn:TextAnnotation")||r.labelTarget?t.addMarker(r,wu):(xr(r,"bpmn:Task")||xr(r,"bpmn:CallActivity")||xr(r,"bpmn:SubProcess")||xr(r,"bpmn:Participant"))&&t.addMarker(r,Eu)})),e.on("directEditing.resize",(function(e){if(xr(r,"bpmn:TextAnnotation")){var t=e.height,n=e.dy,a=Math.max(r.height/o.height*(t+n),0),c=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:a,position:{mx:0,my:0}});Ce(s.path,{d:c})}})),e.on(["directEditing.complete","directEditing.cancel"],(function(e){var n=e.active;n&&(t.removeMarker(n.element.label||n.element,wu),t.removeMarker(r,Eu)),r=void 0,o=void 0,a&&(ze(a),a=void 0)}))}function Cu(e,t){return Sr(e).get("stroke")||t||"black"}Su.$inject=["eventBus","canvas","elementRegistry","pathMap"];var Pu={__depends__:[Yo,yu,Xc],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",_u],labelEditingPreview:["type",Su]},Mu=["top","bottom","left","right"],Ru=10;function Tu(e,t){function n(e){if(po(e)){var n=function(e){var t=fn(e.label),n=ku(fn(e),t);if(i=n,-1===Mu.indexOf(i))return;var i;var r=function(e){var t=fn(e);return[].concat(e.incoming.map((function(e){return e.waypoints[e.waypoints.length-2]})),e.outgoing.map((function(e){return e.waypoints[1]}))).map((function(e){return ku(t,e)}))}(e);if(e.host){var o=function(e){var t,n=e.host,i=vn(fn(e),n);t=i.indexOf("-")>=0?i.split("-"):[i];return Mu.filter((function(e){return-1===t.indexOf(e)}))}(e);r=r.concat(o)}var a=Mu.filter((function(e){return-1===r.indexOf(e)}));if(-1!==a.indexOf(n))return;return a[0]}(e);n&&function(e,n){var i=fn(e),r=e.label,o=fn(r);if(!r.parent)return;var a,s=dn(e);switch(n){case"top":a={x:i.x,y:s.top-Ru-r.height/2};break;case"left":a={x:s.left-Ru-r.width/2,y:i.y};break;case"bottom":a={x:i.x,y:s.bottom+Ru+r.height/2};break;case"right":a={x:s.right+Ru+r.width/2,y:i.y}}var c=Ia(a,o);t.moveShape(r,c)}(e,n)}}Xo.call(this,e),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],(function(e){var t=e.context,i=t.connection,r=i.source,o=i.target;!1!==(t.hints||{}).createElementsBehavior&&(n(r),n(o))})),this.postExecuted(["label.create"],(function(e){var t=e.context,i=t.shape;!1!==(t.hints||{}).createElementsBehavior&&n(i.labelTarget)})),this.postExecuted(["elements.create"],(function(e){var t=e.context,i=t.elements;!1!==(t.hints||{}).createElementsBehavior&&i.forEach((function(e){n(e)}))}))}function ku(e,t){return vn(t,e,5)}function Au(e,t,n){Xo.call(this,e),this.preExecute("shape.append",(function(e){var t=e.source,n=e.shape;e.position||(xr(n,"bpmn:TextAnnotation")?e.position={x:t.x+t.width/2+75,y:t.y-50-n.height/2}:e.position={x:t.x+t.width+80+n.width/2,y:t.y+t.height/2})}),!0)}function zu(e,t){e.invoke(Xo,this),this.postExecute("shape.move",(function(e){var n=e.newParent,i=e.shape;w(x(i.incoming.concat(i.outgoing),(function(e){return xr(e,"bpmn:Association")})),(function(e){t.moveConnection(e,{x:0,y:0},n)}))}),!0)}i(Tu,Xo),Tu.$inject=["eventBus","modeling"],i(Au,Xo),Au.$inject=["eventBus","elementFactory","bpmnRules"],i(zu,Xo),zu.$inject=["injector","modeling"];function Ou(e,t){t.invoke(Xo,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",500,(function(e){var t=e.elements;1===(t=t.filter((function(e){return Du(e,e.host)}))).length&&t.map((function(e){return t.indexOf(e)})).forEach((function(i){var r=t[i];e.elements[i]=n.replaceShape(t[i],r)}))}),!0),this.preExecute("elements.move",500,(function(e){var t=e.shapes,i=e.newHost;if(1===t.length){var r=t[0];Du(r,i)&&(e.shapes=[n.replaceShape(r,i)])}}),!0)}function Du(e,t){return!mo(e)&&wr(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!t}Ou.$inject=["bpmnReplace","injector"],i(Ou,Xo),Ou.prototype.replaceShape=function(e,t){var n,i=(n=Er(e).eventDefinitions)&&n[0],r={type:"bpmn:BoundaryEvent",host:t};return i&&(r.eventDefinitionType=i.$type),this._bpmnReplace.replaceElement(e,r,{layoutConnection:!1})};function Bu(e,t,n){function i(e){return x(e.attachers,(function(e){return xr(e,"bpmn:BoundaryEvent")}))}Xo.call(this,e),this.postExecute("connection.create",(function(e){var t=e.context.source,r=e.context.target,o=i(r);xr(t,"bpmn:EventBasedGateway")&&xr(r,"bpmn:ReceiveTask")&&o.length>0&&n.removeElements(o)})),this.postExecute("connection.reconnect",(function(e){var t=e.context.oldSource,r=e.context.newSource;xr(t,"bpmn:Gateway")&&xr(r,"bpmn:EventBasedGateway")&&w(r.outgoing,(function(e){var t=e.target,r=i(t);xr(t,"bpmn:ReceiveTask")&&r.length>0&&n.removeElements(r)}))})),e.on("moddleCopy.canCopyProperty",2e3,(function(e){var n=e.parent,i=e.property,r=e.propertyName,o=t.getPropertyDescriptor(n,r);o&&o.isReference&&xr(i,"bpmn:RootElement")&&n.set(r,i)}))}function ju(e){e.invoke(Xo,this),this.preExecute("shape.create",1500,(function(e){var t=e.context,n=t.parent,i=t.shape;xr(n,"bpmn:Lane")&&!xr(i,"bpmn:Lane")&&(t.parent=gs(n,"bpmn:Participant"))}))}function Nu(e,t,n){Xo.call(this,e),this.preExecute("shape.create",(function(e){var n=e.context.shape;if(xr(n,"bpmn:DataObjectReference")&&"label"!==n.type){var i=t.create("bpmn:DataObject");n.businessObject.dataObjectRef=i}}))}Bu.$inject=["eventBus","moddle","modeling"],i(Bu,Xo),ju.$inject=["injector"],i(ju,Xo),Nu.$inject=["eventBus","bpmnFactory","moddle"],i(Nu,Xo);var Lu=20,Iu=20,Fu=2e3;function Hu(e,t,n){function i(){var t=e.getRootElement();return xr(t,"bpmn:Collaboration")?t:n.makeCollaboration()}Xo.call(this,t),t.on(["create.start","shape.move.start"],Fu,(function(t){var n=t.context,i=n.shape,r=e.getRootElement();if(xr(i,"bpmn:Participant")&&xr(r,"bpmn:Process")&&r.children.length){var o=r.children.filter((function(e){return!xr(e,"bpmn:Group")&&!mo(e)&&!function(e){return!!e.waypoints}(e)}));if(o.length){var a=vt(o);G(i,function(e,t){t={width:t.width+40+30,height:t.height+40};var n=Math.max(e.width,t.width),i=Math.max(e.height,t.height);return{x:-n/2,y:-i/2,width:n,height:i}}(i,a)),n.createConstraints=function(e,t){return{bottom:(t=dn(t)).top+e.height/2-Iu,left:t.right-e.width/2+Lu,top:t.bottom-e.height/2+Iu,right:t.left+e.width/2-Lu-30}}(i,a)}}})),t.on("create.start",Fu,(function(n){var i=n.context.shape,r=e.getRootElement(),o=e.getGraphics(r);function a(e){e.element=r,e.gfx=o}xr(i,"bpmn:Participant")&&xr(r,"bpmn:Process")&&(t.on("element.hover",Fu,a),t.once("create.cleanup",(function(){t.off("element.hover",a)})))})),this.preExecute("elements.create",Fu,(function(e){var t,n=e.elements,r=e.parent,o=function(e){return b(e,(function(e){return xr(e,"bpmn:Participant")}))}(n);o&&xr(r,"bpmn:Process")&&(e.parent=i(),(t=e.hints=e.hints||{}).participant=o,t.process=r,t.processRef=Er(o).get("processRef"))}),!0),this.preExecute("shape.create",(function(e){var t=e.parent,n=e.shape;xr(n,"bpmn:Participant")&&xr(t,"bpmn:Process")&&(e.parent=i(),e.process=t,e.processRef=Er(n).get("processRef"))}),!0),this.execute("shape.create",(function(e){var t=e.hints||{},n=e.process||t.process,i=e.shape,r=t.participant;!n||r&&i!==r||Er(i).set("processRef",Er(n))}),!0),this.revert("shape.create",(function(e){var t=e.hints||{},n=e.process||t.process,i=e.processRef||t.processRef,r=e.shape,o=t.participant;!n||o&&r!==o||Er(r).set("processRef",i)}),!0),this.postExecute("shape.create",(function(e){var t=e.hints||{},i=e.process||e.hints.process,r=e.shape,o=t.participant;if(i){var a=i.children.slice();o?r===o&&n.moveElements(a,{x:0,y:0},o):n.moveElements(a,{x:0,y:0},r)}}),!0)}Hu.$inject=["canvas","eventBus","modeling"],i(Hu,Xo);var Vu="__targetRef_placeholder";function $u(e,t){function n(e,n){var i=e.get("properties"),r=b(i,(function(e){return e.name===Vu}));return!r&&n&&Et(i,r=t.create("bpmn:Property",{name:Vu})),r}function i(e,t){var i=n(e);i&&(function(e,t,n){return b(e.get("dataInputAssociations"),(function(e){return e!==n&&e.targetRef===t}))}(e,i,t)||wt(e.get("properties"),i))}function r(e){var t,r=e.context,o=r.connection,a=o.businessObject,s=o.target,c=s&&s.businessObject,l=r.newTarget,p=l&&l.businessObject,u=r.oldTarget||r.target,h=u&&u.businessObject,d=o.businessObject;h&&h!==c&&i(h,a),p&&p!==c&&i(p,a),c?(t=n(c,!0),d.targetRef=t):d.targetRef=null}Xo.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],Gu(r)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],Gu(r))}function Gu(e){return function(t){if(xr(t.context.connection,"bpmn:DataInputAssociation"))return e(t)}}function Wu(e){this._bpmnUpdater=e}function Uu(e,t,n,i){function r(e){return e.children.filter((function(e){return xr(e,"bpmn:DataStoreReference")&&!e.labelTarget}))}function o(e,i){var r=e.businessObject||e;if(i=i||n.filter((function(e){return xr(e,"bpmn:Participant")&&Er(e).processRef}))[0]){var o=i.businessObject||i;t.execute("dataStore.updateContainment",{dataStoreBo:r,dataStoreDi:Sr(e),newSemanticParent:o.processRef||o,newDiParent:Sr(i)})}}Xo.call(this,i),t.registerHandler("dataStore.updateContainment",Wu),this.preExecute("shape.create",(function(e){var t=e.context,n=t.shape;xr(n,"bpmn:DataStoreReference")&&"label"!==n.type&&(t.hints||(t.hints={}),t.hints.autoResize=!1)})),this.preExecute("elements.move",(function(e){var t=e.context,n=t.shapes;n.filter((function(e){return xr(e,"bpmn:DataStoreReference")})).length&&(t.hints||(t.hints={}),t.hints.autoResize=n.filter((function(e){return!xr(e,"bpmn:DataStoreReference")})))})),this.postExecute("shape.create",(function(e){var t=e.context.shape,n=t.parent;xr(t,"bpmn:DataStoreReference")&&"label"!==t.type&&xr(n,"bpmn:Collaboration")&&o(t)})),this.postExecute("shape.move",(function(e){var t=e.context,n=t.shape,i=t.oldParent,r=n.parent;xr(i,"bpmn:Collaboration")||xr(n,"bpmn:DataStoreReference")&&"label"!==n.type&&xr(r,"bpmn:Collaboration")&&o(n,xr(i,"bpmn:Participant")?i:function(e,t){for(;e.parent;){if(xr(e.parent,t))return e.parent;e=e.parent}}(i,"bpmn:Participant"))})),this.postExecute("shape.delete",(function(t){var n=t.context.shape,i=e.getRootElement();wr(n,["bpmn:Participant","bpmn:SubProcess"])&&xr(i,"bpmn:Collaboration")&&r(i).filter((function(e){return function(e,t){var n=e.businessObject||e,i=t.businessObject||t;for(;n.$parent;){if(n.$parent===i.processRef||i)return!0;n=n.$parent}return!1}(e,n)})).forEach((function(e){o(e)}))})),this.postExecute("canvas.updateRoot",(function(e){var t=e.context,n=t.oldRoot,i=t.newRoot;r(n).forEach((function(e){xr(i,"bpmn:Process")&&o(e,i)}))}))}$u.$inject=["eventBus","bpmnFactory"],i($u,Xo),Wu.$inject=["bpmnUpdater"],Wu.prototype.execute=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.newSemanticParent,r=e.newDiParent;e.oldSemanticParent=t.$parent,e.oldDiParent=n.$parent,this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r)},Wu.prototype.revert=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.oldSemanticParent,r=e.oldDiParent;this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r)},Uu.$inject=["canvas","commandStack","elementRegistry","eventBus"],i(Uu,Xo);function qu(e,t,n){Xo.call(this,e),this.postExecuted("shape.delete",500,(function(e){var t=e.context,i=t.hints,r=t.shape,o=t.oldParent;xr(r,"bpmn:Lane")&&(i&&i.nested||function(e,t){var i,r,o,a=bp(t),s=[],c=[];mt(a,(function(t){return t.y>e.y?c.push(t):s.push(t),t.children})),a.length&&(i=c.length&&s.length?e.height/2:e.height,s.length&&(r=n.calculateAdjustments(s,"y",i,e.y-10),n.makeSpace(r.movingShapes,r.resizingShapes,{x:0,y:i},"s")),c.length&&(o=n.calculateAdjustments(c,"y",-i,e.y+e.height+10),n.makeSpace(o.movingShapes,o.resizingShapes,{x:0,y:-i},"n")))}(r,o))}))}qu.$inject=["eventBus","modeling","spaceTool"],i(qu,Xo);function Ku(e,t){t.invoke(Xo,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",500,(function(e){var t=e.elements;t.filter((function(e){return Yu(e,e.host)})).map((function(e){return t.indexOf(e)})).forEach((function(i){e.elements[i]=n.replaceShape(t[i])}))}),!0),this.preExecute("elements.move",500,(function(e){var t=e.shapes,i=e.newHost;t.forEach((function(e,r){var o,a=e.host;Yu(e,(o=a,-1!==t.indexOf(o)?a:i))&&(t[r]=n.replaceShape(e))}))}),!0)}function Yu(e,t){return!mo(e)&&xr(e,"bpmn:BoundaryEvent")&&!t}function Xu(e,t,n){function i(e,i,r){var o,a,s,c,l,p,u,h,d=i.waypoints,f=e.outgoing.slice(),v=e.incoming.slice(),g=Vs(d,h=m(r.width)?fn(r):r);if(g){if(o=d.slice(0,g.index),a=d.slice(g.index+(g.bendpoint?1:0)),!o.length||!a.length)return;s=g.bendpoint?d[g.index]:h,1!==o.length&&Zu(e,o[o.length-1])||o.push(Qu(s)),1!==a.length&&Zu(e,a[0])||a.unshift(Qu(s))}c=i.source,l=i.target,t.canConnect(c,e,i)&&(n.reconnectEnd(i,e,o||h),p=i),t.canConnect(e,l,i)&&(p?u=n.connect(e,l,{type:i.type,waypoints:a}):(n.reconnectStart(i,e,a||h),u=i));var y=[].concat(p&&x(v,(function(e){return e.source===p.source}))||[],u&&x(f,(function(e){return e.target===u.target}))||[]);y.length&&n.removeElements(y)}Xo.call(this,e),this.preExecute("elements.move",(function(e){var n=e.newParent,i=e.shapes,r=e.delta,o=i[0];if(o&&n){n&&n.waypoints&&(e.newParent=n=n.parent);var a=fn(o),s={x:a.x+r.x,y:a.y+r.y},c=b(n.children,(function(e){return t.canInsert(i,e)&&Vs(e.waypoints,s)}));c&&(e.targetFlow=c,e.position=s)}}),!0),this.postExecuted("elements.move",(function(e){var t=e.shapes,n=e.targetFlow,r=e.position;n&&i(t[0],n,r)}),!0),this.preExecute("shape.create",(function(e){var n=e.parent,i=e.shape;t.canInsert(i,n)&&(e.targetFlow=n,e.parent=n.parent)}),!0),this.postExecuted("shape.create",(function(e){var t=e.shape,n=e.targetFlow,r=e.position;n&&i(t,n,r)}),!0)}function Zu(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function Qu(e){return G({},e)}function Ju(e,t){Xo.call(this,e),this.preExecuted("connection.create",(function(e){var n=e.context,i=n.source,r=n.target,o=r.incoming.slice();n.hints&&!1===n.hints.createElementsBehavior||xr(i,"bpmn:EventBasedGateway")&&r.incoming.length&&o.filter(eh).forEach((function(e){t.removeConnection(e)}))})),this.preExecuted("shape.replace",(function(e){var n=e.context.newShape;xr(n,"bpmn:EventBasedGateway")&&n.outgoing.filter(eh).map((function(e){return e.target})).reduce((function(e,t){var n=t.incoming.filter(eh);return e.concat(n)}),[]).forEach((function(e){e.source!==n&&t.removeConnection(e)}))}))}function eh(e){return xr(e,"bpmn:SequenceFlow")}Ku.$inject=["bpmnReplace","injector"],i(Ku,Xo),Ku.prototype.replaceShape=function(e){var t,n,i=(n=Er(e).eventDefinitions)&&n[0];return t=i?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:i.$type}:{type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(e,t,{layoutConnection:!1})},i(Xu,Xo),Xu.$inject=["eventBus","bpmnRules","modeling"],Ju.$inject=["eventBus","modeling"],i(Ju,Xo);var th=1500;function nh(e,t,n){t.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],th,(function(t){var i=t.context.shape||t.shape,r=t.hover;xr(r,"bpmn:Lane")&&!wr(i,["bpmn:Lane","bpmn:Participant"])&&(t.hover=_p(r),t.hoverGfx=e.getGraphics(t.hover));var o=n.getRootElement();r!==o&&(i.labelTarget||xr(i,"bpmn:Group"))&&(t.hover=o,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],th,(function(t){var n=t.hover;xr(n,"bpmn:Lane")&&(t.hover=_p(n)||n,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["bendpoint.move.hover"],th,(function(t){var n=t.context,i=t.hover,r=n.type;xr(i,"bpmn:Lane")&&/reconnect/.test(r)&&(t.hover=_p(i)||i,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["connect.start"],th,(function(e){var t=e.context,n=t.start;xr(n,"bpmn:Lane")&&(t.start=_p(n)||n)})),t.on("shape.move.start",2e3,(function(e){var t=e.shape;xr(t,"bpmn:Lane")&&(e.shape=_p(t)||t)}))}nh.$inject=["elementRegistry","eventBus","canvas"];function ih(e,t,n,i,r,o){function a(e){var n=Er(e).categoryValueRef;if(n){var i=n.$parent;n&&(wt(i.categoryValue,n),i&&!i.categoryValue.length&&function(e){wt(t.getDefinitions().get("rootElements"),e)}(i))}}r.invoke(Xo,this),this.executed("shape.delete",(function(e){var t,i=e.context.shape;if(xr(i,"bpmn:Group")){var r=Er(i).categoryValueRef,o=n.filter((function(e){return xr(e,"bpmn:Group")}));t=r,o.some((function(e){var n=Er(e);return n.categoryValueRef&&n.categoryValueRef===t}))||a(i)}})),this.reverted("shape.delete",(function(e){var n=e.context.shape;if(xr(n,"bpmn:Group")){var i=Er(n).categoryValueRef,r=t.getDefinitions(),o=i?i.$parent:null;Et(o.get("categoryValue"),i),Et(r.get("rootElements"),o)}})),this.execute("shape.create",(function(n){var i=Er(n.context.shape);if(xr(i,"bpmn:Group")&&!i.categoryValueRef){var r=bu(t.getDefinitions(),e);i.categoryValueRef=r}})),this.revert("shape.create",(function(e){var t=e.context.shape;xr(t,"bpmn:Group")&&(a(t),delete Er(t).categoryValueRef)})),i.on("moddleCopy.canCopyProperty",2e3,(function(n){var i,r=n.property;if(xr(r,"bpmn:CategoryValue"))return i=bu(t.getDefinitions(),e),o.copyElement(r,i)}))}function rh(e,t,n,i){var r,o,a,s;return 0==(r=(i.y-n.y)*(t.x-e.x)-(i.x-n.x)*(t.y-e.y))?null:(o=e.y-n.y,a=e.x-n.x,s=((i.x-n.x)*o-(i.y-n.y)*a)/r,{x:Math.round(e.x+s*(t.x-e.x)),y:Math.round(e.y+s*(t.y-e.y))})}function oh(e){function t(e,t,n){var i,r={x:n.x,y:n.y-50},o={x:n.x-50,y:n.y},a=rh(e,t,n,r),s=rh(e,t,n,o);i=a&&s?ah(a,n)>ah(s,n)?s:a:a||s,e.original=i}e.on("bpmnElement.added",(function(e){var n,i,r=e.element;r.waypoints&&(t((i=(n=r).waypoints)[0],i[1],fn(n.source)),t(i[i.length-1],i[i.length-2],fn(n.target)))}))}function ah(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function sh(e){Xo.call(this,e);var t=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],(function(e){var n=e.context.shape,i=Er(n),r=Sr(n);wr(i,t)&&!r.get("isHorizontal")&&r.set("isHorizontal",!0)}))}function ch(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function lh(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function ph(e,t){var n=t[0],i=t[1],r={x:i.x-n.x,y:i.y-n.y},o=function(e,t,n){var i=[{n:e[0]-n[0],lambda:t[0]},{n:e[1]-n[1],lambda:t[1]}];return-(i[0].n*t[0]+i[1].n*t[1])/(i[0].lambda*t[0]+i[1].lambda*t[1])}([n.x,n.y],[r.x,r.y],[e.x,e.y]);return{x:n.x+o*r.x,y:n.y+o*r.y}}function uh(e,t){var n=ph(e,t);return ch({x:n.x-e.x,y:n.y-e.y})}function hh(e,t){return ch({x:e.x-t.x,y:e.y-t.y})}ih.$inject=["bpmnFactory","bpmnjs","elementRegistry","eventBus","injector","moddleCopy"],i(ih,Xo),oh.$inject=["eventBus"],sh.$inject=["eventBus"],i(sh,Xo);var dh=Math.sqrt,mh=Math.min,fh=Math.max,vh=Math.abs;function gh(e){return Math.pow(e,2)}function yh(e,t){return dh(gh(e.x-t.x)+gh(e.y-t.y))}function bh(e,t,n,i){var r=t.x-e.x,o=t.y-e.y,a=n.x-e.x,s=n.y-e.y,c=r*r+o*o,l=(r*a+o*s)/c,p=l*l-(a*a+s*s-i*i)/c;if(p<0&&p>-1e-6&&(p=0),p<0)return[];var u=dh(p),h=-l+u,d=-l-u,m={x:e.x-r*h,y:e.y-o*h};return 0===p?[m]:[m,{x:e.x-r*d,y:e.y-o*d}].filter((function(n){return function(e,t,n){return _h(e.x,t.x,n.x)&&_h(e.y,t.y,n.y)}(n,e,t)}))}function _h(e,t,n){return e>=mh(t,n)-xh&&e<=fh(t,n)+xh}var xh=.1;function wh(e,t){return vh(e.x-t.x)<=xh&&vh(e.y-t.y)<=xh}function Eh(e,t,n,i){var r=0,o=0,a=function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}(e),s=function(e,t){var n,i,r,o,a,s,c,l,p,u,h,d,m=0;for(m=0;m<t.length-1;m++){if(wh(n=t[m],i=t[m+1])?s=[n]:(r=yh(e,n),o=yh(e,i),s=bh(n,i,e,mh(r,o))),s.length<1)throw new Error("expected between [1, 2] circle -> line intersections");1===s.length&&(c={type:"bendpoint",position:s[0],segmentIndex:m,bendpointIndex:wh(n,s[0])?m:m+1}),2===s.length&&(h=s[0],d=s[1],c={type:"segment",position:a={x:(h.x+d.x)/2,y:(h.y+d.y)/2},segmentIndex:m,relativeLocation:yh(n,a)/yh(n,i)}),l=yh(c.position,e),(!u||p>l)&&(u=c,p=l)}return u}(a,n),c=s.segmentIndex,l=function(e,t,n,i){var r=n.segmentIndex,o=t.length-e.length;if(i.segmentMove){var a=i.segmentMove.segmentStartIndex,s=i.segmentMove.newSegmentStartIndex;return r===a?s:r>=s?r+o<s?s:r+o:r}if(i.bendpointMove){var c,l=i.bendpointMove.insert,p=i.bendpointMove.bendpointIndex;return 0===o?r:(r>=p&&(c=l?r+1:r-1),r<p&&(c=r,l&&"bendpoint"!==n.type&&p-1===r&&Sh(t,p)<n.relativeLocation&&c++),c)}return 0===o?r:i.connectionStart?0===r?0:null:i.connectionEnd&&r===e.length-2?t.length-2:null}(n,t,s,i);if(null===l)return{x:r,y:o};if(l<0||l>t.length-2)return{x:r,y:o};var p,u,h=Ch(n,c),d=Ch(t,l),m=s.position,f=function(e,t){var n=hh(e[0],e[1]),i=hh(e[0],t);return 0===n?0:i/n}(h,m),v=(p=d,u=lh(h),lh(p)-u);if("bendpoint"===s.type){var g=t.length-n.length,y=s.bendpointIndex,b=n[y];if(-1!==t.indexOf(b))return{x:r,y:o};if(0===g){var _=t[y];return{x:_.x-s.position.x,y:_.y-s.position.y}}g<0&&0!==y&&y<n.length-1&&(f=Sh(n,y))}var x,w,E=(d[1].x-d[0].x)*f+d[0].x,S=(d[1].y-d[0].y)*f+d[0].y,C=(x={x:a.x-m.x,y:a.y-m.y},(w=v)?{x:Math.cos(w)*x.x-Math.sin(w)*x.y,y:Math.sin(w)*x.x+Math.cos(w)*x.y}:x);return hn({x:r=E+C.x-a.x,y:o=S+C.y-a.y})}function Sh(e,t){var n=hh(e[t-1],e[t]);return n/(n+hh(e[t],e[t+1]))}function Ch(e,t){return[e[t],e[t+1]]}function Ph(e,t,n){var i=La(t),r=La(n),o=Ia(e,i),a=o.x*(n.width/t.width),s=o.y*(n.height/t.height);return hn({x:r.x+a,y:r.y+s})}function Mh(e,t,n){var i=La(e),r=La(t),o=La(n),a=Ia(e,i),s=Ia(i,r),c=function(e,t,n){var i=dn(t),r=dn(n);if(function(e,t){return function(e,t){return e.right!==t.right&&e.left!==t.left}(e,t)||function(e,t){return e.top!==t.top&&e.bottom!==t.bottom}(e,t)}(i,r))return null;var o,a,s=vn(t,e);if("top"===s)o={x:0,y:r.bottom-i.bottom};else if("bottom"===s)o={x:0,y:r.top-i.top};else if("right"===s)o={x:r.left-i.left,y:0};else{if("left"!==s)return null;o={x:r.right-i.right,y:0}}if(a={x:e.x+o.x,y:e.y+o.y},vn(n,a)!==s)return null;return o}(i,t,n);if(c)return c;var l=s.x*(n.width/t.width),p=s.y*(n.height/t.height),u=o.x+l,h=o.y+p;return hn({x:u+a.x-e.x,y:h+a.y-e.y})}var Rh={width:90,height:20},Th="name",kh="text";function Ah(e,t,n,i){Xo.call(this,e),this.postExecute("element.updateProperties",(function(e){var n=e.context,r=n.element,o=n.properties;if(Th in o&&t.updateLabel(r,o.name),kh in o&&xr(r,"bpmn:TextAnnotation")){var a=i.getTextAnnotationBounds({x:r.x,y:r.y,width:r.width,height:r.height},o.text||"");t.updateLabel(r,o.text,a)}})),this.postExecute(["shape.create","connection.create"],(function(e){var n=e.context;if(!1!==(n.hints||{}).createElementsBehavior){var r=n.shape||n.connection,o=r.businessObject;if(!mo(r)&&lo(r)&&Vr(r)){var a=ho(r),s=i.getExternalLabelBounds(Rh,Vr(r));t.createLabel(r,a,{id:o.id+"_label",businessObject:o,width:s.width,height:s.height})}}})),this.postExecute("shape.delete",(function(e){var n=e.context,i=n.labelTarget,r=n.hints||{};i&&!1!==r.unsetLabel&&t.updateLabel(i,null,null,{removeShape:!1})})),this.postExecute(["label.create"],(function(e){var t,i=e.context,r=i.shape,o=i.labelTarget;o&&xr(o,"bpmn:BaseElement")&&((t=Sr(o)).label||(t.label=n.create("bpmndi:BPMNLabel",{bounds:n.create("dc:Bounds")}),r.di=t),G(t.label.bounds,{x:r.x,y:r.y,width:r.width,height:r.height}))})),this.postExecute(["connection.layout","connection.updateWaypoints"],(function(e){var n=e.context;if(!1!==(n.hints||{}).labelBehavior){var i,r=n.connection.label;r&&r.parent&&(i=function(e){var t=e.context,n=t.connection,i=n.label,r=G({},t.hints),o=t.newWaypoints||n.waypoints,a=t.oldWaypoints;return void 0===r.startChanged&&(r.startChanged=!!r.connectionStart),void 0===r.endChanged&&(r.endChanged=!!r.connectionEnd),Eh(i,o,a,r)}(e),t.moveShape(r,i))}})),this.postExecute(["shape.replace"],(function(e){var t=e.context,n=t.newShape,i=t.oldShape,r=Er(n);r&&lo(r)&&i.label&&n.label&&(n.label.x=i.label.x,n.label.y=i.label.y)})),this.postExecute("shape.resize",(function(e){var n,i=e.context,r=i.shape,o=i.newBounds,a=i.oldBounds;if(po(r)){var s=r.label,c=zh(function(e,t){if(!t.length)return;var n=function(e,t){return D(t.map((function(t){return{line:t,distance:uh(e,t)}})),"distance")[0].line}(e,t);return ph(e,n)}(fn(s),[[{x:(n=a).x,y:n.y},{x:n.x+(n.width||0),y:n.y}],[{x:n.x+(n.width||0),y:n.y},{x:n.x+(n.width||0),y:n.y+(n.height||0)}],[{x:n.x,y:n.y+(n.height||0)},{x:n.x+(n.width||0),y:n.y+(n.height||0)}],[{x:n.x,y:n.y},{x:n.x,y:n.y+(n.height||0)}]]),a,o);t.moveShape(s,c)}}))}function zh(e,t,n){return hn(Ia(Ph(e,t,n),e))}function Oh(e,t,n){var i=Lh(e),r=Ih(i,t),o=i[0];return r.length?r[r.length-1]:Ph(o.original||o,n,t)}function Dh(e,t,n){var i=Lh(e),r=Ih(i,t),o=i[i.length-1];return r.length?r[0]:Ph(o.original||o,n,t)}function Bh(e,t,n){var i=Lh(e),r=Nh(t,n),o=i[0];return Ph(o.original||o,r,t)}function jh(e,t,n){var i=Lh(e),r=Nh(t,n),o=i[i.length-1];return Ph(o.original||o,r,t)}function Nh(e,t){return{x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}function Lh(e){var t=e.waypoints;if(!t.length)throw new Error("connection#"+e.id+": no waypoints");return t}function Ih(e,t){return x(M(e,Fh),(function(e){return function(e,t){return"intersect"===vn(t,e,1)}(e,t)}))}function Fh(e){return e.original||e}function Hh(e,t){Xo.call(this,e),this.postExecute("shape.replace",(function(e){var n=e.oldShape,i=e.newShape;if(function(e,t){return xr(e,"bpmn:Participant")&&Nr(e)&&xr(t,"bpmn:Participant")&&!Nr(t)}(n,i)){var r,o,a,s,c=(o=ft([r=n],!1),a=[],s=[],o.forEach((function(e){e!==r&&(e.incoming.forEach((function(e){xr(e,"bpmn:MessageFlow")&&a.push(e)})),e.outgoing.forEach((function(e){xr(e,"bpmn:MessageFlow")&&s.push(e)})))}),[]),{incoming:a,outgoing:s});c.incoming.forEach((function(e){var r=Dh(e,i,n);t.reconnectEnd(e,i,r)})),c.outgoing.forEach((function(e){var r=Oh(e,i,n);t.reconnectStart(e,i,r)}))}}),!0)}i(Ah,Xo),Ah.$inject=["eventBus","modeling","bpmnFactory","textRenderer"],Hh.$inject=["eventBus","modeling"],i(Hh,Xo);function Vh(e,t,n){e.on(["shape.move.rejected","create.rejected"],(function(e){var i,r,o,a=e.context,s=a.shape;xr(a.target,"bpmn:Collaboration")&&xr(s,"bpmn:FlowNode")&&(i=e,r=n("flow elements must be children of pools/participants"),t.add({position:{x:i.x+5,y:i.y+5},type:"error",timeout:o||2e3,html:"<div>"+r+"</div>"}))}))}function $h(e,t){Xo.call(this,e),this.preExecute("shape.resize",(function(e){var n=e.shape,i=Sr(n),r=i&&i.get("label");r&&r.get("bounds")&&t.updateModdleProperties(n,r,{bounds:void 0})}),!0)}function Gh(e,t,n){Xo.call(this,e),this.preExecute("shape.delete",(function(e){var i=e.context.shape;if(1===i.incoming.length&&1===i.outgoing.length){var r=i.incoming[0],o=i.outgoing[0];if(xr(r,"bpmn:SequenceFlow")&&xr(o,"bpmn:SequenceFlow")&&t.canConnect(r.source,o.target,r)){var a=function(e,t){var n=rh(Wh(e[e.length-2]),Wh(e[e.length-1]),Wh(t[1]),Wh(t[0]));return n?[].concat(e.slice(0,e.length-1),[n],t.slice(1)):[Wh(e[0]),Wh(t[t.length-1])]}(r.waypoints,o.waypoints);n.reconnectEnd(r,o.target,a)}}}))}function Wh(e){return e.original||e}function Uh(e,t){Xo.call(this,e),this.preExecute("shape.delete",(function(e){var t=e.shape,n=t.parent;xr(t,"bpmn:Participant")&&(e.collaborationRoot=n)}),!0),this.postExecute("shape.delete",(function(e){var n=e.collaborationRoot;n&&!n.businessObject.participants.length&&t.makeProcess()}),!0)}function qh(e,t,n,i){Xo.call(this,e);var r=i.get("dragging",!1);function o(e){var i,r,o=e.source,a=e.target;e.parent&&(xr(e,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(o,a)||(r=!0),n.canConnectMessageFlow(o,a)&&(i="bpmn:MessageFlow")),xr(e,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(o,a)||(r=!0),n.canConnectSequenceFlow(o,a)&&(i="bpmn:SequenceFlow")),xr(e,"bpmn:Association")&&!n.canConnectAssociation(o,a)&&(r=!0),r&&t.removeConnection(e),i&&t.connect(o,a,{type:i,waypoints:e.waypoints.slice()}))}this.postExecuted("elements.move",(function(e){w(e.closure.allConnections,o)}),!0),this.preExecute("connection.reconnect",(function(e){var i,o,a=e.context,s=a.connection,c=a.newSource||s.source,l=a.newTarget||s.target;(i=n.canConnect(c,l))&&i.type!==s.type&&(o=t.connect(c,l,{type:i.type,waypoints:s.waypoints.slice()}),t.removeConnection(s),a.connection=o,r&&function(e,t){var n,i=r.context(),o=i&&i.payload.previousSelection;if(!o||!o.length)return;if(-1===(n=o.indexOf(e)))return;o.splice(n,1,t)}(s,o))})),this.postExecuted("element.updateProperties",(function(e){var n,i=e.context,r=i.properties,o=i.element,a=o.businessObject;r.default&&(n=b(o.outgoing,B({id:o.businessObject.default.id})))&&t.updateProperties(n,{conditionExpression:void 0}),r.conditionExpression&&a.sourceRef.default===a&&t.updateProperties(o.source,{default:void 0})}))}function Kh(e,t,n,i,r,o){i.invoke(Xo,this),this._bpmnReplace=e,this._elementRegistry=n,this._selection=o,this.postExecuted(["elements.create"],500,(function(e){var n=e.context,i=n.parent,r=n.elements,o=t.canReplace(r,i);o&&this.replaceElements(r,o.replacements)}),this),this.postExecuted(["elements.move"],500,(function(e){var n=e.context,i=n.newParent,r=n.newHost,o=[];w(n.closure.topLevel,(function(e){o=Ir(e)?o.concat(e.children):o.concat(e)})),1===o.length&&r&&(i=r);var a=t.canReplace(o,i);a&&this.replaceElements(o,a.replacements,r)}),this),this.postExecute(["shape.replace"],1500,(function(e){var n,i=e.context,r=i.oldShape,o=i.newShape,a=r.attachers;a&&a.length&&(n=t.canReplace(a,o),this.replaceElements(a,n.replacements))}),this),this.postExecuted(["shape.replace"],1500,(function(e){var t=e.context,n=t.oldShape,i=t.newShape;r.unclaimId(n.businessObject.id,n.businessObject),r.updateProperties(i,{id:n.id})}))}Vh.$inject=["eventBus","tooltips","translate"],i($h,Xo),$h.$inject=["eventBus","modeling"],i(Gh,Xo),Gh.$inject=["eventBus","bpmnRules","modeling"],Uh.$inject=["eventBus","modeling"],i(Uh,Xo),i(qh,Xo),qh.$inject=["eventBus","modeling","bpmnRules","injector"],i(Kh,Xo),Kh.prototype.replaceElements=function(e,t){var n=this._elementRegistry,i=this._bpmnReplace,r=this._selection;w(t,(function(t){var r={type:t.newElementType},o=n.get(t.oldElementId),a=e.indexOf(o);e[a]=i.replaceElement(o,r,{select:!1})})),t&&r.select(e)},Kh.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var Yh=300,Xh=60,Zh={width:300,height:150},Qh={width:140,height:120},Jh={width:50,height:30};function ed(e){e.on("resize.start",1500,(function(e){var t=e.context,n=t.shape,i=t.direction,r=t.balanced;(xr(n,"bpmn:Lane")||xr(n,"bpmn:Participant"))&&(t.resizeConstraints=function(e,t,n){var i=_p(e),r=!0,o=!0,a=yp(i,[i]),s=dn(e),c={},l={};/e/.test(t)?l.right=s.left+Yh:/w/.test(t)&&(l.left=s.right-Yh);return a.forEach((function(e){var i=dn(e);/n/.test(t)&&(i.top<s.top-10&&(r=!1),n&&td(s.top-i.bottom)<10&&ad(c,"top",i.top+Xh),td(s.top-i.top)<5&&od(l,"top",i.bottom-Xh)),/s/.test(t)&&(i.bottom>s.bottom+10&&(o=!1),n&&td(s.bottom-i.top)<10&&od(c,"bottom",i.bottom-Xh),td(s.bottom-i.bottom)<5&&ad(l,"bottom",i.top+Xh))})),i.children.filter((function(e){return!e.hidden&&!e.waypoints&&(xr(e,"bpmn:FlowElement")||xr(e,"bpmn:Artifact"))})).forEach((function(e){var n=dn(e);r&&/n/.test(t)&&od(l,"top",n.top-20),/e/.test(t)&&ad(l,"right",n.right+20),o&&/s/.test(t)&&ad(l,"bottom",n.bottom+20),/w/.test(t)&&od(l,"left",n.left-50)})),{min:l,max:c}}(n,i,r)),xr(n,"bpmn:Participant")&&(t.minDimensions=Zh),xr(n,"bpmn:SubProcess")&&Nr(n)&&(t.minDimensions=Qh),xr(n,"bpmn:TextAnnotation")&&(t.minDimensions=Jh)}))}ed.$inject=["eventBus"];var td=Math.abs,nd=Math.min,id=Math.max;function rd(e,t,n,i){var r=e[t];e[t]=void 0===r?n:i(n,r)}function od(e,t,n){return rd(e,t,n,nd)}function ad(e,t,n){return rd(e,t,n,id)}function sd(e,t){e.on("resize.start",1501,(function(e){var t=e.context,n=t.shape;(xr(n,"bpmn:Lane")||xr(n,"bpmn:Participant"))&&(t.balanced=!Po(e))})),e.on("resize.end",1001,(function(e){var n=e.context,i=n.shape,r=n.canExecute,o=n.newBounds;if(xr(i,"bpmn:Lane")||xr(i,"bpmn:Participant"))return r&&(o=un(o),t.resizeLane(i,o,n.balanced)),!1}))}sd.$inject=["eventBus","modeling"];function cd(e,t,n,i,r){function o(e){return wr(e,["bpmn:ReceiveTask","bpmn:SendTask"])||function(e,t){h(t)||(t=[t]);return P(t,(function(t){return Fr(e,t)}))}(e,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function a(t){return!!b(e.getDefinitions().get("rootElements"),B({id:t.id}))}function s(e){return xr(e,"bpmn:ErrorEventDefinition")?"errorRef":xr(e,"bpmn:EscalationEventDefinition")?"escalationRef":xr(e,"bpmn:MessageEventDefinition")?"messageRef":xr(e,"bpmn:SignalEventDefinition")?"signalRef":void 0}function c(e){if(wr(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.get("messageRef");var t=e.get("eventDefinitions")[0];return t.get(s(t))}n.invoke(Xo,this),this.executed("shape.create",(function(t){var n=t.shape;if(o(n)){var i=c(Er(n));i&&!a(i)&&(Et(e.getDefinitions().get("rootElements"),i),t.addedRootElement=i)}}),!0),this.reverted("shape.create",(function(t){var n=t.addedRootElement;n&&wt(e.getDefinitions().get("rootElements"),n)}),!0),t.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element;if(o(n)){var i=c(Er(n));i&&(t.referencedRootElement=i)}})),t.on("copyPaste.pasteElement",500,(function(e){var t=e.descriptor,n=t.businessObject;if(o(n)){var c=t.referencedRootElement;c&&(a(c)||(c=i.copyElement(c,r.create(c.$type))),function(e,t){if(wr(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.set("messageRef",t);var n=e.get("eventDefinitions")[0];n.set(s(n),t)}(n,c))}}))}cd.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],i(cd,Xo);var ld=Math.max;function pd(e){e.on("spaceTool.getMinDimensions",(function(e){var t=e.shapes,n=e.axis,i=e.start,r={};return w(t,(function(e){var t=e.id;xr(e,"bpmn:Participant")&&(!function(e){return"x"===e}(n)?r[t]={width:Zh.width,height:ud(e,i)}:r[t]=Zh),xr(e,"bpmn:SubProcess")&&Nr(e)&&(r[t]=Qh),xr(e,"bpmn:TextAnnotation")&&(r[t]=Jh)})),r}))}function ud(e,t){var n;return bp(e).length?(n=function(e,t){var n,i=bp(e);return n=hd(i,t),e.height-n.height+Xh}(e,t),ld(Zh.height,n)):Zh.height}function hd(e,t){var n,i,r;for(n=0;n<e.length;n++)if(t>=(i=e[n]).y&&t<=i.y+i.height)return(r=bp(i)).length?hd(r,t):i}pd.$inject=["eventBus"];var dd=180,md=160;function fd(e,t,n,i,r,o,a){Xo.call(this,t),this._canvas=e,this._eventBus=t,this._modeling=n,this._elementFactory=i,this._bpmnFactory=r,this._bpmnjs=o,this._elementRegistry=a;var s=this;function c(e){return xr(e,"bpmn:SubProcess")&&!Nr(e)}function l(t){var n=t.shape,i=t.newRootElement,r=Er(n);i=s._addDiagram(i||r),t.newRootElement=e.addRootElement(i)}function p(t){var n=Er(t.shape);s._removeDiagram(n);var i=t.newRootElement=a.get(ra(n));e.removeRootElement(i)}this.executed("shape.create",(function(e){c(e.shape)&&l(e)}),!0),this.postExecuted("shape.create",(function(e){var t=e.shape,n=e.newRootElement;n&&t.children&&(s._showRecursively(t.children),s._moveChildrenToShape(t,n))}),!0),this.reverted("shape.create",(function(e){c(e.shape)&&p(e)}),!0),this.preExecuted("shape.delete",(function(e){var t=e.shape;if(c(t)){var i=a.get(ra(t));i&&n.removeElements(i.children.slice())}}),!0),this.executed("shape.delete",(function(e){c(e.shape)&&p(e)}),!0),this.reverted("shape.delete",(function(e){c(e.shape)&&l(e)}),!0),this.preExecuted("shape.replace",(function(t){var n=t.oldShape,i=t.newShape;c(n)&&c(i)&&(t.oldRoot=e.removeRootElement(ra(n)))}),!0),this.postExecuted("shape.replace",(function(t){var i=t.newShape,r=t.oldRoot,o=e.findRoot(ra(i));if(r&&o){var a=r.children;n.moveElements(a,{x:0,y:0},o)}}),!0),this.executed("element.updateProperties",(function(e){var t=e.element;if(xr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(aa(t))return a.updateId(t,oa(r)),void a.updateId(i,r);a.get(oa(i))&&a.updateId(oa(i),oa(r))}}}),!0),this.reverted("element.updateProperties",(function(e){var t=e.element;if(xr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(aa(t))return a.updateId(t,oa(i)),void a.updateId(r,i);var o=a.get(oa(r));o&&a.updateId(o,oa(i))}}}),!0),t.on("element.changed",(function(e){var n=e.element;if(aa(n)){var i=n,r=a.get(ia(i));r&&r!==i&&t.fire("element.changed",{element:r})}})),this.executed("shape.toggleCollapse",400,(function(e){var t=e.shape;xr(t,"bpmn:SubProcess")&&(Nr(t)?p(e):(l(e),s._showRecursively(t.children)))}),!0),this.reverted("shape.toggleCollapse",400,(function(e){var t=e.shape;xr(t,"bpmn:SubProcess")&&(Nr(t)?p(e):(l(e),s._showRecursively(t.children)))}),!0),this.postExecuted("shape.toggleCollapse",600,(function(e){var t=e.shape;if(xr(t,"bpmn:SubProcess")){var n=e.newRootElement;n&&(Nr(t)?s._moveChildrenToShape(n,t):s._moveChildrenToShape(t,n))}}),!0),t.on("copyPaste.createTree",(function(e){var t=e.element,n=e.children;if(c(t)){var i=ra(t),r=a.get(i);r&&n.push.apply(n,r.children)}})),t.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element,i=e.elements,r=n.parent;if(xr(Sr(r),"bpmndi:BPMNPlane")){var o=ia(r),a=b(i,(function(e){return e.id===o}));a&&(t.parent=a.id)}})),t.on("copyPaste.pasteElement",(function(e){var t=e.descriptor;t.parent&&(c(t.parent)||t.parent.hidden)&&(t.hidden=!0)}))}function vd(e,t){e.invoke(Xo,this),this.postExecuted("shape.replace",(function(e){var n=e.context.oldShape,i=e.context.newShape;if(xr(i,"bpmn:SubProcess")&&xr(n,"bpmn:Task")&&Nr(i)){var r,o={x:(r=i).x+r.width/6,y:r.y+r.height/2};t.createShape({type:"bpmn:StartEvent"},o,i)}}))}function gd(e,t){Xo.call(this,e),this.postExecuted("shape.toggleCollapse",1500,(function(e){var n=e.shape;if(!Nr(n)){var i=ft(n);i.forEach((function(e){var t=e.incoming.slice(),n=e.outgoing.slice();w(t,(function(e){r(e,!0)})),w(n,(function(e){r(e,!1)}))}))}function r(e,r){-1!==i.indexOf(e.source)&&-1!==i.indexOf(e.target)||(r?t.reconnectEnd(e,n,fn(n)):t.reconnectStart(e,n,fn(n)))}}),!0)}i(fd,Xo),fd.prototype._moveChildrenToShape=function(e,t){var n,i=this._modeling,r=e.children;if(r){var o=r.filter((function(e){return!e.hidden}));if(o.length){var a=vt(o);if(t.x){var s=fn(t),c=fn(a);n={x:s.x-c.x,y:s.y-c.y}}else n={x:dd-a.x,y:md-a.y};i.moveElements(r,n,t,{autoResize:!1})}else i.moveElements(r,{x:0,y:0},t,{autoResize:!1})}},fd.prototype._showRecursively=function(e,t){var n=this,i=[];return e.forEach((function(e){e.hidden=!!t,i=i.concat(e),e.children&&(i=i.concat(n._showRecursively(e.children,e.collapsed||t)))})),i},fd.prototype._addDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams;return e.businessObject||(e=this._createNewDiagram(e)),t.push(e.di.$parent),e},fd.prototype._createNewDiagram=function(e){var t=this._bpmnFactory,n=this._elementFactory,i=t.create("bpmndi:BPMNPlane",{bpmnElement:e}),r=t.create("bpmndi:BPMNDiagram",{plane:i});return i.$parent=r,n.createRoot({id:ra(e),type:e.$type,di:i,businessObject:e,collapsed:!0})},fd.prototype._removeDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams,n=b(t,(function(t){return t.plane.bpmnElement.id===e.id}));return t.splice(t.indexOf(n),1),n},fd.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"],vd.$inject=["injector","modeling"],i(vd,Xo),i(gd,Xo),gd.$inject=["eventBus","modeling"];function yd(e,t,n,i){Xo.call(this,e),this.executed(["shape.toggleCollapse"],500,(function(e){var t,n=e.context.shape;xr(n,"bpmn:SubProcess")&&(n.collapsed?Sr(n).isExpanded=!1:((t=n.children).length&&t.forEach((function(e){"label"!==e.type||e.businessObject.name||(e.hidden=!0)})),Sr(n).isExpanded=!0))})),this.reverted(["shape.toggleCollapse"],500,(function(e){var t=e.context.shape;t.collapsed?Sr(t).isExpanded=!1:Sr(t).isExpanded=!0})),this.postExecuted(["shape.toggleCollapse"],500,(function(e){var i,r=e.context.shape,o=t.getDefaultSize(r);i=r.collapsed?function(e,t){return{x:e.x+(e.width-t.width)/2,y:e.y+(e.height-t.height)/2,width:t.width,height:t.height}}(r,o):function(e,t){var n,i,r=e.children,o=t;return(n=mp((i=r,i.filter((function(e){return!e.hidden}))).concat([e])))?(o.width=Math.max(n.width,o.width),o.height=Math.max(n.height,o.height),o.x=n.x+(n.width-o.width)/2,o.y=n.y+(n.height-o.height)/2):(o.x=e.x+(e.width-o.width)/2,o.y=e.y+(e.height-o.height)/2),o}(r,o),n.resizeShape(r,i,null,{autoResize:!r.collapsed&&"nwse"})}))}function bd(e,t,n,i){t.invoke(Xo,this),this.preExecute("shape.delete",(function(e){var t=e.context.shape,r=t.businessObject;mo(t)||(xr(t,"bpmn:Participant")&&Nr(t)&&n.ids.unclaim(r.processRef.id),i.unclaimId(r.id,r))})),this.preExecute("connection.delete",(function(e){var t=e.context.connection.businessObject;i.unclaimId(t.id,t)})),this.preExecute("canvas.updateRoot",(function(){var t=e.getRootElement(),i=t.businessObject;xr(t,"bpmn:Collaboration")&&n.ids.unclaim(i.id)}))}function _d(e,t){Xo.call(this,e),this.preExecute("connection.delete",(function(e){var n=e.context.connection,i=n.source;(function(e,t){if(!xr(e,"bpmn:SequenceFlow"))return!1;var n=Er(t),i=Er(e);return n.get("default")===i})(n,i)&&t.updateProperties(i,{default:null})}))}i(yd,Xo),yd.$inject=["eventBus","elementFactory","modeling"],i(bd,Xo),bd.$inject=["canvas","injector","moddle","modeling"],i(_d,Xo),_d.$inject=["eventBus","modeling"];function xd(e,t,n){var i;function r(){if(!i)throw new Error(n("out of bounds release"));return i}Xo.call(this,e);var o=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(o,5e3,(function(e){(i=i||new wd).enter()})),this.postExecuted(o,500,(function(e){!function(){if(!i)throw new Error(n("out of bounds release"));var e=i.leave();e&&(t.updateLaneRefs(i.flowNodes,i.lanes),i=null)}()})),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],(function(e){var t=e.context.shape,n=r();t.labelTarget||(xr(t,"bpmn:Lane")&&n.addLane(t),xr(t,"bpmn:FlowNode")&&n.addFlowNode(t))}))}function wd(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(e){this.lanes.push(e)},this.addFlowNode=function(e){this.flowNodes.push(e)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}xd.$inject=["eventBus","modeling","translate"],i(xd,Xo);var Ed={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","createBehavior","createDataObjectBehavior","createParticipantBehavior","dataInputAssociationBehavior","dataStoreBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","fixHoverBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","messageFlowBehavior","modelingFeedback","removeElementBehavior","removeEmbeddedLabelBoundsBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","rootElementReferenceBehavior","spaceToolBehavior","subProcessPlaneBehavior","subProcessStartEventBehavior","toggleCollapseConnectionBehaviour","toggleElementCollapseBehaviour","unclaimIdBehavior","updateFlowNodeRefsBehavior","unsetDefaultFlowBehavior"],adaptiveLabelPositioningBehavior:["type",Tu],appendBehavior:["type",Au],associationBehavior:["type",zu],attachEventBehavior:["type",Ou],boundaryEventBehavior:["type",Bu],createBehavior:["type",ju],createDataObjectBehavior:["type",Nu],createParticipantBehavior:["type",Hu],dataInputAssociationBehavior:["type",$u],dataStoreBehavior:["type",Uu],deleteLaneBehavior:["type",qu],detachEventBehavior:["type",Ku],dropOnFlowBehavior:["type",Xu],eventBasedGatewayBehavior:["type",Ju],fixHoverBehavior:["type",nh],groupBehavior:["type",ih],importDockingFix:["type",oh],isHorizontalFix:["type",sh],labelBehavior:["type",Ah],messageFlowBehavior:["type",Hh],modelingFeedback:["type",Vh],removeElementBehavior:["type",Gh],removeEmbeddedLabelBoundsBehavior:["type",$h],removeParticipantBehavior:["type",Uh],replaceConnectionBehavior:["type",qh],replaceElementBehaviour:["type",Kh],resizeBehavior:["type",ed],resizeLaneBehavior:["type",sd],rootElementReferenceBehavior:["type",cd],spaceToolBehavior:["type",pd],subProcessPlaneBehavior:["type",fd],subProcessStartEventBehavior:["type",vd],toggleCollapseConnectionBehaviour:["type",gd],toggleElementCollapseBehaviour:["type",yd],unclaimIdBehavior:["type",bd],unsetDefaultFlowBehavior:["type",_d],updateFlowNodeRefsBehavior:["type",xd]};function Sd(e,t){var n=vn(e,t,-15);return"intersect"!==n?n:null}function Cd(e){Ss.call(this,e)}function Pd(e){return!e||mo(e)}function Md(e){do{if(xr(e,"bpmn:Process"))return Er(e);if(xr(e,"bpmn:Participant"))return Er(e).processRef||Er(e)}while(e=e.parent)}function Rd(e){return xr(e,"bpmn:TextAnnotation")}function Td(e){return xr(e,"bpmn:Group")&&!e.labelTarget}function kd(e){return xr(e,"bpmn:BoundaryEvent")&&Od(e,"bpmn:CompensateEventDefinition")}function Ad(e){return Er(e).isForCompensation}function zd(e){for(var t=e;t=t.parent;){if(xr(t,"bpmn:FlowElementsContainer"))return Er(t);if(xr(t,"bpmn:Participant"))return Er(t).processRef}return null}function Od(e,t){return!!b(Er(e).eventDefinitions||[],(function(e){return xr(e,t)}))}function Dd(e,t){return(Er(e).eventDefinitions||[]).every((function(e){return xr(e,t)}))}function Bd(e){return xr(e,"bpmn:ReceiveTask")||xr(e,"bpmn:IntermediateCatchEvent")&&(Od(e,"bpmn:MessageEventDefinition")||Od(e,"bpmn:TimerEventDefinition")||Od(e,"bpmn:ConditionalEventDefinition")||Od(e,"bpmn:SignalEventDefinition"))}function jd(e){return e.waypoints}function Nd(e,t){return-1!==function(e){for(var t=[];e;)(e=e.parent)&&t.push(e);return t}(t).indexOf(e)}function Ld(e,t,n){if(Pd(e)||Pd(t))return null;if(!xr(n,"bpmn:DataAssociation")){if(Zd(e,t))return{type:"bpmn:MessageFlow"};if(Qd(e,t))return{type:"bpmn:SequenceFlow"}}var i=Jd(e,t);return i||(kd(e)&&Ad(t)?{type:"bpmn:Association",associationDirection:"One"}:!!Xd(e,t)&&{type:"bpmn:Association"})}function Id(e,t,n){return!(!mo(e)&&!Td(e))||!(xr(t,"bpmn:Participant")&&!Nr(t))&&(xr(e,"bpmn:Participant")?xr(t,"bpmn:Process")||xr(t,"bpmn:Collaboration"):wr(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?t===e.parent:xr(e,"bpmn:Lane")?xr(t,"bpmn:Participant")||xr(t,"bpmn:Lane"):!(xr(e,"bpmn:BoundaryEvent")&&(i=e,!Er(i).cancelActivity||!Vd(i)&&!$d(i)))&&(xr(e,"bpmn:FlowElement")&&!xr(e,"bpmn:DataStoreReference")?xr(t,"bpmn:FlowElementsContainer")?Nr(t):wr(t,["bpmn:Participant","bpmn:Lane"]):xr(e,"bpmn:DataStoreReference")&&xr(t,"bpmn:Collaboration")?P(Er(t).get("participants"),(function(e){return!!e.get("processRef")})):wr(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?wr(t,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):!!xr(e,"bpmn:MessageFlow")&&(xr(t,"bpmn:Collaboration")||e.source.parent==t||e.target.parent==t)));var i}function Fd(e){return xr(e,"bpmn:Lane")}function Hd(e){return!!function(e){return!mo(e)&&xr(e,"bpmn:BoundaryEvent")}(e)||(!(!xr(e,"bpmn:IntermediateThrowEvent")||!Vd(e))||xr(e,"bpmn:IntermediateCatchEvent")&&$d(e))}function Vd(e){var t=Er(e);return t&&!(t.eventDefinitions&&t.eventDefinitions.length)}function $d(e){return Gd(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function Gd(e,t){return t.some((function(t){return Od(e,t)}))}function Wd(e,t,n,i){if(Array.isArray(e)||(e=[e]),1!==e.length)return!1;var r=e[0];return!mo(r)&&(!!Hd(r)&&(!Ir(t)&&(!(!xr(t,"bpmn:Activity")||Ad(t))&&(!(i&&!Sd(i,t))&&(!function(e){return xr(e,"bpmn:ReceiveTask")&&b(e.incoming,(function(e){return xr(e.source,"bpmn:EventBasedGateway")}))}(t)&&"attach")))))}function Ud(e,t,n){if(!t)return!1;var i={replacements:[]};return w(e,(function(e){Ir(t)||xr(e,"bpmn:StartEvent")&&"label"!==e.type&&Id(e,t)&&(Lr(e)||i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),(function(e){return Fr(e,"bpmn:ErrorEventDefinition")}(e)||function(e){return Fr(e,"bpmn:EscalationEventDefinition")}(e)||function(e){return Fr(e,"bpmn:CompensateEventDefinition")}(e))&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),Gd(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&xr(t,"bpmn:SubProcess")&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"})),xr(t,"bpmn:Transaction")||Od(e,"bpmn:CancelEventDefinition")&&"label"!==e.type&&(xr(e,"bpmn:EndEvent")&&Id(e,t)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:EndEvent"}),xr(e,"bpmn:BoundaryEvent")&&Wd(e,t,0,n)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:BoundaryEvent"}))})),!!i.replacements.length&&i}function qd(e,t){return!P(e,Fd)&&(!t||e.every((function(e){return Id(e,t)})))}function Kd(e,t,n,i){return!!t&&(!(!mo(e)&&!Td(e))||!function(e,t){return e===t}(n,t)&&((!n||!Nd(n,t))&&(Id(e,t)||em(e,t))))}function Yd(e,t){return xr(e,"bpmn:SubProcess")?Nr(e)&&(!t||t.width>=100&&t.height>=80):xr(e,"bpmn:Lane")?!t||t.width>=130&&t.height>=60:xr(e,"bpmn:Participant")?!t||t.width>=250&&t.height>=50:!!Rd(e)||!!Td(e)}function Xd(e,t){return!jd(e)&&!jd(t)&&(!(!kd(e)||!Ad(t))||!Nd(t,e)&&!Nd(e,t)&&(!!function(e,t){var n=Rd(e),i=Rd(t);return(n||i)&&n!==i}(e,t)||!!Jd(e,t)))}function Zd(e,t){return!(im(e)&&!im(t))&&(xr(n=e,"bpmn:InteractionNode")&&!xr(n,"bpmn:BoundaryEvent")&&(!xr(n,"bpmn:Event")||xr(n,"bpmn:ThrowEvent")&&Dd(n,"bpmn:MessageEventDefinition"))&&function(e){return xr(e,"bpmn:InteractionNode")&&!Ad(e)&&(!xr(e,"bpmn:Event")||xr(e,"bpmn:CatchEvent")&&Dd(e,"bpmn:MessageEventDefinition"))&&!(xr(e,"bpmn:BoundaryEvent")&&!Od(e,"bpmn:MessageEventDefinition"))}(t)&&!function(e,t){return Md(e)===Md(t)}(e,t));var n}function Qd(e,t){return!(Bd(t)&&t.incoming.length>0&&(n=t.incoming,(n=n||[]).some(nm))&&!xr(e,"bpmn:EventBasedGateway"))&&(xr(i=e,"bpmn:FlowNode")&&!xr(i,"bpmn:EndEvent")&&!Ir(i)&&!(xr(i,"bpmn:IntermediateThrowEvent")&&Od(i,"bpmn:LinkEventDefinition"))&&!kd(i)&&!Ad(i)&&function(e){return xr(e,"bpmn:FlowNode")&&!xr(e,"bpmn:StartEvent")&&!xr(e,"bpmn:BoundaryEvent")&&!Ir(e)&&!(xr(e,"bpmn:IntermediateCatchEvent")&&Od(e,"bpmn:LinkEventDefinition"))&&!Ad(e)}(t)&&function(e,t){return zd(e)===zd(t)}(e,t)&&!(xr(e,"bpmn:EventBasedGateway")&&!Bd(t)));var n,i}function Jd(e,t){return wr(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&wr(t,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:!(!wr(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])||!wr(e,["bpmn:Activity","bpmn:CatchEvent"]))&&{type:"bpmn:DataOutputAssociation"}}function em(e,t,n){if(!t)return!1;if(Array.isArray(e)){if(1!==e.length)return!1;e=e[0]}return t.source!==e&&t.target!==e&&(wr(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!mo(t)&&xr(e,"bpmn:FlowNode")&&!xr(e,"bpmn:BoundaryEvent")&&Id(e,t.parent))}function tm(e,t){return!!mo(t)||!(xr(t,"bpmn:Lane")&&!function(e,t){return e&&t&&-1!==e.indexOf(t)}(e,t.parent))}function nm(e){if(e&&e.source)return xr(e.source,"bpmn:EventBasedGateway")}function im(e){return gs(e,"bpmn:Process")||gs(e,"bpmn:Collaboration")}i(Cd,Ss),Cd.$inject=["eventBus"],Cd.prototype.init=function(){this.addRule("connection.start",(function(e){return function(e){if(Pd(e))return null;return wr(e,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}(e.source)})),this.addRule("connection.create",(function(e){var t=e.source,n=e.target,i=e.hints||{},r=i.targetParent;if(i.targetAttach)return!1;r&&(n.parent=r);try{return Ld(t,n)}finally{r&&(n.parent=null)}})),this.addRule("connection.reconnect",(function(e){var t=e.connection;return Ld(e.source,e.target,t)})),this.addRule("connection.updateWaypoints",(function(e){return{type:e.connection.type}})),this.addRule("shape.resize",(function(e){return Yd(e.shape,e.newBounds)})),this.addRule("elements.create",(function(e){var t=e.elements,n=e.position,i=e.target;return!(jd(i)&&!em(t,i))&&C(t,(function(e){return jd(e)?Ld(e.source,e.target,e):e.host?Wd(e,e.host,null,n):Kd(e,i,null)}))})),this.addRule("elements.move",(function(e){var t=e.target,n=e.shapes,i=e.position;return Wd(n,t,null,i)||Ud(n,t,i)||qd(n,t)||em(n,t)})),this.addRule("shape.create",(function(e){return Kd(e.shape,e.target,e.source,e.position)})),this.addRule("shape.attach",(function(e){return Wd(e.shape,e.target,null,e.position)})),this.addRule("element.copy",(function(e){var t=e.element;return tm(e.elements,t)}))},Cd.prototype.canConnectMessageFlow=Zd,Cd.prototype.canConnectSequenceFlow=Qd,Cd.prototype.canConnectDataAssociation=Jd,Cd.prototype.canConnectAssociation=Xd,Cd.prototype.canMove=qd,Cd.prototype.canAttach=Wd,Cd.prototype.canReplace=Ud,Cd.prototype.canDrop=Id,Cd.prototype.canInsert=em,Cd.prototype.canCreate=Kd,Cd.prototype.canConnect=Ld,Cd.prototype.canResize=Yd,Cd.prototype.canCopy=tm;var rm={__depends__:[Is],__init__:["bpmnRules"],bpmnRules:["type",Cd]};function om(e,t){e.on("saveXML.start",2e3,(function(){w(t.getRootElements(),(function(e){var t,n=Sr(e);t=M(x(ft([e],!1),(function(t){return t!==e&&!t.labelTarget})),Sr),n.set("planeElement",t)}))}))}om.$inject=["eventBus","canvas"];var am={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",om]};function sm(e){Xo.call(this,e);var t=this;this.preExecute(["shape.create","connection.create"],(function(e){var n=e.context,i=n.shape||n.connection,r=n.parent,o=t.getOrdering(i,r);o&&(void 0!==o.parent&&(n.parent=o.parent),n.parentIndex=o.index)})),this.preExecute(["shape.move","connection.move"],(function(e){var n=e.context,i=n.shape||n.connection,r=n.newParent||i.parent,o=t.getOrdering(i,r);o&&(void 0!==o.parent&&(n.newParent=o.parent),n.newParentIndex=o.index)}))}function cm(e,t,n){sm.call(this,e);var i=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:3,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function r(e){var t=e.order;if(t||(e.order=t=function(e){if(e.labelTarget)return{level:10};var t=b(i,(function(t){return wr(e,[t.type])}));return t&&t.order||{level:1}}(e)),!t)throw new Error("no order for <"+e.id+">");return t}this.getOrdering=function(e,n){if(e.labelTarget)return{parent:t.findRoot(e.labelTarget)||t.getRootElement(),index:-1};var i=r(e);i.containers&&(n=function(e,t,n){for(var i=t;i&&!wr(i,n);)i=i.parent;if(!i)throw new Error("no parent for <"+e.id+"> in <"+(t&&t.id)+">");return i}(e,n,i.containers));var o=n.children.indexOf(e),a=_(n.children,(function(t){return!(!e.labelTarget&&t.labelTarget)&&i.level<r(t).level}));return-1!==a&&-1!==o&&o<a&&(a-=1),{index:a,parent:n}}}sm.prototype.getOrdering=function(e,t){return null},i(sm,Xo),cm.$inject=["eventBus","canvas","translate"],i(cm,sm);var lm={__depends__:[so],__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",cm]};function pm(e,t){this._handlerMap={},this._stack=[],this._stackIdx=-1,this._currentExecution={actions:[],dirty:[],trigger:null},this._injector=t,this._eventBus=e,this._uid=1,e.on(["diagram.destroy","diagram.clear"],(function(){this.clear(!1)}),this)}pm.$inject=["eventBus","injector"],pm.prototype.execute=function(e,t){if(!e)throw new Error("command required");this._currentExecution.trigger="execute";var n={command:e,context:t};this._pushAction(n),this._internalExecute(n),this._popAction(n)},pm.prototype.canExecute=function(e,t){var n={command:e,context:t},i=this._getHandler(e),r=this._fire(e,"canExecute",n);if(void 0===r){if(!i)return!1;i.canExecute&&(r=i.canExecute(t))}return r},pm.prototype.clear=function(e){this._stack.length=0,this._stackIdx=-1,!1!==e&&this._fire("changed",{trigger:"clear"})},pm.prototype.undo=function(){var e,t=this._getUndoAction();if(t){for(this._currentExecution.trigger="undo",this._pushAction(t);t&&(this._internalUndo(t),(e=this._getUndoAction())&&e.id===t.id);)t=e;this._popAction()}},pm.prototype.redo=function(){var e,t=this._getRedoAction();if(t){for(this._currentExecution.trigger="redo",this._pushAction(t);t&&(this._internalExecute(t,!0),(e=this._getRedoAction())&&e.id===t.id);)t=e;this._popAction()}},pm.prototype.register=function(e,t){this._setHandler(e,t)},pm.prototype.registerHandler=function(e,t){if(!e||!t)throw new Error("command and handlerCls must be defined");var n=this._injector.instantiate(t);this.register(e,n)},pm.prototype.canUndo=function(){return!!this._getUndoAction()},pm.prototype.canRedo=function(){return!!this._getRedoAction()},pm.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]},pm.prototype._getUndoAction=function(){return this._stack[this._stackIdx]},pm.prototype._internalUndo=function(e){var t=this,n=e.command,i=e.context,r=this._getHandler(n);this._atomicDo((function(){t._fire(n,"revert",e),r.revert&&t._markDirty(r.revert(i)),t._revertedAction(e),t._fire(n,"reverted",e)}))},pm.prototype._fire=function(e,t,n){arguments.length<3&&(n=t,t=null);var i,r,o,a=t?[e+"."+t,t]:[e];for(n=this._eventBus.createEvent(n),i=0;(r=a[i])&&(o=this._eventBus.fire("commandStack."+r,n),!n.cancelBubble);i++);return o},pm.prototype._createId=function(){return this._uid++},pm.prototype._atomicDo=function(e){var t=this._currentExecution;t.atomic=!0;try{e()}finally{t.atomic=!1}},pm.prototype._internalExecute=function(e,t){var n=this,i=e.command,r=e.context,o=this._getHandler(i);if(!o)throw new Error("no command handler registered for <"+i+">");this._pushAction(e),t||(this._fire(i,"preExecute",e),o.preExecute&&o.preExecute(r),this._fire(i,"preExecuted",e)),this._atomicDo((function(){n._fire(i,"execute",e),o.execute&&n._markDirty(o.execute(r)),n._executedAction(e,t),n._fire(i,"executed",e)})),t||(this._fire(i,"postExecute",e),o.postExecute&&o.postExecute(r),this._fire(i,"postExecuted",e)),this._popAction(e)},pm.prototype._pushAction=function(e){var t=this._currentExecution,n=t.actions,i=n[0];if(t.atomic)throw new Error("illegal invocation in <execute> or <revert> phase (action: "+e.command+")");e.id||(e.id=i&&i.id||this._createId()),n.push(e)},pm.prototype._popAction=function(){var e=this._currentExecution,t=e.trigger,n=e.actions,i=e.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:z("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:t}),e.trigger=null)},pm.prototype._markDirty=function(e){var t=this._currentExecution;e&&(e=h(e)?e:[e],t.dirty=t.dirty.concat(e))},pm.prototype._executedAction=function(e,t){var n=++this._stackIdx;t||this._stack.splice(n,this._stack.length,e)},pm.prototype._revertedAction=function(e){this._stackIdx--},pm.prototype._getHandler=function(e){return this._handlerMap[e]},pm.prototype._setHandler=function(e,t){if(!e||!t)throw new Error("command and handler required");if(this._handlerMap[e])throw new Error("overriding handler for command <"+e+">");this._handlerMap[e]=t};var um={commandStack:["type",pm]},hm=new Ho("tt");function dm(e,t){e.style.display=!1===t?"none":""}var mm=".djs-tooltip";function fm(e,t){var n,i;this._eventBus=e,this._canvas=t,this._ids=hm,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=(n=t.getContainer(),i=fe('<div class="djs-tooltip-container" style="position: absolute; width: 0; height: 0;" />'),n.insertBefore(i,n.firstChild),i);var r=this;me.bind(this._tooltipRoot,mm,"mousedown",(function(e){e.stopPropagation()})),me.bind(this._tooltipRoot,mm,"mouseover",(function(e){r.trigger("mouseover",e)})),me.bind(this._tooltipRoot,mm,"mouseout",(function(e){r.trigger("mouseout",e)})),this._init()}fm.$inject=["eventBus","canvas"],fm.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=G({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},fm.prototype.trigger=function(e,t){var n=t.delegateTarget||t.target,i=this.get(X(n,"data-tooltip-id"));i&&("mouseover"===e&&i.timeout&&this.clearTimeout(i),"mouseout"===e&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))},fm.prototype.get=function(e){return"string"!=typeof e&&(e=e.id),this._tooltips[e]},fm.prototype.clearTimeout=function(e){if(e=this.get(e)){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},fm.prototype.setTimeout=function(e){if(e=this.get(e)){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout((function(){t.remove(e)}),e.timeout)}},fm.prototype.remove=function(e){var t=this.get(e);t&&(_e(t.html),_e(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},fm.prototype.show=function(){dm(this._tooltipRoot)},fm.prototype.hide=function(){dm(this._tooltipRoot,!1)},fm.prototype._updateRoot=function(e){var t=e.scale||1,n=e.scale||1,i="matrix("+t+",0,0,"+n+","+-1*e.x*t+","+-1*e.y*n+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i},fm.prototype._addTooltip=function(e){var t,n=e.id,i=e.html,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),v(i)&&(i=fe(i)),(t=fe('<div data-tooltip-id="'+n+'" class="'+'djs-tooltip" style="position: absolute">')).appendChild(i),e.type&&te(t).add("djs-tooltip-"+e.type),e.className&&te(t).add(e.className),e.htmlContainer=t,r.appendChild(t),this._tooltips[n]=e,this._updateTooltip(e)},fm.prototype._updateTooltip=function(e){var t=e.position;!function(e,t,n){G(e.style,{left:t+"px",top:n+"px"})}(e.htmlContainer,t.x,t.y)},fm.prototype._updateTooltipVisibilty=function(e){w(this._tooltips,(function(t){var n=t.show,i=t.htmlContainer,r=!0;n&&((n.minZoom>e.scale||n.maxZoom<e.scale)&&(r=!1),dm(i,r))}))},fm.prototype._init=function(){var e=this;this._eventBus.on("canvas.viewbox.changing",(function(t){e.hide()})),this._eventBus.on("canvas.viewbox.changed",(function(t){var n;n=t.viewbox,e._updateRoot(n),e._updateTooltipVisibilty(n),e.show()}))};var vm={__init__:["tooltips"],tooltips:["type",fm]};function gm(e,t){if("function"!=typeof t)throw new Error("removeFn iterator must be a function");if(e){for(var n;n=e[0];)t(n);return e}}function ym(e,t,n){Xo.call(this,t);var i=e.get("movePreview",!1);t.on("shape.move.start",1400,(function(e){var t=e.context,n=t.shapes,i=t.validatedShapes;t.shapes=bm(n),t.validatedShapes=bm(i)})),i&&t.on("shape.move.start",250,(function(e){var t=e.context,n=t.shapes,r=[];w(n,(function(e){w(e.labels,(function(n){n.hidden||-1!==t.shapes.indexOf(n)||r.push(n),e.labelTarget&&r.push(e)}))})),w(r,(function(e){i.makeDraggable(t,e,!0)}))})),this.preExecuted("elements.move",1400,(function(e){var t=e.context.closure,n=t.enclosedElements,i=[];w(n,(function(e){w(e.labels,(function(e){n[e.id]||i.push(e)}))})),t.addAll(i)})),this.preExecute(["connection.delete","shape.delete"],(function(e){var t=e.context;gm((t.connection||t.shape).labels,(function(e){n.removeShape(e,{nested:!0})}))})),this.execute("shape.delete",(function(e){var t=e.context,n=t.shape,i=n.labelTarget;i&&(t.labelTargetIndex=St(i.labels,n),t.labelTarget=i,n.labelTarget=null)})),this.revert("shape.delete",(function(e){var t=e.context,n=t.shape,i=t.labelTarget,r=t.labelTargetIndex;i&&(Et(i.labels,n,r),n.labelTarget=i)}))}function bm(e){return x(e,(function(t){return-1===e.indexOf(t.labelTarget)}))}i(ym,Xo),ym.$inject=["injector","eventBus","modeling"];var _m={__init__:["labelSupport"],labelSupport:["type",ym]},xm="attach-ok";function wm(e,t,n,i,r){Xo.call(this,t);var o=e.get("movePreview",!1);t.on("shape.move.start",1401,(function(e){var t,n,i=e.context,r=i.shapes,o=i.validatedShapes;i.shapes=(n=Em(t=r),O("id",t,n)),i.validatedShapes=function(e){var t=A(e,"id");return x(e,(function(e){for(;e;){if(e.host&&t[e.host.id])return!1;e=e.parent}return!0}))}(o)})),o&&t.on("shape.move.start",251,(function(e){var t=e.context;w(Em(t.shapes),(function(e){o.makeDraggable(t,e,!0),w(e.labels,(function(e){o.makeDraggable(t,e,!0)}))}))})),o&&t.on("shape.move.start",(function(e){var i=e.context.shapes;if(1===i.length){var r=i[0].host;r&&(n.addMarker(r,xm),t.once(["shape.move.out","shape.move.cleanup"],(function(){n.removeMarker(r,xm)})))}})),this.preExecuted("elements.move",1401,(function(e){var t=e.context,n=t.closure;w(Em(t.shapes),(function(e){n.add(e,n.topLevel[e.host.id])}))})),this.postExecuted("elements.move",(function(e){var t=e.context,n=t.shapes,i=t.newHost;i&&1!==n.length||w(i?n:x(n,(function(e){var t,i=e.host;return function(e){return!!e.host}(e)&&(t=i,!(-1!==n.indexOf(t)))})),(function(e){r.updateAttachment(e,i)}))})),this.postExecuted("elements.move",(function(e){w(e.context.shapes,(function(e){w(e.attachers,(function(e){w(e.outgoing.slice(),(function(e){i.allowed("connection.reconnect",{connection:e,source:e.source,target:e.target})||r.removeConnection(e)})),w(e.incoming.slice(),(function(e){i.allowed("connection.reconnect",{connection:e,source:e.source,target:e.target})||r.removeConnection(e)}))}))}))})),this.postExecute("shape.create",(function(e){var t=e.context,n=t.shape,i=t.host;i&&r.updateAttachment(n,i)})),this.postExecute("shape.replace",(function(e){var t=e.context,n=t.oldShape,o=t.newShape;gm(n.attachers,(function(e){"attach"===i.allowed("elements.move",{target:o,shapes:[e]})?r.updateAttachment(e,o):r.removeShape(e)})),o.attachers.length&&w(o.attachers,(function(e){var t=Mh(e,n,o);r.moveShape(e,t,e.parent)}))})),this.postExecute("shape.resize",(function(e){var t=e.context,n=t.shape,i=t.oldBounds,o=t.newBounds,a=n.attachers;!1!==(t.hints||{}).attachSupport&&w(a,(function(e){var t=Mh(e,i,o);r.moveShape(e,t,e.parent),w(e.labels,(function(e){r.moveShape(e,t,e.parent)}))}))})),this.preExecute("shape.delete",(function(e){var t=e.context.shape;gm(t.attachers,(function(e){r.removeShape(e)})),t.host&&r.updateAttachment(t,null)}))}function Em(e){return a(M(e,(function(e){return e.attachers||[]})))}i(wm,Xo),wm.$inject=["injector","eventBus","canvas","rules","modeling"];var Sm={__depends__:[Is],__init__:["attachSupport"],attachSupport:["type",wm]};function Cm(e,t){this._eventBus=e,this._dragging=t,this._tools=[],this._active=null}Cm.$inject=["eventBus","dragging"],Cm.prototype.registerTool=function(e,t){var n=this._tools;if(!t)throw new Error('A tool has to be registered with it\'s "events"');n.push(e),this.bindEvents(e,t)},Cm.prototype.isActive=function(e){return e&&this._active===e},Cm.prototype.length=function(e){return this._tools.length},Cm.prototype.setActive=function(e){var t=this._eventBus;this._active!==e&&(this._active=e,t.fire("tool-manager.update",{tool:e}))},Cm.prototype.bindEvents=function(e,t){var n=this._eventBus,i=this._dragging,r=[];n.on(t.tool+".init",(function(t){if(!t.context.reactivate&&this.isActive(e))return this.setActive(null),void i.cancel();this.setActive(e)}),this),w(t,(function(e){r.push(e+".ended"),r.push(e+".canceled")})),n.on(r,250,(function(e){this._active&&(function(e){var t=e.originalEvent&&e.originalEvent.target;return t&&se(t,'.group[data-group="tools"]')}(e)||this.setActive(null))}),this)};var Pm={__depends__:[Ds],__init__:["toolManager"],toolManager:["type",Cm]};function Mm(e,t){return-1!==e.indexOf(t)}var Rm=Math.abs,Tm=Math.round,km={x:"width",y:"height"},Am="crosshair",zm={n:"top",w:"left",s:"bottom",e:"right"},Om={n:"s",w:"e",s:"n",e:"w"};function Dm(e,t,n,i,r,o,a){this._canvas=e,this._dragging=t,this._eventBus=n,this._modeling=i,this._rules=r,this._toolManager=o,this._mouse=a;var s=this;o.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",(function(e){n.once("spaceTool.selection.ended",(function(){s.activateMakeSpace(e.originalEvent)}))})),n.on("spaceTool.move",1500,(function(e){var t=e.context,n=t.initialized;n||(n=t.initialized=s.init(e,t)),n&&jm(e)})),n.on("spaceTool.end",(function(e){var t=e.context,i=t.axis,r=t.direction,o=t.movingShapes,a=t.resizingShapes,c=t.start;if(t.initialized){jm(e);var l={x:0,y:0};l[i]=Tm(e["d"+i]),s.makeSpace(o,a,l,r,c),n.once("spaceTool.ended",(function(e){s.activateSelection(e.originalEvent,!0,!0)}))}}))}function Bm(e){return{top:e.top-20,right:e.right+20,bottom:e.bottom+20,left:e.left-20}}function jm(e){var t,n,i=e.context.spaceToolConstraints;i&&(m(i.left)&&(t=Math.max(e.x,i.left),e.dx=e.dx+t-e.x,e.x=t),m(i.right)&&(t=Math.min(e.x,i.right),e.dx=e.dx+t-e.x,e.x=t),m(i.top)&&(n=Math.max(e.y,i.top),e.dy=e.dy+n-e.y,e.y=n),m(i.bottom)&&(n=Math.min(e.y,i.bottom),e.dy=e.dy+n-e.y,e.y=n))}function Nm(e,t){return-1!==e.indexOf(t)}function Lm(e){return!!e.waypoints}function Im(e){return!!e.labelTarget}Dm.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"],Dm.prototype.activateSelection=function(e,t,n){this._dragging.init(e,"spaceTool.selection",{autoActivate:t,cursor:Am,data:{context:{reactivate:n}},trapClick:!1})},Dm.prototype.activateMakeSpace=function(e){this._dragging.init(e,"spaceTool",{autoActivate:!0,cursor:Am,data:{context:{}}})},Dm.prototype.makeSpace=function(e,t,n,i,r){return this._modeling.createSpace(e,t,n,i,r)},Dm.prototype.init=function(e,t){var n=Rm(e.dx)>Rm(e.dy)?"x":"y",i=e["d"+n],r=e[n]-i;if(Rm(i)<5)return!1;i<0&&(i*=-1),Po(e)&&(i*=-1);var o=function(e,t){if("x"===e){if(t>0)return"e";if(t<0)return"w"}if("y"===e){if(t>0)return"s";if(t<0)return"n"}return null}(n,i),a=ft(this._canvas.getRootElement(),!0),s=this.calculateAdjustments(a,n,i,r);return G(t,s,{axis:n,direction:o,spaceToolConstraints:function(e,t,n,i,r){var o=e.movingShapes,a=e.resizingShapes;if(!a.length)return;var s,c,l={};return w(a,(function(e){var p,u,h,d=dn(e),f=x(e.children,(function(e){return!(Lm(e)||Im(e)||Nm(o,e)||Nm(a,e))})),v=x(e.children,(function(e){return!Lm(e)&&!Im(e)&&Nm(o,e)}));f.length&&(u=Bm(dn(vt(f))),p=i-d[zm[n]]+u[zm[n]],"n"===n?l.bottom=c=m(c)?Math.min(c,p):p:"w"===n?l.right=c=m(c)?Math.min(c,p):p:"s"===n?l.top=s=m(s)?Math.max(s,p):p:"e"===n&&(l.left=s=m(s)?Math.max(s,p):p)),v.length&&(h=Bm(dn(vt(v))),p=i-h[zm[Om[n]]]+d[zm[Om[n]]],"n"===n?l.bottom=c=m(c)?Math.min(c,p):p:"w"===n?l.right=c=m(c)?Math.min(c,p):p:"s"===n?l.top=s=m(s)?Math.max(s,p):p:"e"===n&&(l.left=s=m(s)?Math.max(s,p):p));var g=r&&r[e.id];g&&("n"===n?(p=i+e[km[t]]-g[km[t]],l.bottom=c=m(c)?Math.min(c,p):p):"w"===n?(p=i+e[km[t]]-g[km[t]],l.right=c=m(c)?Math.min(c,p):p):"s"===n?(p=i-e[km[t]]+g[km[t]],l.top=s=m(s)?Math.max(s,p):p):"e"===n&&(p=i-e[km[t]]+g[km[t]],l.left=s=m(s)?Math.max(s,p):p))})),l}(s,n,o,r,this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:o,shapes:s.resizingShapes,start:r})),start:r}),Ba("resize-"+("x"===n?"ew":"ns")),!0},Dm.prototype.calculateAdjustments=function(e,t,n,i){var r=this._rules,o=[],a=[];return w(e,(function(e){if(e.parent&&!Lm(e)){var s=e[t],c=s+e[km[t]];return n>0&&s>i||n<0&&c<i?o.push(e):s<i&&c>i&&r.allowed("shape.resize",{shape:e})?a.push(e):void 0}})),{movingShapes:o,resizingShapes:a}},Dm.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},Dm.prototype.isActive=function(){var e=this._dragging.context();return e&&/^spaceTool/.test(e.prefix)};var Fm="djs-dragging",Hm="djs-resizing",Vm=Math.max;function $m(e,t,n,i,r){function o(e,t){w(e,(function(e){r.addDragger(e,t),n.addMarker(e,Fm)}))}e.on("spaceTool.selection.start",(function(e){var t=n.getLayer("space"),r=e.context,o="M 0,-10000 L 0,10000",a="M -10000,0 L 10000,0",s=Le("g");Ce(s,i.cls("djs-crosshair-group",["no-events"])),we(t,s);var c=Le("path");Ce(c,"d",o),ke(c).add("djs-crosshair"),we(s,c);var l=Le("path");Ce(l,"d",a),ke(l).add("djs-crosshair"),we(s,l),r.crosshairGroup=s})),e.on("spaceTool.selection.move",(function(e){Kn(e.context.crosshairGroup,e.x,e.y)})),e.on("spaceTool.selection.cleanup",(function(e){var t=e.context.crosshairGroup;t&&ze(t)})),e.on("spaceTool.move",250,(function(e){var a=e.context,s=a.line,c=a.axis,l=a.movingShapes,p=a.resizingShapes;if(a.initialized){if(!a.dragGroup){var u=n.getLayer("space");Ce(s=Le("path"),"d","M0,0 L0,0"),ke(s).add("djs-crosshair"),we(u,s),a.line=s;var h=Le("g");Ce(h,i.cls("djs-drag-group",["no-events"])),we(n.getActiveLayer(),h),o(l,h),o(a.movingConnections=t.filter((function(e){var t=!1;w(l,(function(n){w(n.outgoing,(function(n){e===n&&(t=!0)}))}));var n=!1;w(l,(function(t){w(t.incoming,(function(t){e===t&&(n=!0)}))}));var i=!1;w(p,(function(t){w(t.outgoing,(function(t){e===t&&(i=!0)}))}));var r=!1;return w(p,(function(t){w(t.incoming,(function(t){e===t&&(r=!0)}))})),function(e){return e.waypoints}(e)&&(t||i)&&(n||r)})),h),a.dragGroup=h}if(!a.frameGroup){var d=Le("g");Ce(d,i.cls("djs-frame-group",["no-events"])),we(n.getActiveLayer(),d);var m=[];w(p,(function(e){var t=r.addFrame(e,d),i=t.getBBox();m.push({element:t,initialBounds:i}),n.addMarker(e,Hm)})),a.frameGroup=d,a.frames=m}Ce(s,{d:{x:"M"+e.x+", -10000 L"+e.x+", 10000",y:"M -10000, "+e.y+" L 10000, "+e.y}[c]});var f={x:e.dx,y:e.dy};f[{x:"y",y:"x"}[a.axis]]=0,Kn(a.dragGroup,f.x,f.y),w(a.frames,(function(e){var t,n,i=e.element,r=e.initialBounds;"e"===a.direction?Ce(i,{width:Vm(r.width+f.x,5)}):Ce(i,{width:t=Vm(r.width-f.x,5),x:r.x+r.width-t}),"s"===a.direction?Ce(i,{height:Vm(r.height+f.y,5)}):Ce(i,{height:n=Vm(r.height-f.y,5),y:r.y+r.height-n})}))}})),e.on("spaceTool.cleanup",(function(e){var t=e.context,i=t.movingShapes,r=t.movingConnections,o=t.resizingShapes,a=t.line,s=t.dragGroup,c=t.frameGroup;w(i,(function(e){n.removeMarker(e,Fm)})),w(r,(function(e){n.removeMarker(e,Fm)})),s&&(ze(a),ze(s)),w(o,(function(e){n.removeMarker(e,Hm)})),c&&ze(c)}))}$m.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];var Gm={__init__:["spaceToolPreview"],__depends__:[Ds,Is,Pm,il,wl],spaceTool:["type",Dm],spaceToolPreview:["type",$m]};function Wm(e){this._model=e}function Um(e,t,n,i){Xo.call(this,e),this._bpmnFactory=t,this._translate=i;var r=this;function o(e){w(e.context.oldRoot.children,(function(e){xr(e,"bpmn:BaseElement")&&r.updateParent(e)}))}function a(e){var t=e.context.shape;xr(t,"bpmn:BaseElement")&&r.updateBounds(t)}function s(e){r.updateConnection(e.context)}function c(e){r.updateConnectionWaypoints(e.context.connection)}function l(e){r.updateAttachment(e.context)}this.executed(["connection.layout","connection.create"],(function(e){var t,i=e.context,r=i.hints||{};i.cropped||!1===r.createElementsBehavior||((t=i.connection).waypoints=n.getCroppedWaypoints(t),i.cropped=!0)})),this.reverted(["connection.layout"],(function(e){delete e.context.cropped})),this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],qm((function(e){var t=e.context;r.updateParent(t.shape||t.connection,t.oldParent)}))),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],qm((function(e){var t=e.context,n=t.shape||t.connection,i=t.parent||t.newParent;r.updateParent(n,i)}))),this.executed(["canvas.updateRoot"],o),this.reverted(["canvas.updateRoot"],o),this.executed(["shape.move","shape.create","shape.resize"],qm((function(e){"label"!==e.context.shape.type&&a(e)}))),this.reverted(["shape.move","shape.create","shape.resize"],qm((function(e){"label"!==e.context.shape.type&&a(e)}))),e.on("shape.changed",(function(e){"label"===e.element.type&&a({context:{shape:e.element}})})),this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],qm(s)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],qm(s)),this.executed(["connection.layout","connection.move","connection.updateWaypoints"],qm(c)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],qm(c)),this.executed("connection.reconnect",qm((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=Er(n),a=Er(i),s=Er(r);o.conditionExpression&&!wr(s,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(t.oldConditionExpression=o.conditionExpression,delete o.conditionExpression),i!==r&&a.default===o&&(t.oldDefault=a.default,delete a.default)}))),this.reverted("connection.reconnect",qm((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=Er(n),a=Er(i),s=Er(r);t.oldConditionExpression&&(o.conditionExpression=t.oldConditionExpression),t.oldDefault&&(a.default=t.oldDefault,delete s.default)}))),this.executed(["element.updateAttachment"],qm(l)),this.reverted(["element.updateAttachment"],qm(l))}function qm(e){return function(t){var n=t.context;xr(n.shape||n.connection,"bpmn:BaseElement")&&e(t)}}function Km(e,t,n){Vn.call(this),this._bpmnFactory=e,this._moddle=t,this._translate=n}function Ym(e,t,n){e[n]=t[n],delete t[n]}function Xm(e,t){this._modeling=e,this._canvas=t}function Zm(e){this._modeling=e}function Qm(e,t){this._canvas=e,this._layouter=t}Wm.$inject=["moddle"],Wm.prototype._needsId=function(e){return wr(e,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])},Wm.prototype._ensureId=function(e){var t;e.id?this._model.ids.claim(e.id,e):(t=xr(e,"bpmn:Activity")?"Activity":xr(e,"bpmn:Event")?"Event":xr(e,"bpmn:Gateway")?"Gateway":wr(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(e.$type||"").replace(/^[^:]*:/g,""),t+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(t,e)))},Wm.prototype.create=function(e,t){var n=this._model.create(e,t||{});return this._ensureId(n),n},Wm.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},Wm.prototype.createDiShape=function(e,t){return this.create("bpmndi:BPMNShape",G({bpmnElement:e,bounds:this.createDiBounds()},t))},Wm.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)},Wm.prototype.createDiWaypoints=function(e){var t=this;return M(e,(function(e){return t.createDiWaypoint(e)}))},Wm.prototype.createDiWaypoint=function(e){return this.create("dc:Point",q(e,["x","y"]))},Wm.prototype.createDiEdge=function(e,t){return this.create("bpmndi:BPMNEdge",G({bpmnElement:e,waypoint:this.createDiWaypoints([])},t))},Wm.prototype.createDiPlane=function(e,t){return this.create("bpmndi:BPMNPlane",G({bpmnElement:e},t))},i(Um,Xo),Um.$inject=["eventBus","bpmnFactory","connectionDocking","translate"],Um.prototype.updateAttachment=function(e){var t=e.shape,n=t.businessObject,i=t.host;n.attachedToRef=i&&i.businessObject},Um.prototype.updateParent=function(e,t){if(!(e instanceof In||xr(e,"bpmn:DataStoreReference")&&e.parent&&xr(e.parent,"bpmn:Collaboration"))){var n=e.parent,i=e.businessObject,r=Sr(e),o=n&&n.businessObject,a=Sr(n);xr(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,o,t&&t.businessObject),xr(e,"bpmn:DataOutputAssociation")&&(o=e.source?e.source.businessObject:null),xr(e,"bpmn:DataInputAssociation")&&(o=e.target?e.target.businessObject:null),this.updateSemanticParent(i,o),xr(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,o),this.updateDiParent(r,a)}},Um.prototype.updateBounds=function(e){var t=Sr(e),n=function(e){if(!xr(e,"bpmn:Activity"))return;var t=Sr(e);if(!t)return;var n=t.get("label");if(!n)return;return n.get("bounds")}(e);if(n){var i=Ia(n,t.get("bounds"));G(n,{x:e.x+i.x,y:e.y+i.y})}var r=e instanceof In?this._getLabel(t):t,o=r.bounds;o||(o=this._bpmnFactory.createDiBounds(),r.set("bounds",o)),G(o,{x:e.x,y:e.y,width:e.width,height:e.height})},Um.prototype.updateFlowNodeRefs=function(e,t,n){n!==t&&(xr(n,"bpmn:Lane")&&wt(n.get("flowNodeRef"),e),xr(t,"bpmn:Lane")&&Et(t.get("flowNodeRef"),e))},Um.prototype.updateDiConnection=function(e,t,n){var i=Sr(e),r=Sr(t),o=Sr(n);i.sourceElement&&i.sourceElement.bpmnElement!==Er(t)&&(i.sourceElement=t&&r),i.targetElement&&i.targetElement.bpmnElement!==Er(n)&&(i.targetElement=n&&o)},Um.prototype.updateDiParent=function(e,t){if(t&&!xr(t,"bpmndi:BPMNPlane")&&(t=t.$parent),e.$parent!==t){var n=(t||e.$parent).get("planeElement");t?(n.push(e),e.$parent=t):(wt(n,e),e.$parent=null)}},Um.prototype.getLaneSet=function(e){var t,n;return xr(e,"bpmn:Lane")?((t=e.childLaneSet)||(t=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=t,t.$parent=e),t):(xr(e,"bpmn:Participant")&&(e=e.processRef),(t=(n=e.get("laneSets"))[0])||((t=this._bpmnFactory.create("bpmn:LaneSet")).$parent=e,n.push(t)),t)},Um.prototype.updateSemanticParent=function(e,t,n){var i,r=this._translate;if(e.$parent!==t&&(!xr(e,"bpmn:DataInput")&&!xr(e,"bpmn:DataOutput")||(xr(t,"bpmn:Participant")&&"processRef"in t&&(t=t.processRef),!("ioSpecification"in t)||t.ioSpecification!==e.$parent))){if(xr(e,"bpmn:Lane"))t&&(t=this.getLaneSet(t)),i="lanes";else if(xr(e,"bpmn:FlowElement")){if(t)if(xr(t,"bpmn:Participant"))t=t.processRef;else if(xr(t,"bpmn:Lane"))do{t=t.$parent.$parent}while(xr(t,"bpmn:Lane"));i="flowElements"}else if(xr(e,"bpmn:Artifact")){for(;t&&!xr(t,"bpmn:Process")&&!xr(t,"bpmn:SubProcess")&&!xr(t,"bpmn:Collaboration");){if(xr(t,"bpmn:Participant")){t=t.processRef;break}t=t.$parent}i="artifacts"}else if(xr(e,"bpmn:MessageFlow"))i="messageFlows";else if(xr(e,"bpmn:Participant")){i="participants";var o,a=e.processRef;a&&(o=function(e){for(;e&&!xr(e,"bpmn:Definitions");)e=e.$parent;return e}(e.$parent||t),e.$parent&&(wt(o.get("rootElements"),a),a.$parent=null),t&&(Et(o.get("rootElements"),a),a.$parent=o))}else xr(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":xr(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(r("no parent for {element} in {parent}",{element:e.id,parent:t.id}));var s;if(e.$parent&&wt(s=e.$parent.get(i),e),t?((s=t.get(i)).push(e),e.$parent=t):e.$parent=null,n){var c=n.get(i);wt(s,e),t&&(c||(c=[],t.set(i,c)),c.push(e))}}},Um.prototype.updateConnectionWaypoints=function(e){Sr(e).set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))},Um.prototype.updateConnection=function(e){var t,n=e.connection,i=Er(n),r=n.source,o=Er(r),a=n.target,s=Er(n.target);if(xr(i,"bpmn:DataAssociation"))xr(i,"bpmn:DataInputAssociation")?(i.get("sourceRef")[0]=o,t=e.parent||e.newParent||s,this.updateSemanticParent(i,s,t)):xr(i,"bpmn:DataOutputAssociation")&&(t=e.parent||e.newParent||o,this.updateSemanticParent(i,o,t),i.targetRef=s);else{var c=xr(i,"bpmn:SequenceFlow");i.sourceRef!==o&&(c&&(wt(i.sourceRef&&i.sourceRef.get("outgoing"),i),o&&o.get("outgoing")&&o.get("outgoing").push(i)),i.sourceRef=o),i.targetRef!==s&&(c&&(wt(i.targetRef&&i.targetRef.get("incoming"),i),s&&s.get("incoming")&&s.get("incoming").push(i)),i.targetRef=s)}this.updateConnectionWaypoints(n),this.updateDiConnection(n,r,a)},Um.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label},i(Km,Vn),Km.$inject=["bpmnFactory","moddle","translate"],Km.prototype.baseCreate=Vn.prototype.create,Km.prototype.create=function(e,t){if("label"===e){var n=t.di||this._bpmnFactory.createDiLabel();return this.baseCreate(e,G({type:"label",di:n},co,t))}return this.createBpmnElement(e,t)},Km.prototype.createBpmnElement=function(e,t){var n,i,r,o=this._translate,a=(t=t||{}).businessObject,s=t.di;if(!a){if(!t.type)throw new Error(o("no shape type specified"));yr(a=this._bpmnFactory.create(t.type))}if(!wr(s,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])){var c=G(s||{},{id:a.id+"_di"});s="root"===e?this._bpmnFactory.createDiPlane(a,c):"connection"===e?this._bpmnFactory.createDiEdge(a,c):this._bpmnFactory.createDiShape(a,c)}return xr(a,"bpmn:Group")&&(t=G({isFrame:!0},t)),function(e,t,n){w(n,(function(n){void 0!==t[n]&&Ym(e,t,n)}))}(a,t,["processRef","isInterrupting","associationDirection","isForCompensation"]),t.isExpanded&&Ym(s,t,"isExpanded"),xr(a,"bpmn:SubProcess")&&(t.collapsed=!Nr(a,s)),xr(a,"bpmn:ExclusiveGateway")&&(s.isMarkerVisible=!0),t.eventDefinitionType&&(i=a.get("eventDefinitions")||[],r=this._bpmnFactory.create(t.eventDefinitionType,t.eventDefinitionAttrs),"bpmn:ConditionalEventDefinition"===t.eventDefinitionType&&(r.condition=this._bpmnFactory.create("bpmn:FormalExpression")),i.push(r),r.$parent=a,a.eventDefinitions=i,delete t.eventDefinitionType),n=this.getDefaultSize(a,s),t=G({id:a.id},n,t,{businessObject:a,di:s}),this.baseCreate(e,t)},Km.prototype.getDefaultSize=function(e,t){var n=Er(e);return t=t||Sr(e),xr(n,"bpmn:SubProcess")?Nr(n,t)?{width:350,height:200}:{width:100,height:80}:xr(n,"bpmn:Task")?{width:100,height:80}:xr(n,"bpmn:Gateway")?{width:50,height:50}:xr(n,"bpmn:Event")?{width:36,height:36}:xr(n,"bpmn:Participant")?Nr(n,t)?{width:600,height:250}:{width:400,height:60}:xr(n,"bpmn:Lane")?{width:400,height:100}:xr(n,"bpmn:DataObjectReference")?{width:36,height:50}:xr(n,"bpmn:DataStoreReference")?{width:50,height:50}:xr(n,"bpmn:TextAnnotation")?{width:100,height:30}:xr(n,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}},Km.prototype.createParticipantShape=function(e){return d(e)||(e={isExpanded:e}),!1!==(e=G({type:"bpmn:Participant"},e||{})).isExpanded&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)},Xm.$inject=["modeling","canvas"],Xm.prototype.preExecute=function(e){var t=this._modeling,n=e.elements,i=e.alignment;w(n,(function(e){var n={x:0,y:0};i.left?n.x=i.left-e.x:i.right?n.x=i.right-e.width-e.x:i.center?n.x=i.center-Math.round(e.width/2)-e.x:i.top?n.y=i.top-e.y:i.bottom?n.y=i.bottom-e.height-e.y:i.middle&&(n.y=i.middle-Math.round(e.height/2)-e.y),t.moveElements([e],n,e.parent)}))},Xm.prototype.postExecute=function(e){},Zm.$inject=["modeling"],Zm.prototype.preExecute=function(e){var t=e.source;if(!t)throw new Error("source required");var n=e.target||t.parent,i=e.shape,r=e.hints||{};i=e.shape=this._modeling.createShape(i,e.position,n,{attach:r.attach}),e.shape=i},Zm.prototype.postExecute=function(e){var t,n,i=e.hints||{};t=e.source,n=e.shape,P(t.outgoing,(function(e){return e.target===n}))||(i.connectionTarget===e.source?this._modeling.connect(e.shape,e.source,e.connection):this._modeling.connect(e.source,e.shape,e.connection))},Qm.$inject=["canvas","layouter"],Qm.prototype.execute=function(e){var t=e.connection,n=e.source,i=e.target,r=e.parent,o=e.parentIndex,a=e.hints;if(!n||!i)throw new Error("source and target required");if(!r)throw new Error("parent required");return t.source=n,t.target=i,t.waypoints||(t.waypoints=this._layouter.layoutConnection(t,a)),this._canvas.addConnection(t,r,o),t},Qm.prototype.revert=function(e){var t=e.connection;return this._canvas.removeConnection(t),t.source=null,t.target=null,t};var Jm=Math.round;function ef(e){this._modeling=e}function tf(e){return!!e.waypoints}ef.$inject=["modeling"],ef.prototype.preExecute=function(e){var t=e.elements,n=e.parent,i=e.parentIndex,r=e.position,o=e.hints,a=this._modeling;w(t,(function(e){m(e.x)||(e.x=0),m(e.y)||(e.y=0)}));var s=vt(x(t,(function(e){return!e.hidden})));w(t,(function(e){tf(e)&&(e.waypoints=M(e.waypoints,(function(e){return{x:Jm(e.x-s.x-s.width/2+r.x),y:Jm(e.y-s.y-s.height/2+r.y)}}))),G(e,{x:Jm(e.x-s.x-s.width/2+r.x),y:Jm(e.y-s.y-s.height/2+r.y)})}));var c=ut(t),l={};w(t,(function(e){if(tf(e))l[e.id]=m(i)?a.createConnection(l[e.source.id],l[e.target.id],i,e,e.parent||n,o):a.createConnection(l[e.source.id],l[e.target.id],e,e.parent||n,o);else{var t=G({},o);-1===c.indexOf(e)&&(t.autoResize=!1),l[e.id]=m(i)?a.createShape(e,q(e,["x","y","width","height"]),e.parent||n,i,t):a.createShape(e,q(e,["x","y","width","height"]),e.parent||n,t)}})),e.elements=k(l)};var nf=Math.round;function rf(e){this._canvas=e}function of(e){rf.call(this,e)}rf.$inject=["canvas"],rf.prototype.execute=function(e){var t=e.shape,n=e.position,i=e.parent,r=e.parentIndex;if(!i)throw new Error("parent required");if(!n)throw new Error("position required");return void 0!==n.width?G(t,n):G(t,{x:n.x-nf(t.width/2),y:n.y-nf(t.height/2)}),this._canvas.addShape(t,i,r),t},rf.prototype.revert=function(e){var t=e.shape;return this._canvas.removeShape(t),t},i(of,rf),of.$inject=["canvas"];var af=rf.prototype.execute;of.prototype.execute=function(e){var t=e.shape;return function(e){["width","height"].forEach((function(t){void 0===e[t]&&(e[t]=0)}))}(t),t.labelTarget=e.labelTarget,af.call(this,e)};var sf=rf.prototype.revert;function cf(e,t){this._canvas=e,this._modeling=t}function lf(e,t){this._modeling=e,this._elementRegistry=t}function pf(e,t){this._canvas=e,this._modeling=t}function uf(e){this._modeling=e}of.prototype.revert=function(e){return e.shape.labelTarget=null,sf.call(this,e)},cf.$inject=["canvas","modeling"],cf.prototype.execute=function(e){var t=e.connection,n=t.parent;return e.parent=n,e.parentIndex=St(n.children,t),e.source=t.source,e.target=t.target,this._canvas.removeConnection(t),t.source=null,t.target=null,t},cf.prototype.revert=function(e){var t=e.connection,n=e.parent,i=e.parentIndex;return t.source=e.source,t.target=e.target,Et(n.children,t,i),this._canvas.addConnection(t,n),t},lf.$inject=["modeling","elementRegistry"],lf.prototype.postExecute=function(e){var t=this._modeling,n=this._elementRegistry;w(e.elements,(function(e){n.get(e.id)&&(e.waypoints?t.removeConnection(e):t.removeShape(e))}))},pf.$inject=["canvas","modeling"],pf.prototype.preExecute=function(e){var t=this._modeling,n=e.shape;gm(n.incoming,(function(e){t.removeConnection(e,{nested:!0})})),gm(n.outgoing,(function(e){t.removeConnection(e,{nested:!0})})),gm(n.children,(function(e){e.waypoints?t.removeConnection(e,{nested:!0}):t.removeShape(e,{nested:!0})}))},pf.prototype.execute=function(e){var t=this._canvas,n=e.shape,i=n.parent;return e.oldParent=i,e.oldParentIndex=St(i.children,n),t.removeShape(n),n},pf.prototype.revert=function(e){var t=this._canvas,n=e.shape,i=e.oldParent,r=e.oldParentIndex;return Et(i.children,n,r),t.addShape(n,i),n},uf.$inject=["modeling"];var hf={x:"y",y:"x"};function df(e,t){this._layouter=e,this._canvas=t}function mf(){}function ff(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function vf(e){this._modeling=e}function gf(e){this._helper=new vf(e)}function yf(e){this._modeling=e,this._helper=new vf(e)}function bf(e){this._modeling=e}function _f(e){return e.original||e}function xf(e,t){this._modeling=e,this._rules=t}function wf(e){this._modeling=e}function Ef(e){this._modeling=e}function Sf(e){return G({},e)}function Cf(e){switch(e){case"n":return"y";case"w":return"x";case"s":return"y";case"e":return"x"}}function Pf(e,t,n){var i=Cf(n);return/e|s/.test(n)?e[i]>t:/n|w/.test(n)?e[i]<t:void 0}function Mf(e,t){return-1!==e.indexOf(t)}function Rf(e){this._modeling=e}function Tf(e){var t={};return w(e,(function(e){t[e.id]=e.hidden,e.children&&(t=G({},t,Tf(e.children)))})),t}function kf(e,t){var n=[];return w(e,(function(e){e.hidden=t,n=n.concat(e),e.children&&(n=n.concat(kf(e.children,e.collapsed||t)))})),n}function Af(e,t){var n=[];return w(e,(function(e){e.hidden=t[e.id],n=n.concat(e),e.children&&(n=n.concat(Af(e.children,t)))})),n}function zf(e){this._modeling=e}function Of(e,t){return wt(e&&e.attachers,t)}function Df(e,t,n){if(e){var i=e.attachers;i||(e.attachers=i=[]),Et(i,t,n)}}function Bf(){}function jf(e,t,n){this._eventBus=e,this._elementFactory=t,this._commandStack=n;var i=this;e.on("diagram.init",(function(){i.registerHandlers(n)}))}function Nf(e){this._elementRegistry=e}function Lf(e,t){w(t,(function(t,n){e.set(n,t)}))}uf.prototype.preExecute=function(e){var t=this._modeling,n=e.groups,i=e.axis,r=e.dimension;function o(e,t){e.range.min=Math.min(t[i],e.range.min),e.range.max=Math.max(t[i]+t[r],e.range.max)}function a(e){return e[i]+e[r]/2}function s(e){return e.length-1}function c(e){return e.max-e.min}var l,p,u=n[0],h=s(n),d=n[h],m=0;w(n,(function(e,l){var p,u,d;e.elements.length<2?l&&l!==n.length-1&&(o(e,e.elements[0]),m+=c(e.range)):(u=(p=D(e.elements,i))[0],l===h&&(u=p[s(p)]),d=a(u),e.range=null,w(p,(function(n){!function(e,n){var r={y:0};r[i]=e-a(n),r[i]&&(r[hf[i]]=0,t.moveElements([n],r,n.parent))}(d,n),null!==e.range?o(e,n):e.range={min:n[i],max:n[i]+n[r]}})),l&&l!==n.length-1&&(m+=c(e.range)))})),p=Math.abs(d.range.min-u.range.max),(l=Math.round((p-m)/(n.length-1)))<n.length-1||w(n,(function(e,o){var a,s={};e!==u&&e!==d&&(a=n[o-1],e.range.max=0,w(e.elements,(function(n,o){s[hf[i]]=0,s[i]=a.range.max-n[i]+l,e.range.min!==n[i]&&(s[i]+=n[i]-e.range.min),s[i]&&t.moveElements([n],s,n.parent),e.range.max=Math.max(n[i]+n[r],o?e.range.max:0)})))}))},uf.prototype.postExecute=function(e){},df.$inject=["layouter","canvas"],df.prototype.execute=function(e){var t=e.connection;return G(e,{oldWaypoints:t.waypoints}),t.waypoints=this._layouter.layoutConnection(t,e.hints),t},df.prototype.revert=function(e){var t=e.connection;return t.waypoints=e.oldWaypoints,t},mf.prototype.execute=function(e){var t=e.connection,n=e.delta,i=e.newParent||t.parent,r=e.newParentIndex,o=t.parent;return e.oldParent=o,e.oldParentIndex=wt(o.children,t),Et(i.children,t,r),t.parent=i,w(t.waypoints,(function(e){e.x+=n.x,e.y+=n.y,e.original&&(e.original.x+=n.x,e.original.y+=n.y)})),t},mf.prototype.revert=function(e){var t=e.connection,n=t.parent,i=e.oldParent,r=e.oldParentIndex,o=e.delta;return wt(n.children,t),Et(i.children,t,r),t.parent=i,w(t.waypoints,(function(e){e.x-=o.x,e.y-=o.y,e.original&&(e.original.x-=o.x,e.original.y-=o.y)})),t},ff.prototype.add=function(e,t){return this.addAll([e],t)},ff.prototype.addAll=function(e,t){return G(this,function(e,t,n){l(t)&&(t=!0),d(t)&&(n=t,t=!0);var i=bt((n=n||{}).allShapes),r=bt(n.allConnections),o=bt(n.enclosedElements),a=bt(n.enclosedConnections),s=bt(n.topLevel,t&&A(e,(function(e){return e.id})));function c(e){s[e.source.id]&&s[e.target.id]&&(s[e.id]=[e]),i[e.source.id]&&i[e.target.id]&&(a[e.id]=o[e.id]=e),r[e.id]=e}return mt(e,(function(e){if(o[e.id]=e,!e.waypoints)return i[e.id]=e,w(e.incoming,c),w(e.outgoing,c),e.children;a[e.id]=r[e.id]=e})),{allShapes:i,allConnections:r,topLevel:s,enclosedConnections:a,enclosedElements:o}}(e,!!t,this)),this},vf.prototype.moveRecursive=function(e,t,n){return e?this.moveClosure(this.getClosure(e),t,n):[]},vf.prototype.moveClosure=function(e,t,n,i,r){var o=this._modeling,a=e.allShapes,s=e.allConnections,c=e.enclosedConnections,l=e.topLevel,p=!1;r&&r.parent===n&&(p=!0),w(a,(function(e){o.moveShape(e,t,l[e.id]&&!p&&n,{recurse:!1,layout:!1})})),w(s,(function(e){var i=!!a[e.source.id],r=!!a[e.target.id];c[e.id]&&i&&r?o.moveConnection(e,t,l[e.id]&&!p&&n):o.layoutConnection(e,{connectionStart:i&&Bh(e,e.source,t),connectionEnd:r&&jh(e,e.target,t)})}))},vf.prototype.getClosure=function(e){return(new ff).addAll(e,!0)},gf.$inject=["modeling"],gf.prototype.preExecute=function(e){e.closure=this._helper.getClosure(e.shapes)},gf.prototype.postExecute=function(e){var t,n=e.hints;n&&n.primaryShape&&(t=n.primaryShape,n.oldParent=t.parent),this._helper.moveClosure(e.closure,e.delta,e.newParent,e.newHost,t)},yf.$inject=["modeling"],yf.prototype.execute=function(e){var t=e.shape,n=e.delta,i=e.newParent||t.parent,r=e.newParentIndex,o=t.parent;return e.oldBounds=q(t,["x","y","width","height"]),e.oldParent=o,e.oldParentIndex=wt(o.children,t),Et(i.children,t,r),G(t,{parent:i,x:t.x+n.x,y:t.y+n.y}),t},yf.prototype.postExecute=function(e){var t=e.shape,n=e.delta,i=e.hints,r=this._modeling;!1!==i.layout&&(w(t.incoming,(function(e){r.layoutConnection(e,{connectionEnd:jh(e,t,n)})})),w(t.outgoing,(function(e){r.layoutConnection(e,{connectionStart:Bh(e,t,n)})}))),!1!==i.recurse&&this.moveChildren(e)},yf.prototype.revert=function(e){var t=e.shape,n=e.oldParent,i=e.oldParentIndex,r=e.delta;return Et(n.children,t,i),G(t,{parent:n,x:t.x-r.x,y:t.y-r.y}),t},yf.prototype.moveChildren=function(e){var t=e.delta,n=e.shape;this._helper.moveRecursive(n.children,t,null)},yf.prototype.getNewParent=function(e){return e.newParent||e.shape.parent},bf.$inject=["modeling"],bf.prototype.execute=function(e){var t=e.newSource,n=e.newTarget,i=e.connection,r=e.dockingOrPoints;if(!t&&!n)throw new Error("newSource or newTarget required");return h(r)&&(e.oldWaypoints=i.waypoints,i.waypoints=r),t&&(e.oldSource=i.source,i.source=t),n&&(e.oldTarget=i.target,i.target=n),i},bf.prototype.postExecute=function(e){var t=e.connection,n=e.newSource,i=e.newTarget,r=e.dockingOrPoints,o=e.hints||{},a={};o.connectionStart&&(a.connectionStart=o.connectionStart),o.connectionEnd&&(a.connectionEnd=o.connectionEnd),!1!==o.layoutConnection&&(!n||i&&"source"!==o.docking||(a.connectionStart=a.connectionStart||_f(h(r)?r[0]:r)),!i||n&&"target"!==o.docking||(a.connectionEnd=a.connectionEnd||_f(h(r)?r[r.length-1]:r)),o.newWaypoints&&(a.waypoints=o.newWaypoints),this._modeling.layoutConnection(t,a))},bf.prototype.revert=function(e){var t=e.oldSource,n=e.oldTarget,i=e.oldWaypoints,r=e.connection;return t&&(r.source=t),n&&(r.target=n),i&&(r.waypoints=i),r},xf.$inject=["modeling","rules"],xf.prototype.preExecute=function(e){var t,n=this,i=this._modeling,r=this._rules,o=e.oldShape,a=e.newData,s=e.hints||{};function c(e,t,n){return r.allowed("connection.reconnect",{connection:n,source:e,target:t})}var l,p={x:a.x,y:a.y},u={x:o.x,y:o.y,width:o.width,height:o.height};t=e.newShape=e.newShape||n.createShape(a,p,o.parent,s),o.host&&i.updateAttachment(t,o.host),!1!==s.moveChildren&&(l=o.children.slice(),i.moveElements(l,{x:0,y:0},t,s));var h=o.incoming.slice(),d=o.outgoing.slice();w(h,(function(e){c(e.source,t,e)&&n.reconnectEnd(e,t,Dh(e,t,u),s)})),w(d,(function(e){var i=e.target;c(t,i,e)&&n.reconnectStart(e,t,Oh(e,t,u),s)}))},xf.prototype.postExecute=function(e){var t=e.oldShape;this._modeling.removeShape(t)},xf.prototype.execute=function(e){},xf.prototype.revert=function(e){},xf.prototype.createShape=function(e,t,n,i){return this._modeling.createShape(e,t,n,i)},xf.prototype.reconnectStart=function(e,t,n,i){this._modeling.reconnectStart(e,t,n,i)},xf.prototype.reconnectEnd=function(e,t,n,i){this._modeling.reconnectEnd(e,t,n,i)},wf.$inject=["modeling"],wf.prototype.execute=function(e){var t=e.shape,n=e.newBounds,i=e.minBounds;if(void 0===n.x||void 0===n.y||void 0===n.width||void 0===n.height)throw new Error("newBounds must have {x, y, width, height} properties");if(i&&(n.width<i.width||n.height<i.height))throw new Error("width and height cannot be less than minimum height and width");if(!i&&n.width<10||n.height<10)throw new Error("width and height cannot be less than 10px");return e.oldBounds={width:t.width,height:t.height,x:t.x,y:t.y},G(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},wf.prototype.postExecute=function(e){var t=this._modeling,n=e.shape,i=e.oldBounds;!1!==(e.hints||{}).layout&&(w(n.incoming,(function(e){t.layoutConnection(e,{connectionEnd:Dh(e,n,i)})})),w(n.outgoing,(function(e){t.layoutConnection(e,{connectionStart:Oh(e,n,i)})})))},wf.prototype.revert=function(e){var t=e.shape,n=e.oldBounds;return G(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},Ef.$inject=["modeling"],Ef.prototype.preExecute=function(e){var t=e.delta,n=e.direction,i=e.movingShapes,r=e.resizingShapes,o=e.start,a={};this.moveShapes(i,t),w(r,(function(e){a[e.id]=function(e){return{x:e.x,y:e.y,height:e.height,width:e.width}}(e)})),this.resizeShapes(r,t,n),this.updateConnectionWaypoints(function(e,t){var n=[];return w(e.concat(t),(function(i){var r=i.incoming,o=i.outgoing;w(r.concat(o),(function(i){var r=i.source,o=i.target;(Mm(e,r)||Mm(e,o)||Mm(t,r)||Mm(t,o))&&(Mm(n,i)||n.push(i))}))})),n}(i,r),t,n,o,i,r,a)},Ef.prototype.execute=function(){},Ef.prototype.revert=function(){},Ef.prototype.moveShapes=function(e,t){var n=this;w(e,(function(e){n._modeling.moveShape(e,t,null,{autoResize:!1,layout:!1,recurse:!1})}))},Ef.prototype.resizeShapes=function(e,t,n){var i=this;w(e,(function(e){var r=function(e,t,n){var i=e.x,r=e.y,o=e.width,a=e.height,s=n.x,c=n.y;switch(t){case"n":return{x:i,y:r+c,width:o,height:a-c};case"s":return{x:i,y:r,width:o,height:a+c};case"w":return{x:i+s,y:r,width:o-s,height:a};case"e":return{x:i,y:r,width:o+s,height:a};default:throw new Error("unknown direction: "+t)}}(e,n,t);i._modeling.resizeShape(e,r,null,{attachSupport:!1,autoResize:!1,layout:!1})}))},Ef.prototype.updateConnectionWaypoints=function(e,t,n,i,r,o,a){var s=this,c=r.concat(o);w(e,(function(e){var l=e.source,p=e.target,u=function(e){return M(e.waypoints,(function(e){return(e=Sf(e)).original&&(e.original=Sf(e.original)),e}))}(e),h=Cf(n),d={labelBehavior:!1};Mf(c,l)&&Mf(c,p)?(u=M(u,(function(e){return Pf(e,i,n)&&(e[h]=e[h]+t[h]),e.original&&Pf(e.original,i,n)&&(e.original[h]=e.original[h]+t[h]),e})),s._modeling.updateWaypoints(e,u,{labelBehavior:!1})):(Mf(c,l)||Mf(c,p))&&(Mf(r,l)?d.connectionStart=Bh(e,l,t):Mf(r,p)?d.connectionEnd=jh(e,p,t):Mf(o,l)?d.connectionStart=Oh(e,l,a[l.id]):Mf(o,p)&&(d.connectionEnd=Dh(e,p,a[p.id])),s._modeling.layoutConnection(e,d))}))},Rf.$inject=["modeling"],Rf.prototype.execute=function(e){var t=e.shape,n=t.children;e.oldChildrenVisibility=Tf(n),t.collapsed=!t.collapsed;var i=kf(n,t.collapsed);return[t].concat(i)},Rf.prototype.revert=function(e){var t=e.shape,n=e.oldChildrenVisibility,i=Af(t.children,n);return t.collapsed=!t.collapsed,[t].concat(i)},zf.$inject=["modeling"],zf.prototype.execute=function(e){var t=e.shape,n=e.newHost,i=t.host;return e.oldHost=i,e.attacherIdx=Of(i,t),Df(n,t),t.host=n,t},zf.prototype.revert=function(e){var t=e.shape,n=e.newHost,i=e.oldHost,r=e.attacherIdx;return t.host=i,Of(n,t),Df(i,t,r),t},Bf.prototype.execute=function(e){var t=e.connection,n=e.newWaypoints;return e.oldWaypoints=t.waypoints,t.waypoints=n,t},Bf.prototype.revert=function(e){var t=e.connection,n=e.oldWaypoints;return t.waypoints=n,t},jf.$inject=["eventBus","elementFactory","commandStack"],jf.prototype.getHandlers=function(){return{"shape.append":Zm,"shape.create":rf,"shape.delete":pf,"shape.move":yf,"shape.resize":wf,"shape.replace":xf,"shape.toggleCollapse":Rf,spaceTool:Ef,"label.create":of,"connection.create":Qm,"connection.delete":cf,"connection.move":mf,"connection.layout":df,"connection.updateWaypoints":Bf,"connection.reconnect":bf,"elements.create":ef,"elements.move":gf,"elements.delete":lf,"elements.distribute":uf,"elements.align":Xm,"element.updateAttachment":zf}},jf.prototype.registerHandlers=function(e){w(this.getHandlers(),(function(t,n){e.registerHandler(n,t)}))},jf.prototype.moveShape=function(e,t,n,i,r){"object"==typeof i&&(r=i,i=null);var o={shape:e,delta:t,newParent:n,newParentIndex:i,hints:r||{}};this._commandStack.execute("shape.move",o)},jf.prototype.updateAttachment=function(e,t){var n={shape:e,newHost:t};this._commandStack.execute("element.updateAttachment",n)},jf.prototype.moveElements=function(e,t,n,i){var r,o=(i=i||{}).attach,a=n;!0===o?(r=n,a=n.parent):!1===o&&(r=null);var s={shapes:e,delta:t,newParent:a,newHost:r,hints:i};this._commandStack.execute("elements.move",s)},jf.prototype.moveConnection=function(e,t,n,i,r){"object"==typeof i&&(r=i,i=void 0);var o={connection:e,delta:t,newParent:n,newParentIndex:i,hints:r||{}};this._commandStack.execute("connection.move",o)},jf.prototype.layoutConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.layout",n)},jf.prototype.createConnection=function(e,t,n,i,r,o){"object"==typeof n&&(o=r,r=i,i=n,n=void 0);var a={source:e,target:t,parent:r,parentIndex:n,connection:i=this._create("connection",i),hints:o};return this._commandStack.execute("connection.create",a),a.connection},jf.prototype.createShape=function(e,t,n,i,r){"number"!=typeof i&&(r=i,i=void 0);var o,a,s=(r=r||{}).attach;e=this._create("shape",e),s?(o=n.parent,a=n):o=n;var c={position:t,shape:e,parent:o,parentIndex:i,host:a,hints:r};return this._commandStack.execute("shape.create",c),c.shape},jf.prototype.createElements=function(e,t,n,i,r){h(e)||(e=[e]),"number"!=typeof i&&(r=i,i=void 0);var o={position:t,elements:e,parent:n,parentIndex:i,hints:r=r||{}};return this._commandStack.execute("elements.create",o),o.elements},jf.prototype.createLabel=function(e,t,n,i){n=this._create("label",n);var r={labelTarget:e,position:t,parent:i||e.parent,shape:n};return this._commandStack.execute("label.create",r),r.shape},jf.prototype.appendShape=function(e,t,n,i,r){r=r||{};var o={source:e,position:n,target:i,shape:t=this._create("shape",t),connection:r.connection,connectionParent:r.connectionParent,hints:r};return this._commandStack.execute("shape.append",o),o.shape},jf.prototype.removeElements=function(e){var t={elements:e};this._commandStack.execute("elements.delete",t)},jf.prototype.distributeElements=function(e,t,n){var i={groups:e,axis:t,dimension:n};this._commandStack.execute("elements.distribute",i)},jf.prototype.removeShape=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.delete",n)},jf.prototype.removeConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.delete",n)},jf.prototype.replaceShape=function(e,t,n){var i={oldShape:e,newData:t,hints:n||{}};return this._commandStack.execute("shape.replace",i),i.newShape},jf.prototype.alignElements=function(e,t){var n={elements:e,alignment:t};this._commandStack.execute("elements.align",n)},jf.prototype.resizeShape=function(e,t,n,i){var r={shape:e,newBounds:t,minBounds:n,hints:i};this._commandStack.execute("shape.resize",r)},jf.prototype.createSpace=function(e,t,n,i,r){var o={delta:n,direction:i,movingShapes:e,resizingShapes:t,start:r};this._commandStack.execute("spaceTool",o)},jf.prototype.updateWaypoints=function(e,t,n){var i={connection:e,newWaypoints:t,hints:n||{}};this._commandStack.execute("connection.updateWaypoints",i)},jf.prototype.reconnect=function(e,t,n,i,r){var o={connection:e,newSource:t,newTarget:n,dockingOrPoints:i,hints:r||{}};this._commandStack.execute("connection.reconnect",o)},jf.prototype.reconnectStart=function(e,t,n,i){i||(i={}),this.reconnect(e,t,e.target,n,G(i,{docking:"source"}))},jf.prototype.reconnectEnd=function(e,t,n,i){i||(i={}),this.reconnect(e,e.source,t,n,G(i,{docking:"target"}))},jf.prototype.connect=function(e,t,n,i){return this.createConnection(e,t,n||{},e.parent,i)},jf.prototype._create=function(e,t){return t instanceof jn?t:this._elementFactory.create(e,t)},jf.prototype.toggleCollapse=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.toggleCollapse",n)},Nf.$inject=["elementRegistry"],Nf.prototype.execute=function(e){var t=e.element,n=e.moddleElement,i=e.properties;if(!n)throw new Error("<moddleElement> required");var r=e.changed||this.getVisualReferences(n).concat(t),o=e.oldProperties||function(e,t){return S(t,(function(t,n){return t[n]=e.get(n),t}),{})}(n,R(i));return Lf(n,i),e.oldProperties=o,e.changed=r,r},Nf.prototype.revert=function(e){var t=e.oldProperties,n=e.moddleElement,i=e.changed;return Lf(n,t),i},Nf.prototype.getVisualReferences=function(e){var t=this._elementRegistry;return xr(e,"bpmn:DataObject")?function(e,t){return t.filter((function(t){return xr(t,"bpmn:DataObjectReference")&&Er(t).dataObjectRef===e}))}(e,t):[]};var If="default",Ff="id",Hf="di",Vf={width:0,height:0};function $f(e,t,n,i,r){this._elementRegistry=e,this._moddle=t,this._translate=n,this._modeling=i,this._textRenderer=r}function Gf(e,t){return Ff in e&&e.id!==t.id}function Wf(e,t){var n=e.businessObject,i=Sr(e);w(t,(function(e,t){t!==Hf?n.set(t,e):i&&function(e,t){w(t,(function(t,n){e.set(n,t)}))}(i,e)}))}$f.$inject=["elementRegistry","moddle","translate","modeling","textRenderer"],$f.prototype.execute=function(e){var t=e.element,n=[t],i=this._translate;if(!t)throw new Error(i("element required"));var r=this._elementRegistry,o=this._moddle.ids,a=t.businessObject,s=function(e){var t=G({},e);return Uf.forEach((function(n){n in e&&(t[n]=Er(t[n]))})),t}(e.properties),c=e.oldProperties||function(e,t){var n=R(t),i=e.businessObject,r=Sr(e);return S(n,(function(e,n){return e[n]=n!==Hf?i.get(n):function(e,t){return S(t,(function(t,n){return t[n]=e&&e.get(n),t}),{})}(r,R(t.di)),e}),{})}(t,s);return Gf(s,a)&&(o.unclaim(a.id),r.updateId(t,s.id),o.claim(s.id,a)),If in s&&(s.default&&n.push(r.get(s.default.id)),a.default&&n.push(r.get(a.default.id))),Wf(t,s),e.oldProperties=c,e.changed=n,n},$f.prototype.postExecute=function(e){var t=e.element.label,n=t&&Er(t).name;if(n){var i=this._textRenderer.getExternalLabelBounds(t,n);this._modeling.resizeShape(t,i,Vf)}},$f.prototype.revert=function(e){var t=e.element,n=e.properties,i=e.oldProperties,r=t.businessObject,o=this._elementRegistry,a=this._moddle.ids;return Wf(t,i),Gf(n,r)&&(a.unclaim(n.id),o.updateId(t,i.id),a.claim(i.id,r)),e.changed};var Uf=["default"];function qf(e,t){this._canvas=e,this._modeling=t}function Kf(e,t){this._modeling=e,this._spaceTool=t}function Yf(e,t){this._modeling=e,this._translate=t}function Xf(e,t){this._modeling=e,this._spaceTool=t}qf.$inject=["canvas","modeling"],qf.prototype.execute=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=t.getRootElement(),o=r.businessObject,a=o.$parent,s=Sr(r);t.setRootElement(n),t.removeRootElement(r),Et(a.rootElements,i),i.$parent=a,wt(a.rootElements,o),o.$parent=null,r.di=null,s.bpmnElement=i,n.di=s,e.oldRoot=r},qf.prototype.revert=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=e.oldRoot,o=r.businessObject,a=i.$parent,s=Sr(n);t.setRootElement(r),t.removeRootElement(n),wt(a.rootElements,i),i.$parent=null,Et(a.rootElements,o),o.$parent=a,n.di=null,s.bpmnElement=o,r.di=s},Kf.$inject=["modeling","spaceTool"],Kf.prototype.preExecute=function(e){var t=this._spaceTool,n=this._modeling,i=e.shape,r=e.location,o=_p(i),a=o===i,s=a?i:i.parent;bp(s).length||n.createShape({type:"bpmn:Lane"},{x:i.x+gp,y:i.y,width:i.width-gp,height:i.height},s);var c=[];mt(o,(function(e){return c.push(e),e.label&&c.push(e.label),e===i?[]:x(e.children,(function(e){return e!==i}))}));var l="top"===r?-120:120,p="top"===r?i.y:i.y+i.height,u=p+("top"===r?10:-10),h="top"===r?"n":"s",d=t.calculateAdjustments(c,"y",l,u);t.makeSpace(d.movingShapes,d.resizingShapes,{x:0,y:l},h,u),e.newLane=n.createShape({type:"bpmn:Lane"},{x:i.x+(a?gp:0),y:p-("top"===r?120:0),width:i.width-(a?gp:0),height:120},s)},Yf.$inject=["modeling","translate"],Yf.prototype.preExecute=function(e){var t=this._modeling,n=this._translate,i=e.shape,r=e.count,o=bp(i),a=o.length;if(a>r)throw new Error(n("more than {count} child lanes",{count:r}));var s,c,l,p,u,h=Math.round(i.height/r);for(u=0;u<r;u++)s=i.y+u*h,c=u===r-1?i.height-h*u:h,l={x:i.x+gp,y:s,width:i.width-gp,height:c},u<a?t.resizeShape(o[u],l):(p={type:"bpmn:Lane"},t.createShape(p,l,i))},Xf.$inject=["modeling","spaceTool"],Xf.prototype.preExecute=function(e){var t=e.shape,n=e.newBounds;!1!==e.balanced?this.resizeBalanced(t,n):this.resizeSpace(t,n)},Xf.prototype.resizeBalanced=function(e,t){var n=this._modeling,i=xp(e,t);n.resizeShape(e,t),i.forEach((function(e){n.resizeShape(e.shape,e.newBounds)}))},Xf.prototype.resizeSpace=function(e,t){var n,i,r,o,a,s=this._spaceTool,c=dn(e),l=pp(dn(t),c),p=_p(e),u=[],h=[];mt(p,(function(e){return u.push(e),(xr(e,"bpmn:Lane")||xr(e,"bpmn:Participant"))&&h.push(e),e.children})),(l.bottom||l.top)&&(n=l.bottom||l.top,i=e.y+(l.bottom?e.height:0)+(l.bottom?-10:10),r=l.bottom?"s":"n",o=l.top>0||l.bottom<0?-n:n,a=s.calculateAdjustments(u,"y",o,i),s.makeSpace(a.movingShapes,a.resizingShapes,{x:0,y:n},r)),(l.left||l.right)&&(n=l.right||l.left,i=e.x+(l.right?e.width:0)+(l.right?-10:100),r=l.right?"e":"w",o=l.left>0||l.right<0?-n:n,a=s.calculateAdjustments(h,"x",o,i),s.makeSpace(a.movingShapes,a.resizingShapes,{x:n,y:0},r))};var Zf="flowNodeRef",Qf="lanes";function Jf(e){this._elementRegistry=e}function ev(e){this._moddle=e}Jf.$inject=["elementRegistry"],Jf.prototype.computeUpdates=function(e,t){var n=[],i=[],r={},o=[];function a(e){-1===n.indexOf(e)&&(o.push(e),n.push(e))}function s(e){return e.parent?function(e){var t=_p(e);return r[t.id]||(r[t.id]=yp(t)),r[t.id]}(e).filter((function(t){return n=e,i=dn(t),r=n.x+n.width/2,o=n.y+n.height/2,r>i.left&&r<i.right&&o>i.top&&o<i.bottom;var n,i,r,o})).map((function(e){return e.businessObject})):[]}return t.forEach((function(e){var t=_p(e);t&&-1===n.indexOf(t)&&(t.children.filter((function(e){return xr(e,"bpmn:FlowNode")})).forEach(a),n.push(t))})),e.forEach(a),o.forEach((function(e){var t=e.businessObject,n=t.get(Qf).slice(),r=s(e);i.push({flowNode:t,remove:n,add:r})})),t.forEach((function(e){var t=e.businessObject;e.parent||t.get(Zf).forEach((function(e){i.push({flowNode:e,remove:[t],add:[]})}))})),i},Jf.prototype.execute=function(e){var t=e.updates;t||(t=e.updates=this.computeUpdates(e.flowNodeShapes,e.laneShapes)),t.forEach((function(e){var t=e.flowNode,n=t.get(Qf);e.remove.forEach((function(e){wt(n,e),wt(e.get(Zf),t)})),e.add.forEach((function(e){Et(n,e),Et(e.get(Zf),t)}))}))},Jf.prototype.revert=function(e){e.updates.forEach((function(e){var t=e.flowNode,n=t.get(Qf);e.add.forEach((function(e){wt(n,e),wt(e.get(Zf),t)})),e.remove.forEach((function(e){Et(n,e),Et(e.get(Zf),t)}))}))},ev.$inject=["moddle"],ev.prototype.execute=function(e){var t=this._moddle.ids,n=e.id,i=e.element;e.claiming?t.claim(n,i):t.unclaim(n)},ev.prototype.revert=function(e){var t=this._moddle.ids,n=e.id,i=e.element;e.claiming?t.unclaim(n):t.claim(n,i)};var tv={fill:void 0,stroke:void 0};function nv(e){this._commandStack=e,this._normalizeColor=function(e){if(e){if(v(e)){var t=function(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle="transparent",t.fillStyle=e,/^#[0-9a-fA-F]{6}$/.test(t.fillStyle)?t.fillStyle:null}(e);if(t)return t}throw new Error("invalid color value: "+e)}}}nv.$inject=["commandStack"],nv.prototype.postExecute=function(e){var t=e.elements,n=e.colors||tv,i=this,r={};"fill"in n&&G(r,{"background-color":this._normalizeColor(n.fill)}),"stroke"in n&&G(r,{"border-color":this._normalizeColor(n.stroke)}),w(t,(function(e){var t=function(e){return!!e.waypoints}(e)?q(r,["border-color"]):r;!function(e){"border-color"in e&&(e.stroke=e["border-color"]);"background-color"in e&&(e.fill=e["background-color"])}(t),e.labelTarget?i._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:Sr(e).label,properties:{color:r["background-color"]}}):i._commandStack.execute("element.updateProperties",{element:e,properties:{di:t}})}))};var iv={width:0,height:0};function rv(e,t,n){function i(e,t){var i=e.label||e,r=e.labelTarget||e;return function(e,t,n){var i=e.businessObject,r=Hr(i);r&&("categoryValueRef"===r?i.categoryValueRef.value=t:i[r]=t)}(i,t),function(e,t){if(!lo(e)){var i=Sr(e);t&&!i.label&&(i.label=n.create("bpmndi:BPMNLabel")),!t&&i.label&&(i.label=null)}}(e,t),[i,r]}this.preExecute=function(t){var n=t.element,i=n.businessObject,r=t.newLabel;if(!mo(n)&&lo(n)&&!po(n)&&!ov(r)){var o=ho(n);o={x:o.x,y:o.y+7},e.createLabel(n,o,{id:i.id+"_label",businessObject:i,di:n.di})}},this.execute=function(e){return e.oldLabel=Vr(e.element),i(e.element,e.newLabel)},this.revert=function(e){return i(e.element,e.oldLabel)},this.postExecute=function(n){var i=n.element,r=i.label||i,o=n.newLabel,a=n.newBounds,s=n.hints||{};if(mo(r)||xr(r,"bpmn:TextAnnotation"))if(mo(r)&&ov(o))!1!==s.removeShape&&e.removeShape(r,{unsetLabel:!1});else{var c=Vr(r);void 0===a&&(a=t.getExternalLabelBounds(r,c)),a&&e.resizeShape(r,a,iv)}}}function ov(e){return!e||!e.trim()}function av(e,t,n,i){jf.call(this,e,t,n),this._bpmnRules=i}function sv(){}rv.$inject=["modeling","textRenderer","bpmnFactory"],i(av,jf),av.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],av.prototype.getHandlers=function(){var e=jf.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=Nf,e["element.updateProperties"]=$f,e["canvas.updateRoot"]=qf,e["lane.add"]=Kf,e["lane.resize"]=Xf,e["lane.split"]=Yf,e["lane.updateRefs"]=Jf,e["id.updateClaim"]=ev,e["element.setColor"]=nv,e["element.updateLabel"]=rv,e},av.prototype.updateLabel=function(e,t,n,i){this._commandStack.execute("element.updateLabel",{element:e,newLabel:t,newBounds:n,hints:i||{}})},av.prototype.connect=function(e,t,n,i){var r=this._bpmnRules;if(n||(n=r.canConnect(e,t)),n)return this.createConnection(e,t,n,e.parent,i)},av.prototype.updateModdleProperties=function(e,t,n){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:n})},av.prototype.updateProperties=function(e,t){this._commandStack.execute("element.updateProperties",{element:e,properties:t})},av.prototype.resizeLane=function(e,t,n){this._commandStack.execute("lane.resize",{shape:e,newBounds:t,balanced:n})},av.prototype.addLane=function(e,t){var n={shape:e,location:t};return this._commandStack.execute("lane.add",n),n.newLane},av.prototype.splitLane=function(e,t){this._commandStack.execute("lane.split",{shape:e,count:t})},av.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"}),t={newRoot:e};return this._commandStack.execute("canvas.updateRoot",t),e},av.prototype.updateLaneRefs=function(e,t){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:t})},av.prototype.makeProcess=function(){var e={newRoot:this._create("root",{type:"bpmn:Process"})};this._commandStack.execute("canvas.updateRoot",e)},av.prototype.claimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t,claiming:!0})},av.prototype.unclaimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t})},av.prototype.setColor=function(e,t){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:t})},sv.prototype.layoutConnection=function(e,t){return[(t=t||{}).connectionStart||fn(t.source||e.source),t.connectionEnd||fn(t.target||e.target)]};var cv=Math.round,lv={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function pv(e,t,n){var i,r,o,a=vn(t,e,5),s=n.split(":")[0],c=cv((t.x-e.x)/2+e.x),l=cv((t.y-e.y)/2+e.y),p=(o=a,{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[s].test(o)),u=/h|r|l/.test(s),h=!1;return p?(i=u?{x:c,y:e.y}:{x:e.x,y:l},r=u?"h:h":"v:v"):(r=u?"h:v":"v:h",function(e,t){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[t].test(e)}(a,s)?u?(h=l===e.y,i={x:e.x+20*(/l/.test(s)?-1:1),y:h?l+20:l}):i={x:(h=c===e.x)?c+20:c,y:e.y+20*(/t/.test(s)?-1:1)}:i={x:c,y:l}),{waypoints:hv(e,i,r).concat(i),directions:r,turnNextDirections:h}}function uv(e){return e.split(":").reverse().join(":")}function hv(e,t,n){if(!function(e){return e&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e)}(n=n||"h:h"))throw new Error("unknown directions: <"+n+">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }");if(gv(n)){var i=function(e,t,n){return pv(e,t,n)}(e,t,n),r=function(e,t,n){var i=pv(t,e,uv(n));return{waypoints:i.waypoints.slice().reverse(),directions:uv(i.directions),turnNextDirections:i.turnNextDirections}}(e,t,n),o=function(e,t){var n=e.directions.split(":")[1],i=t.directions.split(":")[0];e.turnNextDirections&&(n="h"==n?"v":"h"),t.turnNextDirections&&(i="h"==i?"v":"h");var r=n+":"+i;return{waypoints:hv(e.waypoints[e.waypoints.length-1],t.waypoints[0],r),directions:r}}(i,r);return[].concat(i.waypoints,o.waypoints,r.waypoints)}return function(e,t,n){var i=cv((t.x-e.x)/2+e.x),r=cv((t.y-e.y)/2+e.y);if("h:v"===n)return[{x:t.x,y:e.y}];if("v:h"===n)return[{x:e.x,y:t.y}];if("h:h"===n)return[{x:i,y:e.y},{x:i,y:t.y}];if("v:v"===n)return[{x:e.x,y:r},{x:t.x,y:r}];throw new Error("invalid directions: can only handle varians of [hv]:[hv]")}(e,t,n)}function dv(e,t,n,i,r){var o=E(r&&r.preferredLayouts||[],"straight")[0]||"h:h",a=vn(e,t,lv[o]||0),s=function(e,t){if(gv(t))return t;switch(e){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return t}}(a,o);n=n||fn(e),i=i||fn(t);var c=s.split(":");return function(e,t,n){var i=hv(e,t,n);return i.unshift(e),i.push(t),bv(i)}(yv(n,e,c[0],function(e){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[e]}(a)),yv(i,t,c[1],a),s)}function mv(e,t,n,i,r,o){var a;return h(n)&&(r=n,o=i,n=fn(e),i=fn(t)),r=r||[],(a=-1!==(o=G({preferredLayouts:[]},o)).preferredLayouts.indexOf("straight")&&function(e,t,n,i,r){var o,a,s={};if(a=vn(e,t),!/^(top|bottom|left|right)$/.test(a))return null;/top|bottom/.test(a)&&(o="x");/left|right/.test(a)&&(o="y");return"target"===r.preserveDocking?fv(o,i,e)?(s[o]=i[o],[{x:void 0!==s.x?s.x:n.x,y:void 0!==s.y?s.y:n.y,original:{x:void 0!==s.x?s.x:n.x,y:void 0!==s.y?s.y:n.y}},{x:i.x,y:i.y}]):null:fv(o,n,t)?(s[o]=n[o],[{x:n.x,y:n.y},{x:void 0!==s.x?s.x:i.x,y:void 0!==s.y?s.y:i.y,original:{x:void 0!==s.x?s.x:i.x,y:void 0!==s.y?s.y:i.y}}]):null}(e,t,n,i,o))||(a=o.connectionEnd&&function(e,t,n,i){var r=i.slice().reverse();return(r=vv(e,t,n,r))?r.reverse():null}(t,e,i,r))?a:(a=o.connectionStart&&vv(e,t,n,r))||(!o.connectionStart&&!o.connectionEnd&&r&&r.length?r:dv(e,t,n,i,o))}function fv(e,t,n){return function(e,t,n){return e>=t&&e<=n}(t[e],n[e],n[e]+n[{x:"width",y:"height"}[e]])}function vv(e,t,n,i){if(function(e){return e.length<3||!(e.length>4)&&!!b(e,(function(t,n){var i=e[n-1];return i&&Ct(t,i)<3}))}(i))return null;var r,o=i[0],a=i.slice();return a[0]=n,a[1]=function(e,t,n){switch(Mt(t,e)){case"v":return{x:n.x,y:e.y};case"h":return{x:e.x,y:n.y}}return{x:e.x,y:e.y}}(a[1],o,n),(r=function(e,t,n){var i;for(i=e.length-2;0!==i;i--)if(Rt(e[i],t,20)||Rt(e[i],n,20))return e.slice(i);return e}(a,e,t))!==a&&(a=vv(e,t,n,r)),a&&Mt(a)?null:a}function gv(e){return e&&/t|r|b|l/.test(e)}function yv(e,t,n,i){if("h"===n&&(n=/left/.test(i)?"l":"r"),"v"===n&&(n=/top/.test(i)?"t":"b"),"t"===n)return{original:e,x:e.x,y:t.y};if("r"===n)return{original:e,x:t.x+t.width,y:e.y};if("b"===n)return{original:e,x:e.x,y:t.y+t.height};if("l"===n)return{original:e,x:t.x,y:e.y};throw new Error("unexpected dockingDirection: <"+n+">")}function bv(e){return e.reduce((function(t,n,i){return Pt(t[t.length-1],e[i+1],n,0)||t.push(n),t}),[])}var _v={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},xv={top:"t",right:"r",bottom:"b",left:"l"};function wv(){}function Ev(e,t){return xr(t,"bpmn:Participant")?"source":xr(e,"bpmn:Participant")?"target":Mv(t)?"source":Mv(e)||xr(t,"bpmn:Event")?"target":xr(e,"bpmn:Event")?"source":null}function Sv(e){return Mv(e)?"target":"source"}function Cv(e,t){return e?e.original||e:fn(t)}function Pv(e,t){return xr(t,"bpmn:Activity")&&xr(e,"bpmn:BoundaryEvent")&&t.businessObject.isForCompensation}function Mv(e){return xr(e,"bpmn:SubProcess")&&Nr(e)}function Rv(e,t){return e===t}function Tv(e){var t=/right|left/.exec(e);return t&&t[0]}function kv(e){var t=/top|bottom/.exec(e);return t&&t[0]}function Av(e){return"right"===e||"left"===e}function zv(e,t){var n=t.waypoints,i=n&&n.length&&vn(n[0],e);return"top"===i?["t:r"]:"right"===i?["r:b"]:"left"===i?["l:t"]:["b:l"]}function Ov(e,t,n){var i,r,o=fn(e),a=fn(t),s=(r=(i=e).host,vn(fn(i),r,-10)),c=Rv(e.host,t),l=-1!==["top","right","bottom","left"].indexOf(s),p=vn(a,o,{x:e.width/2+t.width/2,y:e.height/2+t.height/2});return c?function(e,t,n,i,r){var o,a=t?e:kv(e),s=xv[a];o=t?Av(e)?Dv("y",n,i,r)?"h":"b":Dv("x",n,i,r)?"v":"l":"v";return[s+":"+o]}(s,l,e,t,n):[function(e,t,n){if(n)return xv[e];if(Rv(kv(e),kv(t))||function(e,t){return _v[e]===t}(Tv(e),Tv(t)))return xv[kv(e)];return xv[Tv(e)]}(s,p,l)+":"+function(e,t,n){if(n)return Av(e)?function(e,t){var n=Tv(e),i=_v[n];return-1!==t.indexOf(i)}(e,t)||Rv(e,t)?"h":"v":function(e,t){var n=kv(e),i=_v[n];return-1!==t.indexOf(i)}(e,t)||Rv(e,t)?"v":"h";return Av(t)||Rv(kv(e),kv(t))&&Tv(t)?"h":"v"}(s,p,l)]}function Dv(e,t,n,i){return!(Bv(e,i,n,40)||Bv(e,i,{x:n.x+n.width,y:n.y+n.height},40)||Bv(e,i,fn(t),40))}function Bv(e,t,n,i){return Math.abs(t[e]-n[e])<i}function jv(e){return G({original:e.point.original||e.point},e.actual)}function Nv(e,t){this._elementRegistry=e,this._graphicsFactory=t}i(wv,sv),wv.prototype.layoutConnection=function(e,t){t||(t={});var n,i,r=t.source||e.source,o=t.target||e.target,a=t.waypoints||e.waypoints,s=t.connectionStart,c=t.connectionEnd;return s||(s=Cv(a&&a[0],r)),c||(c=Cv(a&&a[a.length-1],o)),(xr(e,"bpmn:Association")||xr(e,"bpmn:DataAssociation"))&&a&&!Pv(r,o)?[].concat([s],a.slice(1,-1),[c]):(xr(e,"bpmn:MessageFlow")?n=function(e,t){return{preferredLayouts:["straight","v:v"],preserveDocking:Ev(e,t)}}(r,o):(xr(e,"bpmn:SequenceFlow")||Pv(r,o))&&(n=r===o?{preferredLayouts:zv(r,e)}:xr(r,"bpmn:BoundaryEvent")?{preferredLayouts:Ov(r,o,c)}:Mv(r)||Mv(o)?function(e){return{preferredLayouts:["straight","h:h"],preserveDocking:Sv(e)}}(r):xr(r,"bpmn:Gateway")?{preferredLayouts:["v:h"]}:xr(o,"bpmn:Gateway")?{preferredLayouts:["h:v"]}:{preferredLayouts:["h:h"]}),n&&(i=bv(mv(r,o,s,c,a,n=G(n,t)))),i||[s,c])},Nv.$inject=["elementRegistry","graphicsFactory"],Nv.prototype.getCroppedWaypoints=function(e,t,n){t=t||e.source,n=n||e.target;var i=this.getDockingPoint(e,t,!0),r=this.getDockingPoint(e,n),o=e.waypoints.slice(i.idx+1,r.idx);return o.unshift(jv(i)),o.push(jv(r)),o},Nv.prototype.getDockingPoint=function(e,t,n){var i,r,o=e.waypoints;return{point:r=o[i=n?0:o.length-1],actual:this._getIntersection(t,e,n)||r,idx:i}},Nv.prototype._getIntersection=function(e,t,n){return gn(this._getShapePath(e),this._getConnectionPath(t),n)},Nv.prototype._getConnectionPath=function(e){return this._graphicsFactory.getConnectionPath(e)},Nv.prototype._getShapePath=function(e){return this._graphicsFactory.getShapePath(e)},Nv.prototype._getGfx=function(e){return this._elementRegistry.getGraphics(e)};var Lv={__init__:["modeling","bpmnUpdater"],__depends__:[Ed,rm,am,lm,$l,um,vm,_m,Sm,Fo,Yo,Gm],bpmnFactory:["type",Wm],bpmnUpdater:["type",Um],elementFactory:["type",Km],modeling:["type",av],layouter:["type",wv],connectionDocking:["type",Nv]},Iv=Math.round;function Fv(e,t,n,i,r){function o(e,t,n,i){return r.allowed("elements.move",{shapes:e,delta:t,position:n,target:i})}function a(e,n,i,r){if(d(i)&&(r=i,i=!1),!n.waypoints&&n.parent){var o=function(e){return{x:e.x+Iv(e.width/2),y:e.y+Iv(e.height/2)}}(n);return t.init(e,o,"shape.move",{cursor:"grabbing",autoActivate:i,data:{shape:n,context:r||{}}}),!0}}e.on("shape.move.start",1500,(function(e){var t=e.context,n=e.shape,r=i.get().slice();-1===r.indexOf(n)&&(r=[n]),G(t,{shapes:r=function(e){var t=A(e,"id");return x(e,(function(e){for(;e=e.parent;)if(t[e.id])return!1;return!0}))}(r),validatedShapes:r,shape:n})})),e.on("shape.move.start",1250,(function(e){var t=e.context,n=t.validatedShapes;if(!(t.canExecute=o(n)))return!1})),e.on("shape.move.move",500,(function(e){var t,n=e.context,i=n.validatedShapes,r=e.hover,a={x:e.dx,y:e.dy};t=o(i,a,{x:e.x,y:e.y},r),n.delta=a,n.canExecute=t,n.target=null!==t?r:null})),e.on("shape.move.end",(function(e){var t=e.context,i=t.delta,r=t.canExecute,o="attach"===r,a=t.shapes;if(!1===r)return!1;i.x=Iv(i.x),i.y=Iv(i.y),0===i.x&&0===i.y||n.moveElements(a,i,t.target,{primaryShape:t.shape,attach:o})})),e.on("element.mousedown",(function(e){if(Co(e)){var t=xo(e);if(!t)throw new Error("must supply DOM mousedown event");return a(t,e.element)}})),this.start=a}Fv.$inject=["eventBus","dragging","modeling","selection","rules"];var Hv="djs-dragging",Vv="drop-ok",$v="drop-not-ok",Gv="new-parent",Wv="attach-ok";function Uv(e,t,n,i){function r(e){return function(e){return x(e,(function(t){return!function(e){return e.waypoints}(t)||b(e,B({id:t.source.id}))&&b(e,B({id:t.target.id}))}))}(o(e))}function o(e){var t=ft(e,!0),n=M(t,(function(e){return(e.incoming||[]).concat(e.outgoing||[])}));return a(t.concat(n))}function s(e,n){[Wv,Vv,$v,Gv].forEach((function(i){i===n?t.addMarker(e,i):t.removeMarker(e,i)}))}e.on("shape.move.start",499,(function(e){var s=e.context,c=s.shapes,l=s.allDraggedElements,p=r(c);if(!s.dragGroup){var u=Le("g");Ce(u,n.cls("djs-drag-group",["no-events"])),we(t.getActiveLayer(),u),s.dragGroup=u}p.forEach((function(e){i.addDragger(e,s.dragGroup)})),w(l=l?a([l,o(c)]):o(c),(function(e){t.addMarker(e,Hv)})),s.allDraggedElements=l,s.differentParents=1!==T(A(c,(function(e){return e.parent&&e.parent.id})))})),e.on("shape.move.move",499,(function(e){var t=e.context,n=t.dragGroup,i=t.target,r=t.shape.parent,o=t.canExecute;i&&("attach"===o?s(i,Wv):t.canExecute&&i&&i.id!==r.id?s(i,Gv):s(i,t.canExecute?Vv:$v)),Kn(n,e.dx,e.dy)})),e.on(["shape.move.out","shape.move.cleanup"],(function(e){var t=e.context.target;t&&s(t,null)})),e.on("shape.move.cleanup",(function(e){var n=e.context,i=n.allDraggedElements,r=n.dragGroup;w(i,(function(e){t.removeMarker(e,Hv)})),r&&ze(r)})),this.makeDraggable=function(e,n,r){i.addDragger(n,e.dragGroup),r&&t.addMarker(n,Hv),e.allDraggedElements?e.allDraggedElements.push(n):e.allDraggedElements=[n]}}Uv.$inject=["eventBus","canvas","styles","previewSupport"];var qv={__depends__:[Ao,Fo,Oo,Is,Ds,il],__init__:["move","movePreview"],move:["type",Fv],movePreview:["type",Uv]},Kv=".djs-palette-toggle",Yv=".entry",Xv="open",Zv="two-column";function Qv(e,t){this._eventBus=e,this._canvas=t;var n=this;e.on("tool-manager.update",(function(e){var t=e.tool;n.updateToolHighlight(t)})),e.on("i18n.changed",(function(){n._update()})),e.on("diagram.init",(function(){n._diagramInitialized=!0,n._rebuild()}))}function Jv(e,t){var n=t.getPaletteEntries();return f(n)?n(e):(w(n,(function(t,n){e[n]=t})),e)}Qv.$inject=["eventBus","canvas"],Qv.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("palette.getProviders",e,(function(e){e.providers.push(t)})),this._rebuild()},Qv.prototype.getEntries=function(){return this._getProviders().reduce(Jv,{})},Qv.prototype._rebuild=function(){this._diagramInitialized&&(this._getProviders().length&&(this._container||this._init(),this._update()))},Qv.prototype._init=function(){var e=this,t=this._eventBus,n=this._getParentContainer(),i=this._container=fe(Qv.HTML_MARKUP);n.appendChild(i),te(n).add("djs-palette-shown"),me.bind(i,".djs-palette-toggle, .entry","click",(function(t){var n=t.delegateTarget;if(ae(n,Kv))return e.toggle();e.trigger("click",t)})),ue.bind(i,"mousedown",(function(e){e.stopPropagation()})),me.bind(i,Yv,"dragstart",(function(t){e.trigger("dragstart",t)})),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:i})},Qv.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},Qv.prototype._toggleState=function(e){e=e||{};var t,n=this._getParentContainer(),i=this._container,r=this._eventBus,o=te(i),a=te(n);t="twoColumn"in e?e.twoColumn:this._needsCollapse(n.clientHeight,this._entries||{}),o.toggle(Zv,t),a.toggle("djs-palette-two-column",t),"open"in e&&(o.toggle(Xv,e.open),a.toggle("djs-palette-open",e.open)),r.fire("palette.changed",{twoColumn:t,open:this.isOpen()})},Qv.prototype._update=function(){var e=ye(".djs-palette-entries",this._container),t=this._entries=this.getEntries();ie(e),w(t,(function(t,n){var i=t.group||"default",r=ye("[data-group="+i+"]",e);r||(r=fe('<div class="group" data-group="'+i+'"></div>'),e.appendChild(r));var o=t.html||(t.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),a=fe(o);r.appendChild(a),t.separator||(X(a,"data-action",n),t.title&&X(a,"title",t.title),t.className&&function(e,t){var n=te(e);(h(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(a,t.className),t.imageUrl&&a.appendChild(fe('<img src="'+t.imageUrl+'">')))})),this.open()},Qv.prototype.trigger=function(e,t,n){var i,r,o,a=this._entries,s=t.delegateTarget||t.target;if(!s)return t.preventDefault();(i=a[X(s,"data-action")])&&(r=i.action,o=t.originalEvent||t,f(r)?"click"===e&&r(o,n):r[e]&&r[e](o,n),t.preventDefault())},Qv.prototype._layoutChanged=function(){this._toggleState({})},Qv.prototype._needsCollapse=function(e,t){return e<46*Object.keys(t).length+50},Qv.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},Qv.prototype.open=function(){this._toggleState({open:!0})},Qv.prototype.toggle=function(e){this.isOpen()?this.close():this.open()},Qv.prototype.isActiveTool=function(e){return e&&this._activeTool===e},Qv.prototype.updateToolHighlight=function(e){var t;this._toolsContainer||(t=ye(".djs-palette-entries",this._container),this._toolsContainer=ye("[data-group=tools]",t)),w(this._toolsContainer.children,(function(t){var n=t.getAttribute("data-action");if(n){var i=te(t);n=n.replace("-tool",""),i.contains("entry")&&n===e?i.add("highlighted-entry"):i.remove("highlighted-entry")}}))},Qv.prototype.isOpen=function(){return te(this._container).has(Xv)},Qv.prototype._getParentContainer=function(){return this._canvas.getContainer()},Qv.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';var eg={__init__:["palette"],palette:["type",Qv]},tg="crosshair";function ng(e,t,n,i,r,o,a){this._selection=r,this._dragging=n,this._mouse=a;var s=this,c=function(e){var n,i=t.getActiveLayer();Ce(n=e.frame=Le("rect"),{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),we(i,n)},l=function(e){var t=e.frame,n=e.bbox;Ce(t,{x:n.x,y:n.y,width:n.width,height:n.height})},p=function(e){e.frame&&ze(e.frame)};o.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),e.on("lasso.selection.end",(function(t){var n=t.originalEvent.target;(t.hover||n instanceof SVGElement)&&e.once("lasso.selection.ended",(function(){s.activateLasso(t.originalEvent,!0)}))})),e.on("lasso.end",(function(e){var t=ig(e),n=i.filter((function(e){return e}));s.select(n,t)})),e.on("lasso.start",(function(e){var t=e.context;t.bbox=ig(e),c(t)})),e.on("lasso.move",(function(e){var t=e.context;t.bbox=ig(e),l(t)})),e.on("lasso.cleanup",(function(e){var t=e.context;p(t)})),e.on("element.mousedown",1500,(function(e){if(Mo(e))return s.activateLasso(e.originalEvent),!0}))}function ig(e){var t={x:e.x-e.dx,y:e.y-e.dy},n={x:e.x,y:e.y};return t.x<=n.x&&t.y<n.y||t.x<n.x&&t.y<=n.y?{x:t.x,y:t.y,width:n.x-t.x,height:n.y-t.y}:t.x>=n.x&&t.y<n.y||t.x>n.x&&t.y<=n.y?{x:n.x,y:t.y,width:t.x-n.x,height:n.y-t.y}:t.x<=n.x&&t.y>n.y||t.x<n.x&&t.y>=n.y?{x:t.x,y:n.y,width:n.x-t.x,height:t.y-n.y}:t.x>=n.x&&t.y>n.y||t.x>n.x&&t.y>=n.y?{x:n.x,y:n.y,width:t.x-n.x,height:t.y-n.y}:{x:n.x,y:n.y,width:0,height:0}}ng.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],ng.prototype.activateLasso=function(e,t){this._dragging.init(e,"lasso",{autoActivate:t,cursor:tg,data:{context:{}}})},ng.prototype.activateSelection=function(e,t){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:t,cursor:tg,data:{context:{}}})},ng.prototype.select=function(e,t){var n=function(e,t){var n={};return w(e,(function(e){var i=e;i.waypoints&&(i=vt(i)),!m(t.y)&&i.x>t.x&&(n[e.id]=e),!m(t.x)&&i.y>t.y&&(n[e.id]=e),i.x>t.x&&i.y>t.y&&(m(t.width)&&m(t.height)&&i.width+i.x<t.width+t.x&&i.height+i.y<t.height+t.y?n[e.id]=e:m(t.width)&&m(t.height)||(n[e.id]=e))})),n}(e,t);this._selection.select(k(n))},ng.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},ng.prototype.isActive=function(){var e=this._dragging.context();return e&&/^lasso/.test(e.prefix)};var rg={__depends__:[Pm,wl],__init__:["lassoTool"],lassoTool:["type",ng]},og=1500,ag="grab";function sg(e,t,n,i,r,o){this._dragging=n,this._mouse=o;var a=this,s=i.get("keyboard",!1);r.registerTool("hand",{tool:"hand",dragging:"hand.move"}),e.on("element.mousedown",og,(function(e){if(Po(e))return a.activateMove(e.originalEvent,!0),!1})),s&&s.addListener(og,(function(e){if(cg(e.keyEvent)&&!a.isActive()){var t=a._mouse.getLastMoveEvent();a.activateMove(t,!!t)}}),"keyboard.keydown"),s&&s.addListener(og,(function(e){cg(e.keyEvent)&&a.isActive()&&a.toggle()}),"keyboard.keyup"),e.on("hand.end",(function(t){var n=t.originalEvent.target;if(!(t.hover||n instanceof SVGElement))return!1;e.once("hand.ended",(function(){a.activateMove(t.originalEvent,{reactivate:!0})}))})),e.on("hand.move.move",(function(e){var n=t.viewbox().scale;t.scroll({dx:e.dx*n,dy:e.dy*n})})),e.on("hand.move.end",(function(t){var n=t.context.reactivate;return!Po(t)&&n&&e.once("hand.move.ended",(function(e){a.activateHand(e.originalEvent,!0,!0)})),!1}))}function cg(e){return _a(" ",e)}sg.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"],sg.prototype.activateMove=function(e,t,n){"object"==typeof t&&(n=t,t=!1),this._dragging.init(e,"hand.move",{autoActivate:t,cursor:ag,data:{context:n||{}}})},sg.prototype.activateHand=function(e,t,n){this._dragging.init(e,"hand",{trapClick:!1,autoActivate:t,cursor:ag,data:{context:{reactivate:n}}})},sg.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateHand(e,!!e)},sg.prototype.isActive=function(){var e=this._dragging.context();return!!e&&/^(hand|hand\.move)$/.test(e.prefix)};var lg={__depends__:[Pm,wl],__init__:["handTool"],handTool:["type",sg]},pg="connect-ok",ug="connect-not-ok";function hg(e,t,n,i,r,o,a){var s=this;this._dragging=t,this._rules=o,this._mouse=a,r.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),e.on("global-connect.hover",(function(e){var t=e.context,n=e.hover,r=t.canStartConnect=s.canStartConnect(n);null!==r&&(t.startTarget=n,i.addMarker(n,r?pg:ug))})),e.on(["global-connect.out","global-connect.cleanup"],(function(e){var t=e.context.startTarget,n=e.context.canStartConnect;t&&i.removeMarker(t,n?pg:ug)})),e.on(["global-connect.ended"],(function(t){var i=t.context.startTarget,r={x:t.x,y:t.y};if(s.canStartConnect(i))return e.once("element.out",(function(){e.once(["connect.ended","connect.canceled"],(function(){e.fire("global-connect.drag.ended")})),n.start(null,i,r)})),!1}))}hg.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"],hg.prototype.start=function(e,t){this._dragging.init(e,"global-connect",{autoActivate:t,trapClick:!1,data:{context:{}}})},hg.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();return this.start(e,!!e)},hg.prototype.isActive=function(){var e=this._dragging.context();return e&&/^global-connect/.test(e.prefix)},hg.prototype.canStartConnect=function(e){return this._rules.allowed("connection.start",{source:e})};var dg={__depends__:[Dc,Is,Ds,Pm,wl],globalConnect:["type",hg]};function mg(e,t,n,i,r,o,a,s){this._palette=e,this._create=t,this._elementFactory=n,this._spaceTool=i,this._lassoTool=r,this._handTool=o,this._globalConnect=a,this._translate=s,e.registerProvider(this)}mg.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"],mg.prototype.getPaletteEntries=function(e){var t={},n=this._create,i=this._elementFactory,r=this._spaceTool,o=this._lassoTool,a=this._handTool,s=this._globalConnect,c=this._translate;function l(e,t,r,o,a){function s(t){var r=i.createShape(G({type:e},a));a&&(Sr(r).isExpanded=a.isExpanded);n.start(t,r)}var l=e.replace(/^bpmn:/,"");return{group:t,className:r,title:o||c("Create {type}",{type:l}),action:{dragstart:s,click:s}}}function p(e){var t=i.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),r=i.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:t});n.start(e,[t,r],{hints:{autoSelect:[t]}})}function u(e){n.start(e,i.createParticipantShape())}return G(t,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:c("Activate the hand tool"),action:{click:function(e){a.activateHand(e)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:c("Activate the lasso tool"),action:{click:function(e){o.activateSelection(e)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:c("Activate the create/remove space tool"),action:{click:function(e){r.activateSelection(e)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:c("Activate the global connect tool"),action:{click:function(e){s.start(e)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":l("bpmn:StartEvent","event","bpmn-icon-start-event-none",c("Create StartEvent")),"create.intermediate-event":l("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",c("Create Intermediate/Boundary Event")),"create.end-event":l("bpmn:EndEvent","event","bpmn-icon-end-event-none",c("Create EndEvent")),"create.exclusive-gateway":l("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",c("Create Gateway")),"create.task":l("bpmn:Task","activity","bpmn-icon-task",c("Create Task")),"create.data-object":l("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",c("Create DataObjectReference")),"create.data-store":l("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",c("Create DataStoreReference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:c("Create expanded SubProcess"),action:{dragstart:p,click:p}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:c("Create Pool/Participant"),action:{dragstart:u,click:u}},"create.group":l("bpmn:Group","artifact","bpmn-icon-group",c("Create Group"))}),t};var fg={__depends__:[eg,ml,Gm,rg,lg,dg,so],__init__:["paletteProvider"],paletteProvider:["type",mg]};function vg(e,t,n,i,r){Xo.call(this,e),e.on("shape.move.move",250,(function(e){var o=e.context,a=o.canExecute;o.visualReplacements||(o.visualReplacements={}),a&&a.replacements?function(e){w(e.canExecute.replacements,(function(o){var a=o.oldElementId,s={type:o.newElementType};if(!e.visualReplacements[a]){var c=t.get(a);G(s,{x:c.x,y:c.y});var l=n.createShape(s);i.addShape(l,c.parent);var p=ye('[data-element-id="'+Jo(c.id)+'"]',e.dragGroup);p&&Ce(p,{display:"none"});var u=r.addDragger(l,e.dragGroup);e.visualReplacements[a]=u,i.removeShape(l)}}))}(o):function(e){var t=e.visualReplacements;w(t,(function(n,i){var r=ye('[data-element-id="'+Jo(i)+'"]',e.dragGroup);r&&Ce(r,{display:"inline"}),n.remove(),t[i]&&delete t[i]}))}(o)}))}vg.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"],i(vg,Xo);var gg={__depends__:[il],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",vg]},yg=40,bg=["x","y"],_g=Math.abs;function xg(e){e.on(["connect.hover","connect.move","connect.end"],1250,(function(e){var t=e.context,n=t.canExecute,i=t.start,r=t.hover,o=t.source,a=t.target;e.originalEvent&&ba(e.originalEvent)||(t.initialConnectionStart||(t.initialConnectionStart=t.connectionStart),n&&r&&function(e,t,n){bg.forEach((function(i){var r=Sg(i,t);e[i]<t[i]+n?Ec(e,i,t[i]+n):e[i]>t[i]+r-n&&Ec(e,i,t[i]+r-n)}))}(e,r,function(e){return xr(e,"bpmn:Task")?10:20}(r)),r&&function(e,t){return P(t,(function(t){return Eg(e,t)}))}(n,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(t.connectionStart=xc(i),wr(r,["bpmn:Event","bpmn:Gateway"])&&wg(e,xc(r)),wr(r,["bpmn:Task","bpmn:SubProcess"])&&function(e,t){var n=xc(t);bg.forEach((function(i){(function(e,t,n){return e[n]>t[n]+20&&e[n]<t[n]+Sg(n,t)-20})(e,t,i)&&Ec(e,i,n[i])}))}(e,r),xr(o,"bpmn:BoundaryEvent")&&a===o.host&&function(e){var t=e.context,n=t.source,i=t.target;if(function(e){var t=e.hover,n=e.source;return t&&n&&t===n}(t))return;var r=xc(n),o=vn(r,i,-10),a=[];/top|bottom/.test(o)&&a.push("x");/left|right/.test(o)&&a.push("y");a.forEach((function(t){var n,i=e[t];_g(i-r[t])<yg&&(n=i>r[t]?r[t]+yg:r[t]-yg,Ec(e,t,n))}))}(e)):Eg(n,"bpmn:MessageFlow")?(xr(i,"bpmn:Event")&&(t.connectionStart=xc(i)),xr(r,"bpmn:Event")&&wg(e,xc(r))):t.connectionStart=t.initialConnectionStart)}))}function wg(e,t){Ec(e,"x",t.x),Ec(e,"y",t.y)}function Eg(e,t){return e&&e.type===t}function Sg(e,t){return"x"===e?t.width:t.height}function Cg(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function Pg(e){this._snapValues={}}xg.$inject=["eventBus"],Cg.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]},Cg.prototype.setSnapOrigin=function(e,t){this._snapOrigins[e]=t,-1===this._snapLocations.indexOf(e)&&this._snapLocations.push(e)},Cg.prototype.addDefaultSnap=function(e,t){var n=this._defaultSnaps[e];n||(n=this._defaultSnaps[e]=[]),n.push(t)},Cg.prototype.getSnapLocations=function(){return this._snapLocations},Cg.prototype.setSnapLocations=function(e){this._snapLocations=e},Cg.prototype.pointsForTarget=function(e){var t=e.id||e,n=this._targets[t];return n||(n=this._targets[t]=new Pg).initDefaults(this._defaultSnaps),n},Pg.prototype.add=function(e,t){var n=this._snapValues[e];n||(n=this._snapValues[e]={x:[],y:[]}),-1===n.x.indexOf(t.x)&&n.x.push(t.x),-1===n.y.indexOf(t.y)&&n.y.push(t.y)},Pg.prototype.snap=function(e,t,n,i){var r=this._snapValues[t];return r&&function(e,t,n){var i,r;for(n=void 0===n?10:n,i=0;i<t.length;i++)if(r=t[i],gc(r-e)<=n)return r}(e[n],r[n],i)},Pg.prototype.initDefaults=function(e){var t=this;w(e||{},(function(e,n){w(e,(function(e){t.add(n,e)}))}))};function Mg(e,t,n){var i=this;this._elementRegistry=e,t.on(["create.start","shape.move.start"],(function(e){i.initSnap(e)})),t.on(["create.move","create.end","shape.move.move","shape.move.end"],1250,(function(e){var t=e.context,r=t.shape,o=t.snapContext,a=t.target;if((!e.originalEvent||!ba(e.originalEvent))&&!wc(e)&&a){var s=o.pointsForTarget(a);s.initialized||((s=i.addSnapTargetPoints(s,r,a)).initialized=!0),n.snap(e,s)}})),t.on(["create.cleanup","shape.move.cleanup"],(function(){n.hide()}))}function Rg(e){return!!e.labelTarget}Mg.$inject=["elementRegistry","eventBus","snapping"],Mg.prototype.initSnap=function(e){var t,n=this._elementRegistry,i=e.context,r=i.shape,o=i.snapContext;o||(o=i.snapContext=new Cg);var a=(t=n.get(r.id)?xc(r,e):{x:e.x+xc(r).x,y:e.y+xc(r).y}).x-r.width/2,s=t.y-r.height/2,c=t.x+r.width/2,l=t.y+r.height/2;return o.setSnapOrigin("mid",{x:t.x-e.x,y:t.y-e.y}),Rg(r)||(o.setSnapOrigin("top-left",{x:a-e.x,y:s-e.y}),o.setSnapOrigin("bottom-right",{x:c-e.x,y:l-e.y})),o},Mg.prototype.addSnapTargetPoints=function(e,t,n){return w(this.getSnapTargets(t,n),(function(n){if(Rg(n))Rg(t)&&e.add("mid",xc(n));else if(n.waypoints){if(n.waypoints.length<3)return;w(n.waypoints.slice(1,-1),(function(t){e.add("mid",t)}))}else{e.add("mid",xc(n))}})),m(t.x)&&m(t.y)?(this._elementRegistry.get(t.id)&&e.add("mid",xc(t)),e):e},Mg.prototype.getSnapTargets=function(e,t){return Sc(t).filter((function(e){return!e.hidden}))};function Tg(e,t){t.invoke(Mg,this),e.on(["create.move","create.end"],1500,kg),e.on(["create.move","create.end","shape.move.move","shape.move.end"],1500,(function(e){var t=e.context,n=t.canExecute,i=t.target;n&&("attach"===n||n.attach)&&!wc(e)&&function(e,t){var n,i=dn(t),r=Sd(e,t),o=e.context.shape;n=o.parent?{x:0,y:0}:fn(o);/top/.test(r)?Ec(e,"y",i.top-n.y):/bottom/.test(r)&&Ec(e,"y",i.bottom-n.y);/left/.test(r)?Ec(e,"x",i.left-n.x):/right/.test(r)&&Ec(e,"x",i.right-n.x)}(e,i)}))}function kg(e){var t=e.context.createConstraints;if(t){var n=t.top,i=t.right,r=t.bottom,o=t.left;(o&&o>=e.x||i&&i<=e.x)&&Ec(e,"x",e.x),(n&&n>=e.y||r&&r<=e.y)&&Ec(e,"y",e.y)}}function Ag(e,t){return-1!==e.indexOf(t)}function zg(e,t,n){return t?{x:e.x-n.x,y:e.y-n.y}:{x:e.x,y:e.y}}i(Tg,Mg),Tg.$inject=["eventBus","injector"],Tg.prototype.initSnap=function(e){var t=Mg.prototype.initSnap.call(this,e),n=e.shape,i=!!this._elementRegistry.get(n.id);return w(n.outgoing,(function(n){var r=n.waypoints[0];r=r.original||r,t.setSnapOrigin(n.id+"-docking",zg(r,i,e))})),w(n.incoming,(function(n){var r=n.waypoints[n.waypoints.length-1];r=r.original||r,t.setSnapOrigin(n.id+"-docking",zg(r,i,e))})),xr(n,"bpmn:Participant")&&t.setSnapLocations(["top-left","bottom-right","mid"]),t},Tg.prototype.addSnapTargetPoints=function(e,t,n){Mg.prototype.addSnapTargetPoints.call(this,e,t,n);var i=this.getSnapTargets(t,n);w(i,(function(n){var i;(function(e){if(xr(e,"bpmn:SubProcess")&&Nr(e))return!0;return xr(e,"bpmn:Participant")}(n)||(i="bpmn:TextAnnotation",[t,n].every((function(e){return xr(e,i)}))))&&(e.add("top-left",bc(n)),e.add("bottom-right",_c(n)))}));var r=this._elementRegistry;return w(t.incoming,(function(n){if(r.get(t.id)){Ag(i,n.source)||e.add("mid",fn(n.source));var o=n.waypoints[0];e.add(n.id+"-docking",o.original||o)}})),w(t.outgoing,(function(n){if(r.get(t.id)){Ag(i,n.target)||e.add("mid",fn(n.target));var o=n.waypoints[n.waypoints.length-1];e.add(n.id+"-docking",o.original||o)}})),xr(n,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,t,n.parent)),e},Tg.prototype.getSnapTargets=function(e,t){return Mg.prototype.getSnapTargets.call(this,e,t).filter((function(e){return!xr(e,"bpmn:Lane")}))};function Og(e,t){var n=this;e.on(["resize.start"],(function(e){n.initSnap(e)})),e.on(["resize.move","resize.end"],1250,(function(e){var i=e.context,r=i.shape,o=r.parent,a=i.direction,s=i.snapContext;if(!(e.originalEvent&&ba(e.originalEvent)||wc(e))){var c=s.pointsForTarget(o);c.initialized||((c=n.addSnapTargetPoints(c,r,o,a)).initialized=!0),function(e){return"n"===e||"s"===e}(a)&&Ec(e,"x",e.x),function(e){return"e"===e||"w"===e}(a)&&Ec(e,"y",e.y),t.snap(e,c)}})),e.on(["resize.cleanup"],(function(){t.hide()}))}function Dg(e,t){var n=fn(e),i=dn(e),r={x:n.x,y:n.y};return-1!==t.indexOf("n")?r.y=i.top:-1!==t.indexOf("s")&&(r.y=i.bottom),-1!==t.indexOf("e")?r.x=i.right:-1!==t.indexOf("w")&&(r.x=i.left),r}Og.prototype.initSnap=function(e){var t=e.context,n=t.shape,i=t.direction,r=t.snapContext;r||(r=t.snapContext=new Cg);var o=Dg(n,i);return r.setSnapOrigin("corner",{x:o.x-e.x,y:o.y-e.y}),r},Og.prototype.addSnapTargetPoints=function(e,t,n,i){return w(this.getSnapTargets(t,n),(function(t){e.add("corner",_c(t)),e.add("corner",bc(t))})),e.add("corner",Dg(t,i)),e},Og.$inject=["eventBus","snapping"],Og.prototype.getSnapTargets=function(e,t){return Sc(t).filter((function(t){return!(n=t,i=e,n.host===i||function(e){return!!e.waypoints}(t)||function(e){return!!e.hidden}(t)||function(e){return!!e.labelTarget}(t));var n,i}))};function Bg(e){this._canvas=e,this._asyncHide=F(H(this.hide,this),1e3)}Bg.$inject=["canvas"],Bg.prototype.snap=function(e,t){var n=e.context.snapContext,i=n.getSnapLocations(),r={x:wc(e,"x"),y:wc(e,"y")};w(i,(function(i){var o=n.getSnapOrigin(i),a={x:e.x+o.x,y:e.y+o.y};if(w(["x","y"],(function(e){var n;r[e]||void 0!==(n=t.snap(a,i,e,7))&&(r[e]={value:n,originValue:n-o[e]})})),r.x&&r.y)return!1})),this.showSnapLine("vertical",r.x&&r.x.value),this.showSnapLine("horizontal",r.y&&r.y.value),w(["x","y"],(function(t){var n=r[t];d(n)&&Ec(e,t,n.originValue)}))},Bg.prototype._createLine=function(e){var t=this._canvas.getLayer("snap"),n=Le("path");return Ce(n,{d:"M0,0 L0,0"}),ke(n).add("djs-snap-line"),we(t,n),{update:function(t){m(t)?Ce(n,"horizontal"===e?{d:"M-100000,"+t+" L+100000,"+t,display:""}:{d:"M "+t+",-100000 L "+t+", +100000",display:""}):Ce(n,{display:"none"})}}},Bg.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},Bg.prototype.showSnapLine=function(e,t){var n=this.getSnapLine(e);n&&n.update(t),this._asyncHide()},Bg.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]},Bg.prototype.hide=function(){w(this._snapLines,(function(e){e.update()}))};var jg={__depends__:[{__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",Mg],resizeSnapping:["type",Og],snapping:["type",Bg]}],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",xg],createMoveSnapping:["type",Tg]};function Ng(e,t,n,i){this._open=!1,this._results=[],this._eventMaps=[],this._canvas=e,this._eventBus=t,this._overlays=n,this._selection=i,this._container=fe(Ng.BOX_HTML),this._searchInput=ye(Ng.INPUT_SELECTOR,this._container),this._resultsContainer=ye(Ng.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),t.on(["canvas.destroy","diagram.destroy"],this.close,this)}function Lg(e,t,n){var i=function(e){var t="";return e.forEach((function(e){e.matched?t+='<strong class="'+Ng.RESULT_HIGHLIGHT_CLASS+'">'+ta(e.matched)+"</strong>":t+=ta(e.normal)})),""!==t?t:null}(t),r=fe(n);r.innerHTML=i,e.appendChild(r)}Ng.$inject=["canvas","eventBus","overlays","selection"],Ng.prototype._bindEvents=function(){var e=this;function t(t,n,i,r){e._eventMaps.push({el:t,type:i,listener:me.bind(t,n,i,r)})}t(document,"html","click",(function(t){e.close()})),t(this._container,Ng.INPUT_SELECTOR,"click",(function(e){e.stopPropagation(),e.delegateTarget.focus()})),t(this._container,Ng.RESULT_SELECTOR,"mouseover",(function(t){t.stopPropagation(),e._scrollToNode(t.delegateTarget),e._preselect(t.delegateTarget)})),t(this._container,Ng.RESULT_SELECTOR,"click",(function(t){t.stopPropagation(),e._select(t.delegateTarget)})),t(this._container,Ng.INPUT_SELECTOR,"keydown",(function(e){38===e.keyCode&&e.preventDefault(),40===e.keyCode&&e.preventDefault()})),t(this._container,Ng.INPUT_SELECTOR,"keyup",(function(t){if(27===t.keyCode)return e.close();if(13===t.keyCode){var n=e._getCurrentResult();return n?e._select(n):e.close()}return 38===t.keyCode?e._scrollToDirection(!0):40===t.keyCode?e._scrollToDirection():void(37!==t.keyCode&&39!==t.keyCode&&e._search(t.delegateTarget.value))}))},Ng.prototype._unbindEvents=function(){this._eventMaps.forEach((function(e){me.unbind(e.el,e.type,e.listener)}))},Ng.prototype._search=function(e){var t=this;if(this._clearResults(),e&&""!==e){var n=this._searchProvider.find(e);if(n.length){n.forEach((function(e){var n=e.element.id,i=t._createResultNode(e,n);t._results[n]={element:e.element,node:i}}));var i=ye(Ng.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}}},Ng.prototype._scrollToDirection=function(e){var t=this._getCurrentResult();if(t){var n=e?t.previousElementSibling:t.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}},Ng.prototype._scrollToNode=function(e){if(e&&e!==this._getCurrentResult()){var t=e.offsetTop,n=this._resultsContainer.scrollTop,i=t-this._resultsContainer.clientHeight+e.clientHeight;t<n?this._resultsContainer.scrollTop=t:n<i&&(this._resultsContainer.scrollTop=i)}},Ng.prototype._clearResults=function(){ie(this._resultsContainer),this._results=[],this._resetOverlay(),this._eventBus.fire("searchPad.cleared")},Ng.prototype._getCurrentResult=function(){return ye(Ng.RESULT_SELECTED_SELECTOR,this._resultsContainer)},Ng.prototype._createResultNode=function(e,t){var n=fe(Ng.RESULT_HTML);return e.primaryTokens.length>0&&Lg(n,e.primaryTokens,Ng.RESULT_PRIMARY_HTML),Lg(n,e.secondaryTokens,Ng.RESULT_SECONDARY_HTML),X(n,Ng.RESULT_ID_ATTRIBUTE,t),this._resultsContainer.appendChild(n),n},Ng.prototype.registerProvider=function(e){this._searchProvider=e},Ng.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._bindEvents(),this._open=!0,te(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},Ng.prototype.close=function(){this.isOpen()&&(this._unbindEvents(),this._open=!1,te(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._resetOverlay(),this._eventBus.fire("searchPad.closed"))},Ng.prototype.toggle=function(){this.isOpen()?this.close():this.open()},Ng.prototype.isOpen=function(){return this._open},Ng.prototype._preselect=function(e){var t=this._getCurrentResult();if(e!==t){t&&te(t).remove(Ng.RESULT_SELECTED_CLASS);var n=X(e,Ng.RESULT_ID_ATTRIBUTE),i=this._results[n].element;te(e).add(Ng.RESULT_SELECTED_CLASS),this._resetOverlay(i),this._canvas.scrollToElement(i,{top:400}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}},Ng.prototype._select=function(e){var t=X(e,Ng.RESULT_ID_ATTRIBUTE),n=this._results[t].element;this.close(),this._resetOverlay(),this._canvas.scrollToElement(n,{top:400}),this._selection.select(n),this._eventBus.fire("searchPad.selected",n)},Ng.prototype._resetOverlay=function(e){if(this._overlayId&&this._overlays.remove(this._overlayId),e){var t=function(e){var t=6,n=e.width+2*t,i=e.height+2*t,r=["width: "+n+"px","height: "+i+"px"].join("; ");return{position:{bottom:i-t,right:n-t},show:!0,html:'<div style="'+r+'" class="'+Ng.OVERLAY_CLASS+'"></div>'}}(vt(e));this._overlayId=this._overlays.add(e,t)}},Ng.CONTAINER_SELECTOR=".djs-search-container",Ng.INPUT_SELECTOR=".djs-search-input input",Ng.RESULTS_CONTAINER_SELECTOR=".djs-search-results",Ng.RESULT_SELECTOR=".djs-search-result",Ng.RESULT_SELECTED_CLASS="djs-search-result-selected",Ng.RESULT_SELECTED_SELECTOR="."+Ng.RESULT_SELECTED_CLASS,Ng.RESULT_ID_ATTRIBUTE="data-result-id",Ng.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",Ng.OVERLAY_CLASS="djs-search-overlay",Ng.BOX_HTML='<div class="djs-search-container djs-draggable djs-scrollable"><div class="djs-search-input"><input type="text"/></div><div class="djs-search-results"></div></div>',Ng.RESULT_HTML='<div class="djs-search-result"></div>',Ng.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',Ng.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';var Ig={__depends__:[qo,Fo],searchPad:["type",Ng]};function Fg(e,t,n){this._elementRegistry=e,this._canvas=n,t.registerProvider(this)}function Hg(e){return x(e,(function(e){return!!e.matched})).length>0}function Vg(e,t){var n=[],i=e;if(!e)return n;e=e.toLowerCase(),t=t.toLowerCase();var r=e.indexOf(t);return r>-1?(0!==r&&n.push({normal:i.substr(0,r)}),n.push({matched:i.substr(r,t.length)}),t.length+r<e.length&&n.push({normal:i.substr(t.length+r,e.length)})):n.push({normal:i}),n}Fg.$inject=["elementRegistry","searchPad","canvas"],Fg.prototype.find=function(e){var t=this._canvas.getRootElement(),n=this._elementRegistry.filter((function(e){return!e.labelTarget}));return n=x(n,(function(e){return e!==t})),n=D(n=x(n=M(n,(function(t){return{primaryTokens:Vg(Vr(t),e),secondaryTokens:Vg(t.id,e),element:t}})),(function(e){return Hg(e.primaryTokens)||Hg(e.secondaryTokens)})),(function(e){return Vr(e.element)+e.element.id}))};var $g={__depends__:[Ig],__init__:["bpmnSearch"],bpmnSearch:["type",Fg]};function Gg(e){jr.call(this,e)}i(Gg,jr),Gg.Viewer=ya,Gg.NavigatedViewer=Ka,Gg.prototype.createDiagram=gr((function(){return this.importXML('<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>')})),Gg.prototype._interactionModules=[Oa,Ha,ns,qa],Gg.prototype._modelingModules=[cs,xs,Ns,Ms,Rc,Dc,jc,Sp,Bl,ml,Tp,Bp,Yp,Zp,Jp,su,Pu,Lv,qv,fg,gg,yu,jg,$g],Gg.prototype._modules=[].concat(ya.prototype._modules,Gg.prototype._interactionModules,Gg.prototype._modelingModules);var Wg={min:.2,max:4};function Ug(e,t,n,i,r){var o=this;function a(e){o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),Kg(qg({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox),o._canvas),o._update()}function s(e){return function(t){o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),e&&a(t);var n=qg({x:t.clientX-o._state._svgClientRect.left,y:t.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox),r=i.viewbox(),s=function(e,t){var n={x:t.x+t.width/2,y:t.y+t.height/2};return{x:e.x-n.x,y:e.y-n.y}}(n,r),p=o._viewportDom.getBoundingClientRect(),u={x:t.clientX-p.left+1,y:t.clientY-p.top+1};G(o._state,{cachedViewbox:r,initialDragPosition:{x:t.clientX,y:t.clientY},isDragging:!0,offsetViewport:s,offsetViewportDom:u,viewportClientRect:o._viewport.getBoundingClientRect(),parentClientRect:o._parent.getBoundingClientRect()}),ue.bind(document,"mousemove",c),ue.bind(document,"mouseup",l)}}function c(e){if(o._state.isDragging){o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect());var t=o._state.offsetViewportDom,n=o._state.viewportClientRect,i=o._state.parentClientRect;G(o._viewportDom.style,{top:e.clientY-t.y-i.top+"px",left:e.clientX-t.x-i.left+"px"});var r=Jg(i,{top:e.clientY-t.y-i.top,left:e.clientX-t.x-i.left,width:n.width,height:n.height});G(o._overlay.style,{clipPath:r});var a=qg({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);Kg({x:a.x-o._state.offsetViewport.x,y:a.y-o._state.offsetViewport.y},o._canvas)}}function l(e){o._state.isDragging&&(o._state.initialDragPosition.x===e.clientX&&o._state.initialDragPosition.y===e.clientY&&a(e),o._update(),G(o._state,{cachedViewbox:null,initialDragPosition:null,isDragging:!1,offsetViewport:null,offsetViewportDom:null}),ue.unbind(document,"mousemove",c),ue.unbind(document,"mouseup",l))}this._canvas=i,this._elementRegistry=r,this._eventBus=n,this._injector=t,this._state={isOpen:void 0,isDragging:!1,initialDragPosition:null,offsetViewport:null,cachedViewbox:null,dragger:null,svgClientRect:null,parentClientRect:null,zoomDelta:0},this._init(),this.toggle(e&&e.open||!1),ue.bind(this._svg,"click",(function(e){e.preventDefault(),e.stopPropagation(),a(e)})),ue.bind(this._viewportDom,"mousedown",s(!1)),ue.bind(this._svg,"mousedown",s(!0)),ue.bind(this._parent,"wheel",(function(e){if(e.preventDefault(),e.stopPropagation(),e.ctrlKey&&(o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),t=e,n=o._state._svgClientRect,t.x>n.left&&t.x<n.left+n.width&&t.y>n.top&&t.y<n.top+n.height)){var t,n,r,a,s,c,l=0===e.deltaMode?.02:.32,p=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*Qg(e.deltaY)*-l;if(o._state.zoomDelta+=p,Math.abs(o._state.zoomDelta)>.1){var u=p>0?1:-1,h=Math.log(i.zoom())/Math.log(10),d=(r=Wg,a=20,s=Math.log(r.min)/Math.log(10),c=Math.log(r.max)/Math.log(10),(Math.abs(s)+Math.abs(c))/a),m=Math.round(h/d)*d;m+=d*u;var f=Math.pow(10,m);i.zoom(function(e,t){return Math.max(e.min,Math.min(e.max,t))}(Wg,f),v),o._state.zoomDelta=0;var v=qg({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);Kg(v,o._canvas),o._update()}}})),ue.bind(this._toggle,"click",(function(e){e.preventDefault(),e.stopPropagation(),o.toggle()})),n.on(["shape.added","connection.added"],(function(e){var t=e.element;o._addElement(t),o._update()})),n.on(["shape.removed","connection.removed"],(function(e){var t=e.element;o._removeElement(t),o._update()})),n.on("elements.changed",250,(function(e){e.elements.forEach((function(e){o._updateElement(e)})),o._update()})),n.on("element.updateId",(function(e){var t=e.element,n=e.newId;o._updateElementId(t,n)})),n.on("canvas.viewbox.changed",(function(){o._state.isDragging||o._update()})),n.on("canvas.resized",(function(){document.body.contains(o._parent)&&(o._state.isDragging||o._update(),o._state._svgClientRect=o._svg.getBoundingClientRect())})),n.on("root.set",(function(e){o._clear(),e.element.children.forEach((function(e){o._addElement(e)})),o._update()}))}function qg(e,t,n){var i=t.getBoundingClientRect(),r=function(e,t){var n=e.width/e.height,i=G({},{x:e.x,y:e.y,width:e.width,height:e.height});if(n>t){var r=i.width*(1/t);G(i,{y:i.y-(r-i.height)/2,height:r})}else if(n<t){var o=i.height*t;G(i,{x:i.x-(o-i.width)/2,width:o})}return i}(n,i.width/i.height);return{x:Yg(e.x,0,i.width,r.x,r.x+r.width),y:Yg(e.y,0,i.height,r.y,r.y+r.height)}}function Kg(e,t){var n=t.viewbox(),i=n.width,r=n.height;t.viewbox({x:e.x-i/2,y:e.y-r/2,width:i,height:r})}function Yg(e,t,n,i,r){return(e-t)*(r-i)/(n-t)+i}function Xg(e,t,n){var i=function(e){var t=ye(".children",e);t||we(e,t=Le("g",{class:"children"}));return t}(t),r=[].slice.call(i.childNodes)[n];r?t.insertBefore(e,r.nextSibling):t.appendChild(e)}function Zg(e){return 0===e.width&&0===e.height}Ug.$inject=["config.minimap","injector","eventBus","canvas","elementRegistry"],Ug.prototype._init=function(){var e=this._canvas.getContainer(),t=this._parent=document.createElement("div");te(t).add("djs-minimap"),e.appendChild(t);var n=this._toggle=document.createElement("div");te(n).add("toggle"),t.appendChild(n);var i=this._map=document.createElement("div");te(i).add("map"),t.appendChild(i);var r=this._svg=Le("svg");Ce(r,{width:"100%",height:"100%"}),we(i,r),we(r,this._elementsGroup=Le("g"));var o=this._viewportGroup=Le("g");we(r,o);var a=this._viewport=Le("rect");ke(a).add("viewport"),we(o,a),ue.bind(t,"mousedown",(function(e){e.stopPropagation()}));var s=this._viewportDom=document.createElement("div");te(s).add("viewport-dom"),this._parent.appendChild(s);var c=this._overlay=document.createElement("div");te(c).add("overlay"),this._parent.appendChild(c)},Ug.prototype._update=function(){var e=this._canvas.viewbox(),t=e.inner,n=e.outer;if(ty(e)){var i,r,o,a,s=n.width-t.width,c=n.height-t.height;t.width<n.width?(i=t.x-s/2,o=n.width,t.x+t.width<n.width&&(i=Math.min(0,t.x))):(i=t.x,o=t.width),t.height<n.height?(r=t.y-c/2,a=n.height,t.y+t.height<n.height&&(r=Math.min(0,t.y))):(r=t.y,a=t.height),i-=50,r-=50,o+=100,a+=100,this._lastViewbox={x:i,y:r,width:o,height:a},Ce(this._svg,{viewBox:i+", "+r+", "+o+", "+a}),Ce(this._viewport,{x:e.x,y:e.y,width:e.width,height:e.height});var l=this._state._parentClientRect=this._parent.getBoundingClientRect(),p=this._viewport.getBoundingClientRect(),u={top:p.top-l.top,left:p.left-l.left,width:p.width,height:p.height};G(this._viewportDom.style,{top:u.top+"px",left:u.left+"px",width:u.width+"px",height:u.height+"px"});var h=Jg(l,u);G(this._overlay.style,{clipPath:h})}},Ug.prototype.open=function(){G(this._state,{isOpen:!0}),te(this._parent).add("open");var e=this._injector.get("translate",!1)||function(e){return e};X(this._toggle,"title",e("Close minimap")),this._update(),this._eventBus.fire("minimap.toggle",{open:!0})},Ug.prototype.close=function(){G(this._state,{isOpen:!1}),te(this._parent).remove("open");var e=this._injector.get("translate",!1)||function(e){return e};X(this._toggle,"title",e("Open minimap")),this._eventBus.fire("minimap.toggle",{open:!1})},Ug.prototype.toggle=function(e){var t=this.isOpen();void 0===e&&(e=!t),e!=t&&(e?this.open():this.close())},Ug.prototype.isOpen=function(){return this._state.isOpen},Ug.prototype._updateElement=function(e){try{void 0!==e.parent&&null!==e.parent&&(this._removeElement(e),this._addElement(e))}catch(e){console.warn("Minimap#_updateElement errored",e)}},Ug.prototype._updateElementId=function(e,t){try{var n=ye("#"+Jo(e.id),this._elementsGroup);n&&(n.id=t)}catch(e){console.warn("Minimap#_updateElementId errored",e)}},Ug.prototype._addElement=function(e){var t=this;if(this._removeElement(e),this._canvas.findRoot(e)===this._canvas.getRootElement()){var n,i,r,o=this._createElement(e),a=ye("#"+Jo(e.parent.id),this._elementsGroup);if(o){var s=function(e,t){var n=ye(".djs-children",t.parentNode);if(!n)return;var i=[].slice.call(n.childNodes),r=-1;return i.forEach((function(t,n){ye(".djs-element",t)===e&&(r=n)})),r}(this._elementRegistry.getGraphics(e),this._elementRegistry.getGraphics(e.parent));return"undefined"!==s&&a?a.childNodes.length>s?Xg(o,a,s):Xg(o,a,a.childNodes.length-1):this._elementsGroup.appendChild(o),!function(e){return e.waypoints}(e)?(i=e.x,r=e.y,a&&(i-=(n=e.parent).x,r-=n.y),Ce(o,{transform:"translate("+i+" "+r+")"})):(i=0,r=0,void 0!==(n=e.parent).x&&void 0!==n.y&&(i=-n.x,r=-n.y),Ce(o,{transform:"translate("+i+" "+r+")"})),e.children&&e.children.length&&e.children.forEach((function(e){t._addElement(e)})),o}}},Ug.prototype._removeElement=function(e){var t=this._svg.getElementById(e.id);t&&ze(t)},Ug.prototype._createElement=function(e){var t,n=this._elementRegistry.getGraphics(e);if(n&&(t=function(e){return e.childNodes[0]}(n))){var i=De(t);return Ce(i,{id:e.id}),i}},Ug.prototype._clear=function(){Oe(this._elementsGroup)};var Qg=Math.sign||function(e){return e>=0?1:-1};function Jg(e,t){return"polygon("+[ey(t.left,t.top),ey(t.left+t.width,t.top),ey(t.left+t.width,t.top+t.height),ey(t.left,t.top+t.height),ey(t.left,e.height),ey(e.width,e.height),ey(e.width,0),ey(0,0),ey(0,e.height),ey(t.left,e.height)].join(", ")+")"}function ey(e,t){return e+"px "+t+"px"}function ty(e){return C(e,(function(e){return d(e)?ty(e):m(e)&&isFinite(e)}))}var ny={__init__:["minimap"],minimap:["type",Ug]};function iy(e,t){var n,i,r=(e=e||{}).borderColor||"rgba(0,0,0,0.1)",o=e.crossColor||"#CCC",a=-1;we(t.getLayer("djs-origin",-1),n=ay("g",{"pointer-events":"none"})),!1!==e.showBorder&&we(n,ay("path",{class:oy("border"),d:ry(["M",-22,a,"H",-1e3,"M",22,a,"H",6e3,"M",a,-22,"V",-1e3,"M",a,22,"V",3e3]),fill:"none",stroke:r,"stroke-width":"2px","stroke-dasharray":"6, 6","shape-rendering":"crispedges"})),we(n,ay("path",{d:ry(["M",-15,a,"H",15,"M",a,-15,"V",15]),class:oy("cross"),fill:"none",stroke:o,"stroke-width":"2px","stroke-linecap":"round"})),(i=ay("text",{x:-40,y:-10,fill:o,class:oy("label")})).textContent="(0, 0)",we(n,i)}function ry(e){return e.join(" ")}function oy(e){return"djs-origin-"+e}function ay(e,t){var n=Le(e);return Ce(n,t),n}iy.$inject=["config.origin","canvas"];var sy={__init__:[iy]},cy={offset:{x:150,y:75},tolerance:50,alignOnSave:!0};function ly(e,t,n,i,r,o){function a(e,n){var i=n.offset,r=n.tolerance,o={};return["x","y"].forEach((function(n){var a=-e[n]+i[n],s=t.get("gridSnapping",!1);s&&(a=function(e,t,n){n||(n="round");return Math[n](e/t)*t}(a,s.getGridSpacing())),o[n]=Math.abs(a)<r?0:a})),o}function s(){var t=r.viewbox().inner,n=r.getRootElement().children;if(n.length){var o=a(t,e);0===o.x&&0===o.y||i.execute("elements.alignToOrigin",{elements:n,delta:o})}}function c(e){return function(t){n.once("commandStack.changed",(function(){var n=t.delta,i=r.viewbox().scale;r.scroll({dx:e*n.x*i,dy:e*n.y*i})}))}}var l,p,u;e=function(e){var t=G({},cy,e||{});return m(t.offset)&&(t.offset={x:t.offset,y:t.offset}),t}(e),i.register("elements.alignToOrigin",{preExecute:function(e){var t=e.delta,n=e.elements;o.moveElements(n,t)},execute:c(-1),revert:c(1)}),e.alignOnSave&&(l=t.get("_parent",!1),p=n,((u=l&&l._eventBus)||p).on("saveXML.start",1250,s),u&&p.on("diagram.destroy",(function(){u.off("saveXML.start",s)}))),this.align=s,this.computeAdjustment=a,this._config=e}ly.$inject=["config.alignToOrigin","injector","eventBus","commandStack","canvas","modeling"];var py={__init__:["alignToOrigin"],alignToOrigin:["type",ly]};function uy(e){function t(e){if(!e.labelTarget){var t=Er(e);xr(t,"bpmn:Participant")&&(t=t.processRef),xr(t,"bpmn:Process")&&(t.isExecutable=!!t.isExecutable)}}e.on(["shape.added","root.added"],(function(e){t(e.element)})),e.on("elements.changed",(function(e){e.elements.forEach((function(e){t(e)}))}))}uy.$inject=["eventBus"];var hy,dy,my,fy,vy,gy={__init__:[uy]},yy={},by=[],_y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function xy(e,t){for(var n in t)e[n]=t[n];return e}function wy(e){var t=e.parentNode;t&&t.removeChild(e)}function Ey(e,t,n){var i,r,o,a=arguments,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return Sy(e,s,i,r,null)}function Sy(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++hy.__v:r};return null!=hy.vnode&&hy.vnode(o),o}function Cy(e){return e.children}function Py(e,t){this.props=e,this.context=t}function My(e,t){if(null==t)return e.__?My(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?My(e):null}function Ry(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Ry(e)}}function Ty(e){(!e.__d&&(e.__d=!0)&&dy.push(e)&&!ky.__r++||fy!==hy.debounceRendering)&&((fy=hy.debounceRendering)||my)(ky)}function ky(){for(var e;ky.__r=dy.length;)e=dy.sort((function(e,t){return e.__v.__b-t.__v.__b})),dy=[],e.some((function(e){var t,n,i,r,o,a;e.__d&&(o=(r=(t=e).__v).__e,(a=t.__P)&&(n=[],(i=xy({},r)).__v=r.__v+1,Iy(a,r,i,t.__n,void 0!==a.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?My(r):o,r.__h),Fy(n,r),r.__e!=o&&Ry(r)))}))}function Ay(e,t,n,i,r,o,a,s,c,l){var p,u,h,d,m,f,v,g=i&&i.__k||by,y=g.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(d=n.__k[p]=null==(d=t[p])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?Sy(null,d,null,null,d):Array.isArray(d)?Sy(Cy,{children:d},null,null,null):d.__b>0?Sy(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(h=g[p])||h&&d.key==h.key&&d.type===h.type)g[p]=void 0;else for(u=0;u<y;u++){if((h=g[u])&&d.key==h.key&&d.type===h.type){g[u]=void 0;break}h=null}Iy(e,d,h=h||yy,r,o,a,s,c,l),m=d.__e,(u=d.ref)&&h.ref!=u&&(v||(v=[]),h.ref&&v.push(h.ref,null,d),v.push(u,d.__c||m,d)),null!=m?(null==f&&(f=m),"function"==typeof d.type&&null!=d.__k&&d.__k===h.__k?d.__d=c=zy(d,c,e):c=Dy(e,d,h,g,m,c),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=c):e.value=""):c&&h.__e==c&&c.parentNode!=e&&(c=My(h))}for(n.__e=f,p=y;p--;)null!=g[p]&&("function"==typeof n.type&&null!=g[p].__e&&g[p].__e==n.__d&&(n.__d=My(i,p+1)),$y(g[p],g[p]));if(v)for(p=0;p<v.length;p++)Vy(v[p],v[++p],v[++p])}function zy(e,t,n){var i,r;for(i=0;i<e.__k.length;i++)(r=e.__k[i])&&(r.__=e,t="function"==typeof r.type?zy(r,t,n):Dy(n,r,r,e.__k,r.__e,t));return t}function Oy(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Oy(e,t)})):t.push(e)),t}function Dy(e,t,n,i,r,o){var a,s,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),a=null;else{for(s=o,c=0;(s=s.nextSibling)&&c<i.length;c+=2)if(s==r)break e;e.insertBefore(r,o),a=o}return void 0!==a?a:r.nextSibling}function By(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||_y.test(t)?n:n+"px"}function jy(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||By(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||By(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?Ly:Ny,o):e.removeEventListener(t,o?Ly:Ny,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function Ny(e){this.l[e.type+!1](hy.event?hy.event(e):e)}function Ly(e){this.l[e.type+!0](hy.event?hy.event(e):e)}function Iy(e,t,n,i,r,o,a,s,c){var l,p,u,h,d,m,f,v,g,y,b,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(l=hy.__b)&&l(t);try{e:if("function"==typeof _){if(v=t.props,g=(l=_.contextType)&&i[l.__c],y=l?g?g.props.value:l.__:i,n.__c?f=(p=t.__c=n.__c).__=p.__E:("prototype"in _&&_.prototype.render?t.__c=p=new _(v,y):(t.__c=p=new Py(v,y),p.constructor=_,p.render=Gy),g&&g.sub(p),p.props=v,p.state||(p.state={}),p.context=y,p.__n=i,u=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=_.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=xy({},p.__s)),xy(p.__s,_.getDerivedStateFromProps(v,p.__s))),h=p.props,d=p.state,u)null==_.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==_.getDerivedStateFromProps&&v!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(v,y),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(v,p.__s,y)||t.__v===n.__v){p.props=v,p.state=p.__s,t.__v!==n.__v&&(p.__d=!1),p.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),p.__h.length&&a.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(v,p.__s,y),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(h,d,m)}))}p.context=y,p.props=v,p.state=p.__s,(l=hy.__r)&&l(t),p.__d=!1,p.__v=t,p.__P=e,l=p.render(p.props,p.state,p.context),p.state=p.__s,null!=p.getChildContext&&(i=xy(xy({},i),p.getChildContext())),u||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(h,d)),b=null!=l&&l.type===Cy&&null==l.key?l.props.children:l,Ay(e,Array.isArray(b)?b:[b],t,n,i,r,o,a,s,c),p.base=t.__e,t.__h=null,p.__h.length&&a.push(p),f&&(p.__E=p.__=null),p.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Hy(n.__e,t,n,i,r,o,a,c);(l=hy.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=o)&&(t.__e=s,t.__h=!!c,o[o.indexOf(s)]=null),hy.__e(e,t,n)}}function Fy(e,t){hy.__c&&hy.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){hy.__e(e,t.__v)}}))}function Hy(e,t,n,i,r,o,a,s){var c,l,p,u,h=n.props,d=t.props,m=t.type,f=0;if("svg"===m&&(r=!0),null!=o)for(;f<o.length;f++)if((c=o[f])&&(c===e||(m?c.localName==m:3==c.nodeType))){e=c,o[f]=null;break}if(null==e){if(null===m)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,d.is&&d),o=null,s=!1}if(null===m)h===d||s&&e.data===d||(e.data=d);else{if(o=o&&by.slice.call(e.childNodes),l=(h=n.props||yy).dangerouslySetInnerHTML,p=d.dangerouslySetInnerHTML,!s){if(null!=o)for(h={},u=0;u<e.attributes.length;u++)h[e.attributes[u].name]=e.attributes[u].value;(p||l)&&(p&&(l&&p.__html==l.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||jy(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||jy(e,o,t[o],n[o],i)}(e,d,h,r,s),p)t.__k=[];else if(f=t.props.children,Ay(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==m,o,a,e.firstChild,s),null!=o)for(f=o.length;f--;)null!=o[f]&&wy(o[f]);s||("value"in d&&void 0!==(f=d.value)&&(f!==e.value||"progress"===m&&!f)&&jy(e,"value",f,h.value,!1),"checked"in d&&void 0!==(f=d.checked)&&f!==e.checked&&jy(e,"checked",f,h.checked,!1))}return e}function Vy(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){hy.__e(e,n)}}function $y(e,t,n){var i,r,o;if(hy.unmount&&hy.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Vy(i,null,t)),n||"function"==typeof e.type||(n=null!=(r=e.__e)),e.__e=e.__d=void 0,null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){hy.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&$y(i[o],t,n);null!=r&&wy(r)}function Gy(e,t,n){return this.constructor(e,n)}function Wy(e,t,n){var i,r,o;hy.__&&hy.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],Iy(t,e=(!i&&n||t).__k=Ey(Cy,null,[e]),r||yy,yy,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?by.slice.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),Fy(o,e)}function Uy(e,t){var n={__c:t="__cC"+vy++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(Ty)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}hy={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e},__v:0},Py.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=xy({},this.state),"function"==typeof e&&(e=e(xy({},n),this.props)),e&&xy(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Ty(this))},Py.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ty(this))},Py.prototype.render=Cy,dy=[],my="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ky.__r=0,vy=0;var qy,Ky,Yy,Xy=0,Zy=[],Qy=hy.__b,Jy=hy.__r,eb=hy.diffed,tb=hy.__c,nb=hy.unmount;function ib(e,t){hy.__h&&hy.__h(Ky,e,Xy||t),Xy=0;var n=Ky.__H||(Ky.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function rb(e){return Xy=1,ob(vb,e)}function ob(e,t,n){var i=ib(qy++,2);return i.t=e,i.__c||(i.__=[n?n(t):vb(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=Ky),i.__}function ab(e,t){var n=ib(qy++,3);!hy.__s&&fb(n.__H,t)&&(n.__=e,n.__H=t,Ky.__H.__h.push(n))}function sb(e){return Xy=5,cb((function(){return{current:e}}),[])}function cb(e,t){var n=ib(qy++,7);return fb(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function lb(e,t){return Xy=8,cb((function(){return e}),t)}function pb(e){var t=Ky.context[e.__c],n=ib(qy++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(Ky)),t.props.value):e.__}function ub(){Zy.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(db),e.__H.__h.forEach(mb),e.__H.__h=[]}catch(t){e.__H.__h=[],hy.__e(t,e.__v)}})),Zy=[]}hy.__b=function(e){Ky=null,Qy&&Qy(e)},hy.__r=function(e){Jy&&Jy(e),qy=0;var t=(Ky=e.__c).__H;t&&(t.__h.forEach(db),t.__h.forEach(mb),t.__h=[])},hy.diffed=function(e){eb&&eb(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Zy.push(t)&&Yy===hy.requestAnimationFrame||((Yy=hy.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),hb&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);hb&&(t=requestAnimationFrame(n))})(ub)),Ky=void 0},hy.__c=function(e,t){t.some((function(e){try{e.__h.forEach(db),e.__h=e.__h.filter((function(e){return!e.__||mb(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],hy.__e(n,e.__v)}})),tb&&tb(e,t)},hy.unmount=function(e){nb&&nb(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(db)}catch(e){hy.__e(e,t.__v)}};var hb="function"==typeof requestAnimationFrame;function db(e){var t=Ky;"function"==typeof e.__c&&e.__c(),Ky=t}function mb(e){var t=Ky;e.__c=e.__(),Ky=t}function fb(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function vb(e,t){return"function"==typeof t?t(e):t}
8
+ var cs=n((function(e){!function(t,n,i,r){var o,a=["","webkit","Moz","MS","ms","o"],s=n.createElement("div"),c=Math.round,l=Math.abs,p=Date.now;function u(e,t,n){return setTimeout(y(e,n),t)}function h(e,t,n){return!!Array.isArray(e)&&(d(e,n[t],n),!0)}function d(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function m(e,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,r,i),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(e){if(e===r||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==r&&null!==i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var f=m((function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&e[i[o]]===r)&&(e[i[o]]=t[i[o]]),o++;return e}),"extend","Use `assign`."),v=m((function(e,t){return f(e,t,!0)}),"merge","Use `assign`.");function g(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&o(i,n)}function y(e,t){return function(){return e.apply(t,arguments)}}function b(e,t){return"function"==typeof e?e.apply(t&&t[0]||r,t):e}function _(e,t){return e===r?t:e}function x(e,t,n){d(C(t),(function(t){e.addEventListener(t,n,!1)}))}function w(e,t,n){d(C(t),(function(t){e.removeEventListener(t,n,!1)}))}function E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function S(e,t){return e.indexOf(t)>-1}function C(e){return e.trim().split(/\s+/g)}function P(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function M(e){return Array.prototype.slice.call(e,0)}function R(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];P(r,a)<0&&i.push(e[o]),r[o]=a,o++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function A(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),s=0;s<a.length;){if((i=(n=a[s])?n+o:t)in e)return i;s++}return r}var k=1;function D(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var T="ontouchstart"in t,z=A(t,"PointerEvent")!==r,O=T&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),B="touch",j="mouse",N=24,L=["x","y"],I=["clientX","clientY"];function F(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){b(e.options.enable,[e])&&n.handler(t)},this.init()}function V(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,a=1&t&&i-o==0,s=12&t&&i-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=H(t));o>1&&!n.firstMultiple?n.firstMultiple=H(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,c=s?s.center:a.center,u=t.center=$(i);t.timeStamp=p(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=q(c,u),t.distance=U(c,u),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=W(t.deltaX,t.deltaY);var h=G(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=l(h.x)>l(h.y)?h.x:h.y,t.scale=s?(d=s.pointers,m=i,U(m[0],m[1],I)/U(d[0],d[1],I)):1,t.rotation=s?function(e,t){return q(t[1],t[0],I)+q(e[1],e[0],I)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,a,s=e.lastInterval||t,c=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(c>25||s.velocity===r)){var p=t.deltaX-s.deltaX,u=t.deltaY-s.deltaY,h=G(c,p,u);i=h.x,o=h.y,n=l(h.x)>l(h.y)?h.x:h.y,a=W(p,u),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=a}(n,t);var d,m;var f=e.element;E(t.srcEvent.target,f)&&(f=t.srcEvent.target);t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:c(e.pointers[n].clientX),clientY:c(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:$(t),deltaX:e.deltaX,deltaY:e.deltaY}}function $(e){var t=e.length;if(1===t)return{x:c(e[0].clientX),y:c(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:c(n/t),y:c(i/t)}}function G(e,t,n){return{x:t/e||0,y:n/e||0}}function W(e,t){return e===t?1:l(e)>=l(t)?e<0?2:4:t<0?8:16}function U(e,t,n){n||(n=L);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function q(e,t,n){n||(n=L);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}F.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(D(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4},Y="mousedown",X="mousemove mouseup";function Z(){this.evEl=Y,this.evWin=X,this.pressed=!1,F.apply(this,arguments)}g(Z,F,{handler:function(e){var t=K[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:j,srcEvent:e}))}});var Q={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:B,3:"pen",4:j,5:"kinect"},ee="pointerdown",te="pointermove pointerup pointercancel";function ne(){this.evEl=ee,this.evWin=te,F.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(ee="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),g(ne,F,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=Q[i],o=J[e.pointerType]||e.pointerType,a=o==B,s=P(t,e.pointerId,"pointerId");1&r&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&r&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var ie={touchstart:1,touchmove:2,touchend:4,touchcancel:8},re="touchstart",oe="touchstart touchmove touchend touchcancel";function ae(){this.evTarget=re,this.evWin=oe,this.started=!1,F.apply(this,arguments)}function se(e,t){var n=M(e.touches),i=M(e.changedTouches);return 12&t&&(n=R(n.concat(i),"identifier",!0)),[n,i]}g(ae,F,{handler:function(e){var t=ie[e.type];if(1===t&&(this.started=!0),this.started){var n=se.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:B,srcEvent:e})}}});var ce={touchstart:1,touchmove:2,touchend:4,touchcancel:8},le="touchstart touchmove touchend touchcancel";function pe(){this.evTarget=le,this.targetIds={},F.apply(this,arguments)}function ue(e,t){var n=M(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=M(e.changedTouches),s=[],c=this.target;if(o=n.filter((function(e){return E(e.target,c)})),1===t)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),12&t&&delete i[a[r].identifier],r++;return s.length?[R(o.concat(s),"identifier",!0),s]:void 0}g(pe,F,{handler:function(e){var t=ce[e.type],n=ue.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:B,srcEvent:e})}});function he(){F.apply(this,arguments);var e=y(this.handler,this);this.touch=new pe(this.manager,e),this.mouse=new Z(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function de(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,me.call(this,t)):12&e&&me.call(this,t)}function me(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),2500)}}function fe(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),a=Math.abs(n-r.y);if(o<=25&&a<=25)return!0}return!1}g(he,F,{handler:function(e,t,n){var i=n.pointerType==B,r=n.pointerType==j;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)de.call(this,t,n);else if(r&&fe.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ve=A(s.style,"touchAction"),ge=ve!==r,ye="compute",be="auto",_e="manipulation",xe="none",we="pan-x",Ee="pan-y",Se=function(){if(!ge)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){e[i]=!n||t.CSS.supports("touch-action",i)})),e}();function Ce(e,t){this.manager=e,this.set(t)}Ce.prototype={set:function(e){e==ye&&(e=this.compute()),ge&&this.manager.element.style&&Se[e]&&(this.manager.element.style[ve]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return d(this.manager.recognizers,(function(t){b(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(S(e,xe))return xe;var t=S(e,we),n=S(e,Ee);if(t&&n)return xe;if(t||n)return t?we:Ee;if(S(e,_e))return _e;return be}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=S(i,xe)&&!Se.none,o=S(i,Ee)&&!Se["pan-y"],a=S(i,we)&&!Se["pan-x"];if(r){var s=1===e.pointers.length,c=e.distance<2,l=e.deltaTime<250;if(s&&c&&l)return}if(!a||!o)return r||o&&6&n||a&&n&N?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Pe=32;function Me(e){this.options=o({},this.defaults,e||{}),this.id=k++,this.manager=null,this.options.enable=_(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Re(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Ae(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ke(e,t){var n=t.manager;return n?n.get(e):e}function De(){Me.apply(this,arguments)}function Te(){De.apply(this,arguments),this.pX=null,this.pY=null}function ze(){De.apply(this,arguments)}function Oe(){Me.apply(this,arguments),this._timer=null,this._input=null}function Be(){De.apply(this,arguments)}function je(){De.apply(this,arguments)}function Ne(){Me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Le(e,t){return(t=t||{}).recognizers=_(t.recognizers,Le.defaults.preset),new Ie(e,t)}Me.prototype={defaults:{},set:function(e){return o(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(h(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ke(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return h(e,"dropRecognizeWith",this)||(e=ke(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(h(e,"requireFailure",this))return this;var t=this.requireFail;return-1===P(t,e=ke(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(h(e,"dropRequireFailure",this))return this;e=ke(e,this);var t=P(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+Re(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+Re(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Pe},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!b(this.options.enable,[this,t]))return this.reset(),void(this.state=Pe);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},g(De,Me,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,r=this.attrTest(e);return i&&(8&n||!r)?16|t:i||r?4&n?8|t:2&t?4|t:2:Pe}}),g(Te,De,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ee),e&N&&t.push(we),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,a=e.deltaY;return r&t.direction||(6&t.direction?(r=0===o?1:o<0?2:4,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===a?1:a<0?8:16,n=a!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return De.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ae(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),g(ze,De,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),g(Oe,Me,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[be]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!r)this.reset();else if(1&e.eventType)this.reset(),this._timer=u((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Pe},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),g(Be,De,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),g(je,De,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Te.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&N&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&l(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Ae(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),g(Ne,Me,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[_e]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||U(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=u((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Pe},failTimeout:function(){return this._timer=u((function(){this.state=Pe}),this.options.interval,this),Pe},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Le.VERSION="2.0.7",Le.defaults={domEvents:!1,touchAction:ye,enable:!0,inputTarget:null,inputClass:null,preset:[[Be,{enable:!1}],[ze,{enable:!1},["rotate"]],[je,{direction:6}],[Te,{direction:6},["swipe"]],[Ne],[Ne,{event:"doubletap",taps:2},["tap"]],[Oe]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ie(e,t){var n;this.options=o({},Le.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(z?ne:O?pe:T?he:Z))(n,V),this.touchAction=new Ce(this,this.options.touchAction),Fe(this,!0),d(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Fe(e,t){var n,i=e.element;i.style&&(d(e.options.cssProps,(function(r,o){n=A(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Ie.prototype={set:function(e){return o(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&8&r.state)&&(r=t.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&14&n.state&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Me)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(h(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(h(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=P(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==r&&t!==r){var n=this.handlers;return d(C(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==r){var n=this.handlers;return d(C(e),(function(e){t?n[e]&&n[e].splice(P(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var i=n.createEvent("Event");i.initEvent(e,!0,!0),i.gesture=t,t.target.dispatchEvent(i)}(e,t);var i=this.handlers[e]&&this.handlers[e].slice();if(i&&i.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<i.length;)i[r](t),r++}},destroy:function(){this.element&&Fe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Le,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Pe,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:N,DIRECTION_ALL:30,Manager:Ie,Input:F,TouchAction:Ce,TouchInput:pe,MouseInput:Z,PointerEventInput:ne,TouchMouseInput:he,SingleTouchInput:ae,Recognizer:Me,AttrRecognizer:De,Tap:Ne,Pan:Te,Swipe:je,Pinch:ze,Rotate:Be,Press:Oe,on:x,off:w,each:d,merge:v,extend:f,assign:o,inherit:g,bindFn:y,prefixed:A}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Le,e.exports?e.exports=Le:t.Hammer=Le}(window,document)})),ls=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];function ps(e,t){return t.get(e,!1)}function us(e){e.preventDefault(),"function"==typeof e.stopPropagation?e.stopPropagation():e.srcEvent&&"function"==typeof e.srcEvent.stopPropagation&&e.srcEvent.stopPropagation(),"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation()}function hs(e){function t(t){setTimeout((function(){E(ls,(function(t){be.unbind(e,t,us,!0)}))}),500)}be.bind(e,"touchstart",(function(t){E(ls,(function(t){be.bind(e,t,us,!0)}))}),!0),be.bind(e,"touchend",t,!0),be.bind(e,"touchcancel",t,!0);var n=new cs.Manager(e,{inputClass:cs.TouchInput,recognizers:[],domEvents:!0}),i=new cs.Tap,r=new cs.Pan({threshold:10}),o=new cs.Press,a=new cs.Pinch,s=new cs.Tap({event:"doubletap",taps:2});return a.requireFailure(r),a.requireFailure(o),n.add([r,o,a,s,i]),n.reset=function(e){var t=this.recognizers,i=this.session;i.stopped||(n.stop(e),setTimeout((function(){var e,n;for(e=0;n=t[e];e++)n.reset(),n.state=8;i.curRecognizer=null}),0))},n.on("hammer.input",(function(e){e.srcEvent.defaultPrevented&&n.reset(!0)})),n}function ds(e,t,n,i,r){var o,a=ps("dragging",e),s=ps("move",e),c=ps("contextPad",e),l=ps("palette",e);function p(e,t){return function(n){var o=u(n.target),a=o&&i.get(o);return t&&(n.srcEvent.button=t),r.fire(e,n,a)}}function u(e){return fe(e,"svg, .djs-element",!0)}function h(e){function n(e){var n=u(e.target),r=n&&i.get(n);if(s&&t.getRootElement()!==r)return s.start(e,r,!0);!function(e){var n=0,i=0;function r(e){var r=e.deltaX-n,o=e.deltaY-i;t.scroll({dx:r,dy:o}),n=e.deltaX,i=e.deltaY}function a(e){o.off("panmove",r),o.off("panend",a),o.off("pancancel",a)}o.on("panmove",r),o.on("panend",a),o.on("pancancel",a)}()}(o=hs(e)).on("tap",p("element.click")),o.on("doubletap",p("element.dblclick",1)),o.on("panstart",n),o.on("press",n),o.on("pinchstart",(function(e){var n=t.zoom(),i=e.center;function r(e){var r=1-(1-e.scale)/1.5,o=Math.max(.2,Math.min(4,r*n));t.zoom(o,i),us(e)}function a(e){o.off("pinchmove",r),o.off("pinchend",a),o.off("pinchcancel",a),o.reset(!0)}o.on("pinchmove",r),o.on("pinchend",a),o.on("pinchcancel",a)}))}a&&n.on("drag.move",(function(e){var t=e.originalEvent;if(t&&!(t instanceof MouseEvent)){var n=jo(t),r=u(document.elementFromPoint(n.x,n.y)),o=r&&i.get(r);o!==e.hover&&(e.hover&&a.out(e),o&&(a.hover({element:o,gfx:r}),e.hover=o,e.hoverGfx=r))}})),c&&n.on("contextPad.create",(function(e){var t=hs(e.pad.html);t.on("panstart",(function(e){c.trigger("dragstart",e,!0)})),t.on("press",(function(e){c.trigger("dragstart",e,!0)})),t.on("tap",(function(e){c.trigger("click",e)}))})),l&&n.on("palette.create",(function(e){var t=hs(e.container);t.on("panstart",(function(e){l.trigger("dragstart",e,!0)})),t.on("press",(function(e){l.trigger("dragstart",e,!0)})),t.on("tap",(function(e){l.trigger("click",e)}))})),n.on("canvas.init",(function(e){h(e.svg)}))}function ms(e,t){var n=this;t.on("canvas.init",(function(e){n.addBBoxMarker(e.svg)}))}ds.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"],ms.$inject=["canvas","eventBus"],ms.prototype.addBBoxMarker=function(e){var t={fill:"none",class:"outer-bound-marker"},n=Ue("rect");ze(n,{x:-1e4,y:1e4,width:10,height:10}),ze(n,t),ke(e,n);var i=Ue("rect");ze(i,{x:1e4,y:1e4,width:10,height:10}),ze(i,t),ke(e,i)};var fs={__depends__:[{__depends__:[Go],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",ds],touchFix:["type",ms]}]};function vs(e){return e&&e[e.length-1]}function gs(e){return e.y}function ys(e){return e.x}var bs={left:ys,center:ys,right:function(e){return e.x+e.width},top:gs,middle:gs,bottom:function(e){return e.y+e.height}};function _s(e,t){this._modeling=e,this._rules=t}_s.$inject=["modeling","rules"],_s.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},_s.prototype._isType=function(e,t){return-1!==t.indexOf(e)},_s.prototype._alignmentPosition=function(e,t){var n,i,r,o=this._getOrientationDetails(e),a=o.axis,s=o.dimension,c={},l={},p=!1;if(this._isType(e,["left","top"]))c[e]=t[0][a];else if(this._isType(e,["right","bottom"]))r=vs(t),c[e]=r[a]+r[s];else if(this._isType(e,["center","middle"])){if(E(t,(function(e){var t=e[a]+Math.round(e[s]/2);l[t]?l[t].elements.push(e):l[t]={elements:[e],center:t}})),n=B(l,(function(e){return e.elements.length>1&&(p=!0),e.elements.length})),p)return c[e]=vs(n).center,c;i=t[0],r=vs(t=B(t,(function(e){return e[a]+e[s]}))),c[e]=function(e,t){return Math.round((e[a]+t[a]+t[s])/2)}(i,r)}return c},_s.prototype.trigger=function(e,t){var n,i=this._modeling,r=w(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(d(n=this._rules.allowed("elements.align",{elements:r}))&&(r=n),!(r.length<2)&&n){var o=B(r,bs[t]),a=this._alignmentPosition(t,o);i.alignElements(o,a)}};var xs={__init__:["alignElements"],alignElements:["type",_s]},ws=".entry";function Es(e,t,n,i){this._canvas=e,this._eventBus=n,this._overlays=i;var r=u(t&&t.scale)?t.scale:{min:1,max:1.5};this._overlaysConfig={scale:r},this._current=null,this._init()}function Ss(e,t){return-1!==e.indexOf(t)}Es.$inject=["canvas","config.contextPad","eventBus","overlays"],Es.prototype._init=function(){var e=this;this._eventBus.on("selection.changed",(function(t){var n=t.newSelection,i=n.length?1===n.length?n[0]:n:null;i?e.open(i,!0):e.close()})),this._eventBus.on("elements.changed",(function(t){var n=t.elements,i=e._current;if(i){var r=i.target;M(d(r)?r:[r],(function(e){return Ss(n,e)}))&&e.open(r,!0)}}))},Es.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},Es.prototype.getEntries=function(e){var t=this._getProviders(),n=d(e)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return E(t,(function(t){if(v(t[n])){var r=t[n](e);v(r)?i=r(i):E(r,(function(e,t){i[t]=e}))}})),i},Es.prototype.trigger=function(e,t,n){var i,r,o=this._current.target,a=this._current.entries,s=t.delegateTarget||t.target;if(!s)return t.preventDefault();if(i=a[re(s,"data-action")].action,r=t.originalEvent||t,v(i)){if("click"===e)return i(r,o,n)}else if(i[e])return i[e](r,o,n);t.preventDefault()},Es.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},Es.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Es.prototype._updateAndOpen=function(e){var t,n=this.getEntries(e),i=this.getPad(e),r=i.html;E(n,(function(e,n){var i,o=e.group||"default",a=Ee(e.html||'<div class="entry" draggable="true"></div>');re(a,"data-action",n),(i=Pe("[data-group="+ha(o)+"]",r))||(re(i=Ee('<div class="group"></div>'),"data-group",o),r.appendChild(i)),i.appendChild(a),e.className&&function(e,t){var n=le(e);(t=d(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(a,e.className),e.title&&re(a,"title",e.title),e.imageUrl&&(re(t=Ee("<img>"),"src",e.imageUrl),t.style.width="100%",t.style.height="100%",a.appendChild(t))})),le(r).add("open"),this._current={target:e,entries:n,pad:i},this._eventBus.fire("contextPad.open",{current:this._current})},Es.prototype.getPad=function(e){if(this.isOpen())return this._current.pad;var t=this,n=this._overlays,i=Ee('<div class="djs-context-pad"></div>'),r=this._getPosition(e),o=W({html:i},this._overlaysConfig,r);we.bind(i,ws,"click",(function(e){t.trigger("click",e)})),we.bind(i,ws,"dragstart",(function(e){t.trigger("dragstart",e)})),be.bind(i,"mousedown",(function(e){e.stopPropagation()}));var a=this._canvas.getRootElement();this._overlayId=n.add(a,"context-pad",o);var s=n.get(this._overlayId);return this._eventBus.fire("contextPad.create",{target:e,pad:s}),s},Es.prototype.close=function(){this.isOpen()&&(this._overlays.remove(this._overlayId),this._overlayId=null,this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},Es.prototype.isOpen=function(e){var t=this._current;if(!t)return!1;if(!e)return!0;var n=t.target;return d(e)===d(n)&&(d(e)?e.length===n.length&&P(e,(function(e){return Ss(n,e)})):n===e)},Es.prototype._getPosition=function(e){var t=St(d(e)?e:[e]);return{position:{left:t.x+t.width+12,top:t.y-6}}};var Cs={__depends__:[Go,aa],contextPad:["type",Es]},Ps="data-id",Ms=["contextPad.close","canvas.viewbox.changing","commandStack.changed"];function Rs(e,t,n){var i=u(e&&e.scale)?e.scale:{min:1,max:1.5};this._config={scale:i},this._eventBus=t,this._canvas=n,this._providers={},this._current={}}Rs.$inject=["config.popupMenu","eventBus","canvas"],Rs.prototype.registerProvider=function(e,t,n){n||(n=t,t=1e3),this._eventBus.on("popupMenu.getProviders."+e,t,(function(e){e.providers.push(n)}))},Rs.prototype.isEmpty=function(e,t){if(!e)throw new Error("element parameter is missing");if(!t)throw new Error("providerId parameter is missing");var n=this._getProviders(t);if(!n)return!0;var i=this._getEntries(e,n),r=this._getHeaderEntries(e,n),o=k(i)>0,a=r&&k(r)>0;return!o&&!a},Rs.prototype.open=function(e,t,n){var i=this._getProviders(t);if(!e)throw new Error("Element is missing");if(!i||!i.length)throw new Error("No registered providers for: "+t);if(!n)throw new Error("the position argument is missing");this.isOpen()&&this.close(),this._emit("open");var r=this._current={className:t,element:e,position:n},o=this._getEntries(e,i),a=this._getHeaderEntries(e,i);r.entries=W({},o,a),r.container=this._createContainer(t),k(a)&&r.container.appendChild(this._createEntries(a,"djs-popup-header")),k(o)&&r.container.appendChild(this._createEntries(o,"djs-popup-body"));var s=this._canvas.getContainer();this._attachContainer(r.container,s,n.cursor),this._bindAutoClose()},Rs.prototype.close=function(){this.isOpen()&&(this._emit("close"),this._unbindAutoClose(),Re(this._current.container),this._current.container=null)},Rs.prototype.isOpen=function(){return!!this._current.container},Rs.prototype.trigger=function(e){e.preventDefault();var t=re(e.delegateTarget||e.target,Ps),n=this._getEntry(t);if(n.action)return n.action.call(null,e,n)},Rs.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(t),t.providers},Rs.prototype._getEntries=function(e,t){var n={};return E(t,(function(t){if(t.getPopupMenuEntries){var i=t.getPopupMenuEntries(e);v(i)?n=i(n):E(i,(function(e,t){n[t]=e}))}else E(t.getEntries(e),(function(e){var t=e.id;if(!t)throw new Error("every entry must have the id property set");n[t]=Y(e,["id"])}))})),n},Rs.prototype._getHeaderEntries=function(e,t){var n={};return E(t,(function(t){if(t.getPopupMenuHeaderEntries){var i=t.getPopupMenuHeaderEntries(e);v(i)?n=i(n):E(i,(function(e,t){n[t]=e}))}else{if(!t.getHeaderEntries)return;E(t.getHeaderEntries(e),(function(e){var t=e.id;if(!t)throw new Error("every entry must have the id property set");n[t]=Y(e,["id"])}))}})),n},Rs.prototype._getEntry=function(e){var t=this._current.entries[e];if(!t)throw new Error("entry not found");return t},Rs.prototype._emit=function(e){this._eventBus.fire("popupMenu."+e)},Rs.prototype._createContainer=function(e){var t=Ee('<div class="djs-popup">'),n=this._current.position,i=this._current.className;return ie(t,{position:"absolute",left:n.x+"px",top:n.y+"px",visibility:"hidden"}),le(t).add(i),re(t,"data-popup",e),t},Rs.prototype._attachContainer=function(e,t,n){var i=this;we.bind(e,".entry","click",(function(e){i.trigger(e)})),this._updateScale(e),t.appendChild(e),n&&this._assureIsInbounds(e,n),ie(e,{visibility:"visible"})},Rs.prototype._updateScale=function(e){var t,n,i=this._canvas.zoom(),r=this._config.scale,o=i;!0!==r&&(!1===r?(t=1,n=1):(t=r.min,n=r.max),u(t)&&i<t&&(o=t),u(n)&&i>n&&(o=n)),function(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}(e,"scale("+o+")")},Rs.prototype._assureIsInbounds=function(e,t){var n,i,r=this._canvas._container.getBoundingClientRect(),o=e.offsetLeft,a=e.offsetTop,s=e.scrollWidth,c=e.scrollHeight,l={},p=t.x-r.left,u=t.y-r.top;o+s>r.width&&(l.x=!0),a+c>r.height&&(l.y=!0),l.x&&l.y?(n=p-s+"px",i=u-c+"px"):l.x?(n=p-s+"px",i=u+"px"):l.y&&u<c?(n=p+"px",i="10px"):l.y&&(n=p+"px",i=u-c+"px"),ie(e,{left:n,top:i},{zIndex:1e3})},Rs.prototype._createEntries=function(e,t){var n=Ee("<div>"),i=this;return le(n).add(t),E(e,(function(e,t){var r=i._createEntry(e,t),o=e.group||"default",a=Pe("[data-group="+ha(o)+"]",n);a||(re(a=Ee('<div class="group"></div>'),"data-group",o),n.appendChild(a)),a.appendChild(r)})),n},Rs.prototype._createEntry=function(e,t){var n=Ee("<div>"),i=le(n);if(i.add("entry"),e.className&&e.className.split(" ").forEach((function(e){i.add(e)})),re(n,Ps,t),e.label){var r=Ee("<span>");r.textContent=e.label,n.appendChild(r)}if(e.imageUrl){var o=Ee("<img>");re(o,"src",e.imageUrl),n.appendChild(o)}return!0===e.active&&i.add("active"),!0===e.disabled&&i.add("disabled"),e.title&&(n.title=e.title),n},Rs.prototype._bindAutoClose=function(){this._eventBus.once(Ms,this.close,this)},Rs.prototype._unbindAutoClose=function(){this._eventBus.off(Ms,this.close,this)};var As={__init__:["popupMenu"],popupMenu:["type",Rs]},ks={align:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%202000%202000%22%3E%3Cpath%20style%3D%22stroke%3AcurrentColor%3Bstroke-width%3A100%3Bstroke-linecap%3Around%22%20d%3D%22M200%20150v1700%22%2F%3E%3Crect%20x%3D%22500%22%20y%3D%22150%22%20width%3D%221300%22%20height%3D%22700%22%20rx%3D%221%22%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%22%2F%3E%3Crect%20x%3D%22500%22%20y%3D%221150%22%20width%3D%22700%22%20height%3D%22700%22%20rx%3D%221%22%20style%3D%22fill%3AcurrentColor%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bopacity%3A.5%22%2F%3E%3C%2Fsvg%3E",bottom:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201800%201800%22%3E%3Cpath%20style%3D%22stroke%3AcurrentColor%3Bstroke-width%3A100%3Bstroke-linecap%3Around%22%20d%3D%22M150%201650h1500%22%2F%3E%3Crect%20x%3D%22150%22%20y%3D%22350%22%20width%3D%22600%22%20height%3D%221300%22%20rx%3D%221%22%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%22%2F%3E%3Crect%20x%3D%221050%22%20y%3D%22850%22%20width%3D%22600%22%20height%3D%22800%22%20rx%3D%221%22%20style%3D%22fill%3AcurrentColor%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bopacity%3A.5%22%2F%3E%3C%2Fsvg%3E",center:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201800%201800%22%3E%3Cpath%20style%3D%22stroke%3AcurrentColor%3Bstroke-width%3A100%3Bstroke-linecap%3Around%22%20d%3D%22M900%20150v1500%22%2F%3E%3Crect%20x%3D%22250%22%20y%3D%22150%22%20width%3D%221300%22%20height%3D%22600%22%20rx%3D%221%22%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%22%2F%3E%3Crect%20x%3D%22500%22%20y%3D%221050%22%20width%3D%22800%22%20height%3D%22600%22%20rx%3D%221%22%20style%3D%22fill%3AcurrentColor%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bopacity%3A.5%22%2F%3E%3C%2Fsvg%3E",left:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201800%201800%22%3E%3Cpath%20style%3D%22stroke%3AcurrentColor%3Bstroke-width%3A100%3Bstroke-linecap%3Around%22%20d%3D%22M100%20150v1500%22%2F%3E%3Crect%20x%3D%22100%22%20y%3D%22150%22%20width%3D%221300%22%20height%3D%22600%22%20rx%3D%221%22%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%22%2F%3E%3Crect%20x%3D%22100%22%20y%3D%221050%22%20width%3D%22800%22%20height%3D%22600%22%20rx%3D%221%22%20style%3D%22fill%3AcurrentColor%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bopacity%3A.5%22%2F%3E%3C%2Fsvg%3E",right:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201800%201800%22%3E%3Cpath%20style%3D%22stroke%3AcurrentColor%3Bstroke-width%3A100%3Bstroke-linecap%3Around%22%20d%3D%22M1650%20150v1500%22%2F%3E%3Crect%20x%3D%22350%22%20y%3D%22150%22%20width%3D%221300%22%20height%3D%22600%22%20rx%3D%221%22%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%22%2F%3E%3Crect%20x%3D%22850%22%20y%3D%221050%22%20width%3D%22800%22%20height%3D%22600%22%20rx%3D%221%22%20style%3D%22fill%3AcurrentColor%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bopacity%3A.5%22%2F%3E%3C%2Fsvg%3E",top:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201800%201800%22%3E%3Cpath%20style%3D%22stroke%3AcurrentColor%3Bstroke-width%3A100%3Bstroke-linecap%3Around%22%20d%3D%22M150%20150h1500%22%2F%3E%3Crect%20x%3D%22150%22%20y%3D%22150%22%20width%3D%22600%22%20height%3D%221300%22%20rx%3D%221%22%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%22%2F%3E%3Crect%20x%3D%221050%22%20y%3D%22150%22%20width%3D%22600%22%20height%3D%22800%22%20rx%3D%221%22%20style%3D%22fill%3AcurrentColor%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bopacity%3A.5%22%2F%3E%3C%2Fsvg%3E",middle:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201800%201800%22%3E%3Cpath%20style%3D%22stroke%3AcurrentColor%3Bstroke-width%3A100%3Bstroke-linecap%3Around%22%20d%3D%22M150%20900h1500%22%2F%3E%3Crect%20x%3D%22150%22%20y%3D%22250%22%20width%3D%22600%22%20height%3D%221300%22%20rx%3D%221%22%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%22%2F%3E%3Crect%20x%3D%221050%22%20y%3D%22500%22%20width%3D%22600%22%20height%3D%22800%22%20rx%3D%221%22%20style%3D%22fill%3AcurrentColor%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bopacity%3A.5%22%2F%3E%3C%2Fsvg%3E"};function Ds(e,t,n,i){e.registerProvider(900,this),this._contextPad=e,this._popupMenu=t,this._translate=n,this._canvas=i}Ds.$inject=["contextPad","popupMenu","translate","canvas"],Ds.prototype.getMultiElementContextPadEntries=function(e){var t={};return this._isAllowed(e)&&W(t,this._getEntries(e)),t},Ds.prototype._isAllowed=function(e){return!this._popupMenu.isEmpty(e,"align-elements")},Ds.prototype._getEntries=function(e){var t=this;return{"align-elements":{group:"align-elements",title:t._translate("Align elements"),imageUrl:ks.align,action:{click:function(e,n){var i=t._getMenuPosition(n);W(i,{cursor:{x:e.x,y:e.y}}),t._popupMenu.open(n,"align-elements",i)}}}}},Ds.prototype._getMenuPosition=function(e){var t=this._canvas.getContainer(),n=this._contextPad.getPad(e).html,i=t.getBoundingClientRect(),r=n.getBoundingClientRect(),o=r.top-i.top;return{x:r.left-i.left,y:o+r.height+5}};var Ts=["left","center","right","top","middle","bottom"];function zs(e,t,n,i){this._alignElements=t,this._translate=n,this._popupMenu=e,this._rules=i,e.registerProvider("align-elements",this)}function Os(e){la.call(this,e),this.init()}function Bs(e){Os.call(this,e)}zs.$inject=["popupMenu","alignElements","translate","rules"],zs.prototype.getPopupMenuEntries=function(e){var t={};return this._isAllowed(e)&&W(t,this._getEntries(e)),t},zs.prototype._isAllowed=function(e){return this._rules.allowed("elements.align",{elements:e})},zs.prototype._getEntries=function(e){var t=this._alignElements,n=this._translate,i=this._popupMenu,r={};return E(Ts,(function(o){r["align-elements-"+o]={group:"align",title:n("Align elements "+o),className:"bjs-align-elements-menu-entry",imageUrl:ks[o],action:function(n,r){t.trigger(e,o),i.close()}}})),r},Os.$inject=["eventBus"],r(Os,la),Os.prototype.addRule=function(e,t,n){var i=this;"string"==typeof e&&(e=[e]),e.forEach((function(e){i.canExecute(e,t,(function(e,t,i){return n(e)}),!0)}))},Os.prototype.init=function(){},Bs.$inject=["eventBus"],r(Bs,Os),Bs.prototype.init=function(){this.addRule("elements.align",(function(e){var t=w(e.elements,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));return!((t=bt(t)).length<2)&&t}))};var js={__depends__:[xs,Cs,As],__init__:["alignElementsContextPadProvider","alignElementsMenuProvider","bpmnAlignElements"],alignElementsContextPadProvider:["type",Ds],alignElementsMenuProvider:["type",zs],bpmnAlignElements:["type",Bs]};function Ns(e,t,n,i){for(var r;r=Is(e,n,t);)n=i(t,n,r);return n}function Ls(e){return function(t,n,i){var r={x:n.x,y:n.y};return["x","y"].forEach((function(o){var a=e[o];if(a){var s="x"===o?"width":"height",c=a.margin,l=a.minDistance;r[o]=c<0?Math.min(i[o]+c-t[s]/2,n[o]-l+c):Math.max(i[o]+i[s]+c+t[s]/2,n[o]+l+c)}})),r}}function Is(e,t,n){var i={x:t.x-n.width/2,y:t.y-n.height/2,width:n.width,height:n.height};return _(function(e){var t=Fs(e);e.host&&(t=t.concat(Fs(e.host)));e.attachers&&(t=t.concat(e.attachers.reduce((function(e,t){return e.concat(Fs(t))}),[])));return t}(e),(function(e){return e!==n&&"intersect"===Cn(e,i,10)}))}function Fs(e){return(t=e,t.outgoing.map((function(e){return e.target}))).concat(function(e){return e.incoming.map((function(e){return e.source}))}(e));var t}function Vs(){return!0}function Hs(e,t,n){e.on("autoPlace",100,(function(e){var t=e.shape;return function(e,t,n){n||(n={});var i=n.defaultDistance||50,r=Sn(e);return{x:xn(e).right+i+t.width/2,y:r.y}}(e.source,t)})),e.on("autoPlace.end",(function(e){n.scrollToElement(e.shape)})),this.append=function(n,i,r){e.fire("autoPlace.start",{source:n,shape:i});var o=e.fire("autoPlace",{source:n,shape:i}),a=t.appendShape(n,i,o,n.parent,r);return e.fire("autoPlace.end",{source:n,shape:a}),a}}function $s(e,t){e.on("autoPlace.end",500,(function(e){t.select(e.shape)}))}Hs.$inject=["eventBus","modeling","canvas"],$s.$inject=["eventBus","selection"];var Gs={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",Hs],autoPlaceSelectionBehavior:["type",$s]};function Ws(e,t){for("string"==typeof t&&(t=[t]);e=e.parent;)if(Dr(e,t))return e;return null}function Us(e,t){return kr(t,"bpmn:TextAnnotation")?function(e,t){var n=xn(e),i={x:n.right+t.width/2,y:n.top-50-t.height/2};(function(e){return!!e.waypoints})(e)&&((i=Sn(e)).x+=100,i.y-=50);return Ns(e,t,i,Ls({y:{margin:-30,minDistance:20}}))}(e,t):Dr(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])?function(e,t){var n=xn(e),i={x:n.right-10+t.width/2,y:n.bottom+40+t.width/2};return Ns(e,t,i,Ls({x:{margin:30,minDistance:30}}))}(e,t):kr(t,"bpmn:FlowNode")?function(e,t){var n=xn(e),i=Sn(e),r=function(e,t){t||(t={});var n=t.defaultDistance||50,i=t.direction||"e",r=t.filter,o=t.getWeight||function(t){return t.source===e?1:-1},a=t.maxDistance||250,s=t.reference||"start";function c(e,t){return"n"===i?"start"===s?xn(e).top-xn(t).bottom:"center"===s?xn(e).top-Sn(t).y:xn(e).top-xn(t).top:"w"===i?"start"===s?xn(e).left-xn(t).right:"center"===s?xn(e).left-Sn(t).x:xn(e).left-xn(t).left:"s"===i?"start"===s?xn(t).top-xn(e).bottom:"center"===s?Sn(t).y-xn(e).bottom:xn(t).bottom-xn(e).bottom:"start"===s?xn(t).left-xn(e).right:"center"===s?Sn(t).x-xn(e).right:xn(t).right-xn(e).right}r||(r=Vs);var l=e.incoming.filter(r).map((function(t){var n=o(t),i=n<0?c(t.source,e):c(e,t.source);return{id:t.source.id,distance:i,weight:n}})),p=e.outgoing.filter(r).map((function(t){var n=o(t),i=n>0?c(e,t.target):c(t.target,e);return{id:t.target.id,distance:i,weight:n}}));return C(l.concat(p).reduce((function(e,t){return e[t.id+"__weight_"+t.weight]=t,e}),{}),(function(e,t){var n=t.distance,i=t.weight;return n<0||n>a||(e[String(n)]||(e[String(n)]=0),e[String(n)]+=1*i,(!e.distance||e[e.distance]<e[String(n)])&&(e.distance=n)),e}),{}).distance||n}(e,{filter:function(e){return kr(e,"bpmn:SequenceFlow")}}),o=30,a=80,s="left";kr(e,"bpmn:BoundaryEvent")&&-1!==(s=Cn(e,e.host,-25)).indexOf("top")&&(o*=-1);var c={x:n.right+r+t.width/2,y:i.y+qs(s,a)};return Ns(e,t,c,Ls({y:{margin:o,minDistance:a}}))}(e,t):void 0}function qs(e,t){return-1!=e.indexOf("top")?-1*t:-1!=e.indexOf("bottom")?t:0}function Ks(e){e.on("autoPlace",(function(e){var t=e.shape;return Us(e.source,t)}))}Ks.$inject=["eventBus"];var Ys={__depends__:[Gs],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",Ks]};function Xs(e,t,n,i){la.call(this,e),this._elementRegistry=t,this._modeling=n,this._rules=i;var r=this;this.postExecuted(["shape.create"],(function(e){var t=e.context,n=t.hints||{},i=t.shape,o=t.parent||t.newParent;!1!==n.autoResize&&r._expand([i],o)})),this.postExecuted(["elements.move"],(function(e){var t=e.context,n=s(D(t.closure.topLevel)),i=t.hints,o=!i||i.autoResize;!1!==o&&E(T(n,(function(e){return e.parent.id})),(function(e,t){d(o)&&(e=e.filter((function(e){return _(o,j({id:e.id}))}))),r._expand(e,t)}))})),this.postExecuted(["shape.toggleCollapse"],(function(e){var t=e.context,n=t.hints,i=t.shape;n&&!1===n.autoResize||i.collapsed||r._expand(i.children||[],i)})),this.postExecuted(["shape.resize"],(function(e){var t=e.context,n=t.hints,i=t.shape,o=i.parent;n&&!1===n.autoResize||o&&r._expand([i],o)}))}function Zs(e){e.invoke(Xs,this)}function Qs(e){Os.call(this,e);var t=this;this.addRule("element.autoResize",(function(e){return t.canResize(e.elements,e.target)}))}function Js(e,t){Qs.call(this,e),this._modeling=t}Xs.$inject=["eventBus","elementRegistry","modeling","rules"],r(Xs,la),Xs.prototype._getOptimalBounds=function(e,t){var n=this.getOffset(t),i=this.getPadding(t),r=xn(St(e)),o=xn(t),a={};return r.top-o.top<i.top&&(a.top=r.top-n.top),r.left-o.left<i.left&&(a.left=r.left-n.left),o.right-r.right<i.right&&(a.right=r.right+n.right),o.bottom-r.bottom<i.bottom&&(a.bottom=r.bottom+n.bottom),wn(W({},o,a))},Xs.prototype._expand=function(e,t){if("string"==typeof t&&(t=this._elementRegistry.get(t)),this._rules.allowed("element.autoResize",{elements:e,target:t})){var n=this._getOptimalBounds(e,t);if(function(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}(n,t)){var i=function(e,t){var n="";e=xn(e),t=xn(t),e.top>t.top&&(n=n.concat("n"));e.right<t.right&&(n=n.concat("w"));e.bottom<t.bottom&&(n=n.concat("s"));e.left>t.left&&(n=n.concat("e"));return n}(K(t,["x","y","width","height"]),n);this.resize(t,n,{autoResize:i});var r=t.parent;r&&this._expand([t],r)}}},Xs.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}},Xs.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}},Xs.prototype.resize=function(e,t,n){this._modeling.resizeShape(e,t,null,n)},Zs.$inject=["injector"],r(Zs,Xs),Zs.prototype.resize=function(e,t,n){kr(e,"bpmn:Participant")?this._modeling.resizeLane(e,t,null,n):this._modeling.resizeShape(e,t,null,n)},Qs.$inject=["eventBus"],r(Qs,Os),Qs.prototype.canResize=function(e,t){return!1},r(Js,Qs),Js.$inject=["eventBus","modeling"],Js.prototype.canResize=function(e,t){if(kr(t.di,"bpmndi:BPMNPlane"))return!1;if(!kr(t,"bpmn:Participant")&&!kr(t,"bpmn:Lane")&&!kr(t,"bpmn:SubProcess"))return!1;var n=!0;return E(e,(function(e){(kr(e,"bpmn:Lane")||e.labelTarget)&&(n=!1)})),n};var ec={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Zs],bpmnAutoResizeProvider:["type",Js]};function tc(e,t,n){var i,r,o=this,a=n.get("dragging",!1);a&&t.on("drag.start",(function(n){t.once("drag.move",1500,(function(t){!function(t){if(!t.hover){var n=t.originalEvent,i=o._findTargetGfx(n),r=i&&e.get(i);i&&r&&(t.stopPropagation(),a.hover({element:r,gfx:i}),a.move(n))}}(t)}))})),t.on("element.hover",(function(e){i=e.gfx,r=e.element})),t.on("element.hover",1500,(function(e){r&&t.fire("element.out",{element:r,gfx:i})})),t.on("element.out",(function(){i=null,r=null})),this._findTargetGfx=function(e){var t;if(e instanceof MouseEvent)return t=jo(e),function(e){return fe(e,"svg, .djs-element",!0)}(document.elementFromPoint(t.x,t.y))}}tc.$inject=["elementRegistry","eventBus","injector"];var nc={__init__:["hoverFix"],hoverFix:["type",tc]},ic=Math.round,rc="djs-drag-active";function oc(e){e.preventDefault()}function ac(e,t,n,i){var r,o={threshold:5,trapClick:!0};function a(e){var n=t.viewbox(),i=t._container.getBoundingClientRect();return{x:n.x+(e.x-i.left)/n.scale,y:n.y+(e.y-i.top)/n.scale}}function s(t,n){n=n||r;var i=e.createEvent(W({},n.payload,n.data,{isTouch:n.isTouch}));return!1!==e.fire("drag."+t,i)&&e.fire(n.prefix+"."+t,i)}function c(e,i){var o,c=r.payload,l=r.displacement,p=r.globalStart,u=jo(e),h=Qa(u,p),d=r.localStart,m=a(u),v=Qa(m,d);if(!r.active&&(i||(o=h,Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))>r.threshold))){if(W(c,{x:ic(d.x+l.x),y:ic(d.y+l.y),dx:0,dy:0},{originalEvent:e}),!1===s("start"))return f();r.active=!0,r.keepSelection||(c.previousSelection=n.get(),n.select(null)),r.cursor&&Ka(r.cursor),t.addMarker(t.getRootElement(),rc)}Bo(e),r.active&&(W(c,{x:ic(m.x+l.x),y:ic(m.y+l.y),dx:ic(v.x),dy:ic(v.y)},{originalEvent:e}),s("move"))}function l(e){var t=!0;r.active&&(e&&(r.payload.originalEvent=e,Bo(e)),t=s("end")),!1===t&&s("rejected"),s("ended",v(!0!==t))}function p(e){27===e.which&&(oc(e),f())}function u(t){var n;r.active&&(n=Xa(e),setTimeout(n,400),oc(t)),l(t)}function h(e){c(e)}function d(e){var t=r.payload;t.hoverGfx=e.gfx,t.hover=e.element,s("hover")}function m(e){s("out");var t=r.payload;t.hoverGfx=null,t.hover=null}function f(e){var t;if(r){var n=r.active;n&&s("cancel"),t=v(e),n&&s("canceled",t)}}function v(o){var a,v;s("cleanup"),Ya(),v=r.trapClick?u:l,be.unbind(document,"mousemove",c),be.unbind(document,"dragstart",oc),be.unbind(document,"selectstart",oc),be.unbind(document,"mousedown",v,!0),be.unbind(document,"mouseup",v,!0),be.unbind(document,"keyup",p),be.unbind(document,"touchstart",h,!0),be.unbind(document,"touchcancel",f,!0),be.unbind(document,"touchmove",c,!0),be.unbind(document,"touchend",l,!0),e.off("element.hover",d),e.off("element.out",m),t.removeMarker(t.getRootElement(),rc);var g=r.payload.previousSelection;return!1!==o&&g&&!n.get().length&&function(e){var t=e.filter((function(e){return i.get(e.id)}));t.length&&n.select(t)}(g),a=r,r=null,a}e.on("diagram.destroy",f),this.init=function(t,n,i,v){r&&f(!1),"string"==typeof n&&(v=i,i=n,n=null);var g,y,b,_,x,w=(v=W({},o,v||{})).data||{};_=v.trapClick?u:l,t?(g=Oo(t)||t,y=jo(t),Bo(t),"dragstart"===g.type&&oc(g)):(g=null,y={x:0,y:0}),b=a(y),n||(n=b),x=function(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}(g),r=W({prefix:i,data:w,payload:{},globalStart:y,displacement:Qa(n,b),localStart:b,isTouch:x},v),v.manual||(x?(be.bind(document,"touchstart",h,!0),be.bind(document,"touchcancel",f,!0),be.bind(document,"touchmove",c,!0),be.bind(document,"touchend",l,!0)):(be.bind(document,"mousemove",c),be.bind(document,"dragstart",oc),be.bind(document,"selectstart",oc),be.bind(document,"mousedown",_,!0),be.bind(document,"mouseup",_,!0)),be.bind(document,"keyup",p),e.on("element.hover",d),e.on("element.out",m)),s("init"),v.autoActivate&&c(t,!0)},this.move=c,this.hover=d,this.out=m,this.end=l,this.cancel=f,this.context=function(){return r},this.setOptions=function(e){W(o,e)}}ac.$inject=["eventBus","canvas","selection","elementRegistry"];var sc={__depends__:[nc,Jo],dragging:["type",ac]};function cc(e,t,n){this._canvas=n,this._opts=W({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var i=this;t.on("drag.move",(function(e){var t=i._toBorderPoint(e);i.startScroll(t)})),t.on(["drag.cleanup"],(function(){i.stopScroll()}))}function lc(e,t,n){return t<e&&e<n}cc.$inject=["config.autoScroll","eventBus","canvas"],cc.prototype.startScroll=function(e){var t=this._canvas,n=this._opts,i=this,r=t.getContainer().getBoundingClientRect(),o=[e.x,e.y,r.width-e.x,r.height-e.y];this.stopScroll();for(var a=0,s=0,c=0;c<4;c++)lc(o[c],n.scrollThresholdOut[c],n.scrollThresholdIn[c])&&(0===c?a=n.scrollStep:1==c?s=n.scrollStep:2==c?a=-n.scrollStep:3==c&&(s=-n.scrollStep));0===a&&0===s||(t.scroll({dx:a,dy:s}),this._scrolling=setTimeout((function(){i.startScroll(e)}),n.scrollRepeatTimeout))},cc.prototype.stopScroll=function(){clearTimeout(this._scrolling)},cc.prototype.setOptions=function(e){this._opts=W({},this._opts,e)},cc.prototype._toBorderPoint=function(e){var t=this._canvas._container.getBoundingClientRect(),n=jo(e.originalEvent);return{x:n.x-t.left,y:n.y-t.top}};var pc={__depends__:[sc],__init__:["autoScroll"],autoScroll:["type",cc]};function uc(e){this._commandStack=e.get("commandStack",!1)}uc.$inject=["injector"],uc.prototype.allowed=function(e,t){var n=!0,i=this._commandStack;return i&&(n=i.canExecute(e,t)),void 0===n||n};var hc={__init__:["rules"],rules:["type",uc]},dc=Math.round,mc=Math.max;function fc(e,t){return function(e,t){var n,i;for(n=0;i=e[n];n++)if(zt(i,t)<=10)return{point:e[n],bendpoint:!0,index:n};return null}(e,t)||function(e,t){var n,i,r=yn(function(e,t){return[["M",e.x,e.y],["m",0,-t],["a",t,t,0,1,1,0,2*t],["a",t,t,0,1,1,0,-2*t],["z"]]}(t,10),(n=[],e.forEach((function(e,t){n.push([0===t?"M":"L",e.x,e.y])})),n)),o=r[0],a=r[r.length-1];return o?o!==a?o.segment2!==a.segment2?{point:e[i=mc(o.segment2,a.segment2)-1],bendpoint:!0,index:i}:{point:{x:dc(o.x+a.x)/2,y:dc(o.y+a.y)/2},index:o.segment2}:{point:{x:dc(o.x),y:dc(o.y)},index:o.segment2}:null}(e,t)}function vc(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function gc(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function yc(e,t){var n=t[0],i=t[1],r={x:i.x-n.x,y:i.y-n.y},o=function(e,t,n){var i=[{n:e[0]-n[0],lambda:t[0]},{n:e[1]-n[1],lambda:t[1]}];return-(i[0].n*t[0]+i[1].n*t[1])/(i[0].lambda*t[0]+i[1].lambda*t[1])}([n.x,n.y],[r.x,r.y],[e.x,e.y]);return{x:n.x+o*r.x,y:n.y+o*r.y}}function bc(e,t){var n=yc(e,t);return vc({x:n.x-e.x,y:n.y-e.y})}function _c(e,t){return vc({x:e.x-t.x,y:e.y-t.y})}var xc="djs-bendpoint",wc="djs-segment-dragger";function Ec(e,t,n){return fc(t,function(e,t){var n,i=jo(t),r=e._container.getBoundingClientRect();n={x:r.left,y:r.top};var o=e.viewbox();return{x:o.x+(i.x-n.x)/o.scale,y:o.y+(i.y-n.y)/o.scale}}(e,n))}function Sc(e,t){var n=Ue("g");Le(n).add(xc),ke(e,n);var i=Ue("circle");ze(i,{cx:0,cy:0,r:4}),Le(i).add("djs-visual"),ke(n,i);var r=Ue("circle");return ze(r,{cx:0,cy:0,r:10}),Le(r).add("djs-hit"),ke(n,r),t&&Le(n).add(t),n}function Cc(e,t,n,i){var r=Ue("g");ke(e,r);var o=function(e,t,n){var i=t.x-e.x,r=t.y-e.y;return Mc("h"===n?i:r)}(t,n,i),a=Ue("rect");ze(a,{x:-9,y:-3,width:18,height:6}),Le(a).add("djs-visual"),ke(r,a);var s=Ue("rect");return ze(s,{x:-o/2,y:-8.5,width:o,height:17}),Le(s).add("djs-hit"),ke(r,s),ri(r,"v"===i?90:0),r}function Pc(e,t,n){var i=Ue("g"),r=Nt(t,n),o=Bt(t,n);return ke(e,i),Cc(i,t,n,o),Le(i).add(wc),Le(i).add("h"===o?"horizontal":"vertical"),ii(i,r.x,r.y),i}function Mc(e){return Math.abs(Math.round(2*e/3))}function Rc(e,t){return yc(e,function(e,t){for(var n,i=t.waypoints,r=1/0,o=0;o<i.length-1;o++){var a=bc(e,[i[o],i[o+1]]);a<r&&(r=a,n=o)}return[i[n],i[n+1]]}(e,t))}function Ac(e,t,n,i,r){function o(e,n){var o=n.waypoints,a=Ec(t,o,e);if(a)return!function(e,t,n){var i,r,o,a,s,c,l=e.index,p=e.point;return!(l<=0||e.bendpoint)&&(o=Nt(i=t[l-1],r=t[l]),a=Bt(i,r),s=Math.abs(p.x-o.x),c=Math.abs(p.y-o.y),a&&s<=n&&c<=n)}(a,o,function(e,t){var n,i,r=e.waypoints;return t.index<=0||t.bendpoint?null:(i=Bt((n={start:r[t.index-1],end:r[t.index]}).start,n.end))?Mc("h"===i?n.end.x-n.start.x:n.end.y-n.start.y)/2:null}(n,a))?i.start(e,n,a.index,!a.bendpoint):r.start(e,n,a.index),!0}function a(e,t,i){be.bind(e,t,(function(e){n.triggerMouseEvent(t,e,i),e.stopPropagation()}))}function s(e,n){var i=t.getLayer("overlays"),r=Pe('.djs-bendpoints[data-element-id="'+ha(e.id)+'"]',i);return!r&&n&&(ze(r=Ue("g"),{"data-element-id":e.id}),Le(r).add("djs-bendpoints"),ke(i,r),a(r,"mousedown",e),a(r,"click",e),a(r,"dblclick",e)),r}function c(e,t){return Pe('.djs-segment-dragger[data-segment-idx="'+e+'"]',t)}function l(e,t){t.waypoints.forEach((function(t,n){var i=Sc(e);ke(e,i),ii(i,t.x,t.y)})),Sc(e,"floating")}function p(e,t){for(var n,i,r,o=t.waypoints,s=1;s<o.length;s++)Bt(n=o[s-1],i=o[s])&&(ze(r=Pc(e,n,i),{"data-segment-idx":s}),a(r,"mousemove",t))}function u(e){var t=s(e);return t||(l(t=s(e,!0),e),p(t,e)),t}function h(e){var t=s(e);t&&(!function(e){E(Me(".djs-segment-dragger",e),(function(e){Fe(e)}))}(t),function(e){E(Me(".djs-bendpoint",e),(function(e){Fe(e)}))}(t),p(t,e),l(t,e))}function d(e,t,n){var i,r,o=c(t.index,e),a=n[t.index-1],s=n[t.index],l=t.point,p=Nt(a,s),u=Bt(a,s);o&&(i=function(e){return Pe(".djs-visual",e)}(o),r={x:l.x-p.x,y:l.y-p.y},"v"===u&&(r={x:r.y,y:r.x}),ii(i,r.x,r.y))}e.on("connection.changed",(function(e){h(e.element)})),e.on("connection.remove",(function(e){var t=s(e.element);t&&Fe(t)})),e.on("element.marker.update",(function(e){var t,n=e.element;n.waypoints&&(t=u(n),e.add?Le(t).add(e.marker):Le(t).remove(e.marker))})),e.on("element.mousemove",(function(e){var n,i,r=e.element,o=r.waypoints;if(o){if(n=s(r,!0),!(i=Ec(t,o,e.originalEvent)))return;!function(e,t){var n=Pe(".floating",e),i=t.point;n&&ii(n,i.x,i.y)}(n,i),i.bendpoint||d(n,i,o)}})),e.on("element.mousedown",(function(e){if(Lo(e)){var t=e.originalEvent,n=e.element;if(n.waypoints)return o(t,n)}})),e.on("selection.changed",(function(e){var t=e.newSelection[0];t&&t.waypoints&&u(t)})),e.on("element.hover",(function(e){var t=e.element;t.waypoints&&(u(t),n.registerEvent(e.gfx,"mousemove","element.mousemove"))})),e.on("element.out",(function(e){n.unregisterEvent(e.gfx,"mousemove","element.mousemove")})),e.on("element.updateId",(function(e){var t=e.element,n=e.newId;if(t.waypoints){var i=s(t);i&&ze(i,{"data-element-id":n})}})),this.addHandles=u,this.updateHandles=h,this.getBendpointsContainer=s,this.getSegmentDragger=c}Ac.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];var kc=Math.round,Dc="reconnectStart",Tc="reconnectEnd",zc="updateWaypoints";function Oc(e,t,n,i,r,o){this._injector=e,this.start=function(e,t,o,a){var s,c=n.getGraphics(t),l=t.source,p=t.target,u=t.waypoints,h=(s=a||0!==o?a||o!==u.length-1?zc:Tc:Dc)===zc?"connection.updateWaypoints":"connection.reconnect",d=r.allowed(h,{connection:t,source:l,target:p});!1===d&&(d=r.allowed(h,{connection:t,source:p,target:l})),!1!==d&&i.init(e,"bendpoint.move",{data:{connection:t,connectionGfx:c,context:{allowed:d,bendpointIndex:o,connection:t,source:l,target:p,insert:a,type:s}}})},t.on("bendpoint.move.hover",(function(e){var t,n=e.context,i=n.connection,o=i.source,a=i.target,s=e.hover,c=n.type;if(n.hover=s,s){var l=c===zc?"connection.updateWaypoints":"connection.reconnect";if(t=n.allowed=r.allowed(l,{connection:i,source:c===Dc?s:o,target:c===Tc?s:a}))return n.source=c===Dc?s:o,void(n.target=c===Tc?s:a);!1===t&&(t=n.allowed=r.allowed(l,{connection:i,source:c===Tc?s:a,target:c===Dc?s:o})),t&&(n.source=c===Tc?s:a,n.target=c===Dc?s:o)}})),t.on(["bendpoint.move.out","bendpoint.move.cleanup"],(function(e){var t=e.context,n=t.type;t.hover=null,t.source=null,t.target=null,n!==zc&&(t.allowed=!1)})),t.on("bendpoint.move.end",(function(e){var t=e.context,n=t.allowed,i=t.bendpointIndex,r=t.connection,a=t.insert,s=r.waypoints.slice(),c=t.source,l=t.target,p=t.type,u=t.hints||{},h={x:kc(e.x),y:kc(e.y)};if(!n)return!1;p===zc?(a?s.splice(i,0,h):s[i]=h,u.bendpointMove={insert:a,bendpointIndex:i},s=this.cropWaypoints(r,s),o.updateWaypoints(r,function(e){e=e.slice();for(var t,n,i,r=0;e[r];)t=e[r],n=e[r-1],0===zt(t,i=e[r+1])||Ot(n,i,t)?e.splice(r,1):r++;return e}(s),u)):(p===Dc?(u.docking="source",Bc(t)&&(u.docking="target",u.newWaypoints=s.reverse())):p===Tc&&(u.docking="target",Bc(t)&&(u.docking="source",u.newWaypoints=s.reverse())),o.reconnect(r,c,l,h,u))}),this)}function Bc(e){var t=e.hover,n=e.source,i=e.target,r=e.type;return r===Dc?t&&i&&t===i&&n!==i:r===Tc?t&&n&&t===n&&n!==i:void 0}Oc.$inject=["injector","eventBus","canvas","dragging","rules","modeling"],Oc.prototype.cropWaypoints=function(e,t){var n=this._injector.get("connectionDocking",!1);if(!n)return t;var i=e.waypoints;return e.waypoints=t,e.waypoints=n.getCroppedWaypoints(e),t=e.waypoints,e.waypoints=i,t};var jc="updateWaypoints",Nc="connect-ok",Lc="connect-not-ok",Ic="connect-hover",Fc="djs-updating",Vc="djs-element-hidden";function Hc(e,t,n,i){this._injector=t;var r=t.get("connectionPreview",!1);n.on("bendpoint.move.start",(function(e){var t=e.context,n=t.bendpointIndex,r=t.connection,o=t.insert,a=r.waypoints,s=a.slice();t.waypoints=a,o&&s.splice(n,0,{x:e.x,y:e.y}),r.waypoints=s,Le(t.draggerGfx=Sc(i.getLayer("overlays"))).add("djs-dragging"),i.addMarker(r,Vc),i.addMarker(r,Fc)})),n.on("bendpoint.move.hover",(function(e){var t=e.context,n=t.allowed,r=t.hover,o=t.type;if(r){if(i.addMarker(r,Ic),o===jc)return;n?(i.removeMarker(r,Lc),i.addMarker(r,Nc)):!1===n&&(i.removeMarker(r,Nc),i.addMarker(r,Lc))}})),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],1100,(function(e){var t=e.context,n=t.hover,r=t.target;n&&(i.removeMarker(n,Ic),i.removeMarker(n,r?Nc:Lc))})),n.on("bendpoint.move.move",(function(t){var n=t.context,i=n.allowed,o=n.bendpointIndex,a=n.draggerGfx,s=n.hover,c=n.type,l=n.connection,p=l.source,u=l.target,h=l.waypoints.slice(),d={x:t.x,y:t.y},m=n.hints||{},f={};r&&(m.connectionStart&&(f.connectionStart=m.connectionStart),m.connectionEnd&&(f.connectionEnd=m.connectionEnd),"reconnectStart"===c?Bc(n)?(f.connectionEnd=f.connectionEnd||d,f.source=u,f.target=s||p,h=h.reverse()):(f.connectionStart=f.connectionStart||d,f.source=s||p,f.target=u):"reconnectEnd"===c?Bc(n)?(f.connectionStart=f.connectionStart||d,f.source=s||u,f.target=p,h=h.reverse()):(f.connectionEnd=f.connectionEnd||d,f.source=p,f.target=s||u):(f.noCropping=!0,f.noLayout=!0,h[o]=d),c===jc&&(h=e.cropWaypoints(l,h)),f.waypoints=h,r.drawPreview(n,i,f)),ii(a,t.x,t.y)}),this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],1100,(function(e){var t=e.context,n=t.connection,o=t.draggerGfx,a=t.hover,s=t.target,c=t.waypoints;n.waypoints=c,Fe(o),i.removeMarker(n,Fc),i.removeMarker(n,Vc),a&&(i.removeMarker(a,Nc),i.removeMarker(a,s?Nc:Lc)),r&&r.cleanUp(t)}))}Hc.$inject=["bendpointMove","injector","eventBus","canvas"];var $c="connect-hover",Gc="djs-updating";function Wc(e,t,n){return Uc(e,t,e[t]+n)}function Uc(e,t,n){return{x:"x"===t?n:e.x,y:"y"===t?n:e.y}}function qc(e){return"x"===e?"y":"x"}function Kc(e,t,n){var i,r;return e.original?e.original:(i=Sn(t),Uc(e,r=qc(n),i[r]))}function Yc(e,t,n,i,r,o){var a=e.get("connectionDocking",!1);function s(e,t){if(!a)return t;var n,i=e.waypoints;return e.waypoints=t,n=a.getCroppedWaypoints(e),e.waypoints=i,n}function c(e){r.update("connection",e.connection,e.connectionGfx)}function l(e,t,n){var i=e.newWaypoints,r=function(e,t,n,i){var r=Math.max(t[i],n[i]),o=Math.min(t[i],n[i]);return Uc(t,i,Math.min(Math.max(o+20,e[i]),r-20))}(n,i[e.segmentStartIndex+t],i[e.segmentEndIndex+t],qc(e.axis));ii(e.draggerGfx,r.x,r.y)}this.start=function(e,t,r){var o,a,s,c,l=n.getGraphics(t),p=r-1,u=r,h=t.waypoints,d=h[p],m=h[u],f=Ec(n,h,e);(a=Bt(d,m))&&(s="v"===a?"x":"y",0===p&&(d=Kc(d,t.source,s)),u===h.length-1&&(m=Kc(m,t.target,s)),o={connection:t,segmentStartIndex:p,segmentEndIndex:u,segmentStart:d,segmentEnd:m,axis:s,dragPosition:c=f?f.point:{x:(d.x+m.x)/2,y:(d.y+m.y)/2}},i.init(e,c,"connectionSegment.move",{cursor:"x"===s?"resize-ew":"resize-ns",data:{connection:t,connectionGfx:l,context:o}}))},t.on("connectionSegment.move.start",(function(e){var t=e.context,i=e.connection,r=n.getLayer("overlays");t.originalWaypoints=i.waypoints.slice(),t.draggerGfx=Pc(r,t.segmentStart,t.segmentEnd),Le(t.draggerGfx).add("djs-dragging"),n.addMarker(i,Gc)})),t.on("connectionSegment.move.move",(function(e){var t,n,i=e.context,r=i.connection,o=i.segmentStartIndex,a=i.segmentEndIndex,p=i.segmentStart,u=i.segmentEnd,h=i.axis,d=i.originalWaypoints.slice(),m=Wc(p,h,e["d"+h]),f=Wc(u,h,e["d"+h]),v=d.length,g=0;d[o]=m,d[a]=f,o<2&&(t=Cn(r.source,m),1===o?"intersect"===t&&(d.shift(),d[0]=m,g--):"intersect"!==t&&(d.unshift(p),g++)),a>v-3&&(n=Cn(r.target,f),a===v-2?"intersect"===n&&(d.pop(),d[d.length-1]=f):"intersect"!==n&&d.push(u)),i.newWaypoints=r.waypoints=s(r,d),l(i,g,e),i.newSegmentStartIndex=o+g,c(e)})),t.on("connectionSegment.move.hover",(function(e){e.context.hover=e.hover,n.addMarker(e.hover,$c)})),t.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],(function(e){var t=e.context.hover;t&&n.removeMarker(t,$c)})),t.on("connectionSegment.move.cleanup",(function(e){var t=e.context,i=t.connection;t.draggerGfx&&Fe(t.draggerGfx),n.removeMarker(i,Gc)})),t.on(["connectionSegment.move.cancel","connectionSegment.move.end"],(function(e){var t=e.context;t.connection.waypoints=t.originalWaypoints,c(e)})),t.on("connectionSegment.move.end",(function(e){var t=e.context,n=t.connection,i=t.newWaypoints,r=t.newSegmentStartIndex,a=function(e,t){var n=0;return{waypoints:e.filter((function(i,r){return!Ot(e[r-1],e[r+1],i)||(n=r<=t?n-1:n,!1)})),segmentOffset:n}}(i=i.map((function(e){return{original:e.original,x:Math.round(e.x),y:Math.round(e.y)}})),r),c=s(n,a.waypoints),l=a.segmentOffset,p={segmentMove:{segmentStartIndex:t.segmentStartIndex,newSegmentStartIndex:r+l}};o.updateWaypoints(n,c,p)}))}Yc.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var Xc=Math.abs,Zc=Math.round;function Qc(e){return{x:e.x,y:e.y}}function Jc(e){return{x:e.x+e.width,y:e.y+e.height}}function el(e,t){return!e||isNaN(e.x)||isNaN(e.y)?t:{x:Zc(e.x+e.width/2),y:Zc(e.y+e.height/2)}}function tl(e,t){var n=e.snapped;return!!n&&("string"==typeof t?n[t]:n.x&&n.y)}function nl(e,t,n){if("string"!=typeof t)throw new Error("axis must be in [x, y]");if("number"!=typeof n&&!1!==n)throw new Error("value must be Number or false");var i,r=e[t],o=e.snapped=e.snapped||{};return!1===n?o[t]=!1:(o[t]=!0,i=n-r,e[t]+=i,e["d"+t]+=i),r}function il(e){return e.children||[]}var rl=Math.abs,ol=Math.round;function al(e){function t(e,t){if(d(e)){for(var n=e.length;n--;)if(rl(e[n]-t)<=10)return e[n]}else{var i=t%(e=+e);if(i<10)return t-i;if(i>e-10)return t-i+e}return t}function n(e,t){return e.waypoints?Rc(t,e):e.width?{x:ol(e.width/2+e.x),y:ol(e.height/2+e.y)}:void 0}e.on("connectionSegment.move.move",1500,(function(e){var i,r,o=function(e){var t=e.context,i=t.snapPoints,r=t.connection,o=r.waypoints,a=t.segmentStart,s=t.segmentStartIndex,c=t.segmentEnd,l=t.segmentEndIndex,p=t.axis;if(i)return i;var u=[o[s-1],a,c,o[l+1]];return s<2&&u.unshift(n(r.source,e)),l>o.length-3&&u.unshift(n(r.target,e)),t.snapPoints=i={horizontal:[],vertical:[]},E(u,(function(e){e&&(e=e.original||e,"y"===p&&i.horizontal.push(e.y),"x"===p&&i.vertical.push(e.x))})),i}(e),a=e.x,s=e.y;if(o){var c=a-(i=t(o.vertical,a)),l=s-(r=t(o.horizontal,s));W(e,{dx:e.dx-c,dy:e.dy-l,x:i,y:r}),(c||-1!==o.vertical.indexOf(a))&&nl(e,"x",i),(l||-1!==o.horizontal.indexOf(s))&&nl(e,"y",r)}})),e.on(["connect.hover","connect.move","connect.end"],1500,(function(e){var t,i=e.context.hover,r=i&&n(i,e);(t=i)&&t.waypoints&&r&&r.x&&r.y&&(nl(e,"x",r.x),nl(e,"y",r.y))})),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,(function(e){var i,r,o=e.context,a=function(e){var t=e.snapPoints,n=e.connection.waypoints,i=e.bendpointIndex;if(t)return t;var r=[n[i-1],n[i+1]];return e.snapPoints=t={horizontal:[],vertical:[]},E(r,(function(e){e&&(e=e.original||e,t.horizontal.push(e.y),t.vertical.push(e.x))})),t}(o),s=o.hover,c=s&&n(s,e),l=e.x,p=e.y;if(a){var u=l-(i=t(c?a.vertical.concat([c.x]):a.vertical,l)),h=p-(r=t(c?a.horizontal.concat([c.y]):a.horizontal,p));W(e,{dx:e.dx-u,dy:e.dy-h,x:e.x-u,y:e.y-h}),(u||-1!==a.vertical.indexOf(l))&&nl(e,"x",i),(h||-1!==a.horizontal.indexOf(p))&&nl(e,"y",r)}}))}al.$inject=["eventBus"];var sl={__depends__:[sc,hc],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",Ac],bendpointMove:["type",Oc],bendpointMovePreview:["type",Hc],connectionSegmentMove:["type",Yc],bendpointSnapping:["type",al]};function cl(e,t,n,i){function r(e,t){return i.allowed("connection.create",{source:e,target:t})}e.on("connect.hover",(function(e){var t,n=e.context,i=n.start,o=e.hover;if(n.hover=o,!h(t=n.canExecute=r(i,o))){if(!1!==t)return n.source=i,void(n.target=o);h(t=n.canExecute=r(o,i))||!1!==t&&(n.source=o,n.target=i)}})),e.on(["connect.out","connect.cleanup"],(function(e){var t=e.context;t.hover=null,t.source=null,t.target=null,t.canExecute=!1})),e.on("connect.end",(function(e){var t=e.context,i=t.canExecute,r=t.connectionStart,o={x:e.x,y:e.y},a=t.source,s=t.target;if(!i)return!1;var c=null,l={connectionStart:ll(t)?o:r,connectionEnd:ll(t)?r:o};m(i)&&(c=i),t.connection=n.connect(a,s,c,l)})),this.start=function(e,n,i,r){m(i)||(r=i,i=Sn(n)),t.init(e,"connect",{autoActivate:r,data:{shape:n,context:{start:n,connectionStart:i}}})}}function ll(e){var t=e.hover,n=e.source,i=e.target;return t&&n&&t===n&&n!==i}cl.$inject=["eventBus","dragging","modeling","rules"];var pl="connect-ok",ul="connect-not-ok";function hl(e,t,n){var i=e.get("connectionPreview",!1);i&&t.on("connect.move",(function(e){var t=e.context,n=t.canExecute,r=t.hover,o=t.source,a=t.start,s=t.startPosition,c=t.target,l=t.connectionStart||s,p=t.connectionEnd||{x:e.x,y:e.y},u=l,h=p;ll(t)&&(u=p,h=l),i.drawPreview(t,n,{source:o||a,target:c||r,connectionStart:u,connectionEnd:h})})),t.on("connect.hover",900,(function(e){var t=e.context,i=e.hover,r=t.canExecute;null!==r&&n.addMarker(i,r?pl:ul)})),t.on(["connect.out","connect.cleanup"],1100,(function(e){var t=e.hover;t&&(n.removeMarker(t,pl),n.removeMarker(t,ul))})),i&&t.on("connect.cleanup",(function(e){i.cleanUp(e.context)}))}hl.$inject=["injector","eventBus","canvas"];var dl={__depends__:[Jo,hc,sc],__init__:["connectPreview"],connect:["type",cl],connectPreview:["type",hl]};function ml(e,t,n,i){this._canvas=t,this._graphicsFactory=n,this._elementFactory=i,this._connectionDocking=e.get("connectionDocking",!1),this._layouter=e.get("layouter",!1)}ml.$inject=["injector","canvas","graphicsFactory","elementFactory"],ml.prototype.drawPreview=function(e,t,n){n=n||{};var i,r=e.connectionPreviewGfx,o=e.getConnection,a=n.source,s=n.target,c=n.waypoints,l=n.connectionStart,p=n.connectionEnd,u=n.noLayout,h=n.noCropping,d=n.noNoop,m=this;r||(r=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),Ve(r),o||(o=e.getConnection=function(e){var t={};return function(n){var i=JSON.stringify(n),r=t[i];return r||(r=t[i]=e.apply(null,arguments)),r}}((function(e,t,n){return m.getConnection(e,t,n)}))),t&&(i=o(t,a,s)),i?(i.waypoints=c||[],this._layouter&&!u&&(i.waypoints=this._layouter.layoutConnection(i,{source:a,target:s,connectionStart:l,connectionEnd:p,waypoints:n.waypoints||i.waypoints})),i.waypoints&&i.waypoints.length||(i.waypoints=[a?Sn(a):l,s?Sn(s):p]),this._connectionDocking&&(a||s)&&!h&&(i.waypoints=this._connectionDocking.getCroppedWaypoints(i,a,s)),this._graphicsFactory.drawConnection(r,i)):!d&&this.drawNoopPreview(r,n)},ml.prototype.drawNoopPreview=function(e,t){var n=t.source,i=t.target,r=t.connectionStart||Sn(n),o=t.connectionEnd||Sn(i),a=this.cropWaypoints(r,o,n,i);ke(e,this.createNoopConnection(a[0],a[1]))},ml.prototype.cropWaypoints=function(e,t,n,i){var r=this._graphicsFactory,o=n&&r.getShapePath(n),a=i&&r.getShapePath(i),s=r.getConnectionPath({waypoints:[e,t]});return[e=n&&Pn(o,s,!0)||e,t=i&&Pn(a,s,!1)||t]},ml.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&Fe(e.connectionPreviewGfx)},ml.prototype.getConnection=function(e){var t=function(e){return m(e)?e:{}}(e);return this._elementFactory.createConnection(t)},ml.prototype.createConnectionPreviewGfx=function(){var e=Ue("g");return ze(e,{pointerEvents:"none"}),Le(e).add("djs-connection-preview"),ke(this._canvas.getActiveLayer(),e),e},ml.prototype.createNoopConnection=function(e,t){var n=Ue("polyline");return ze(n,{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"}),ze(n,{points:[e.x,e.y,t.x,t.y]}),n};var fl={__init__:["connectionPreview"],connectionPreview:["type",ml]},vl=Math.min,gl=Math.max;function yl(e){e.preventDefault()}function bl(e){e.stopPropagation()}function _l(e){this.container=e.container,this.parent=Ee('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=Pe("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=H(this.autoResize,this),this.handlePaste=H(this.handlePaste,this)}function xl(e,t){this._eventBus=e,this._providers=[],this._textbox=new _l({container:t.getContainer(),keyHandler:H(this._handleKey,this),resizeHandler:H(this._handleResize,this)})}_l.prototype.create=function(e,t,n,i){var r=this.parent,o=this.content,a=this.container;i=this.options=i||{};var s=K(t=this.style=t||{},["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);W(r.style,{width:e.width+"px",height:e.height+"px",maxWidth:e.maxWidth+"px",maxHeight:e.maxHeight+"px",minWidth:e.minWidth+"px",minHeight:e.minHeight+"px",left:e.x+"px",top:e.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},s);var c=K(t,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return W(o.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},c),i.centerVertically&&W(o.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},c),o.innerText=n,be.bind(o,"keydown",this.keyHandler),be.bind(o,"mousedown",bl),be.bind(o,"paste",this.handlePaste),i.autoResize&&be.bind(o,"input",this.autoResize),i.resizable&&this.resizable(t),a.appendChild(r),this.setSelection(o.lastChild,o.lastChild&&o.lastChild.length),r},_l.prototype.handlePaste=function(e){var t,n=this.options,i=this.style;if(e.preventDefault(),t=e.clipboardData?e.clipboardData.getData("text/plain"):window.clipboardData.getData("Text"),this.insertText(t),n.autoResize){var r=this.autoResize(i);r&&this.resizeHandler(r)}},_l.prototype.insertText=function(e){e=e.replace(/\r\n|\r|\n/g,"\n"),document.execCommand("insertText",!1,e)||this._insertTextIE(e)},_l.prototype._insertTextIE=function(e){var t,n,i,r=this.getSelection(),o=r.startContainer,a=r.endContainer,s=r.startOffset,c=r.endOffset,l=r.commonAncestorContainer,p=(t=l.childNodes,[].slice.call(t));if(function(e){return e.nodeType===Node.TEXT_NODE}(l)){var u=o.textContent;o.textContent=u.substring(0,s)+e+u.substring(c),n=o,i=s+e.length}else if(o===this.content&&a===this.content){var h=document.createTextNode(e);this.content.insertBefore(h,p[s]),n=h,i=h.textContent.length}else{var d=p.indexOf(o),m=p.indexOf(a);p.forEach((function(t,n){n===d?t.textContent=o.textContent.substring(0,s)+e+a.textContent.substring(c):n>d&&n<=m&&Re(t)})),n=o,i=s+e.length}n&&void 0!==i&&setTimeout((function(){self.setSelection(n,i)}))},_l.prototype.autoResize=function(){var e=this.parent,t=this.content,n=parseInt(this.style.fontSize)||12;if(t.scrollHeight>e.offsetHeight||t.scrollHeight<e.offsetHeight-n){var i=e.getBoundingClientRect(),r=t.scrollHeight;e.style.height=r+"px",this.resizeHandler({width:i.width,height:i.height,dx:0,dy:r-i.height})}},_l.prototype.resizable=function(){var e=this,t=this.parent,n=this.resizeHandle,i=parseInt(this.style.minWidth)||0,r=parseInt(this.style.minHeight)||0,o=parseInt(this.style.maxWidth)||1/0,a=parseInt(this.style.maxHeight)||1/0;if(!n){var s,c,l,p;n=this.resizeHandle=Ee('<div class="djs-direct-editing-resize-handle"></div>');var u=function(n){yl(n),bl(n);var u=vl(gl(l+n.clientX-s,i),o),h=vl(gl(p+n.clientY-c,r),a);t.style.width=u+"px",t.style.height=h+"px",e.resizeHandler({width:l,height:p,dx:n.clientX-s,dy:n.clientY-c})},h=function(e){yl(e),bl(e),be.unbind(document,"mousemove",u,!1),be.unbind(document,"mouseup",h,!1)};be.bind(n,"mousedown",(function(e){yl(e),bl(e),s=e.clientX,c=e.clientY;var n=t.getBoundingClientRect();l=n.width,p=n.height,be.bind(document,"mousemove",u),be.bind(document,"mouseup",h)}))}W(n.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),t.appendChild(n)},_l.prototype.destroy=function(){var e=this.parent,t=this.content,n=this.resizeHandle;t.innerText="",e.removeAttribute("style"),t.removeAttribute("style"),be.unbind(t,"keydown",this.keyHandler),be.unbind(t,"mousedown",bl),be.unbind(t,"input",this.autoResize),be.unbind(t,"paste",this.handlePaste),n&&(n.removeAttribute("style"),Re(n)),Re(e)},_l.prototype.getValue=function(){return this.content.innerText.trim()},_l.prototype.getSelection=function(){return window.getSelection().getRangeAt(0)},_l.prototype.setSelection=function(e,t){var n=document.createRange();null===e?n.selectNodeContents(this.content):(n.setStart(e,t),n.setEnd(e,t));var i=window.getSelection();i.removeAllRanges(),i.addRange(n)},xl.$inject=["eventBus","canvas"],xl.prototype.registerProvider=function(e){this._providers.push(e)},xl.prototype.isActive=function(e){return!(!this._active||e&&this._active.element!==e)},xl.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},xl.prototype._fire=function(e,t){this._eventBus.fire("directEditing."+e,t||{active:this._active})},xl.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0},xl.prototype.complete=function(){var e=this._active;if(e){var t,n=e.context.bounds,i=this.$textbox.getBoundingClientRect(),r=this.getValue();r===e.context.text&&i.height===n.height&&i.width===n.width||(t=this._textbox.container.getBoundingClientRect(),e.provider.update(e.element,r,e.context.text,{x:i.left-t.left,y:i.top-t.top,width:i.width,height:i.height})),this._fire("complete"),this.close()}},xl.prototype.getValue=function(){return this._textbox.getValue()},xl.prototype._handleKey=function(e){e.stopPropagation();var t=e.keyCode||e.charCode;return 27===t?(e.preventDefault(),this.cancel()):13!==t||e.shiftKey?void 0:(e.preventDefault(),this.complete())},xl.prototype._handleResize=function(e){this._fire("resize",e)},xl.prototype.activate=function(e){var t;this.isActive()&&this.cancel();var n=_(this._providers,(function(n){return(t=n.activate(e))?n:null}));return t&&(this.$textbox=this._textbox.create(t.bounds,t.style,t.text,t.options),this._active={element:e,context:t,provider:n},t.options&&t.options.resizable&&(this.resizable=!0),this._fire("activate")),!!t};var wl={__depends__:[Go],__init__:["directEditing"],directEditing:["type",xl]},El=["marker-start","marker-mid","marker-end"],Sl=["circle","ellipse","line","path","polygon","polyline","rect"];function Cl(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._styles=i,this._clonedMarkers={};var r=this;t.on("drag.cleanup",(function(){E(r._clonedMarkers,(function(e){Fe(e)})),r._clonedMarkers={}}))}Cl.$inject=["elementRegistry","eventBus","canvas","styles"],Cl.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)},Cl.prototype.addDragger=function(e,t,n){var i=He(n=n||this.getGfx(e)),r=n.getBoundingClientRect();return this._cloneMarkers(ti(i)),ze(i,this._styles.cls("djs-dragger",[],{x:r.top,y:r.left})),ke(t,i),i},Cl.prototype.addFrame=function(e,t){var n=Ue("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return ke(t,n),n},Cl.prototype._cloneMarkers=function(e){var t=this;if(e.childNodes)for(var n=0;n<e.childNodes.length;n++)t._cloneMarkers(e.childNodes[n]);(function(e){return-1!==Sl.indexOf(e.nodeName)})(e)&&El.forEach((function(n){if(ze(e,n)){var i=function(e,t,n){return Pe("marker#"+(i=ze(e,t),i.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]),n||document);var i}(e,n,t._canvas.getContainer());t._cloneMarker(e,i,n)}}))},Cl.prototype._cloneMarker=function(e,t,n){var i=t.id,r=this._clonedMarkers[i];if(!r){var o=i+"-clone";(r=He(t)).id=o,Le(r).add("djs-dragger").add("djs-dragger-marker"),this._clonedMarkers[i]=r;var a=Pe("defs",this._canvas._svg);a||(a=Ue("defs"),ke(this._canvas._svg,a)),ke(a,r)}ze(e,n,"url(#"+this._clonedMarkers[i].id+")")};var Pl={__init__:["previewSupport"],previewSupport:["type",Cl]},Ml="drop-ok",Rl="drop-not-ok",Al="attach-ok",kl="new-parent",Dl="create";function Tl(e,t,n,i,r){function o(t,n){[Al,Ml,Rl,kl].forEach((function(i){i===n?e.addMarker(t,i):e.removeMarker(t,i)}))}function a(){var e=t.context();e&&e.prefix===Dl&&t.cancel()}n.on(["create.move","create.hover"],(function(e){var t=e.context,n=t.elements,i=e.hover,a=t.source,s=t.hints||{};if(!i)return t.canExecute=!1,void(t.target=null);zl(e);var c={x:e.x,y:e.y},l=t.canExecute=i&&function(e,t,n,i,o){if(!t)return!1;var a=_(e=w(e,(function(t){var n=t.labelTarget;return!(t.parent||function(e){return!!e.labelTarget}(t)&&-1!==e.indexOf(n))})),(function(e){return!Ol(e)})),s=!1,c=!1,l=!1;Bl(e)&&(s=r.allowed("shape.attach",{position:n,shape:a,target:t})),s||(l=Bl(e)?r.allowed("shape.create",{position:n,shape:a,source:i,target:t}):r.allowed("elements.create",{elements:e,position:n,target:t}));var p=o.connectionTarget;return l||s?(a&&i&&(c=r.allowed("connection.create",{source:p===i?a:i,target:p===i?i:a,hints:{targetParent:t,targetAttach:s}})),{attach:s,connect:c}):(null===l||null===s)&&null}(n,i,c,a,s);i&&null!==l&&(t.target=i,l&&l.attach?o(i,Al):o(i,l?kl:Rl))})),n.on(["create.end","create.out","create.cleanup"],(function(e){var t=e.hover;t&&o(t,null)})),n.on("create.end",(function(e){var t=e.context,n=t.source,r=t.shape,o=t.elements,a=t.target,s=t.canExecute,c=s&&s.attach,l=s&&s.connect,p=t.hints||{};if(!1===s||!a)return!1;zl(e);var u={x:e.x,y:e.y};r=l?i.appendShape(n,r,u,a,{attach:c,connection:!0===l?{}:l,connectionTarget:p.connectionTarget}):_(o=i.createElements(o,u,a,W({},p,{attach:c})),(function(e){return!Ol(e)})),W(t,{elements:o,shape:r}),W(e,{elements:o,shape:r})})),n.on("create.init",(function(){n.on("elements.changed",a),n.once(["create.cancel","create.end"],2e3,(function(){n.off("elements.changed",a)}))})),this.start=function(e,n,i){d(n)||(n=[n]);var r=_(n,(function(e){return!Ol(e)}));if(r){i=W({elements:n,hints:{},shape:r},i||{}),E(n,(function(e){f(e.x)||(e.x=0),f(e.y)||(e.y=0)}));var o=St(w(n,(function(e){return!e.hidden})));E(n,(function(e){Ol(e)&&(e.waypoints=R(e.waypoints,(function(e){return{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2}}))),W(e,{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2})})),t.init(e,Dl,{cursor:"grabbing",autoActivate:!0,data:{shape:r,elements:n,context:i}})}}}function zl(e){var t=e.context.createConstraints;t&&(t.left&&(e.x=Math.max(e.x,t.left)),t.right&&(e.x=Math.min(e.x,t.right)),t.top&&(e.y=Math.max(e.y,t.top)),t.bottom&&(e.y=Math.min(e.y,t.bottom)))}function Ol(e){return!!e.waypoints}function Bl(e){return e&&1===e.length&&!Ol(e[0])}Tl.$inject=["canvas","dragging","eventBus","modeling","rules"];function jl(e,t,n,i,r){t.on("create.move",750,(function(t){var o=t.hover,a=t.context,s=a.elements,c=a.dragGroup;c||(c=a.dragGroup=function(e){var t=Ue("g");ze(t,r.cls("djs-drag-group",["no-events"]));var o=Ue("g");return e.forEach((function(e){var r;e.hidden||(e.waypoints?(r=n._createContainer("connection",o),n.drawConnection(ti(r),e)):(r=n._createContainer("shape",o),n.drawShape(ti(r),e),ii(r,e.x,e.y)),i.addDragger(e,t,r))})),t}(s)),o?(c.parentNode||ke(e.getActiveLayer(),c),ii(c,t.x,t.y)):Fe(c)})),t.on("create.cleanup",(function(e){var t=e.context.dragGroup;t&&Fe(t)}))}jl.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];var Nl={__depends__:[sc,Pl,hc,Jo],__init__:["create","createPreview"],create:["type",Tl],createPreview:["type",jl]};function Ll(){}Ll.prototype.get=function(){return this._data},Ll.prototype.set=function(e){this._data=e},Ll.prototype.clear=function(){var e=this._data;return delete this._data,e},Ll.prototype.isEmpty=function(){return!this._data};var Il={clipboard:["type",Ll]};function Fl(e){var t=this;function n(e){t._lastMoveEvent=e}this._lastMoveEvent=null,e.on("canvas.init",(function(e){(t._svg=e.svg).addEventListener("mousemove",n)})),e.on("canvas.destroy",(function(){t._lastMouseEvent=null,t._svg.removeEventListener("mousemove",n)}))}Fl.$inject=["eventBus"],Fl.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||function(e,t){var n=document.createEvent("MouseEvent"),i=e,r=t,o=e,a=t;n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,i,r,o,a,!1,!1,!1,!1,0,null);return n}(0,0)};var Vl={__init__:["mouse"],mouse:["type",Fl]};function Hl(e,t,n,i,r,o,a,s){this._canvas=e,this._create=t,this._clipboard=n,this._elementFactory=i,this._eventBus=r,this._modeling=o,this._mouse=a,this._rules=s,r.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element,i=e.elements;t.priority=1,t.id=n.id,_(i,(function(e){return e===n.parent}))&&(t.parent=n.parent.id),function(e){return!!e.host}(n)&&(t.priority=2,t.host=n.host.id),$l(n)&&(t.priority=3,t.source=n.source.id,t.target=n.target.id,t.waypoints=function(e){return R(e.waypoints,(function(e){return(e=Wl(e)).original&&(e.original=Wl(e.original)),e}))}(n)),Gl(n)&&(t.priority=4,t.labelTarget=n.labelTarget.id),E(["x","y","width","height"],(function(e){f(n[e])&&(t[e]=n[e])})),t.hidden=n.hidden,t.collapsed=n.collapsed})),r.on("copyPaste.pasteElements",(function(e){W(e.hints,{createElementsBehavior:!1})}))}function $l(e){return!!e.waypoints}function Gl(e){return!!e.labelTarget}function Wl(e){return W({},e)}function Ul(e,t){var n=t.indexOf(e);return-1===n?t:t.splice(n,1)}Hl.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],Hl.prototype.copy=function(e){var t,n;return d(e)||(e=e?[e]:[]),n=!1===(t=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}))?{}:this.createTree(d(t)?t:e),this._clipboard.set(n),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:n}),n},Hl.prototype.paste=function(e){var t=this._clipboard.get();if(!this._clipboard.isEmpty()){var n=e&&e.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:n});var i=this._createElements(t);if(e&&e.element&&e.point)return this._paste(i,e.element,e.point,n);this._create.start(this._mouse.getLastMoveEvent(),i,{hints:n||{}})}},Hl.prototype._paste=function(e,t,n,i){E(e,(function(e){f(e.x)||(e.x=0),f(e.y)||(e.y=0)}));var r=St(e);return E(e,(function(e){$l(e)&&(e.waypoints=R(e.waypoints,(function(e){return{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2}}))),W(e,{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2})})),this._modeling.createElements(e,n,t,W({},i))},Hl.prototype._createElements=function(e){var t=this,n=this._eventBus,i={},r=[];return E(e,(function(e,o){E(e=B(e,"priority"),(function(e){var o,a=W({},Y(e,["priority"]));return i[e.parent]?a.parent=i[e.parent]:delete a.parent,n.fire("copyPaste.pasteElement",{cache:i,descriptor:a}),$l(a)?(a.source=i[e.source],a.target=i[e.target],o=i[e.id]=t.createConnection(a),void r.push(o)):Gl(a)?(a.labelTarget=i[a.labelTarget],o=i[e.id]=t.createLabel(a),void r.push(o)):(a.host&&(a.host=i[a.host]),o=i[e.id]=t.createShape(a),void r.push(o))}))})),r},Hl.prototype.createConnection=function(e){return this._elementFactory.createConnection(Y(e,["id"]))},Hl.prototype.createLabel=function(e){return this._elementFactory.createLabel(Y(e,["id"]))},Hl.prototype.createShape=function(e){return this._elementFactory.createShape(Y(e,["id"]))},Hl.prototype.hasRelations=function(e,t){var n,i;return!($l(e)&&(n=_(t,j({id:e.source.id})),i=_(t,j({id:e.target.id})),!n||!i))&&!(Gl(e)&&!_(t,j({id:e.labelTarget.id})))},Hl.prototype.createTree=function(e){var t=this._rules,n=this,i={},r=[];function o(e,t){var n=_(r,(function(t){return e===t.element}));n?n.depth<t&&(r=function(e,t){var n=t.indexOf(e);-1!==n&&t.splice(n,1);return t}(n,r)).push({element:n.element,depth:t}):r.push({element:e,depth:t})}return wt(bt(e),(function(e,t,i){if(!Gl(e)){E(e.labels,(function(e){o(e,i)})),E([e.attachers,e.incoming,e.outgoing],(function(e){e&&e.length&&E(e,(function(e){E(e.labels,(function(e){o(e,i)})),o(e,i)}))})),o(e,i);var r=[];return e.children&&(r=e.children.slice()),n._eventBus.fire("copyPaste.createTree",{element:e,children:r}),r}})),e=R(r,(function(e){return e.element})),r=B(r=R(r,(function(t){return t.descriptor={},n._eventBus.fire("copyPaste.copyElement",{descriptor:t.descriptor,element:t.element,elements:e}),t})),(function(e){return e.descriptor.priority})),e=R(r,(function(e){return e.element})),E(r,(function(r){var o=r.depth;n.hasRelations(r.element,e)?!function(e,n){return t.allowed("element.copy",{element:e,elements:n})}(r.element,e)?Ul(r.element,e):(i[o]||(i[o]=[]),i[o].push(r.descriptor)):Ul(r.element,e)})),i};var ql={__depends__:[Il,Nl,Vl,hc],__init__:["copyPaste"],copyPaste:["type",Hl]};function Kl(e,t,n){d(n)||(n=[n]),E(n,(function(n){p(e[n])||(t[n]=e[n])}))}function Yl(e,t,n){var i;t.on("copyPaste.copyElement",750,(function(e){var t=e.descriptor,n=e.element,i=t.oldBusinessObject=Tr(n),r=t.oldDi=zr(n);if(t.type=n.type,Kl(i,t,"name"),Kl(r,t,"isExpanded"),Xl(t))return t;i.default&&(t.default=i.default.id)})),t.on("moddleCopy.canCopyProperty",(function(t){var i,r=t.parent,o=t.property;if("processRef"===t.propertyName&&kr(r,"bpmn:Participant")&&kr(o,"bpmn:Process"))return i=e.create("bpmn:Process"),n.copyElement(o,i)})),t.on("copyPaste.pasteElements",(function(){i={}})),t.on("copyPaste.pasteElement",(function(t){var r,o,a,s,c=t.cache,l=t.descriptor,p=l.oldBusinessObject,u=l.oldDi;if(Xl(l))return l.businessObject=Tr(c[l.labelTarget]),void(l.di=zr(c[l.labelTarget]));r=e.create(p.$type),l.businessObject=n.copyElement(p,r),(o=e.create(u.$type)).bpmnElement=r,l.di=n.copyElement(u,o),function(e,t){var n=Tr(e);e.default&&(i[e.default]={element:n,property:"default"}),e.host&&(Tr(e).attachedToRef=Tr(t[e.host])),i=Y(i,C(i,(function(t,i,r){var o=i.element,a=i.property;return r===e.id&&(o[a]=n,t.push(e.id)),t}),[]))}(l,c),Kl(l,r,["isExpanded","name"]),a=l,d(s="oldBusinessObject")||(s=[s]),E(s,(function(e){a[e]&&delete a[e]}))}))}function Xl(e){return!!e.labelTarget}Yl.$inject=["bpmnFactory","eventBus","moddleCopy"];var Zl=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing"];function Ql(e,t,n){this._bpmnFactory=t,this._eventBus=e,this._moddle=n,e.on("moddleCopy.canCopyProperties",(function(e){var t=e.propertyNames;if(t&&t.length)return B(t,(function(e){return"extensionElements"===e}))})),e.on("moddleCopy.canCopyProperty",(function(e){var t=e.parent,n=m(t)&&t.$descriptor,i=e.propertyName;return(!i||-1===Zl.indexOf(i))&&(!(i&&n&&!_(n.properties,j({name:i})))&&void 0)})),e.on("moddleCopy.canSetCopiedProperty",(function(e){var t,n,i=e.property;if(n="bpmn:ExtensionElements",(t=i)&&"function"==typeof t.$instanceOf&&t.$instanceOf(n)&&(!i.values||!i.values.length))return!1}))}function Jl(e,t){return C(e.properties,(function(e,n){return t&&n.default?e:e.concat(n.name)}),[])}Ql.$inject=["eventBus","bpmnFactory","moddle"],Ql.prototype.copyElement=function(e,t,n){var i=this;n&&!d(n)&&(n=[n]),n=n||Jl(e.$descriptor);var r=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:n,sourceElement:e,targetElement:t});return!1===r||(d(r)&&(n=r),E(n,(function(n){var r;b(e,n)&&(r=e.get(n));var o=i.copyProperty(r,t,n);!1!==i._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:t,property:o,propertyName:n})&&u(o)&&t.set(n,o)}))),t},Ql.prototype.copyProperty=function(e,t,n){var i=this,r=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:t,property:e,propertyName:n});if(!1!==r){if(r)return m(r)&&r.$type&&!r.$parent&&(r.$parent=t),r;var o=this._moddle.getPropertyDescriptor(t,n);if(!o.isReference){if(o.isId)return this._copyId(e,t);if(d(e))return C(e,(function(e,o){return(r=i.copyProperty(o,t,n))?e.concat(r):e}),[]);if(m(e)&&e.$type){if(this._moddle.getElementDescriptor(e).isGeneric)return;return(r=i._bpmnFactory.create(e.$type)).$parent=t,r=i.copyElement(e,r)}return e}}},Ql.prototype._copyId=function(e,t){return this._moddle.ids.assigned(e)?void 0:(this._moddle.ids.claim(e,t),e)};var ep={__depends__:[ql],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",Yl],moddleCopy:["type",Ql]},tp=Math.round;function np(e){this._modeling=e}np.$inject=["modeling"],np.prototype.replaceElement=function(e,t,n){if(e.waypoints)return null;var i=this._modeling,r=t.width||e.width,o=t.height||e.height,a=t.x||e.x,s=t.y||e.y,c=tp(a+r/2),l=tp(s+o/2);return i.replaceShape(e,W({},t,{x:c,y:l,width:r,height:o}),n)};var ip={__init__:["replace"],replace:["type",np]};var rp=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];function op(e,t,n,i,r,o,a){this.replaceElement=function(s,c,l){l=l||{};var u=c.type,h=s.businessObject;if(ap(h)&&"bpmn:SubProcess"===u&&function(e,t){var n=e&&b(e,"collapsed")?e.collapsed:!Yr(e);return n!==(t&&(b(t,"collapsed")||b(t,"isExpanded"))?b(t,"collapsed")?t.collapsed:!t.isExpanded:n)}(s,c))return i.toggleCollapse(s),s;var m=e.create(u),f={type:u,businessObject:m,di:{}};!function(e,t,n){d(n)||(n=[n]),E(n,(function(n){p(e[n])||(t[n]=e[n])}))}(s.di,f.di,["fill","stroke","background-color","border-color","color"]);var v,g=Jl(h.$descriptor),y=Jl(m.$descriptor,!0),_=(v=y,g.filter((function(e){return-1!==v.indexOf(e)})));W(m,K(c,rp));var x=w(_,(function(e){return"eventDefinitions"===e?sp(s,c.eventDefinitionType):"loopCharacteristics"===e?!Zr(m):!b(m,e)&&(("processRef"!==e||!1!==c.isExpanded)&&"triggeredByEvent"!==e)}));return m=n.copyElement(h,m,x),c.eventDefinitionType&&(sp(m,c.eventDefinitionType)||(f.eventDefinitionType=c.eventDefinitionType,f.eventDefinitionAttrs=c.eventDefinitionAttrs)),kr(h,"bpmn:Activity")&&(ap(h)?f.isExpanded=Yr(s):c&&b(c,"isExpanded")&&(f.isExpanded=c.isExpanded),Yr(s)&&!kr(h,"bpmn:Task")&&f.isExpanded&&(f.width=s.width,f.height=s.height)),ap(h)&&!ap(m)&&(l.moveChildren=!1),kr(h,"bpmn:Participant")&&(!0===c.isExpanded?m.processRef=e.create("bpmn:Process"):l.moveChildren=!1,f.width=s.width,f.height=t.getDefaultSize(f).height),o.allowed("shape.resize",{shape:m})||(f.height=t.getDefaultSize(f).height,f.width=t.getDefaultSize(f).width),m.name=h.name,Dr(h,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&Dr(m,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(m.default=h.default),c.host&&!kr(h,"bpmn:BoundaryEvent")&&kr(m,"bpmn:BoundaryEvent")&&(f.host=c.host),"bpmn:DataStoreReference"!==f.type&&"bpmn:DataObjectReference"!==f.type||(f.x=s.x+(s.width-f.width)/2),f=r.replaceElement(s,f,l),!1!==l.select&&a.select(f),f}}function ap(e){return kr(e,"bpmn:SubProcess")}function sp(e,t){var n=Tr(e);return t&&n.get("eventDefinitions").some((function(e){return kr(e,t)}))}op.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules","selection"];var cp={__depends__:[ep,ip,Jo],bpmnReplace:["type",op]};function lp(e){return function(t){var n=t.target,i=Tr(e),r=i.eventDefinitions&&i.eventDefinitions[0],o=i.$type===n.type,a=(r&&r.$type)===n.eventDefinitionType,s=i.triggeredByEvent===n.triggeredByEvent,c=void 0===n.isExpanded||n.isExpanded===Yr(e);return!(o&&a&&s&&c)}}var pp=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],up=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}],hp=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Intermediate Catch Event",actionName:"replace-with-message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message Intermediate Throw Event",actionName:"replace-with-message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Intermediate Catch Event",actionName:"replace-with-timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Intermediate Throw Event",actionName:"replace-with-escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Intermediate Catch Event",actionName:"replace-with-conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link Intermediate Catch Event",actionName:"replace-with-link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Link Intermediate Throw Event",actionName:"replace-with-link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation Intermediate Throw Event",actionName:"replace-with-compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal Intermediate Catch Event",actionName:"replace-with-signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal Intermediate Throw Event",actionName:"replace-with-signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],dp=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message End Event",actionName:"replace-with-message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation End Event",actionName:"replace-with-escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error End Event",actionName:"replace-with-error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel End Event",actionName:"replace-with-cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation End Event",actionName:"replace-with-compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal End Event",actionName:"replace-with-signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate End Event",actionName:"replace-with-terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}],mp=[{label:"Exclusive Gateway",actionName:"replace-with-exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel Gateway",actionName:"replace-with-parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive Gateway",actionName:"replace-with-inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex Gateway",actionName:"replace-with-complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event based Gateway",actionName:"replace-with-event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],fp=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}}],vp=[{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],gp=[{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}}],yp=[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"Send Task",actionName:"replace-with-send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive Task",actionName:"replace-with-receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"User Task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Manual Task",actionName:"replace-with-manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Business Rule Task",actionName:"replace-with-rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Service Task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Script Task",actionName:"replace-with-script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Call Activity",actionName:"replace-with-call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},{label:"Sub Process (expanded)",actionName:"replace-with-expanded-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}}],bp=[{label:"Data Store Reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],_p=[{label:"Data Object Reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],xp=[{label:"Message Boundary Event",actionName:"replace-with-message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Boundary Event",actionName:"replace-with-timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Boundary Event",actionName:"replace-with-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Boundary Event",actionName:"replace-with-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Error Boundary Event",actionName:"replace-with-error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel Boundary Event",actionName:"replace-with-cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Signal Boundary Event",actionName:"replace-with-signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Compensation Boundary Event",actionName:"replace-with-compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Signal Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}],wp=[{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Error Start Event",actionName:"replace-with-error-start",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Escalation Start Event",actionName:"replace-with-escalation-start",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Compensation Start Event",actionName:"replace-with-compensation-start",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-start",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},{label:"Timer Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-start",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},{label:"Conditional Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-start",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},{label:"Signal Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-start",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},{label:"Escalation Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-start",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}}],Ep=[{label:"Sequence Flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default Flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional Flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],Sp=[{label:"Expanded Pool",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:function(e){var t="Empty Pool";return e.children&&e.children.length&&(t+=" (removes content)"),t},actionName:"replace-with-collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}];function Cp(e,t,n,i,r,o,a){this._bpmnFactory=e,this._popupMenu=t,this._modeling=n,this._moddle=i,this._bpmnReplace=r,this._rules=o,this._translate=a,this.register()}Cp.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate"],Cp.prototype.register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},Cp.prototype.getEntries=function(e){var t,n=e.businessObject;if(!this._rules.allowed("shape.replace",{element:e}))return[];var i=lp(e);return kr(n,"bpmn:DataObjectReference")?this._createEntries(e,bp):kr(n,"bpmn:DataStoreReference")&&!kr(e.parent,"bpmn:Collaboration")?this._createEntries(e,_p):kr(n,"bpmn:StartEvent")&&!kr(n.$parent,"bpmn:SubProcess")?(t=w(pp,i),this._createEntries(e,t)):kr(n,"bpmn:Participant")?(t=w(Sp,(function(t){return Yr(e)!==t.target.isExpanded})),this._createEntries(e,t)):kr(n,"bpmn:StartEvent")&&Zr(n.$parent)?(t=w(wp,(function(t){var n=!1!==t.target.isInterrupting,r=Tr(e).isInterrupting===n;return i(t)||!i(t)&&!r})),this._createEntries(e,t)):kr(n,"bpmn:StartEvent")&&!Zr(n.$parent)&&kr(n.$parent,"bpmn:SubProcess")?(t=w(up,i),this._createEntries(e,t)):kr(n,"bpmn:EndEvent")?(t=w(dp,(function(e){return!("bpmn:CancelEventDefinition"==e.target.eventDefinitionType&&!kr(n.$parent,"bpmn:Transaction"))&&i(e)})),this._createEntries(e,t)):kr(n,"bpmn:BoundaryEvent")?(t=w(xp,(function(e){var t=e.target;if("bpmn:CancelEventDefinition"==t.eventDefinitionType&&!kr(n.attachedToRef,"bpmn:Transaction"))return!1;var r=!1!==t.cancelActivity,o=n.cancelActivity==r;return i(e)||!i(e)&&!o})),this._createEntries(e,t)):kr(n,"bpmn:IntermediateCatchEvent")||kr(n,"bpmn:IntermediateThrowEvent")?(t=w(hp,i),this._createEntries(e,t)):kr(n,"bpmn:Gateway")?(t=w(mp,i),this._createEntries(e,t)):kr(n,"bpmn:Transaction")?(t=w(vp,i),this._createEntries(e,t)):Zr(n)&&Yr(e)?(t=w(gp,i),this._createEntries(e,t)):kr(n,"bpmn:SubProcess")&&Yr(e)?(t=w(fp,i),this._createEntries(e,t)):kr(n,"bpmn:AdHocSubProcess")&&!Yr(e)?(t=w(yp,(function(t){var n=t.target,i="bpmn:SubProcess"===n.type,r=!0===n.isExpanded;return lp(e)&&(!i||r)})),this._createEntries(e,t)):kr(n,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(e,Ep):kr(n,"bpmn:FlowNode")?(t=w(yp,i),kr(n,"bpmn:SubProcess")&&!Yr(e)&&(t=w(t,(function(e){return"Sub Process (collapsed)"!==e.label}))),this._createEntries(e,t)):[]},Cp.prototype.getHeaderEntries=function(e){var t=[];return kr(e,"bpmn:Activity")&&!Zr(e)&&(t=t.concat(this._getLoopEntries(e))),kr(e,"bpmn:DataObjectReference")&&(t=t.concat(this._getDataObjectIsCollection(e))),kr(e,"bpmn:Participant")&&(t=t.concat(this._getParticipantMultiplicity(e))),!kr(e,"bpmn:SubProcess")||kr(e,"bpmn:Transaction")||Zr(e)||t.push(this._getAdHocEntry(e)),t},Cp.prototype._createEntries=function(e,t){var n=[],i=this;return E(t,(function(t){var r=i._createMenuEntry(t,e);n.push(r)})),n},Cp.prototype._createSequenceFlowEntries=function(e,t){var n=Tr(e),i=[],r=this._modeling,o=this._moddle,a=this;return E(t,(function(t){switch(t.actionName){case"replace-with-default-flow":n.sourceRef.default!==n&&(kr(n.sourceRef,"bpmn:ExclusiveGateway")||kr(n.sourceRef,"bpmn:InclusiveGateway")||kr(n.sourceRef,"bpmn:ComplexGateway")||kr(n.sourceRef,"bpmn:Activity"))&&i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e.source,{default:n})})));break;case"replace-with-conditional-flow":!n.conditionExpression&&kr(n.sourceRef,"bpmn:Activity")&&i.push(a._createMenuEntry(t,e,(function(){var t=o.create("bpmn:FormalExpression",{body:""});r.updateProperties(e,{conditionExpression:t})})));break;default:if(kr(n.sourceRef,"bpmn:Activity")&&n.conditionExpression)return i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e,{conditionExpression:void 0})})));if((kr(n.sourceRef,"bpmn:ExclusiveGateway")||kr(n.sourceRef,"bpmn:InclusiveGateway")||kr(n.sourceRef,"bpmn:ComplexGateway")||kr(n.sourceRef,"bpmn:Activity"))&&n.sourceRef.default===n)return i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e.source,{default:void 0})})))}})),i},Cp.prototype._createMenuEntry=function(e,t,n){var i=this._translate,r=this._bpmnReplace.replaceElement,o=e.label;return o&&"function"==typeof o&&(o=o(t)),n=n||function(){return r(t,e.target)},{label:i(o),className:e.className,id:e.actionName,action:n}},Cp.prototype._getLoopEntries=function(e){var t=this,n=this._translate;function i(n,i){var r=Tr(e).loopCharacteristics;i.active?r=void 0:(!p(i.options.isSequential)&&r&&kr(r,i.options.loopCharacteristics)||(r=t._moddle.create(i.options.loopCharacteristics)),r.isSequential=i.options.isSequential),t._modeling.updateProperties(e,{loopCharacteristics:r})}var r,o,a,s=Tr(e).loopCharacteristics;return s&&(r=s.isSequential,o=void 0===s.isSequential,a=void 0!==s.isSequential&&!s.isSequential),[{id:"toggle-parallel-mi",className:"bpmn-icon-parallel-mi-marker",title:n("Parallel Multi Instance"),active:a,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},{id:"toggle-sequential-mi",className:"bpmn-icon-sequential-mi-marker",title:n("Sequential Multi Instance"),active:r,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},{id:"toggle-loop",className:"bpmn-icon-loop-marker",title:n("Loop"),active:o,action:i,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}]},Cp.prototype._getDataObjectIsCollection=function(e){var t=this,n=this._translate;var i=e.businessObject.dataObjectRef,r=i.isCollection;return[{id:"toggle-is-collection",className:"bpmn-icon-parallel-mi-marker",title:n("Collection"),active:r,action:function(n,r){t._modeling.updateModdleProperties(e,i,{isCollection:!r.active})}}]},Cp.prototype._getParticipantMultiplicity=function(e){var t=this,n=this._bpmnFactory,i=this._translate;var r=e.businessObject.participantMultiplicity;return[{id:"toggle-participant-multiplicity",className:"bpmn-icon-parallel-mi-marker",title:i("Participant Multiplicity"),active:!!r,action:function(i,r){var o;r.active||(o=n.create("bpmn:ParticipantMultiplicity")),t._modeling.updateProperties(e,{participantMultiplicity:o})}}]},Cp.prototype._getAdHocEntry=function(e){var t=this._translate,n=kr(Tr(e),"bpmn:AdHocSubProcess"),i=this._bpmnReplace.replaceElement;return{id:"toggle-adhoc",className:"bpmn-icon-ad-hoc-marker",title:t("Ad-hoc"),active:n,action:function(t,r){return i(e,n?{type:"bpmn:SubProcess"}:{type:"bpmn:AdHocSubProcess"},{autoResize:!1,layoutConnection:!1})}}};var Pp={__depends__:[As,cp],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",Cp]},Mp=Math.max,Rp=Math.min;function Ap(e,t){return{top:e.top-t.top,right:e.right-t.right,bottom:e.bottom-t.bottom,left:e.left-t.left}}function kp(e,t,n){var i=t[e],r=n.min&&n.min[e],o=n.max&&n.max[e];return f(r)&&(i=(/top|left/.test(e)?Rp:Mp)(i,r)),f(o)&&(i=(/top|left/.test(e)?Mp:Rp)(i,o)),i}function Dp(e,t){return void 0!==e?e:20}function Tp(e){return!e.waypoints&&"label"!==e.type}function zp(e,t){var n;if((n=void 0===e.length?w(e.children,Tp):e).length)return function(e,t){var n,i,r,o;return"object"==typeof t?(n=Dp(t.left),i=Dp(t.right),r=Dp(t.top),o=Dp(t.bottom)):n=i=r=o=Dp(t),{x:e.x-n,y:e.y-r,width:e.width+n+i,height:e.height+r+o}}(St(n),t)}var Op=Math.abs;var Bp=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"],jp=30;function Np(e,t){return t=t||[],e.children.filter((function(e){kr(e,"bpmn:Lane")&&(Np(e,t),t.push(e))})),t}function Lp(e){return e.children.filter((function(e){return kr(e,"bpmn:Lane")}))}function Ip(e){return Ws(e,Bp)||e}function Fp(e,t){var n=Ip(e),i=Np(n,kr(n,"bpmn:Process")?[]:[n]),r=xn(e),o=xn(t),a=function(e,t){return Ap(xn(t),xn(e))}(e,t),s=[];return i.forEach((function(t){if(t!==e){var n,i,c=0,l=a.right,p=0,u=a.left,h=xn(t);a.top&&(Op(h.bottom-r.top)<10&&(p=o.top-h.bottom),Op(h.top-r.top)<5&&(c=o.top-h.top)),a.bottom&&(Op(h.top-r.bottom)<10&&(c=o.bottom-h.top),Op(h.bottom-r.bottom)<5&&(p=o.bottom-h.bottom)),(c||l||p||u)&&s.push({shape:t,newBounds:(n=t,i={top:c,right:l,bottom:p,left:u},{x:n.x+(i.left||0),y:n.y+(i.top||0),width:n.width-(i.left||0)+(i.right||0),height:n.height-(i.top||0)+(i.bottom||0)})})}})),s}function Vp(e,t,n,i,r,o,a,s,c,l,p,u){e=e||{},i.registerProvider(this),this._contextPad=i,this._modeling=r,this._elementFactory=o,this._connect=a,this._create=s,this._popupMenu=c,this._canvas=l,this._rules=p,this._translate=u,!1!==e.autoPlace&&(this._autoPlace=t.get("autoPlace",!1)),n.on("create.end",250,(function(e){var t=e.context.shape;if(Io(e)&&i.isOpen(t)){var n=i.getEntries(t);n.replace&&n.replace.action.click(e,t)}}))}function Hp(e,t,n){var i=e.$instanceOf(t),r=!1;return E(e.eventDefinitions||[],(function(e){e.$type===n&&(r=!0)})),i&&r}Vp.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate"],Vp.prototype.getMultiElementContextPadEntries=function(e){var t=this._modeling,n={};return this._isDeleteAllowed(e)&&W(n,{delete:{group:"edit",className:"bpmn-icon-trash",title:this._translate("Remove"),action:{click:function(e,n){t.removeElements(n.slice())}}}}),n},Vp.prototype._isDeleteAllowed=function(e){var t=this._rules.allowed("elements.delete",{elements:e});return d(t)?P(t,(function(e){return n=e,-1!==t.indexOf(n);var n})):t},Vp.prototype.getContextPadEntries=function(e){var t=this._contextPad,n=this._modeling,i=this._elementFactory,r=this._connect,o=this._create,a=this._popupMenu,s=this._canvas,c=this._rules,l=this._autoPlace,p=this._translate,u={};if("label"===e.type)return u;var h=e.businessObject;function m(e,t){r.start(e,t)}function f(e,t,n,r){function a(t,n){var a=i.createShape(W({type:e},r));o.start(t,a,{source:n})}return"string"!=typeof n&&(r=n,n=p("Append {type}",{type:e.replace(/^bpmn:/,"")})),{group:"model",className:t,title:n,action:{dragstart:a,click:l?function(t,n){var o=i.createShape(W({type:e},r));l.append(n,o)}:a}}}function v(e){return function(i,r){n.splitLane(r,e),t.open(r,!0)}}if(Dr(h,["bpmn:Lane","bpmn:Participant"])&&Yr(e)){var g=Lp(e);W(u,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:p("Add Lane above"),action:{click:function(e,t){n.addLane(t,"top")}}}}),g.length<2&&(e.height>=120&&W(u,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:p("Divide into two Lanes"),action:{click:v(2)}}}),e.height>=180&&W(u,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:p("Divide into three Lanes"),action:{click:v(3)}}})),W(u,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:p("Add Lane below"),action:{click:function(e,t){n.addLane(t,"bottom")}}}})}kr(h,"bpmn:FlowNode")&&(kr(h,"bpmn:EventBasedGateway")?W(u,{"append.receive-task":f("bpmn:ReceiveTask","bpmn-icon-receive-task",p("Append ReceiveTask")),"append.message-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",p("Append MessageIntermediateCatchEvent"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",p("Append TimerIntermediateCatchEvent"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",p("Append ConditionIntermediateCatchEvent"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",p("Append SignalIntermediateCatchEvent"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):Hp(h,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?W(u,{"append.compensation-activity":f("bpmn:Task","bpmn-icon-task",p("Append compensation activity"),{isForCompensation:!0})}):kr(h,"bpmn:EndEvent")||h.isForCompensation||Hp(h,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")||Zr(h)||W(u,{"append.end-event":f("bpmn:EndEvent","bpmn-icon-end-event-none",p("Append EndEvent")),"append.gateway":f("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",p("Append Gateway")),"append.append-task":f("bpmn:Task","bpmn-icon-task",p("Append Task")),"append.intermediate-event":f("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",p("Append Intermediate/Boundary Event"))})),a.isEmpty(e,"bpmn-replace")||W(u,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:p("Change type"),action:{click:function(e,n){var i=W(function(e){var n=s.getContainer(),i=t.getPad(e).html,r=n.getBoundingClientRect(),o=i.getBoundingClientRect(),a=o.top-r.top;return{x:o.left-r.left,y:a+o.height+5}}(n),{cursor:{x:e.x,y:e.y}});a.open(n,"bpmn-replace",i)}}}}),kr(h,"bpmn:SequenceFlow")&&W(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation")}),Dr(h,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&W(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation"),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:p("Connect using "+(h.isForCompensation?"":"Sequence/MessageFlow or ")+"Association"),action:{click:m,dragstart:m}}}),kr(h,"bpmn:TextAnnotation")&&W(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:p("Connect using Association"),action:{click:m,dragstart:m}}}),Dr(h,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&W(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:p("Connect using DataInputAssociation"),action:{click:m,dragstart:m}}}),kr(h,"bpmn:Group")&&W(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation")});var y=c.allowed("elements.delete",{elements:[e]});return d(y)&&(y=y[0]===e),y&&W(u,{delete:{group:"edit",className:"bpmn-icon-trash",title:p("Remove"),action:{click:function(e,t){n.removeElements([t])}}}}),u};var $p={__depends__:[wl,Cs,Jo,dl,Nl,Pp],__init__:["contextPadProvider"],contextPadProvider:["type",Vp]},Gp={horizontal:["x","width"],vertical:["y","height"]};function Wp(e,t){this._modeling=e,this._filters=[],this.registerFilter((function(e){var n=t.allowed("elements.distribute",{elements:e});return d(n)?n:n?e:[]}))}Wp.$inject=["modeling","rules"],Wp.prototype.registerFilter=function(e){if("function"!=typeof e)throw new Error("the filter has to be a function");this._filters.push(e)},Wp.prototype.trigger=function(e,t){var n,i,r=this._modeling;if(!(e.length<3||(this._setOrientation(t),i=this._filterElements(e),(n=this._createGroups(i)).length<=2)))return r.distributeElements(n,this._axis,this._dimension),n},Wp.prototype._filterElements=function(e){var t=this._filters,n=this._axis,i=this._dimension,r=[].concat(e);return t.length?(E(t,(function(e){r=e(r,n,i)})),r):e},Wp.prototype._createGroups=function(e){var t=[],n=this,i=this._axis,r=this._dimension;if(!i)throw new Error('must have a defined "axis" and "dimension"');return E(B(e,i),(function(e,o){var a,s=n._findRange(e,i,r),c=t[t.length-1];c&&n._hasIntersection(c.range,s)?t[t.length-1].elements.push(e):(a={range:s,elements:[e]},t.push(a))})),t},Wp.prototype._setOrientation=function(e){var t=Gp[e];this._axis=t[0],this._dimension=t[1]},Wp.prototype._hasIntersection=function(e,t){return Math.max(e.min,e.max)>=Math.min(t.min,t.max)&&Math.min(e.min,e.max)<=Math.max(t.min,t.max)},Wp.prototype._findRange=function(e){var t=e[this._axis];return{min:t+5,max:t+e[this._dimension]-5}};var Up={__init__:["distributeElements"],distributeElements:["type",Wp]};function qp(e,t,n){Os.call(this,t)}qp.$inject=["distributeElements","eventBus","rules"],r(qp,Os),qp.prototype.init=function(){this.addRule("elements.distribute",(function(e){var t=e.elements;return!((t=bt(t=w(t,(function(e){var t=Dr(e,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(e.labelTarget||t)})))).length<3)&&t}))};var Kp="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201800%201800%22%3E%3Cpath%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bstroke-linejoin%3Around%22%20d%3D%22M450%20400V150h900v250%22%2F%3E%3Crect%20x%3D%22150%22%20y%3D%22450%22%20width%3D%22600%22%20height%3D%221200%22%20rx%3D%221%22%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%22%2F%3E%3Crect%20x%3D%221050%22%20y%3D%22450%22%20width%3D%22600%22%20height%3D%22800%22%20rx%3D%221%22%20style%3D%22fill%3AcurrentColor%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bopacity%3A.5%22%2F%3E%3C%2Fsvg%3E",Yp="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201800%201800%22%3E%3Cpath%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bstroke-linejoin%3Around%22%20d%3D%22M400%201350H150V450h250%22%2F%3E%3Crect%20x%3D%22450%22%20y%3D%22150%22%20width%3D%221200%22%20height%3D%22600%22%20rx%3D%221%22%20style%3D%22fill%3Anone%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%22%2F%3E%3Crect%20x%3D%22450%22%20y%3D%221050%22%20width%3D%22800%22%20height%3D%22600%22%20rx%3D%221%22%20style%3D%22fill%3AcurrentColor%3Bstroke%3AcurrentColor%3Bstroke-width%3A100%3Bopacity%3A.5%22%2F%3E%3C%2Fsvg%3E";function Xp(e,t,n,i){this._distributeElements=t,this._translate=n,this._popupMenu=e,this._rules=i,e.registerProvider("align-elements",900,this)}Xp.$inject=["popupMenu","distributeElements","translate","rules"],Xp.prototype.getPopupMenuEntries=function(e){var t={};return this._isAllowed(e)&&W(t,this._getEntries(e)),t},Xp.prototype._isAllowed=function(e){return this._rules.allowed("elements.distribute",{elements:e})},Xp.prototype._getEntries=function(e){var t=this._distributeElements,n=this._translate,i=this._popupMenu;return{"distribute-elements-horizontal":{group:"distribute",title:n("Distribute elements horizontally"),className:"bjs-align-elements-menu-entry",imageUrl:Kp,action:function(n,r){t.trigger(e,"horizontal"),i.close()}},"distribute-elements-vertical":{group:"distribute",title:n("Distribute elements vertically"),imageUrl:Yp,action:function(n,r){t.trigger(e,"vertical"),i.close()}}}};var Zp={__depends__:[As,Up],__init__:["bpmnDistributeElements","distributeElementsMenuProvider"],bpmnDistributeElements:["type",qp],distributeElementsMenuProvider:["type",Xp]},Qp="is not a registered action";function Jp(e,t){this._actions={};var n=this;e.on("diagram.init",(function(){n._registerDefaultActions(t),e.fire("editorActions.init",{editorActions:n})}))}function eu(e,t){return new Error(e+" "+t)}Jp.$inject=["eventBus","injector"],Jp.prototype._registerDefaultActions=function(e){var t=e.get("commandStack",!1),n=e.get("modeling",!1),i=e.get("selection",!1),r=e.get("zoomScroll",!1),o=e.get("copyPaste",!1),a=e.get("canvas",!1),s=e.get("rules",!1),c=e.get("keyboardMove",!1),l=e.get("keyboardMoveSelection",!1);t&&(this.register("undo",(function(){t.undo()})),this.register("redo",(function(){t.redo()}))),o&&i&&this.register("copy",(function(){var e=i.get();o.copy(e)})),o&&this.register("paste",(function(){o.paste()})),r&&this.register("stepZoom",(function(e){r.stepZoom(e.value)})),a&&this.register("zoom",(function(e){a.zoom(e.value)})),n&&i&&s&&this.register("removeSelection",(function(){var e=i.get();if(e.length){var t,r=s.allowed("elements.delete",{elements:e});!1!==r&&(t=d(r)?r:e).length&&n.removeElements(t.slice())}})),c&&this.register("moveCanvas",(function(e){c.moveCanvas(e)})),l&&this.register("moveSelection",(function(e){l.moveSelection(e.direction,e.accelerated)}))},Jp.prototype.trigger=function(e,t){if(!this._actions[e])throw eu(e,Qp);return this._actions[e](t)},Jp.prototype.register=function(e,t){var n=this;if("string"==typeof e)return this._registerAction(e,t);E(e,(function(e,t){n._registerAction(t,e)}))},Jp.prototype._registerAction=function(e,t){if(this.isRegistered(e))throw eu(e,"is already registered");this._actions[e]=t},Jp.prototype.unregister=function(e){if(!this.isRegistered(e))throw eu(e,Qp);this._actions[e]=void 0},Jp.prototype.getActions=function(){return Object.keys(this._actions)},Jp.prototype.isRegistered=function(e){return!!this._actions[e]};var tu={__init__:["editorActions"],editorActions:["type",Jp]};function nu(e){e.invoke(Jp,this)}r(nu,Jp),nu.$inject=["injector"],nu.prototype._registerDefaultActions=function(e){Jp.prototype._registerDefaultActions.call(this,e);var t=e.get("canvas",!1),n=e.get("elementRegistry",!1),i=e.get("selection",!1),r=e.get("spaceTool",!1),o=e.get("lassoTool",!1),a=e.get("handTool",!1),s=e.get("globalConnect",!1),c=e.get("distributeElements",!1),l=e.get("alignElements",!1),p=e.get("directEditing",!1),u=e.get("searchPad",!1),h=e.get("modeling",!1);t&&n&&i&&this._registerAction("selectElements",(function(){var e=t.getRootElement(),r=n.filter((function(t){return t!==e}));return i.select(r),r})),r&&this._registerAction("spaceTool",(function(){r.toggle()})),o&&this._registerAction("lassoTool",(function(){o.toggle()})),a&&this._registerAction("handTool",(function(){a.toggle()})),s&&this._registerAction("globalConnectTool",(function(){s.toggle()})),i&&c&&this._registerAction("distributeElements",(function(e){var t=i.get(),n=e.type;t.length&&c.trigger(t,n)})),i&&l&&this._registerAction("alignElements",(function(e){var t=i.get(),n=[],r=e.type;t.length&&(n=w(t,(function(e){return!kr(e,"bpmn:Lane")})),l.trigger(n,r))})),i&&h&&this._registerAction("setColor",(function(e){var t=i.get();t.length&&h.setColor(t,e)})),i&&p&&this._registerAction("directEditing",(function(){var e=i.get();e.length&&p.activate(e[0])})),u&&this._registerAction("find",(function(){u.toggle()})),t&&h&&this._registerAction("moveToOrigin",(function(){var e,i,r=t.getRootElement();e=St(i=kr(r,"bpmn:Collaboration")?n.filter((function(e){return kr(e.parent,"bpmn:Collaboration")})):n.filter((function(e){return e!==r&&!kr(e.parent,"bpmn:SubProcess")}))),h.moveElements(i,{x:-e.x,y:-e.y},r)}))};var iu={__depends__:[tu],editorActions:["type",nu]};function ru(e){e.on(["create.init","shape.move.init"],(function(e){var t=e.context;Dr(e.shape,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(t.gridSnappingContext||(t.gridSnappingContext={}),t.gridSnappingContext.snapLocation="top-left")}))}ru.$inject=["eventBus"];function ou(e,t,n){return n||(n="round"),Math[n](e/t)*t}function au(e,t,n){var i=!n||!1!==n.active;this._eventBus=t;var r=this;t.on("diagram.init",800,(function(){r.setActive(i)})),t.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],1200,(function(t){var n=t.originalEvent;if(!(!r.active||n&&Ta(n))){var i=t.context,o=i.gridSnappingContext;o||(o=i.gridSnappingContext={}),["x","y"].forEach((function(n){var i={},o=function(e,t,n){var i=e.context,r=e.shape,o=i.gridSnappingContext,a=o.snapLocation,s=o.snapOffset;if(s&&f(s[t]))return s[t];s||(s=o.snapOffset={});f(s[t])||(s[t]=0);if(!r)return s[t];n.get(r.id)||(su(t)?s[t]+=r[t]+r.width/2:s[t]+=r[t]+r.height/2);if(!a)return s[t];"x"===t?/left/.test(a)?s[t]-=r.width/2:/right/.test(a)&&(s[t]+=r.width/2):/top/.test(a)?s[t]-=r.height/2:/bottom/.test(a)&&(s[t]+=r.height/2);return s[t]}(t,n,e);o&&(i.offset=o);var a=function(e,t){var n=e.context,i=n.createConstraints,r=n.resizeConstraints||{},o=n.gridSnappingContext,a=o.snapConstraints;if(a&&a[t])return a[t];a||(a=o.snapConstraints={});a[t]||(a[t]={});var s=n.direction;i&&(su(t)?(a.x.min=i.left,a.x.max=i.right):(a.y.min=i.top,a.y.max=i.bottom));var c=r.min,l=r.max;c&&(su(t)?lu(s)?a.x.max=c.left:a.x.min=c.right:cu(s)?a.y.max=c.top:a.y.min=c.bottom);l&&(su(t)?lu(s)?a.x.min=l.left:a.x.max=l.right:cu(s)?a.y.min=l.top:a.y.max=l.bottom);return a[t]}(t,n);a&&W(i,a),tl(t,n)||r.snapEvent(t,n,i)}))}}))}function su(e){return"x"===e}function cu(e){return-1!==e.indexOf("n")}function lu(e){return-1!==e.indexOf("w")}function pu(e,t){la.call(this,e),this._gridSnapping=t;var n=this;this.preExecute("shape.resize",(function(e){var t=e.context,i=(t.hints||{}).autoResize;if(i){var r=t.shape,o=t.newBounds;g(i)?t.newBounds=n.snapComplex(o,i):t.newBounds=n.snapSimple(r,o)}}))}au.prototype.snapEvent=function(e,t,n){nl(e,t,this.snapValue(e[t],n))},au.prototype.getGridSpacing=function(){return 10},au.prototype.snapValue=function(e,t){var n,i,r=0;return t&&t.offset&&(r=t.offset),e=ou(e+=r,10),t&&t.min&&f(n=t.min)&&(n=ou(n+r,10,"ceil"),e=Math.max(e,n)),t&&t.max&&f(i=t.max)&&(i=ou(i+r,10,"floor"),e=Math.min(e,i)),e-=r},au.prototype.isActive=function(){return this.active},au.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})},au.prototype.toggleActive=function(){this.setActive(!this.active)},au.$inject=["elementRegistry","eventBus","config.gridSnapping"],pu.$inject=["eventBus","gridSnapping","modeling"],r(pu,la),pu.prototype.snapSimple=function(e,t){var n=this._gridSnapping;return t.width=n.snapValue(t.width,{min:t.width}),t.height=n.snapValue(t.height,{min:t.height}),t.x=e.x+e.width/2-t.width/2,t.y=e.y+e.height/2-t.height/2,t},pu.prototype.snapComplex=function(e,t){return/w|e/.test(t)&&(e=this.snapHorizontally(e,t)),/n|s/.test(t)&&(e=this.snapVertically(e,t)),e},pu.prototype.snapHorizontally=function(e,t){var n=this._gridSnapping,i=/w/.test(t),r=/e/.test(t),o={};return o.width=n.snapValue(e.width,{min:e.width}),r&&(i?(o.x=n.snapValue(e.x,{max:e.x}),o.width+=n.snapValue(e.x-o.x,{min:e.x-o.x})):e.x=e.x+e.width-o.width),W(e,o),e},pu.prototype.snapVertically=function(e,t){var n=this._gridSnapping,i=/n/.test(t),r=/s/.test(t),o={};return o.height=n.snapValue(e.height,{min:e.height}),i&&(r?(o.y=n.snapValue(e.y,{max:e.y}),o.height+=n.snapValue(e.y-o.y,{min:e.y-o.y})):e.y=e.y+e.height-o.height),W(e,o),e};function uu(e,t){e.on(["spaceTool.move","spaceTool.end"],2e3,(function(e){var n,i=e.context;i.initialized&&("x"===i.axis?(n=t.snapValue(e.dx),e.x=e.x+n-e.dx,e.dx=n):(n=t.snapValue(e.dy),e.y=e.y+n-e.dy,e.dy=n))}))}uu.$inject=["eventBus","gridSnapping"];var hu={__depends__:[{__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",pu],gridSnappingSpaceToolBehavior:["type",uu]}],__init__:["gridSnapping"],gridSnapping:["type",au]};function du(e,t){e.on("autoPlace",2e3,(function(e){var n=e.source,i=Sn(n),r=e.shape,o=Us(n,r);return["x","y"].forEach((function(e){var n={};o[e]!==i[e]&&(o[e]>i[e]?n.min=o[e]:n.max=o[e],kr(r,"bpmn:TextAnnotation")&&(!function(e){return"x"===e}(e)?n.offset=-r.height/2:n.offset=-r.width/2),o[e]=t.snapValue(o[e],n))})),o}))}du.$inject=["eventBus","gridSnapping"];function mu(e,t,n){t.on(["create.start","shape.move.start"],1750,(function(t){var i=t.context,r=i.shape,o=e.getRootElement();kr(r,"bpmn:Participant")&&kr(o,"bpmn:Process")&&o.children.length&&(i.createConstraints&&(r.width=n.snapValue(r.width,{min:r.width}),r.height=n.snapValue(r.height,{min:r.height})))}))}mu.$inject=["canvas","eventBus","gridSnapping"];function fu(e,t,n){la.call(this,e),this._gridSnapping=t;var i=this;this.postExecuted(["connection.create","connection.layout"],3e3,(function(e){var t=e.context,r=t.connection,o=t.hints||{},a=r.waypoints;o.connectionStart||o.connectionEnd||!1===o.createElementsBehavior||function(e){return e.length>3}(a)&&n.updateWaypoints(r,i.snapMiddleSegments(a))}))}function vu(e,t,n){var i=Bt(t,n),r={};return function(e){return"h"===e}(i)&&(r.y=e.snapValue(t.y)),function(e){return"v"===e}(i)&&(r.x=e.snapValue(t.x)),("x"in r||"y"in r)&&(t=W({},t,r),n=W({},n,r)),[t,n]}fu.$inject=["eventBus","gridSnapping","modeling"],r(fu,la),fu.prototype.snapMiddleSegments=function(e){var t,n=this._gridSnapping;e=e.slice();for(var i=1;i<e.length-2;i++)t=vu(n,e[i],e[i+1]),e[i]=t[0],e[i+1]=t[1];return e};var gu={__depends__:[hu,{__init__:["gridSnappingAutoPlaceBehavior","gridSnappingCreateParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",du],gridSnappingCreateParticipantBehavior:["type",mu],gridSnappingLayoutConnectionBehavior:["type",fu]}],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",ru]};function yu(e,t){this._interactionEvents=t;var n=this;e.on(["interactionEvents.createHit","interactionEvents.updateHit"],(function(e){var t=e.element,i=e.gfx;return kr(t,"bpmn:Lane")?n.createParticipantHit(t,i):kr(t,"bpmn:Participant")?Yr(t)?n.createParticipantHit(t,i):n.createDefaultHit(t,i):kr(t,"bpmn:SubProcess")?Yr(t)?n.createSubProcessHit(t,i):n.createDefaultHit(t,i):void 0}))}yu.$inject=["eventBus","interactionEvents"],yu.prototype.createDefaultHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createDefaultHit(e,t),!0},yu.prototype.createParticipantHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:30,height:e.height}),!0},yu.prototype.createSubProcessHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:e.width,height:30}),!0};var bu={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",yu]};function _u(e){e.invoke(Ha,this)}r(_u,Ha),_u.$inject=["injector"],_u.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}Ha.prototype.registerBindings.call(this,e,t),n("selectElements",(function(n){var i=n.keyEvent;if(e.isKey(["a","A"],i)&&e.isCmd(i))return t.trigger("selectElements"),!0})),n("find",(function(n){var i=n.keyEvent;if(e.isKey(["f","F"],i)&&e.isCmd(i))return t.trigger("find"),!0})),n("spaceTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["s","S"],i)?(t.trigger("spaceTool"),!0):void 0})),n("lassoTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["l","L"],i)?(t.trigger("lassoTool"),!0):void 0})),n("handTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["h","H"],i)?(t.trigger("handTool"),!0):void 0})),n("globalConnectTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["c","C"],i)?(t.trigger("globalConnectTool"),!0):void 0})),n("directEditing",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["e","E"],i)?(t.trigger("directEditing"),!0):void 0}))};var xu={__depends__:[$a],__init__:["keyboardBindings"],keyboardBindings:["type",_u]},wu={moveSpeed:1,moveSpeedAccelerated:10},Eu="left",Su="right",Cu="down",Pu={ArrowLeft:Eu,Left:Eu,ArrowUp:"up",Up:"up",ArrowRight:Su,Right:Su,ArrowDown:Cu,Down:Cu},Mu={left:function(e){return{x:-e,y:0}},up:function(e){return{x:0,y:-e}},right:function(e){return{x:e,y:0}},down:function(e){return{x:0,y:e}}};function Ru(e,t,n,i,r){var o=this;this._config=W({},wu,e||{}),t.addListener(1500,(function(e){var n=e.keyEvent,i=Pu[n.key];if(i&&!t.isCmd(n)){var r=t.isShift(n);return o.moveSelection(i,r),!0}})),this.moveSelection=function(e,t){var o=r.get();if(o.length){var a=this._config[t?"moveSpeedAccelerated":"moveSpeed"],s=Mu[e](a);i.allowed("elements.move",{shapes:o})&&n.moveElements(o,s)}}}Ru.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];var Au={__depends__:[$a,Jo],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",Ru]};function ku(e,t,n,i){this._dragging=i,this._rules=t;var r=this;function o(e,t){var n,i=e.shape,o=e.direction,a=e.resizeConstraints;e.delta=t,n=function(e,t,n){var i=n.x,r=n.y,o={x:e.x,y:e.y,width:e.width,height:e.height};return-1!==t.indexOf("n")?(o.y=e.y+r,o.height=e.height-r):-1!==t.indexOf("s")&&(o.height=e.height+r),-1!==t.indexOf("e")?o.width=e.width+i:-1!==t.indexOf("w")&&(o.x=e.x+i,o.width=e.width-i),o}(i,o,t),e.newBounds=function(e,t){if(!t)return e;var n=xn(e);return wn({top:kp("top",n,t),right:kp("right",n,t),bottom:kp("bottom",n,t),left:kp("left",n,t)})}(n,a),e.canExecute=r.canResize(e)}e.on("resize.start",(function(e){var t,n,i;t=e.context,n=t.resizeConstraints,i=t.minBounds,void 0===n&&(void 0===i&&(i=r.computeMinResizeBox(t)),t.resizeConstraints={min:xn(i)})})),e.on("resize.move",(function(e){var t={x:e.dx,y:e.dy};o(e.context,t)})),e.on("resize.end",(function(e){!function(e){var t=e.shape,i=e.canExecute,r=e.newBounds;if(i){if(!function(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}(t,r=bn(r)))return;n.resizeShape(t,r)}}(e.context)}))}function Du(e,t){var n=Sn(e),i=xn(e),r={x:n.x,y:n.y};return-1!==t.indexOf("n")?r.y=i.top:-1!==t.indexOf("s")&&(r.y=i.bottom),-1!==t.indexOf("e")?r.x=i.right:-1!==t.indexOf("w")&&(r.x=i.left),r}function Tu(e){return"n"===e||"s"===e?"resize-ns":"e"===e||"w"===e?"resize-ew":"nw"===e||"se"===e?"resize-nwse":"resize-nesw"}ku.prototype.canResize=function(e){var t=this._rules,n=K(e,["newBounds","shape","delta","direction"]);return t.allowed("shape.resize",n)},ku.prototype.activate=function(e,t,n){var i,r,o=this._dragging;if("string"==typeof n&&(n={direction:n}),!(r=(i=W({shape:t},n)).direction))throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");o.init(e,Du(t,r),"resize",{autoActivate:!0,cursor:Tu(r),data:{shape:t,context:i}})},ku.prototype.computeMinResizeBox=function(e){var t=e.shape;return function(e,t,n,i){var r=xn(t),o={top:/n/.test(e)?r.bottom-n.height:r.top,left:/w/.test(e)?r.right-n.width:r.left,bottom:/s/.test(e)?r.top+n.height:r.bottom,right:/e/.test(e)?r.left+n.width:r.right},a=i?xn(i):o;return wn({top:Rp(o.top,a.top),left:Rp(o.left,a.left),bottom:Mp(o.bottom,a.bottom),right:Mp(o.right,a.right)})}(e.direction,t,e.minDimensions||{width:10,height:10},zp(t,e.childrenBoxPadding))},ku.$inject=["eventBus","rules","modeling","dragging"];var zu="djs-resizing",Ou="resize-not-ok";function Bu(e,t,n){e.on("resize.move",500,(function(e){var i,r,o,a;i=e.context,r=i.shape,o=i.newBounds,(a=i.frame)||(a=i.frame=n.addFrame(r,t.getActiveLayer()),t.addMarker(r,zu)),o.width>5&&ze(a,{x:o.x,width:o.width}),o.height>5&&ze(a,{y:o.y,height:o.height}),i.canExecute?Le(a).remove(Ou):Le(a).add(Ou)})),e.on("resize.cleanup",(function(e){var n,i;n=e.context,i=n.shape,n.frame&&Fe(n.frame),t.removeMarker(i,zu)}))}Bu.$inject=["eventBus","canvas","previewSupport"];var ju=-6,Nu="djs-resizer",Lu=["n","w","s","e","nw","ne","se","sw"];function Iu(e,t,n,i){this._resize=i,this._canvas=t;var r=this;e.on("selection.changed",(function(e){var t=e.newSelection;r.removeResizers(),1===t.length&&E(t,H(r.addResizer,r))})),e.on("shape.changed",(function(e){var t=e.element;n.isSelected(t)&&(r.removeResizers(),r.addResizer(t))}))}Iu.prototype.makeDraggable=function(e,t,n){var i=this._resize;function r(t){Lo(t)&&i.activate(t,e,n)}be.bind(t,"mousedown",r),be.bind(t,"touchstart",r)},Iu.prototype._createResizer=function(e,t,n,i){var r=this._getResizersParent(),o=function(e){var t={x:0,y:0};-1!==e.indexOf("e")?t.x=6:-1!==e.indexOf("w")&&(t.x=ju);-1!==e.indexOf("s")?t.y=6:-1!==e.indexOf("n")&&(t.y=ju);return t}(i),a=Ue("g");Le(a).add(Nu),Le(a).add("djs-resizer-"+e.id),Le(a).add("djs-resizer-"+i),ke(r,a);var s=Ue("rect");ze(s,{x:-4+o.x,y:-4+o.y,width:8,height:8}),Le(s).add("djs-resizer-visual"),ke(a,s);var c=Ue("rect");return ze(c,{x:-10+o.x,y:-10+o.y,width:20,height:20}),Le(c).add("djs-resizer-hit"),ke(a,c),ni(a,t,n),a},Iu.prototype.createResizer=function(e,t){var n=Du(e,t),i=this._createResizer(e,n.x,n.y,t);this.makeDraggable(e,i,t)},Iu.prototype.addResizer=function(e){var t=this;!function(e){return!!e.waypoints}(e)&&this._resize.canResize({shape:e})&&E(Lu,(function(n){t.createResizer(e,n)}))},Iu.prototype.removeResizers=function(){Ve(this._getResizersParent())},Iu.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},Iu.$inject=["eventBus","canvas","selection","resize"];var Fu={__depends__:[hc,sc,Pl],__init__:["resize","resizePreview","resizeHandles"],resize:["type",ku],resizePreview:["type",Bu],resizeHandles:["type",Iu]};function Vu(e,t){var n=t.create("bpmn:CategoryValue"),i=t.create("bpmn:Category",{categoryValue:[n]});return Dt(e.get("rootElements"),i),Tr(i).$parent=e,Tr(n).$parent=i,n}function Hu(e,t,n,i,r,o,a){function s(e,t){(t||Dr(e,["bpmn:Task","bpmn:TextAnnotation"])||$u(e))&&i.activate(e)}this._bpmnFactory=t,this._canvas=n,this._modeling=r,this._textRenderer=a,i.registerProvider(this),e.on("element.dblclick",(function(e){s(e.element,!0)})),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set","selection.changed"],(function(e){i.isActive()&&i.complete()})),e.on(["shape.remove","connection.remove"],2e3,(function(e){i.isActive(e.element)&&i.cancel()})),e.on(["commandStack.changed"],(function(e){i.isActive()&&i.cancel()})),e.on("directEditing.activate",(function(e){o.removeResizers()})),e.on("create.end",500,(function(e){var t=e.context,n=t.shape,i=e.context.canExecute;e.isTouch||i&&(t.hints&&!1===t.hints.createElementsBehavior||s(n))})),e.on("autoPlace.end",500,(function(e){s(e.shape)}))}function $u(e){return kr(e,"bpmn:SubProcess")&&!Yr(e)}Hu.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],Hu.prototype.activate=function(e){var t=eo(e);if(void 0!==t){var n={text:t};W(n,this.getEditingBBox(e));var i={};return(Dr(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||$u(e))&&W(i,{centerVertically:!0}),Eo(e)&&W(i,{autoResize:!0}),kr(e,"bpmn:TextAnnotation")&&W(i,{resizable:!0,autoResize:!0}),W(n,{options:i}),n}},Hu.prototype.getEditingBBox=function(e){var t=this._canvas,n=e.label||e,i=t.getAbsoluteBBox(n),r=i.x+i.width/2,o=i.y+i.height/2,a={x:i.x,y:i.y},s=t.zoom(),c=this._textRenderer.getDefaultStyle(),l=this._textRenderer.getExternalStyle(),p=l.fontSize*s,u=l.lineHeight,h=c.fontSize*s,d=c.lineHeight,m={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};(kr(e,"bpmn:Lane")||function(e){return kr(e,"bpmn:Participant")&&Yr(e)}(e))&&(W(a,{width:i.height,height:30*s,x:i.x-i.height/2+15*s,y:o-30*s/2}),W(m,{fontSize:h+"px",lineHeight:d,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px",transform:"rotate(-90deg)"})),(Dr(e,["bpmn:Task","bpmn:CallActivity"])||function(e){return kr(e,"bpmn:Participant")&&!Yr(e)}(e)||$u(e))&&(W(a,{width:i.width,height:i.height}),W(m,{fontSize:h+"px",lineHeight:d,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"})),function(e){return kr(e,"bpmn:SubProcess")&&Yr(e)}(e)&&(W(a,{width:i.width,x:i.x}),W(m,{fontSize:h+"px",lineHeight:d,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"}));var f=90*s,v=7*s,g=4*s;if(n.labelTarget&&(W(a,{width:f,height:i.height+v+g,x:r-f/2,y:i.y-v}),W(m,{fontSize:p+"px",lineHeight:u,paddingTop:v+"px",paddingBottom:g+"px"})),Eo(n)&&!So(n)&&!Mo(n)){var y=Po(e),b=t.getAbsoluteBBox({x:y.x,y:y.y,width:0,height:0}),_=p+v+g;W(a,{width:f,height:_,x:b.x-f/2,y:b.y-_/2}),W(m,{fontSize:p+"px",lineHeight:u,paddingTop:v+"px",paddingBottom:g+"px"})}return kr(e,"bpmn:TextAnnotation")&&(W(a,{width:i.width,height:i.height,minWidth:30*s,minHeight:10*s}),W(m,{textAlign:"left",paddingTop:5*s+"px",paddingBottom:7*s+"px",paddingLeft:7*s+"px",paddingRight:5*s+"px",fontSize:h+"px",lineHeight:d})),{bounds:a,style:m}},Hu.prototype.update=function(e,t,n,i){var r,o,a;if((kr(e,"bpmn:TextAnnotation")&&(o=this._canvas.getAbsoluteBBox(e),r={x:e.x,y:e.y,width:e.width/o.width*i.width,height:e.height/o.height*i.height}),kr(e,"bpmn:Group"))&&!Tr(e).categoryValueRef){var s=Vu(Tr(this._canvas.getRootElement()).$parent,this._bpmnFactory);Tr(e).categoryValueRef=s}(a=t)&&a.trim()||(t=null),this._modeling.updateLabel(e,t,r)};var Gu="djs-element-hidden",Wu="djs-label-hidden";function Uu(e,t,n,i){var r,o,a,s=this,c=t.getDefaultLayer();e.on("directEditing.activate",(function(e){var n=e.active;if(kr(r=n.element.label||n.element,"bpmn:TextAnnotation")){o=t.getAbsoluteBBox(r),a=Ue("g");var l=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:r.height,position:{mx:0,my:0}}),p=s.path=Ue("path");ze(p,{d:l,strokeWidth:2,stroke:qu(r)}),ke(a,p),ke(c,a),ii(a,r.x,r.y)}kr(r,"bpmn:TextAnnotation")||r.labelTarget?t.addMarker(r,Gu):(kr(r,"bpmn:Task")||kr(r,"bpmn:CallActivity")||kr(r,"bpmn:SubProcess")||kr(r,"bpmn:Participant"))&&t.addMarker(r,Wu)})),e.on("directEditing.resize",(function(e){if(kr(r,"bpmn:TextAnnotation")){var t=e.height,n=e.dy,a=Math.max(r.height/o.height*(t+n),0),c=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:a,position:{mx:0,my:0}});ze(s.path,{d:c})}})),e.on(["directEditing.complete","directEditing.cancel"],(function(e){var n=e.active;n&&(t.removeMarker(n.element.label||n.element,Gu),t.removeMarker(r,Wu)),r=void 0,o=void 0,a&&(Fe(a),a=void 0)}))}function qu(e,t){return zr(e).get("stroke")||t||"black"}Uu.$inject=["eventBus","canvas","elementRegistry","pathMap"];var Ku={__depends__:[ca,Fu,wl],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",Hu],labelEditingPreview:["type",Uu]},Yu=["top","bottom","left","right"],Xu=10;function Zu(e,t){function n(e){if(So(e)){var n=function(e){var t=Sn(e.label),n=Qu(Sn(e),t);if(i=n,-1===Yu.indexOf(i))return;var i;var r=function(e){var t=Sn(e);return[].concat(e.incoming.map((function(e){return e.waypoints[e.waypoints.length-2]})),e.outgoing.map((function(e){return e.waypoints[1]}))).map((function(e){return Qu(t,e)}))}(e);if(e.host){var o=function(e){var t,n=e.host,i=Cn(Sn(e),n);t=i.indexOf("-")>=0?i.split("-"):[i];return Yu.filter((function(e){return-1===t.indexOf(e)}))}(e);r=r.concat(o)}var a=Yu.filter((function(e){return-1===r.indexOf(e)}));if(-1!==a.indexOf(n))return;return a[0]}(e);n&&function(e,n){var i=Sn(e),r=e.label,o=Sn(r);if(!r.parent)return;var a,s=xn(e);switch(n){case"top":a={x:i.x,y:s.top-Xu-r.height/2};break;case"left":a={x:s.left-Xu-r.width/2,y:i.y};break;case"bottom":a={x:i.x,y:s.bottom+Xu+r.height/2};break;case"right":a={x:s.right+Xu+r.width/2,y:i.y}}var c=Qa(a,o);t.moveShape(r,c)}(e,n)}}la.call(this,e),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],(function(e){var t=e.context,i=t.connection,r=i.source,o=i.target;!1!==(t.hints||{}).createElementsBehavior&&(n(r),n(o))})),this.postExecuted(["label.create"],(function(e){var t=e.context,i=t.shape;!1!==(t.hints||{}).createElementsBehavior&&n(i.labelTarget)})),this.postExecuted(["elements.create"],(function(e){var t=e.context,i=t.elements;!1!==(t.hints||{}).createElementsBehavior&&i.forEach((function(e){n(e)}))}))}function Qu(e,t){return Cn(t,e,5)}function Ju(e,t,n){la.call(this,e),this.preExecute("shape.append",(function(e){var t=e.source,n=e.shape;e.position||(kr(n,"bpmn:TextAnnotation")?e.position={x:t.x+t.width/2+75,y:t.y-50-n.height/2}:e.position={x:t.x+t.width+80+n.width/2,y:t.y+t.height/2})}),!0)}function eh(e,t){e.invoke(la,this),this.postExecute("shape.move",(function(e){var n=e.newParent,i=e.shape;E(w(i.incoming.concat(i.outgoing),(function(e){return kr(e,"bpmn:Association")})),(function(e){t.moveConnection(e,{x:0,y:0},n)}))}),!0)}r(Zu,la),Zu.$inject=["eventBus","modeling"],r(Ju,la),Ju.$inject=["eventBus","elementFactory","bpmnRules"],r(eh,la),eh.$inject=["injector","modeling"];function th(e,t){t.invoke(la,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",500,(function(e){var t=e.elements;1===(t=t.filter((function(e){return nh(e,e.host)}))).length&&t.map((function(e){return t.indexOf(e)})).forEach((function(i){var r=t[i];e.elements[i]=n.replaceShape(t[i],r)}))}),!0),this.preExecute("elements.move",500,(function(e){var t=e.shapes,i=e.newHost;if(1===t.length){var r=t[0];nh(r,i)&&(e.shapes=[n.replaceShape(r,i)])}}),!0)}function nh(e,t){return!Mo(e)&&Dr(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!t}th.$inject=["bpmnReplace","injector"],r(th,la),th.prototype.replaceShape=function(e,t){var n,i=(n=Tr(e).eventDefinitions)&&n[0],r={type:"bpmn:BoundaryEvent",host:t};return i&&(r.eventDefinitionType=i.$type),this._bpmnReplace.replaceElement(e,r,{layoutConnection:!1})};function ih(e,t,n){function i(e){return w(e.attachers,(function(e){return kr(e,"bpmn:BoundaryEvent")}))}la.call(this,e),this.postExecute("connection.create",(function(e){var t=e.context.source,r=e.context.target,o=i(r);kr(t,"bpmn:EventBasedGateway")&&kr(r,"bpmn:ReceiveTask")&&o.length>0&&n.removeElements(o)})),this.postExecute("connection.reconnect",(function(e){var t=e.context.oldSource,r=e.context.newSource;kr(t,"bpmn:Gateway")&&kr(r,"bpmn:EventBasedGateway")&&E(r.outgoing,(function(e){var t=e.target,r=i(t);kr(t,"bpmn:ReceiveTask")&&r.length>0&&n.removeElements(r)}))})),e.on("moddleCopy.canCopyProperty",2e3,(function(e){var n=e.parent,i=e.property,r=e.propertyName,o=t.getPropertyDescriptor(n,r);o&&o.isReference&&kr(i,"bpmn:RootElement")&&n.set(r,i)}))}function rh(e){e.invoke(la,this),this.preExecute("shape.create",1500,(function(e){var t=e.context,n=t.parent,i=t.shape;kr(n,"bpmn:Lane")&&!kr(i,"bpmn:Lane")&&(t.parent=Ws(n,"bpmn:Participant"))}))}function oh(e,t,n){la.call(this,e),this.preExecute("shape.create",(function(e){var n=e.context.shape;if(kr(n,"bpmn:DataObjectReference")&&"label"!==n.type){var i=t.create("bpmn:DataObject");n.businessObject.dataObjectRef=i}}))}ih.$inject=["eventBus","moddle","modeling"],r(ih,la),rh.$inject=["injector"],r(rh,la),oh.$inject=["eventBus","bpmnFactory","moddle"],r(oh,la);var ah=20,sh=20,ch=2e3;function lh(e,t,n){function i(){var t=e.getRootElement();return kr(t,"bpmn:Collaboration")?t:n.makeCollaboration()}la.call(this,t),t.on(["create.start","shape.move.start"],ch,(function(t){var n=t.context,i=n.shape,r=e.getRootElement();if(kr(i,"bpmn:Participant")&&kr(r,"bpmn:Process")&&r.children.length){var o=r.children.filter((function(e){return!kr(e,"bpmn:Group")&&!Mo(e)&&!function(e){return!!e.waypoints}(e)}));if(o.length){var a=St(o);W(i,function(e,t){t={width:t.width+40+30,height:t.height+40};var n=Math.max(e.width,t.width),i=Math.max(e.height,t.height);return{x:-n/2,y:-i/2,width:n,height:i}}(i,a)),n.createConstraints=function(e,t){return{bottom:(t=xn(t)).top+e.height/2-sh,left:t.right-e.width/2+ah,top:t.bottom-e.height/2+sh,right:t.left+e.width/2-ah-30}}(i,a)}}})),t.on("create.start",ch,(function(n){var i=n.context.shape,r=e.getRootElement(),o=e.getGraphics(r);function a(e){e.element=r,e.gfx=o}kr(i,"bpmn:Participant")&&kr(r,"bpmn:Process")&&(t.on("element.hover",ch,a),t.once("create.cleanup",(function(){t.off("element.hover",a)})))})),this.preExecute("elements.create",ch,(function(e){var t,n=e.elements,r=e.parent,o=function(e){return _(e,(function(e){return kr(e,"bpmn:Participant")}))}(n);o&&kr(r,"bpmn:Process")&&(e.parent=i(),(t=e.hints=e.hints||{}).participant=o,t.process=r,t.processRef=Tr(o).get("processRef"))}),!0),this.preExecute("shape.create",(function(e){var t=e.parent,n=e.shape;kr(n,"bpmn:Participant")&&kr(t,"bpmn:Process")&&(e.parent=i(),e.process=t,e.processRef=Tr(n).get("processRef"))}),!0),this.execute("shape.create",(function(e){var t=e.hints||{},n=e.process||t.process,i=e.shape,r=t.participant;!n||r&&i!==r||Tr(i).set("processRef",Tr(n))}),!0),this.revert("shape.create",(function(e){var t=e.hints||{},n=e.process||t.process,i=e.processRef||t.processRef,r=e.shape,o=t.participant;!n||o&&r!==o||Tr(r).set("processRef",i)}),!0),this.postExecute("shape.create",(function(e){var t=e.hints||{},i=e.process||e.hints.process,r=e.shape,o=t.participant;if(i){var a=i.children.slice();o?r===o&&n.moveElements(a,{x:0,y:0},o):n.moveElements(a,{x:0,y:0},r)}}),!0)}lh.$inject=["canvas","eventBus","modeling"],r(lh,la);var ph="__targetRef_placeholder";function uh(e,t){function n(e,n){var i=e.get("properties"),r=_(i,(function(e){return e.name===ph}));return!r&&n&&Dt(i,r=t.create("bpmn:Property",{name:ph})),r}function i(e,t){var i=n(e);i&&(function(e,t,n){return _(e.get("dataInputAssociations"),(function(e){return e!==n&&e.targetRef===t}))}(e,i,t)||kt(e.get("properties"),i))}function r(e){var t,r=e.context,o=r.connection,a=o.businessObject,s=o.target,c=s&&s.businessObject,l=r.newTarget,p=l&&l.businessObject,u=r.oldTarget||r.target,h=u&&u.businessObject,d=o.businessObject;h&&h!==c&&i(h,a),p&&p!==c&&i(p,a),c?(t=n(c,!0),d.targetRef=t):d.targetRef=null}la.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],hh(r)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],hh(r))}function hh(e){return function(t){if(kr(t.context.connection,"bpmn:DataInputAssociation"))return e(t)}}function dh(e){this._bpmnUpdater=e}function mh(e,t,n,i){function r(e){return e.children.filter((function(e){return kr(e,"bpmn:DataStoreReference")&&!e.labelTarget}))}function o(e,i){var r=e.businessObject||e;if(i=i||n.filter((function(e){return kr(e,"bpmn:Participant")&&Tr(e).processRef}))[0]){var o=i.businessObject||i;t.execute("dataStore.updateContainment",{dataStoreBo:r,dataStoreDi:zr(e),newSemanticParent:o.processRef||o,newDiParent:zr(i)})}}la.call(this,i),t.registerHandler("dataStore.updateContainment",dh),this.preExecute("shape.create",(function(e){var t=e.context,n=t.shape;kr(n,"bpmn:DataStoreReference")&&"label"!==n.type&&(t.hints||(t.hints={}),t.hints.autoResize=!1)})),this.preExecute("elements.move",(function(e){var t=e.context,n=t.shapes;n.filter((function(e){return kr(e,"bpmn:DataStoreReference")})).length&&(t.hints||(t.hints={}),t.hints.autoResize=n.filter((function(e){return!kr(e,"bpmn:DataStoreReference")})))})),this.postExecute("shape.create",(function(e){var t=e.context.shape,n=t.parent;kr(t,"bpmn:DataStoreReference")&&"label"!==t.type&&kr(n,"bpmn:Collaboration")&&o(t)})),this.postExecute("shape.move",(function(e){var t=e.context,n=t.shape,i=t.oldParent,r=n.parent;kr(i,"bpmn:Collaboration")||kr(n,"bpmn:DataStoreReference")&&"label"!==n.type&&kr(r,"bpmn:Collaboration")&&o(n,kr(i,"bpmn:Participant")?i:function(e,t){for(;e.parent;){if(kr(e.parent,t))return e.parent;e=e.parent}}(i,"bpmn:Participant"))})),this.postExecute("shape.delete",(function(t){var n=t.context.shape,i=e.getRootElement();Dr(n,["bpmn:Participant","bpmn:SubProcess"])&&kr(i,"bpmn:Collaboration")&&r(i).filter((function(e){return function(e,t){var n=e.businessObject||e,i=t.businessObject||t;for(;n.$parent;){if(n.$parent===i.processRef||i)return!0;n=n.$parent}return!1}(e,n)})).forEach((function(e){o(e)}))})),this.postExecute("canvas.updateRoot",(function(e){var t=e.context,n=t.oldRoot,i=t.newRoot;r(n).forEach((function(e){kr(i,"bpmn:Process")&&o(e,i)}))}))}uh.$inject=["eventBus","bpmnFactory"],r(uh,la),dh.$inject=["bpmnUpdater"],dh.prototype.execute=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.newSemanticParent,r=e.newDiParent;e.oldSemanticParent=t.$parent,e.oldDiParent=n.$parent,this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r)},dh.prototype.revert=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.oldSemanticParent,r=e.oldDiParent;this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r)},mh.$inject=["canvas","commandStack","elementRegistry","eventBus"],r(mh,la);function fh(e,t,n){la.call(this,e),this.postExecuted("shape.delete",500,(function(e){var t=e.context,i=t.hints,r=t.shape,o=t.oldParent;kr(r,"bpmn:Lane")&&(i&&i.nested||function(e,t){var i,r,o,a=Lp(t),s=[],c=[];wt(a,(function(t){return t.y>e.y?c.push(t):s.push(t),t.children})),a.length&&(i=c.length&&s.length?e.height/2:e.height,s.length&&(r=n.calculateAdjustments(s,"y",i,e.y-10),n.makeSpace(r.movingShapes,r.resizingShapes,{x:0,y:i},"s")),c.length&&(o=n.calculateAdjustments(c,"y",-i,e.y+e.height+10),n.makeSpace(o.movingShapes,o.resizingShapes,{x:0,y:-i},"n")))}(r,o))}))}fh.$inject=["eventBus","modeling","spaceTool"],r(fh,la);function vh(e,t){t.invoke(la,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",500,(function(e){var t=e.elements;t.filter((function(e){return gh(e,e.host)})).map((function(e){return t.indexOf(e)})).forEach((function(i){e.elements[i]=n.replaceShape(t[i])}))}),!0),this.preExecute("elements.move",500,(function(e){var t=e.shapes,i=e.newHost;t.forEach((function(e,r){var o,a=e.host;gh(e,(o=a,-1!==t.indexOf(o)?a:i))&&(t[r]=n.replaceShape(e))}))}),!0)}function gh(e,t){return!Mo(e)&&kr(e,"bpmn:BoundaryEvent")&&!t}function yh(e,t,n){function i(e,i,r){var o,a,s,c,l,p,u,h,d=i.waypoints,m=e.outgoing.slice(),v=e.incoming.slice(),g=fc(d,h=f(r.width)?Sn(r):r);if(g){if(o=d.slice(0,g.index),a=d.slice(g.index+(g.bendpoint?1:0)),!o.length||!a.length)return;s=g.bendpoint?d[g.index]:h,1!==o.length&&bh(e,o[o.length-1])||o.push(_h(s)),1!==a.length&&bh(e,a[0])||a.unshift(_h(s))}c=i.source,l=i.target,t.canConnect(c,e,i)&&(n.reconnectEnd(i,e,o||h),p=i),t.canConnect(e,l,i)&&(p?u=n.connect(e,l,{type:i.type,waypoints:a}):(n.reconnectStart(i,e,a||h),u=i));var y=[].concat(p&&w(v,(function(e){return e.source===p.source}))||[],u&&w(m,(function(e){return e.target===u.target}))||[]);y.length&&n.removeElements(y)}la.call(this,e),this.preExecute("elements.move",(function(e){var n=e.newParent,i=e.shapes,r=e.delta,o=i[0];if(o&&n){n&&n.waypoints&&(e.newParent=n=n.parent);var a=Sn(o),s={x:a.x+r.x,y:a.y+r.y},c=_(n.children,(function(e){return t.canInsert(i,e)&&fc(e.waypoints,s)}));c&&(e.targetFlow=c,e.position=s)}}),!0),this.postExecuted("elements.move",(function(e){var t=e.shapes,n=e.targetFlow,r=e.position;n&&i(t[0],n,r)}),!0),this.preExecute("shape.create",(function(e){var n=e.parent,i=e.shape;t.canInsert(i,n)&&(e.targetFlow=n,e.parent=n.parent)}),!0),this.postExecuted("shape.create",(function(e){var t=e.shape,n=e.targetFlow,r=e.position;n&&i(t,n,r)}),!0)}function bh(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function _h(e){return W({},e)}function xh(e,t){la.call(this,e),this.preExecuted("connection.create",(function(e){var n=e.context,i=n.source,r=n.target,o=r.incoming.slice();n.hints&&!1===n.hints.createElementsBehavior||kr(i,"bpmn:EventBasedGateway")&&r.incoming.length&&o.filter(wh).forEach((function(e){t.removeConnection(e)}))})),this.preExecuted("shape.replace",(function(e){var n=e.context.newShape;kr(n,"bpmn:EventBasedGateway")&&n.outgoing.filter(wh).map((function(e){return e.target})).reduce((function(e,t){var n=t.incoming.filter(wh);return e.concat(n)}),[]).forEach((function(e){e.source!==n&&t.removeConnection(e)}))}))}function wh(e){return kr(e,"bpmn:SequenceFlow")}vh.$inject=["bpmnReplace","injector"],r(vh,la),vh.prototype.replaceShape=function(e){var t,n,i=(n=Tr(e).eventDefinitions)&&n[0];return t=i?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:i.$type}:{type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(e,t,{layoutConnection:!1})},r(yh,la),yh.$inject=["eventBus","bpmnRules","modeling"],xh.$inject=["eventBus","modeling"],r(xh,la);var Eh=1500;function Sh(e,t,n){t.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],Eh,(function(t){var i=t.context.shape||t.shape,r=t.hover;kr(r,"bpmn:Lane")&&!Dr(i,["bpmn:Lane","bpmn:Participant"])&&(t.hover=Ip(r),t.hoverGfx=e.getGraphics(t.hover));var o=n.getRootElement();r!==o&&(i.labelTarget||kr(i,"bpmn:Group"))&&(t.hover=o,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],Eh,(function(t){var n=t.hover;kr(n,"bpmn:Lane")&&(t.hover=Ip(n)||n,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["bendpoint.move.hover"],Eh,(function(t){var n=t.context,i=t.hover,r=n.type;kr(i,"bpmn:Lane")&&/reconnect/.test(r)&&(t.hover=Ip(i)||i,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["connect.start"],Eh,(function(e){var t=e.context,n=t.start;kr(n,"bpmn:Lane")&&(t.start=Ip(n)||n)})),t.on("shape.move.start",2e3,(function(e){var t=e.shape;kr(t,"bpmn:Lane")&&(e.shape=Ip(t)||t)}))}Sh.$inject=["elementRegistry","eventBus","canvas"];function Ch(e,t,n,i,r,o){function a(e){var n=Tr(e).categoryValueRef;if(n){var i=n.$parent;n&&(kt(i.categoryValue,n),i&&!i.categoryValue.length&&function(e){kt(t.getDefinitions().get("rootElements"),e)}(i))}}r.invoke(la,this),this.executed("shape.delete",(function(e){var t,i=e.context.shape;if(kr(i,"bpmn:Group")){var r=Tr(i).categoryValueRef,o=n.filter((function(e){return kr(e,"bpmn:Group")}));t=r,o.some((function(e){var n=Tr(e);return n.categoryValueRef&&n.categoryValueRef===t}))||a(i)}})),this.reverted("shape.delete",(function(e){var n=e.context.shape;if(kr(n,"bpmn:Group")){var i=Tr(n).categoryValueRef,r=t.getDefinitions(),o=i?i.$parent:null;Dt(o.get("categoryValue"),i),Dt(r.get("rootElements"),o)}})),this.execute("shape.create",(function(n){var i=Tr(n.context.shape);if(kr(i,"bpmn:Group")&&!i.categoryValueRef){var r=Vu(t.getDefinitions(),e);i.categoryValueRef=r}})),this.revert("shape.create",(function(e){var t=e.context.shape;kr(t,"bpmn:Group")&&(a(t),delete Tr(t).categoryValueRef)})),i.on("moddleCopy.canCopyProperty",2e3,(function(n){var i,r=n.property;if(kr(r,"bpmn:CategoryValue"))return i=Vu(t.getDefinitions(),e),o.copyElement(r,i)}))}function Ph(e,t,n,i){var r,o,a,s;return 0==(r=(i.y-n.y)*(t.x-e.x)-(i.x-n.x)*(t.y-e.y))?null:(o=e.y-n.y,a=e.x-n.x,s=((i.x-n.x)*o-(i.y-n.y)*a)/r,{x:Math.round(e.x+s*(t.x-e.x)),y:Math.round(e.y+s*(t.y-e.y))})}function Mh(e){function t(e,t,n){var i,r={x:n.x,y:n.y-50},o={x:n.x-50,y:n.y},a=Ph(e,t,n,r),s=Ph(e,t,n,o);i=a&&s?Rh(a,n)>Rh(s,n)?s:a:a||s,e.original=i}e.on("bpmnElement.added",(function(e){var n,i,r=e.element;r.waypoints&&(t((i=(n=r).waypoints)[0],i[1],Sn(n.source)),t(i[i.length-1],i[i.length-2],Sn(n.target)))}))}function Rh(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ah(e){la.call(this,e);var t=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],(function(e){var n=e.context.shape,i=Tr(n),r=zr(n);Dr(i,t)&&!r.get("isHorizontal")&&r.set("isHorizontal",!0)}))}Ch.$inject=["bpmnFactory","bpmnjs","elementRegistry","eventBus","injector","moddleCopy"],r(Ch,la),Mh.$inject=["eventBus"],Ah.$inject=["eventBus"],r(Ah,la);var kh=Math.sqrt,Dh=Math.min,Th=Math.max,zh=Math.abs;function Oh(e){return Math.pow(e,2)}function Bh(e,t){return kh(Oh(e.x-t.x)+Oh(e.y-t.y))}function jh(e,t,n,i){var r=t.x-e.x,o=t.y-e.y,a=n.x-e.x,s=n.y-e.y,c=r*r+o*o,l=(r*a+o*s)/c,p=l*l-(a*a+s*s-i*i)/c;if(p<0&&p>-1e-6&&(p=0),p<0)return[];var u=kh(p),h=-l+u,d=-l-u,m={x:e.x-r*h,y:e.y-o*h};return 0===p?[m]:[m,{x:e.x-r*d,y:e.y-o*d}].filter((function(n){return function(e,t,n){return Nh(e.x,t.x,n.x)&&Nh(e.y,t.y,n.y)}(n,e,t)}))}function Nh(e,t,n){return e>=Dh(t,n)-Lh&&e<=Th(t,n)+Lh}var Lh=.1;function Ih(e,t){return zh(e.x-t.x)<=Lh&&zh(e.y-t.y)<=Lh}function Fh(e,t,n,i){var r=0,o=0,a={point:e,delta:{x:0,y:0}},s=function(e,t){var n,i,r,o,a,s,c,l,p,u,h,d,m=0;for(m=0;m<t.length-1;m++){if(Ih(n=t[m],i=t[m+1])?s=[n]:(r=Bh(e,n),o=Bh(e,i),s=jh(n,i,e,Dh(r,o))),s.length<1)throw new Error("expected between [1, 2] circle -> line intersections");1===s.length&&(c={type:"bendpoint",position:s[0],segmentIndex:m,bendpointIndex:Ih(n,s[0])?m:m+1}),2===s.length&&(h=s[0],d=s[1],c={type:"segment",position:a={x:(h.x+d.x)/2,y:(h.y+d.y)/2},segmentIndex:m,relativeLocation:Bh(n,a)/Bh(n,i)}),l=Bh(c.position,e),(!u||p>l)&&(u=c,p=l)}return u}(e,n),c=s.segmentIndex,l=function(e,t,n,i){var r=n.segmentIndex,o=t.length-e.length;if(i.segmentMove){var a=i.segmentMove.segmentStartIndex,s=i.segmentMove.newSegmentStartIndex;return r===a?s:r>=s?r+o<s?s:r+o:r}if(i.bendpointMove){var c,l=i.bendpointMove.insert,p=i.bendpointMove.bendpointIndex;return 0===o?r:(r>=p&&(c=l?r+1:r-1),r<p&&(c=r,l&&"bendpoint"!==n.type&&p-1===r&&Vh(t,p)<n.relativeLocation&&c++),c)}return 0===o?r:i.connectionStart&&0===r?0:i.connectionEnd&&r===e.length-2?t.length-2:Math.floor((t.length-2)/2)}(n,t,s,i);if(l<0||l>t.length-2||null===l)return a;var p,u,h=Hh(n,c),d=Hh(t,l),m=s.position,f=function(e,t){var n=_c(e[0],e[1]),i=_c(e[0],t);return 0===n?0:i/n}(h,m),v=(p=d,u=gc(h),gc(p)-u);if("bendpoint"===s.type){var g=t.length-n.length,y=s.bendpointIndex,b=n[y];if(-1!==t.indexOf(b))return a;if(0===g){var _=t[y];return{delta:{x:r=_.x-s.position.x,y:o=_.y-s.position.y},point:{x:e.x+r,y:e.y+o}}}g<0&&0!==y&&y<n.length-1&&(f=Vh(n,y))}var x,w,E={x:(d[1].x-d[0].x)*f+d[0].x,y:(d[1].y-d[0].y)*f+d[0].y},S=(x={x:e.x-m.x,y:e.y-m.y},(w=v)?{x:Math.cos(w)*x.x-Math.sin(w)*x.y,y:Math.sin(w)*x.x+Math.cos(w)*x.y}:x);return r=E.x+S.x-e.x,o=E.y+S.y-e.y,{point:_n(E),delta:_n({x:r,y:o})}}function Vh(e,t){var n=_c(e[t-1],e[t]);return n/(n+_c(e[t],e[t+1]))}function Hh(e,t){return[e[t],e[t+1]]}function $h(e,t,n){var i=Za(t),r=Za(n),o=Qa(e,i),a=o.x*(n.width/t.width),s=o.y*(n.height/t.height);return _n({x:r.x+a,y:r.y+s})}function Gh(e,t,n){var i=Za(e),r=Za(t),o=Za(n),a=Qa(e,i),s=Qa(i,r),c=function(e,t,n){var i=xn(t),r=xn(n);if(function(e,t){return function(e,t){return e.right!==t.right&&e.left!==t.left}(e,t)||function(e,t){return e.top!==t.top&&e.bottom!==t.bottom}(e,t)}(i,r))return null;var o,a,s=Cn(t,e);if("top"===s)o={x:0,y:r.bottom-i.bottom};else if("bottom"===s)o={x:0,y:r.top-i.top};else if("right"===s)o={x:r.left-i.left,y:0};else{if("left"!==s)return null;o={x:r.right-i.right,y:0}}if(a={x:e.x+o.x,y:e.y+o.y},Cn(n,a)!==s)return null;return o}(i,t,n);if(c)return c;var l=s.x*(n.width/t.width),p=s.y*(n.height/t.height),u=o.x+l,h=o.y+p;return _n({x:u+a.x-e.x,y:h+a.y-e.y})}var Wh={width:90,height:20},Uh="name",qh="text";function Kh(e,t,n,i){function r(e){var t=e.context,n=t.connection,i=n.label,r=W({},t.hints),o=t.newWaypoints||n.waypoints,a=t.oldWaypoints;return void 0===r.startChanged&&(r.startChanged=!!r.connectionStart),void 0===r.endChanged&&(r.endChanged=!!r.connectionEnd),function(e,t,n,i){return Fh(function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}(e),t,n,i).delta}(i,o,a,r)}la.call(this,e),this.postExecute("element.updateProperties",(function(e){var n=e.context,r=n.element,o=n.properties;if(Uh in o&&t.updateLabel(r,o.name),qh in o&&kr(r,"bpmn:TextAnnotation")){var a=i.getTextAnnotationBounds({x:r.x,y:r.y,width:r.width,height:r.height},o.text||"");t.updateLabel(r,o.text,a)}})),this.postExecute(["shape.create","connection.create"],(function(e){var n=e.context;if(!1!==(n.hints||{}).createElementsBehavior){var r=n.shape||n.connection,o=r.businessObject;if(!Mo(r)&&Eo(r)&&eo(r)){var a=Po(r),s=i.getExternalLabelBounds(Wh,eo(r));t.createLabel(r,a,{id:o.id+"_label",businessObject:o,width:s.width,height:s.height})}}})),this.postExecute("shape.delete",(function(e){var n=e.context,i=n.labelTarget,r=n.hints||{};i&&!1!==r.unsetLabel&&t.updateLabel(i,null,null,{removeShape:!1})})),this.postExecute(["label.create"],(function(e){var t,i=e.context,r=i.shape,o=i.labelTarget;o&&kr(o,"bpmn:BaseElement")&&((t=zr(o)).label||(t.label=n.create("bpmndi:BPMNLabel",{bounds:n.create("dc:Bounds")}),r.di=t),W(t.label.bounds,{x:r.x,y:r.y,width:r.width,height:r.height}))})),this.postExecute(["connection.layout","connection.updateWaypoints"],(function(e){var n=e.context;if(!1!==(n.hints||{}).labelBehavior){var i,o=n.connection.label;o&&o.parent&&(i=r(e),t.moveShape(o,i))}})),this.postExecute(["shape.replace"],(function(e){var t=e.context,n=t.newShape,i=t.oldShape,r=Tr(n);r&&Eo(r)&&i.label&&n.label&&(n.label.x=i.label.x,n.label.y=i.label.y)})),this.postExecute("shape.resize",(function(e){var n,i=e.context,r=i.shape,o=i.newBounds,a=i.oldBounds;if(So(r)){var s=r.label,c=Yh(function(e,t){if(!t.length)return;var n=function(e,t){return B(t.map((function(t){return{line:t,distance:bc(e,t)}})),"distance")[0].line}(e,t);return yc(e,n)}(Sn(s),[[{x:(n=a).x,y:n.y},{x:n.x+(n.width||0),y:n.y}],[{x:n.x+(n.width||0),y:n.y},{x:n.x+(n.width||0),y:n.y+(n.height||0)}],[{x:n.x,y:n.y+(n.height||0)},{x:n.x+(n.width||0),y:n.y+(n.height||0)}],[{x:n.x,y:n.y},{x:n.x,y:n.y+(n.height||0)}]]),a,o);t.moveShape(s,c)}}))}function Yh(e,t,n){return _n(Qa($h(e,t,n),e))}function Xh(e,t){function n(e,t){var n=e.context,i=n.connection,r=W({},n.hints),o=n.newWaypoints||i.waypoints,a=n.oldWaypoints;return void 0===r.startChanged&&(r.startChanged=!!r.connectionStart),void 0===r.endChanged&&(r.endChanged=!!r.connectionEnd),function(e,t,n,i){return Fh(e,t,n,i).point}(t,o,a,r)}la.call(this,e),this.postExecute(["connection.layout","connection.updateWaypoints"],(function(e){var i=e.context.connection,r=i.outgoing;i.incoming.forEach((function(i){var r=i.waypoints[i.waypoints.length-1],o=n(e,r),a=[].concat(i.waypoints.slice(0,-1),[o]);t.updateWaypoints(i,a)})),r.forEach((function(i){var r=i.waypoints[0],o=n(e,r),a=[].concat([o],i.waypoints.slice(1));t.updateWaypoints(i,a)}))})),this.postExecute(["connection.move"],(function(e){var n=e.context,i=n.connection,r=i.outgoing,o=i.incoming,a=n.delta;o.forEach((function(e){var n=e.waypoints[e.waypoints.length-1],i={x:n.x+a.x,y:n.y+a.y},r=[].concat(e.waypoints.slice(0,-1),[i]);t.updateWaypoints(e,r)})),r.forEach((function(e){var n=e.waypoints[0],i={x:n.x+a.x,y:n.y+a.y},r=[].concat([i],e.waypoints.slice(1));t.updateWaypoints(e,r)}))}))}function Zh(e,t,n){var i=nd(e),r=id(i,t),o=i[0];return r.length?r[r.length-1]:$h(o.original||o,n,t)}function Qh(e,t,n){var i=nd(e),r=id(i,t),o=i[i.length-1];return r.length?r[0]:$h(o.original||o,n,t)}function Jh(e,t,n){var i=nd(e),r=td(t,n),o=i[0];return $h(o.original||o,r,t)}function ed(e,t,n){var i=nd(e),r=td(t,n),o=i[i.length-1];return $h(o.original||o,r,t)}function td(e,t){return{x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}function nd(e){var t=e.waypoints;if(!t.length)throw new Error("connection#"+e.id+": no waypoints");return t}function id(e,t){return w(R(e,rd),(function(e){return function(e,t){return"intersect"===Cn(t,e,1)}(e,t)}))}function rd(e){return e.original||e}function od(e,t){la.call(this,e),this.postExecute("shape.replace",(function(e){var n=e.oldShape,i=e.newShape;if(function(e,t){return kr(e,"bpmn:Participant")&&Yr(e)&&kr(t,"bpmn:Participant")&&!Yr(t)}(n,i)){var r,o,a,s,c=(o=Et([r=n],!1),a=[],s=[],o.forEach((function(e){e!==r&&(e.incoming.forEach((function(e){kr(e,"bpmn:MessageFlow")&&a.push(e)})),e.outgoing.forEach((function(e){kr(e,"bpmn:MessageFlow")&&s.push(e)})))}),[]),{incoming:a,outgoing:s});c.incoming.forEach((function(e){var r=Qh(e,i,n);t.reconnectEnd(e,i,r)})),c.outgoing.forEach((function(e){var r=Zh(e,i,n);t.reconnectStart(e,i,r)}))}}),!0)}r(Kh,la),Kh.$inject=["eventBus","modeling","bpmnFactory","textRenderer"],r(Xh,la),Xh.$inject=["eventBus","modeling"],od.$inject=["eventBus","modeling"],r(od,la);function ad(e,t,n){e.on(["shape.move.rejected","create.rejected"],(function(e){var i,r,o,a=e.context,s=a.shape;kr(a.target,"bpmn:Collaboration")&&kr(s,"bpmn:FlowNode")&&(i=e,r=n("flow elements must be children of pools/participants"),t.add({position:{x:i.x+5,y:i.y+5},type:"error",timeout:o||2e3,html:"<div>"+r+"</div>"}))}))}function sd(e,t){la.call(this,e),this.preExecute("shape.resize",(function(e){var n=e.shape,i=zr(n),r=i&&i.get("label");r&&r.get("bounds")&&t.updateModdleProperties(n,r,{bounds:void 0})}),!0)}function cd(e,t,n){la.call(this,e),this.preExecute("shape.delete",(function(e){var i=e.context.shape;if(1===i.incoming.length&&1===i.outgoing.length){var r=i.incoming[0],o=i.outgoing[0];if(kr(r,"bpmn:SequenceFlow")&&kr(o,"bpmn:SequenceFlow")&&t.canConnect(r.source,o.target,r)){var a=function(e,t){var n=Ph(ld(e[e.length-2]),ld(e[e.length-1]),ld(t[1]),ld(t[0]));return n?[].concat(e.slice(0,e.length-1),[n],t.slice(1)):[ld(e[0]),ld(t[t.length-1])]}(r.waypoints,o.waypoints);n.reconnectEnd(r,o.target,a)}}}))}function ld(e){return e.original||e}function pd(e,t){la.call(this,e),this.preExecute("shape.delete",(function(e){var t=e.shape,n=t.parent;kr(t,"bpmn:Participant")&&(e.collaborationRoot=n)}),!0),this.postExecute("shape.delete",(function(e){var n=e.collaborationRoot;n&&!n.businessObject.participants.length&&t.makeProcess()}),!0)}function ud(e,t,n,i){la.call(this,e);var r=i.get("dragging",!1);function o(e){var i,r,o=e.source,a=e.target;e.parent&&(kr(e,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(o,a)||(r=!0),n.canConnectMessageFlow(o,a)&&(i="bpmn:MessageFlow")),kr(e,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(o,a)||(r=!0),n.canConnectSequenceFlow(o,a)&&(i="bpmn:SequenceFlow")),kr(e,"bpmn:Association")&&!n.canConnectAssociation(o,a)&&(r=!0),r&&t.removeConnection(e),i&&t.connect(o,a,{type:i,waypoints:e.waypoints.slice()}))}this.postExecuted("elements.move",(function(e){E(e.closure.allConnections,o)}),!0),this.preExecute("connection.reconnect",(function(e){var i,o,a=e.context,s=a.connection,c=a.newSource||s.source,l=a.newTarget||s.target;(i=n.canConnect(c,l))&&i.type!==s.type&&(o=t.connect(c,l,{type:i.type,waypoints:s.waypoints.slice()}),t.removeConnection(s),a.connection=o,r&&function(e,t){var n,i=r.context(),o=i&&i.payload.previousSelection;if(!o||!o.length)return;if(-1===(n=o.indexOf(e)))return;o.splice(n,1,t)}(s,o))})),this.postExecuted("element.updateProperties",(function(e){var n,i=e.context,r=i.properties,o=i.element,a=o.businessObject;r.default&&(n=_(o.outgoing,j({id:o.businessObject.default.id})))&&t.updateProperties(n,{conditionExpression:void 0}),r.conditionExpression&&a.sourceRef.default===a&&t.updateProperties(o.source,{default:void 0})}))}function hd(e,t,n,i,r,o){i.invoke(la,this),this._bpmnReplace=e,this._elementRegistry=n,this._selection=o,this.postExecuted(["elements.create"],500,(function(e){var n=e.context,i=n.parent,r=n.elements,o=t.canReplace(r,i);o&&this.replaceElements(r,o.replacements)}),this),this.postExecuted(["elements.move"],500,(function(e){var n=e.context,i=n.newParent,r=n.newHost,o=[];E(n.closure.topLevel,(function(e){o=Zr(e)?o.concat(e.children):o.concat(e)})),1===o.length&&r&&(i=r);var a=t.canReplace(o,i);a&&this.replaceElements(o,a.replacements,r)}),this),this.postExecute(["shape.replace"],1500,(function(e){var n,i=e.context,r=i.oldShape,o=i.newShape,a=r.attachers;a&&a.length&&(n=t.canReplace(a,o),this.replaceElements(a,n.replacements))}),this),this.postExecuted(["shape.replace"],1500,(function(e){var t=e.context,n=t.oldShape,i=t.newShape;r.unclaimId(n.businessObject.id,n.businessObject),r.updateProperties(i,{id:n.id})}))}ad.$inject=["eventBus","tooltips","translate"],r(sd,la),sd.$inject=["eventBus","modeling"],r(cd,la),cd.$inject=["eventBus","bpmnRules","modeling"],pd.$inject=["eventBus","modeling"],r(pd,la),r(ud,la),ud.$inject=["eventBus","modeling","bpmnRules","injector"],r(hd,la),hd.prototype.replaceElements=function(e,t){var n=this._elementRegistry,i=this._bpmnReplace,r=this._selection;E(t,(function(t){var r={type:t.newElementType},o=n.get(t.oldElementId),a=e.indexOf(o);e[a]=i.replaceElement(o,r,{select:!1})})),t&&r.select(e)},hd.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var dd=300,md=60,fd={width:300,height:150},vd={width:140,height:120},gd={width:50,height:30};function yd(e){e.on("resize.start",1500,(function(e){var t=e.context,n=t.shape,i=t.direction,r=t.balanced;(kr(n,"bpmn:Lane")||kr(n,"bpmn:Participant"))&&(t.resizeConstraints=function(e,t,n){var i=Ip(e),r=!0,o=!0,a=Np(i,[i]),s=xn(e),c={},l={};/e/.test(t)?l.right=s.left+dd:/w/.test(t)&&(l.left=s.right-dd);return a.forEach((function(e){var i=xn(e);/n/.test(t)&&(i.top<s.top-10&&(r=!1),n&&bd(s.top-i.bottom)<10&&Sd(c,"top",i.top+md),bd(s.top-i.top)<5&&Ed(l,"top",i.bottom-md)),/s/.test(t)&&(i.bottom>s.bottom+10&&(o=!1),n&&bd(s.bottom-i.top)<10&&Ed(c,"bottom",i.bottom-md),bd(s.bottom-i.bottom)<5&&Sd(l,"bottom",i.top+md))})),i.children.filter((function(e){return!e.hidden&&!e.waypoints&&(kr(e,"bpmn:FlowElement")||kr(e,"bpmn:Artifact"))})).forEach((function(e){var n=xn(e);r&&/n/.test(t)&&Ed(l,"top",n.top-20),/e/.test(t)&&Sd(l,"right",n.right+20),o&&/s/.test(t)&&Sd(l,"bottom",n.bottom+20),/w/.test(t)&&Ed(l,"left",n.left-50)})),{min:l,max:c}}(n,i,r)),kr(n,"bpmn:Participant")&&(t.minDimensions=fd),kr(n,"bpmn:SubProcess")&&Yr(n)&&(t.minDimensions=vd),kr(n,"bpmn:TextAnnotation")&&(t.minDimensions=gd)}))}yd.$inject=["eventBus"];var bd=Math.abs,_d=Math.min,xd=Math.max;function wd(e,t,n,i){var r=e[t];e[t]=void 0===r?n:i(n,r)}function Ed(e,t,n){return wd(e,t,n,_d)}function Sd(e,t,n){return wd(e,t,n,xd)}function Cd(e,t){e.on("resize.start",1501,(function(e){var t=e.context,n=t.shape;(kr(n,"bpmn:Lane")||kr(n,"bpmn:Participant"))&&(t.balanced=!Io(e))})),e.on("resize.end",1001,(function(e){var n=e.context,i=n.shape,r=n.canExecute,o=n.newBounds;if(kr(i,"bpmn:Lane")||kr(i,"bpmn:Participant"))return r&&(o=bn(o),t.resizeLane(i,o,n.balanced)),!1}))}Cd.$inject=["eventBus","modeling"];function Pd(e,t,n,i,r){function o(e){return Dr(e,["bpmn:ReceiveTask","bpmn:SendTask"])||function(e,t){d(t)||(t=[t]);return M(t,(function(t){return Qr(e,t)}))}(e,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function a(t){return!!_(e.getDefinitions().get("rootElements"),j({id:t.id}))}function s(e){return kr(e,"bpmn:ErrorEventDefinition")?"errorRef":kr(e,"bpmn:EscalationEventDefinition")?"escalationRef":kr(e,"bpmn:MessageEventDefinition")?"messageRef":kr(e,"bpmn:SignalEventDefinition")?"signalRef":void 0}function c(e){if(Dr(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.get("messageRef");var t=e.get("eventDefinitions")[0];return t.get(s(t))}n.invoke(la,this),this.executed("shape.create",(function(t){var n=t.shape;if(o(n)){var i=c(Tr(n));i&&!a(i)&&(Dt(e.getDefinitions().get("rootElements"),i),t.addedRootElement=i)}}),!0),this.reverted("shape.create",(function(t){var n=t.addedRootElement;n&&kt(e.getDefinitions().get("rootElements"),n)}),!0),t.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element;if(o(n)){var i=c(Tr(n));i&&(t.referencedRootElement=i)}})),t.on("copyPaste.pasteElement",500,(function(e){var t=e.descriptor,n=t.businessObject;if(o(n)){var c=t.referencedRootElement;c&&(a(c)||(c=i.copyElement(c,r.create(c.$type))),function(e,t){if(Dr(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.set("messageRef",t);var n=e.get("eventDefinitions")[0];n.set(s(n),t)}(n,c))}}))}Pd.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],r(Pd,la);var Md=Math.max;function Rd(e){e.on("spaceTool.getMinDimensions",(function(e){var t=e.shapes,n=e.axis,i=e.start,r={};return E(t,(function(e){var t=e.id;kr(e,"bpmn:Participant")&&(!function(e){return"x"===e}(n)?r[t]={width:fd.width,height:Ad(e,i)}:r[t]=fd),kr(e,"bpmn:SubProcess")&&Yr(e)&&(r[t]=vd),kr(e,"bpmn:TextAnnotation")&&(r[t]=gd)})),r}))}function Ad(e,t){var n;return Lp(e).length?(n=function(e,t){var n,i=Lp(e);return n=kd(i,t),e.height-n.height+md}(e,t),Md(fd.height,n)):fd.height}function kd(e,t){var n,i,r;for(n=0;n<e.length;n++)if(t>=(i=e[n]).y&&t<=i.y+i.height)return(r=Lp(i)).length?kd(r,t):i}Rd.$inject=["eventBus"];var Dd=180,Td=160;function zd(e,t,n,i,r,o,a){la.call(this,t),this._canvas=e,this._eventBus=t,this._modeling=n,this._elementFactory=i,this._bpmnFactory=r,this._bpmnjs=o,this._elementRegistry=a;var s=this;function c(e){return kr(e,"bpmn:SubProcess")&&!Yr(e)}function l(t){var n=t.shape,i=t.newRootElement,r=Tr(n);i=s._addDiagram(i||r),t.newRootElement=e.addRootElement(i)}function p(t){var n=Tr(t.shape);s._removeDiagram(n);var i=t.newRootElement=a.get(ga(n));e.removeRootElement(i)}this.executed("shape.create",(function(e){c(e.shape)&&l(e)}),!0),this.postExecuted("shape.create",(function(e){var t=e.shape,n=e.newRootElement;n&&t.children&&(s._showRecursively(t.children),s._moveChildrenToShape(t,n))}),!0),this.reverted("shape.create",(function(e){c(e.shape)&&p(e)}),!0),this.preExecuted("shape.delete",(function(e){var t=e.shape;if(c(t)){var i=a.get(ga(t));i&&n.removeElements(i.children.slice())}}),!0),this.executed("shape.delete",(function(e){c(e.shape)&&p(e)}),!0),this.reverted("shape.delete",(function(e){c(e.shape)&&l(e)}),!0),this.preExecuted("shape.replace",(function(t){var n=t.oldShape,i=t.newShape;c(n)&&c(i)&&(t.oldRoot=e.removeRootElement(ga(n)))}),!0),this.postExecuted("shape.replace",(function(t){var i=t.newShape,r=t.oldRoot,o=e.findRoot(ga(i));if(r&&o){var a=r.children;n.moveElements(a,{x:0,y:0},o)}}),!0),this.executed("element.updateProperties",(function(e){var t=e.element;if(kr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(ba(t))return a.updateId(t,ya(r)),void a.updateId(i,r);a.get(ya(i))&&a.updateId(ya(i),ya(r))}}}),!0),this.reverted("element.updateProperties",(function(e){var t=e.element;if(kr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(ba(t))return a.updateId(t,ya(i)),void a.updateId(r,i);var o=a.get(ya(r));o&&a.updateId(o,ya(i))}}}),!0),t.on("element.changed",(function(e){var n=e.element;if(ba(n)){var i=n,r=a.get(va(i));r&&r!==i&&t.fire("element.changed",{element:r})}})),this.executed("shape.toggleCollapse",400,(function(e){var t=e.shape;kr(t,"bpmn:SubProcess")&&(Yr(t)?p(e):(l(e),s._showRecursively(t.children)))}),!0),this.reverted("shape.toggleCollapse",400,(function(e){var t=e.shape;kr(t,"bpmn:SubProcess")&&(Yr(t)?p(e):(l(e),s._showRecursively(t.children)))}),!0),this.postExecuted("shape.toggleCollapse",600,(function(e){var t=e.shape;if(kr(t,"bpmn:SubProcess")){var n=e.newRootElement;n&&(Yr(t)?s._moveChildrenToShape(n,t):s._moveChildrenToShape(t,n))}}),!0),t.on("copyPaste.createTree",(function(e){var t=e.element,n=e.children;if(c(t)){var i=ga(t),r=a.get(i);r&&n.push.apply(n,r.children)}})),t.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element,i=e.elements,r=n.parent;if(kr(zr(r),"bpmndi:BPMNPlane")){var o=va(r),a=_(i,(function(e){return e.id===o}));a&&(t.parent=a.id)}})),t.on("copyPaste.pasteElement",(function(e){var t=e.descriptor;t.parent&&(c(t.parent)||t.parent.hidden)&&(t.hidden=!0)}))}function Od(e,t){e.invoke(la,this),this.postExecuted("shape.replace",(function(e){var n=e.context.oldShape,i=e.context.newShape;if(kr(i,"bpmn:SubProcess")&&(kr(n,"bpmn:Task")||kr(n,"bpmn:CallActivity"))&&Yr(i)){var r,o={x:(r=i).x+r.width/6,y:r.y+r.height/2};t.createShape({type:"bpmn:StartEvent"},o,i)}}))}function Bd(e,t){la.call(this,e),this.postExecuted("shape.toggleCollapse",1500,(function(e){var n=e.shape;if(!Yr(n)){var i=Et(n);i.forEach((function(e){var t=e.incoming.slice(),n=e.outgoing.slice();E(t,(function(e){r(e,!0)})),E(n,(function(e){r(e,!1)}))}))}function r(e,r){-1!==i.indexOf(e.source)&&-1!==i.indexOf(e.target)||(r?t.reconnectEnd(e,n,Sn(n)):t.reconnectStart(e,n,Sn(n)))}}),!0)}r(zd,la),zd.prototype._moveChildrenToShape=function(e,t){var n,i=this._modeling,r=e.children;if(r){var o=r.filter((function(e){return!e.hidden}));if(o.length){var a=St(o);if(t.x){var s=Sn(t),c=Sn(a);n={x:s.x-c.x,y:s.y-c.y}}else n={x:Dd-a.x,y:Td-a.y};i.moveElements(r,n,t,{autoResize:!1})}else i.moveElements(r,{x:0,y:0},t,{autoResize:!1})}},zd.prototype._showRecursively=function(e,t){var n=this,i=[];return e.forEach((function(e){e.hidden=!!t,i=i.concat(e),e.children&&(i=i.concat(n._showRecursively(e.children,e.collapsed||t)))})),i},zd.prototype._addDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams;return e.businessObject||(e=this._createNewDiagram(e)),t.push(e.di.$parent),e},zd.prototype._createNewDiagram=function(e){var t=this._bpmnFactory,n=this._elementFactory,i=t.create("bpmndi:BPMNPlane",{bpmnElement:e}),r=t.create("bpmndi:BPMNDiagram",{plane:i});return i.$parent=r,n.createRoot({id:ga(e),type:e.$type,di:i,businessObject:e,collapsed:!0})},zd.prototype._removeDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams,n=_(t,(function(t){return t.plane.bpmnElement.id===e.id}));return t.splice(t.indexOf(n),1),n},zd.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"],Od.$inject=["injector","modeling"],r(Od,la),r(Bd,la),Bd.$inject=["eventBus","modeling"];function jd(e,t,n,i){la.call(this,e),this.executed(["shape.toggleCollapse"],500,(function(e){var t,n=e.context.shape;kr(n,"bpmn:SubProcess")&&(n.collapsed?zr(n).isExpanded=!1:((t=n.children).length&&t.forEach((function(e){"label"!==e.type||e.businessObject.name||(e.hidden=!0)})),zr(n).isExpanded=!0))})),this.reverted(["shape.toggleCollapse"],500,(function(e){var t=e.context.shape;t.collapsed?zr(t).isExpanded=!1:zr(t).isExpanded=!0})),this.postExecuted(["shape.toggleCollapse"],500,(function(e){var i,r=e.context.shape,o=t.getDefaultSize(r);i=r.collapsed?function(e,t){return{x:e.x+(e.width-t.width)/2,y:e.y+(e.height-t.height)/2,width:t.width,height:t.height}}(r,o):function(e,t){var n,i,r=e.children,o=t;return(n=zp((i=r,i.filter((function(e){return!e.hidden}))).concat([e])))?(o.width=Math.max(n.width,o.width),o.height=Math.max(n.height,o.height),o.x=n.x+(n.width-o.width)/2,o.y=n.y+(n.height-o.height)/2):(o.x=e.x+(e.width-o.width)/2,o.y=e.y+(e.height-o.height)/2),o}(r,o),n.resizeShape(r,i,null,{autoResize:!r.collapsed&&"nwse"})}))}function Nd(e,t,n,i){t.invoke(la,this),this.preExecute("shape.delete",(function(e){var t=e.context.shape,r=t.businessObject;Mo(t)||(kr(t,"bpmn:Participant")&&Yr(t)&&n.ids.unclaim(r.processRef.id),i.unclaimId(r.id,r))})),this.preExecute("connection.delete",(function(e){var t=e.context.connection.businessObject;i.unclaimId(t.id,t)})),this.preExecute("canvas.updateRoot",(function(){var t=e.getRootElement(),i=t.businessObject;kr(t,"bpmn:Collaboration")&&n.ids.unclaim(i.id)}))}function Ld(e,t){la.call(this,e),this.preExecute("connection.delete",(function(e){var n=e.context.connection,i=n.source;(function(e,t){if(!kr(e,"bpmn:SequenceFlow"))return!1;var n=Tr(t),i=Tr(e);return n.get("default")===i})(n,i)&&t.updateProperties(i,{default:null})}))}r(jd,la),jd.$inject=["eventBus","elementFactory","modeling"],r(Nd,la),Nd.$inject=["canvas","injector","moddle","modeling"],r(Ld,la),Ld.$inject=["eventBus","modeling"];function Id(e,t,n){var i;function r(){if(!i)throw new Error(n("out of bounds release"));return i}la.call(this,e);var o=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(o,5e3,(function(e){(i=i||new Fd).enter()})),this.postExecuted(o,500,(function(e){!function(){if(!i)throw new Error(n("out of bounds release"));var e=i.leave();e&&(t.updateLaneRefs(i.flowNodes,i.lanes),i=null)}()})),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],(function(e){var t=e.context.shape,n=r();t.labelTarget||(kr(t,"bpmn:Lane")&&n.addLane(t),kr(t,"bpmn:FlowNode")&&n.addFlowNode(t))}))}function Fd(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(e){this.lanes.push(e)},this.addFlowNode=function(e){this.flowNodes.push(e)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}Id.$inject=["eventBus","modeling","translate"],r(Id,la);var Vd={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","createBehavior","createDataObjectBehavior","createParticipantBehavior","dataInputAssociationBehavior","dataStoreBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","fixHoverBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","layoutConnectionBehavior","messageFlowBehavior","modelingFeedback","removeElementBehavior","removeEmbeddedLabelBoundsBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","rootElementReferenceBehavior","spaceToolBehavior","subProcessPlaneBehavior","subProcessStartEventBehavior","toggleCollapseConnectionBehaviour","toggleElementCollapseBehaviour","unclaimIdBehavior","updateFlowNodeRefsBehavior","unsetDefaultFlowBehavior"],adaptiveLabelPositioningBehavior:["type",Zu],appendBehavior:["type",Ju],associationBehavior:["type",eh],attachEventBehavior:["type",th],boundaryEventBehavior:["type",ih],createBehavior:["type",rh],createDataObjectBehavior:["type",oh],createParticipantBehavior:["type",lh],dataInputAssociationBehavior:["type",uh],dataStoreBehavior:["type",mh],deleteLaneBehavior:["type",fh],detachEventBehavior:["type",vh],dropOnFlowBehavior:["type",yh],eventBasedGatewayBehavior:["type",xh],fixHoverBehavior:["type",Sh],groupBehavior:["type",Ch],importDockingFix:["type",Mh],isHorizontalFix:["type",Ah],labelBehavior:["type",Kh],layoutConnectionBehavior:["type",Xh],messageFlowBehavior:["type",od],modelingFeedback:["type",ad],removeElementBehavior:["type",cd],removeEmbeddedLabelBoundsBehavior:["type",sd],removeParticipantBehavior:["type",pd],replaceConnectionBehavior:["type",ud],replaceElementBehaviour:["type",hd],resizeBehavior:["type",yd],resizeLaneBehavior:["type",Cd],rootElementReferenceBehavior:["type",Pd],spaceToolBehavior:["type",Rd],subProcessPlaneBehavior:["type",zd],subProcessStartEventBehavior:["type",Od],toggleCollapseConnectionBehaviour:["type",Bd],toggleElementCollapseBehaviour:["type",jd],unclaimIdBehavior:["type",Nd],unsetDefaultFlowBehavior:["type",Ld],updateFlowNodeRefsBehavior:["type",Id]};function Hd(e,t){var n=Cn(e,t,-15);return"intersect"!==n?n:null}function $d(e){Os.call(this,e)}function Gd(e){return!e||Mo(e)}function Wd(e){do{if(kr(e,"bpmn:Process"))return Tr(e);if(kr(e,"bpmn:Participant"))return Tr(e).processRef||Tr(e)}while(e=e.parent)}function Ud(e){return kr(e,"bpmn:TextAnnotation")}function qd(e){return kr(e,"bpmn:Group")&&!e.labelTarget}function Kd(e){return kr(e,"bpmn:BoundaryEvent")&&Zd(e,"bpmn:CompensateEventDefinition")}function Yd(e){return Tr(e).isForCompensation}function Xd(e){for(var t=e;t=t.parent;){if(kr(t,"bpmn:FlowElementsContainer"))return Tr(t);if(kr(t,"bpmn:Participant"))return Tr(t).processRef}return null}function Zd(e,t){return!!_(Tr(e).eventDefinitions||[],(function(e){return kr(e,t)}))}function Qd(e,t){return(Tr(e).eventDefinitions||[]).every((function(e){return kr(e,t)}))}function Jd(e){return kr(e,"bpmn:ReceiveTask")||kr(e,"bpmn:IntermediateCatchEvent")&&(Zd(e,"bpmn:MessageEventDefinition")||Zd(e,"bpmn:TimerEventDefinition")||Zd(e,"bpmn:ConditionalEventDefinition")||Zd(e,"bpmn:SignalEventDefinition"))}function em(e){return e.waypoints}function tm(e,t){return-1!==function(e){for(var t=[];e;)(e=e.parent)&&t.push(e);return t}(t).indexOf(e)}function nm(e,t,n){if(Gd(e)||Gd(t))return null;if(!kr(n,"bpmn:DataAssociation")){if(fm(e,t))return{type:"bpmn:MessageFlow"};if(vm(e,t))return{type:"bpmn:SequenceFlow"}}var i=gm(e,t);return i||(Kd(e)&&Yd(t)?{type:"bpmn:Association",associationDirection:"One"}:!!mm(e,t)&&{type:"bpmn:Association"})}function im(e,t,n){return!(!Mo(e)&&!qd(e))||!(kr(t,"bpmn:Participant")&&!Yr(t))&&(kr(e,"bpmn:Participant")?kr(t,"bpmn:Process")||kr(t,"bpmn:Collaboration"):Dr(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?t===e.parent:kr(e,"bpmn:Lane")?kr(t,"bpmn:Participant")||kr(t,"bpmn:Lane"):!(kr(e,"bpmn:BoundaryEvent")&&(i=e,!Tr(i).cancelActivity||!am(i)&&!sm(i)))&&(kr(e,"bpmn:FlowElement")&&!kr(e,"bpmn:DataStoreReference")?kr(t,"bpmn:FlowElementsContainer")?Yr(t):Dr(t,["bpmn:Participant","bpmn:Lane"]):kr(e,"bpmn:DataStoreReference")&&kr(t,"bpmn:Collaboration")?M(Tr(t).get("participants"),(function(e){return!!e.get("processRef")})):Dr(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?Dr(t,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):!!kr(e,"bpmn:MessageFlow")&&(kr(t,"bpmn:Collaboration")||e.source.parent==t||e.target.parent==t)));var i}function rm(e){return kr(e,"bpmn:Lane")}function om(e){return!!function(e){return!Mo(e)&&kr(e,"bpmn:BoundaryEvent")}(e)||(!(!kr(e,"bpmn:IntermediateThrowEvent")||!am(e))||kr(e,"bpmn:IntermediateCatchEvent")&&sm(e))}function am(e){var t=Tr(e);return t&&!(t.eventDefinitions&&t.eventDefinitions.length)}function sm(e){return cm(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function cm(e,t){return t.some((function(t){return Zd(e,t)}))}function lm(e,t,n,i){if(Array.isArray(e)||(e=[e]),1!==e.length)return!1;var r=e[0];return!Mo(r)&&(!!om(r)&&(!Zr(t)&&(!(!kr(t,"bpmn:Activity")||Yd(t))&&(!(i&&!Hd(i,t))&&(!function(e){return kr(e,"bpmn:ReceiveTask")&&_(e.incoming,(function(e){return kr(e.source,"bpmn:EventBasedGateway")}))}(t)&&"attach")))))}function pm(e,t,n){if(!t)return!1;var i={replacements:[]};return E(e,(function(e){Zr(t)||kr(e,"bpmn:StartEvent")&&"label"!==e.type&&im(e,t)&&(Xr(e)||i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),(function(e){return Qr(e,"bpmn:ErrorEventDefinition")}(e)||function(e){return Qr(e,"bpmn:EscalationEventDefinition")}(e)||function(e){return Qr(e,"bpmn:CompensateEventDefinition")}(e))&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),cm(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&kr(t,"bpmn:SubProcess")&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"})),kr(t,"bpmn:Transaction")||Zd(e,"bpmn:CancelEventDefinition")&&"label"!==e.type&&(kr(e,"bpmn:EndEvent")&&im(e,t)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:EndEvent"}),kr(e,"bpmn:BoundaryEvent")&&lm(e,t,0,n)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:BoundaryEvent"}))})),!!i.replacements.length&&i}function um(e,t){return!M(e,rm)&&(!t||e.every((function(e){return im(e,t)})))}function hm(e,t,n,i){return!!t&&(!(!Mo(e)&&!qd(e))||!function(e,t){return e===t}(n,t)&&((!n||!tm(n,t))&&(im(e,t)||ym(e,t))))}function dm(e,t){return kr(e,"bpmn:SubProcess")?Yr(e)&&(!t||t.width>=100&&t.height>=80):kr(e,"bpmn:Lane")?!t||t.width>=130&&t.height>=60:kr(e,"bpmn:Participant")?!t||t.width>=250&&t.height>=50:!!Ud(e)||!!qd(e)}function mm(e,t){return!(!Kd(e)||!Yd(t))||!tm(t,e)&&!tm(e,t)&&(!!function(e,t){var n=Ud(e),i=Ud(t);return(n||i)&&n!==i}(e,t)||!!gm(e,t))}function fm(e,t){return!(xm(e)&&!xm(t))&&(kr(n=e,"bpmn:InteractionNode")&&!kr(n,"bpmn:BoundaryEvent")&&(!kr(n,"bpmn:Event")||kr(n,"bpmn:ThrowEvent")&&Qd(n,"bpmn:MessageEventDefinition"))&&function(e){return kr(e,"bpmn:InteractionNode")&&!Yd(e)&&(!kr(e,"bpmn:Event")||kr(e,"bpmn:CatchEvent")&&Qd(e,"bpmn:MessageEventDefinition"))&&!(kr(e,"bpmn:BoundaryEvent")&&!Zd(e,"bpmn:MessageEventDefinition"))}(t)&&!function(e,t){return Wd(e)===Wd(t)}(e,t));var n}function vm(e,t){return!(Jd(t)&&t.incoming.length>0&&(n=t.incoming,(n=n||[]).some(_m))&&!kr(e,"bpmn:EventBasedGateway"))&&(kr(i=e,"bpmn:FlowNode")&&!kr(i,"bpmn:EndEvent")&&!Zr(i)&&!(kr(i,"bpmn:IntermediateThrowEvent")&&Zd(i,"bpmn:LinkEventDefinition"))&&!Kd(i)&&!Yd(i)&&function(e){return kr(e,"bpmn:FlowNode")&&!kr(e,"bpmn:StartEvent")&&!kr(e,"bpmn:BoundaryEvent")&&!Zr(e)&&!(kr(e,"bpmn:IntermediateCatchEvent")&&Zd(e,"bpmn:LinkEventDefinition"))&&!Yd(e)}(t)&&function(e,t){return Xd(e)===Xd(t)}(e,t)&&!(kr(e,"bpmn:EventBasedGateway")&&!Jd(t)));var n,i}function gm(e,t){return Dr(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Dr(t,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:!(!Dr(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])||!Dr(e,["bpmn:Activity","bpmn:CatchEvent"]))&&{type:"bpmn:DataOutputAssociation"}}function ym(e,t,n){if(!t)return!1;if(Array.isArray(e)){if(1!==e.length)return!1;e=e[0]}return t.source!==e&&t.target!==e&&(Dr(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!Mo(t)&&kr(e,"bpmn:FlowNode")&&!kr(e,"bpmn:BoundaryEvent")&&im(e,t.parent))}function bm(e,t){return!!Mo(t)||!(kr(t,"bpmn:Lane")&&!function(e,t){return e&&t&&-1!==e.indexOf(t)}(e,t.parent))}function _m(e){if(e&&e.source)return kr(e.source,"bpmn:EventBasedGateway")}function xm(e){return Ws(e,"bpmn:Process")||Ws(e,"bpmn:Collaboration")}r($d,Os),$d.$inject=["eventBus"],$d.prototype.init=function(){this.addRule("connection.start",(function(e){return function(e){if(Gd(e))return null;return Dr(e,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}(e.source)})),this.addRule("connection.create",(function(e){var t=e.source,n=e.target,i=e.hints||{},r=i.targetParent;if(i.targetAttach)return!1;r&&(n.parent=r);try{return nm(t,n)}finally{r&&(n.parent=null)}})),this.addRule("connection.reconnect",(function(e){var t=e.connection;return nm(e.source,e.target,t)})),this.addRule("connection.updateWaypoints",(function(e){return{type:e.connection.type}})),this.addRule("shape.resize",(function(e){return dm(e.shape,e.newBounds)})),this.addRule("elements.create",(function(e){var t=e.elements,n=e.position,i=e.target;return!(em(i)&&!ym(t,i))&&P(t,(function(e){return em(e)?nm(e.source,e.target,e):e.host?lm(e,e.host,null,n):hm(e,i,null)}))})),this.addRule("elements.move",(function(e){var t=e.target,n=e.shapes,i=e.position;return lm(n,t,null,i)||pm(n,t,i)||um(n,t)||ym(n,t)})),this.addRule("shape.create",(function(e){return hm(e.shape,e.target,e.source,e.position)})),this.addRule("shape.attach",(function(e){return lm(e.shape,e.target,null,e.position)})),this.addRule("element.copy",(function(e){var t=e.element;return bm(e.elements,t)}))},$d.prototype.canConnectMessageFlow=fm,$d.prototype.canConnectSequenceFlow=vm,$d.prototype.canConnectDataAssociation=gm,$d.prototype.canConnectAssociation=mm,$d.prototype.canMove=um,$d.prototype.canAttach=lm,$d.prototype.canReplace=pm,$d.prototype.canDrop=im,$d.prototype.canInsert=ym,$d.prototype.canCreate=hm,$d.prototype.canConnect=nm,$d.prototype.canResize=dm,$d.prototype.canCopy=bm;var wm={__depends__:[hc],__init__:["bpmnRules"],bpmnRules:["type",$d]};function Em(e,t){e.on("saveXML.start",2e3,(function(){E(t.getRootElements(),(function(e){var t,n=zr(e);t=R(w(Et([e],!1),(function(t){return t!==e&&!t.labelTarget})),zr),n.set("planeElement",t)}))}))}Em.$inject=["eventBus","canvas"];var Sm={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",Em]};function Cm(e){la.call(this,e);var t=this;this.preExecute(["shape.create","connection.create"],(function(e){var n=e.context,i=n.shape||n.connection,r=n.parent,o=t.getOrdering(i,r);o&&(void 0!==o.parent&&(n.parent=o.parent),n.parentIndex=o.index)})),this.preExecute(["shape.move","connection.move"],(function(e){var n=e.context,i=n.shape||n.connection,r=n.newParent||i.parent,o=t.getOrdering(i,r);o&&(void 0!==o.parent&&(n.newParent=o.parent),n.newParentIndex=o.index)}))}function Pm(e,t,n){Cm.call(this,e);var i=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:3,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function r(e){var t=e.order;if(t||(e.order=t=function(e){if(e.labelTarget)return{level:10};var t=_(i,(function(t){return Dr(e,[t.type])}));return t&&t.order||{level:1}}(e)),!t)throw new Error("no order for <"+e.id+">");return t}this.getOrdering=function(e,n){if(e.labelTarget)return{parent:t.findRoot(n)||t.getRootElement(),index:-1};var i=r(e);i.containers&&(n=function(e,t,n){for(var i=t;i&&!Dr(i,n);)i=i.parent;if(!i)throw new Error("no parent for <"+e.id+"> in <"+(t&&t.id)+">");return i}(e,n,i.containers));var o=n.children.indexOf(e),a=x(n.children,(function(t){return!(!e.labelTarget&&t.labelTarget)&&i.level<r(t).level}));return-1!==a&&-1!==o&&o<a&&(a-=1),{index:a,parent:n}}}Cm.prototype.getOrdering=function(e,t){return null},r(Cm,la),Pm.$inject=["eventBus","canvas","translate"],r(Pm,Cm);var Mm={__depends__:[xo],__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",Pm]};function Rm(e,t){this._handlerMap={},this._stack=[],this._stackIdx=-1,this._currentExecution={actions:[],dirty:[],trigger:null},this._injector=t,this._eventBus=e,this._uid=1,e.on(["diagram.destroy","diagram.clear"],(function(){this.clear(!1)}),this)}Rm.$inject=["eventBus","injector"],Rm.prototype.execute=function(e,t){if(!e)throw new Error("command required");this._currentExecution.trigger="execute";var n={command:e,context:t};this._pushAction(n),this._internalExecute(n),this._popAction(n)},Rm.prototype.canExecute=function(e,t){var n={command:e,context:t},i=this._getHandler(e),r=this._fire(e,"canExecute",n);if(void 0===r){if(!i)return!1;i.canExecute&&(r=i.canExecute(t))}return r},Rm.prototype.clear=function(e){this._stack.length=0,this._stackIdx=-1,!1!==e&&this._fire("changed",{trigger:"clear"})},Rm.prototype.undo=function(){var e,t=this._getUndoAction();if(t){for(this._currentExecution.trigger="undo",this._pushAction(t);t&&(this._internalUndo(t),(e=this._getUndoAction())&&e.id===t.id);)t=e;this._popAction()}},Rm.prototype.redo=function(){var e,t=this._getRedoAction();if(t){for(this._currentExecution.trigger="redo",this._pushAction(t);t&&(this._internalExecute(t,!0),(e=this._getRedoAction())&&e.id===t.id);)t=e;this._popAction()}},Rm.prototype.register=function(e,t){this._setHandler(e,t)},Rm.prototype.registerHandler=function(e,t){if(!e||!t)throw new Error("command and handlerCls must be defined");var n=this._injector.instantiate(t);this.register(e,n)},Rm.prototype.canUndo=function(){return!!this._getUndoAction()},Rm.prototype.canRedo=function(){return!!this._getRedoAction()},Rm.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]},Rm.prototype._getUndoAction=function(){return this._stack[this._stackIdx]},Rm.prototype._internalUndo=function(e){var t=this,n=e.command,i=e.context,r=this._getHandler(n);this._atomicDo((function(){t._fire(n,"revert",e),r.revert&&t._markDirty(r.revert(i)),t._revertedAction(e),t._fire(n,"reverted",e)}))},Rm.prototype._fire=function(e,t,n){arguments.length<3&&(n=t,t=null);var i,r,o,a=t?[e+"."+t,t]:[e];for(n=this._eventBus.createEvent(n),i=0;(r=a[i])&&(o=this._eventBus.fire("commandStack."+r,n),!n.cancelBubble);i++);return o},Rm.prototype._createId=function(){return this._uid++},Rm.prototype._atomicDo=function(e){var t=this._currentExecution;t.atomic=!0;try{e()}finally{t.atomic=!1}},Rm.prototype._internalExecute=function(e,t){var n=this,i=e.command,r=e.context,o=this._getHandler(i);if(!o)throw new Error("no command handler registered for <"+i+">");this._pushAction(e),t||(this._fire(i,"preExecute",e),o.preExecute&&o.preExecute(r),this._fire(i,"preExecuted",e)),this._atomicDo((function(){n._fire(i,"execute",e),o.execute&&n._markDirty(o.execute(r)),n._executedAction(e,t),n._fire(i,"executed",e)})),t||(this._fire(i,"postExecute",e),o.postExecute&&o.postExecute(r),this._fire(i,"postExecuted",e)),this._popAction(e)},Rm.prototype._pushAction=function(e){var t=this._currentExecution,n=t.actions,i=n[0];if(t.atomic)throw new Error("illegal invocation in <execute> or <revert> phase (action: "+e.command+")");e.id||(e.id=i&&i.id||this._createId()),n.push(e)},Rm.prototype._popAction=function(){var e=this._currentExecution,t=e.trigger,n=e.actions,i=e.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:z("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:t}),e.trigger=null)},Rm.prototype._markDirty=function(e){var t=this._currentExecution;e&&(e=d(e)?e:[e],t.dirty=t.dirty.concat(e))},Rm.prototype._executedAction=function(e,t){var n=++this._stackIdx;t||this._stack.splice(n,this._stack.length,e)},Rm.prototype._revertedAction=function(e){this._stackIdx--},Rm.prototype._getHandler=function(e){return this._handlerMap[e]},Rm.prototype._setHandler=function(e,t){if(!e||!t)throw new Error("command and handler required");if(this._handlerMap[e])throw new Error("overriding handler for command <"+e+">");this._handlerMap[e]=t};var Am={commandStack:["type",Rm]},km=new ea("tt");function Dm(e,t){e.style.display=!1===t?"none":""}var Tm=".djs-tooltip";function zm(e,t){var n,i;this._eventBus=e,this._canvas=t,this._ids=km,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=(n=t.getContainer(),ie(i=Ee('<div class="djs-tooltip-container" />'),{position:"absolute",width:"0",height:"0"}),n.insertBefore(i,n.firstChild),i);var r=this;we.bind(this._tooltipRoot,Tm,"mousedown",(function(e){e.stopPropagation()})),we.bind(this._tooltipRoot,Tm,"mouseover",(function(e){r.trigger("mouseover",e)})),we.bind(this._tooltipRoot,Tm,"mouseout",(function(e){r.trigger("mouseout",e)})),this._init()}zm.$inject=["eventBus","canvas"],zm.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=W({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},zm.prototype.trigger=function(e,t){var n=t.delegateTarget||t.target,i=this.get(re(n,"data-tooltip-id"));i&&("mouseover"===e&&i.timeout&&this.clearTimeout(i),"mouseout"===e&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))},zm.prototype.get=function(e){return"string"!=typeof e&&(e=e.id),this._tooltips[e]},zm.prototype.clearTimeout=function(e){if(e=this.get(e)){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},zm.prototype.setTimeout=function(e){if(e=this.get(e)){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout((function(){t.remove(e)}),e.timeout)}},zm.prototype.remove=function(e){var t=this.get(e);t&&(Re(t.html),Re(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},zm.prototype.show=function(){Dm(this._tooltipRoot)},zm.prototype.hide=function(){Dm(this._tooltipRoot,!1)},zm.prototype._updateRoot=function(e){var t=e.scale||1,n=e.scale||1,i="matrix("+t+",0,0,"+n+","+-1*e.x*t+","+-1*e.y*n+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i},zm.prototype._addTooltip=function(e){var t,n=e.id,i=e.html,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),g(i)&&(i=Ee(i)),ie(t=Ee('<div data-tooltip-id="'+n+'" class="'+'djs-tooltip">'),{position:"absolute"}),t.appendChild(i),e.type&&le(t).add("djs-tooltip-"+e.type),e.className&&le(t).add(e.className),e.htmlContainer=t,r.appendChild(t),this._tooltips[n]=e,this._updateTooltip(e)},zm.prototype._updateTooltip=function(e){var t=e.position;!function(e,t,n){ie(e,{left:t+"px",top:n+"px"})}(e.htmlContainer,t.x,t.y)},zm.prototype._updateTooltipVisibilty=function(e){E(this._tooltips,(function(t){var n=t.show,i=t.htmlContainer,r=!0;n&&((n.minZoom>e.scale||n.maxZoom<e.scale)&&(r=!1),Dm(i,r))}))},zm.prototype._init=function(){var e=this;this._eventBus.on("canvas.viewbox.changing",(function(t){e.hide()})),this._eventBus.on("canvas.viewbox.changed",(function(t){var n;n=t.viewbox,e._updateRoot(n),e._updateTooltipVisibilty(n),e.show()}))};var Om={__init__:["tooltips"],tooltips:["type",zm]};function Bm(e,t){if("function"!=typeof t)throw new Error("removeFn iterator must be a function");if(e){for(var n;n=e[0];)t(n);return e}}function jm(e,t,n){la.call(this,t);var i=e.get("movePreview",!1);t.on("shape.move.start",1400,(function(e){var t=e.context,n=t.shapes,i=t.validatedShapes;t.shapes=Nm(n),t.validatedShapes=Nm(i)})),i&&t.on("shape.move.start",250,(function(e){var t=e.context,n=t.shapes,r=[];E(n,(function(e){E(e.labels,(function(n){n.hidden||-1!==t.shapes.indexOf(n)||r.push(n),e.labelTarget&&r.push(e)}))})),E(r,(function(e){i.makeDraggable(t,e,!0)}))})),this.preExecuted("elements.move",1400,(function(e){var t=e.context.closure,n=t.enclosedElements,i=[];E(n,(function(e){E(e.labels,(function(e){n[e.id]||i.push(e)}))})),t.addAll(i)})),this.preExecute(["connection.delete","shape.delete"],(function(e){var t=e.context;Bm((t.connection||t.shape).labels,(function(e){n.removeShape(e,{nested:!0})}))})),this.execute("shape.delete",(function(e){var t=e.context,n=t.shape,i=n.labelTarget;i&&(t.labelTargetIndex=Tt(i.labels,n),t.labelTarget=i,n.labelTarget=null)})),this.revert("shape.delete",(function(e){var t=e.context,n=t.shape,i=t.labelTarget,r=t.labelTargetIndex;i&&(Dt(i.labels,n,r),n.labelTarget=i)}))}function Nm(e){return w(e,(function(t){return-1===e.indexOf(t.labelTarget)}))}r(jm,la),jm.$inject=["injector","eventBus","modeling"];var Lm={__init__:["labelSupport"],labelSupport:["type",jm]},Im="attach-ok";function Fm(e,t,n,i,r){la.call(this,t);var o=e.get("movePreview",!1);t.on("shape.move.start",1401,(function(e){var t,n,i=e.context,r=i.shapes,o=i.validatedShapes;i.shapes=(n=Vm(t=r),O("id",t,n)),i.validatedShapes=function(e){var t=T(e,"id");return w(e,(function(e){for(;e;){if(e.host&&t[e.host.id])return!1;e=e.parent}return!0}))}(o)})),o&&t.on("shape.move.start",251,(function(e){var t=e.context;E(Vm(t.shapes),(function(e){o.makeDraggable(t,e,!0),E(e.labels,(function(e){o.makeDraggable(t,e,!0)}))}))})),o&&t.on("shape.move.start",(function(e){var i=e.context.shapes;if(1===i.length){var r=i[0].host;r&&(n.addMarker(r,Im),t.once(["shape.move.out","shape.move.cleanup"],(function(){n.removeMarker(r,Im)})))}})),this.preExecuted("elements.move",1401,(function(e){var t=e.context,n=t.closure;E(Vm(t.shapes),(function(e){n.add(e,n.topLevel[e.host.id])}))})),this.postExecuted("elements.move",(function(e){var t=e.context,n=t.shapes,i=t.newHost;i&&1!==n.length||E(i?n:w(n,(function(e){var t,i=e.host;return function(e){return!!e.host}(e)&&(t=i,!(-1!==n.indexOf(t)))})),(function(e){r.updateAttachment(e,i)}))})),this.postExecuted("elements.move",(function(e){E(e.context.shapes,(function(e){E(e.attachers,(function(e){E(e.outgoing.slice(),(function(e){i.allowed("connection.reconnect",{connection:e,source:e.source,target:e.target})||r.removeConnection(e)})),E(e.incoming.slice(),(function(e){i.allowed("connection.reconnect",{connection:e,source:e.source,target:e.target})||r.removeConnection(e)}))}))}))})),this.postExecute("shape.create",(function(e){var t=e.context,n=t.shape,i=t.host;i&&r.updateAttachment(n,i)})),this.postExecute("shape.replace",(function(e){var t=e.context,n=t.oldShape,o=t.newShape;Bm(n.attachers,(function(e){"attach"===i.allowed("elements.move",{target:o,shapes:[e]})?r.updateAttachment(e,o):r.removeShape(e)})),o.attachers.length&&E(o.attachers,(function(e){var t=Gh(e,n,o);r.moveShape(e,t,e.parent)}))})),this.postExecute("shape.resize",(function(e){var t=e.context,n=t.shape,i=t.oldBounds,o=t.newBounds,a=n.attachers;!1!==(t.hints||{}).attachSupport&&E(a,(function(e){var t=Gh(e,i,o);r.moveShape(e,t,e.parent),E(e.labels,(function(e){r.moveShape(e,t,e.parent)}))}))})),this.preExecute("shape.delete",(function(e){var t=e.context.shape;Bm(t.attachers,(function(e){r.removeShape(e)})),t.host&&r.updateAttachment(t,null)}))}function Vm(e){return s(R(e,(function(e){return e.attachers||[]})))}r(Fm,la),Fm.$inject=["injector","eventBus","canvas","rules","modeling"];var Hm={__depends__:[hc],__init__:["attachSupport"],attachSupport:["type",Fm]};function $m(e,t){this._eventBus=e,this._dragging=t,this._tools=[],this._active=null}$m.$inject=["eventBus","dragging"],$m.prototype.registerTool=function(e,t){var n=this._tools;if(!t)throw new Error('A tool has to be registered with it\'s "events"');n.push(e),this.bindEvents(e,t)},$m.prototype.isActive=function(e){return e&&this._active===e},$m.prototype.length=function(e){return this._tools.length},$m.prototype.setActive=function(e){var t=this._eventBus;this._active!==e&&(this._active=e,t.fire("tool-manager.update",{tool:e}))},$m.prototype.bindEvents=function(e,t){var n=this._eventBus,i=this._dragging,r=[];n.on(t.tool+".init",(function(t){if(!t.context.reactivate&&this.isActive(e))return this.setActive(null),void i.cancel();this.setActive(e)}),this),E(t,(function(e){r.push(e+".ended"),r.push(e+".canceled")})),n.on(r,250,(function(e){this._active&&(function(e){var t=e.originalEvent&&e.originalEvent.target;return t&&fe(t,'.group[data-group="tools"]')}(e)||this.setActive(null))}),this)};var Gm={__depends__:[sc],__init__:["toolManager"],toolManager:["type",$m]};function Wm(e,t){return-1!==e.indexOf(t)}var Um=Math.abs,qm=Math.round,Km={x:"width",y:"height"},Ym="crosshair",Xm={n:"top",w:"left",s:"bottom",e:"right"},Zm={n:"s",w:"e",s:"n",e:"w"};function Qm(e,t,n,i,r,o,a){this._canvas=e,this._dragging=t,this._eventBus=n,this._modeling=i,this._rules=r,this._toolManager=o,this._mouse=a;var s=this;o.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",(function(e){n.once("spaceTool.selection.ended",(function(){s.activateMakeSpace(e.originalEvent)}))})),n.on("spaceTool.move",1500,(function(e){var t=e.context,n=t.initialized;n||(n=t.initialized=s.init(e,t)),n&&ef(e)})),n.on("spaceTool.end",(function(e){var t=e.context,i=t.axis,r=t.direction,o=t.movingShapes,a=t.resizingShapes,c=t.start;if(t.initialized){ef(e);var l={x:0,y:0};l[i]=qm(e["d"+i]),s.makeSpace(o,a,l,r,c),n.once("spaceTool.ended",(function(e){s.activateSelection(e.originalEvent,!0,!0)}))}}))}function Jm(e){return{top:e.top-20,right:e.right+20,bottom:e.bottom+20,left:e.left-20}}function ef(e){var t,n,i=e.context.spaceToolConstraints;i&&(f(i.left)&&(t=Math.max(e.x,i.left),e.dx=e.dx+t-e.x,e.x=t),f(i.right)&&(t=Math.min(e.x,i.right),e.dx=e.dx+t-e.x,e.x=t),f(i.top)&&(n=Math.max(e.y,i.top),e.dy=e.dy+n-e.y,e.y=n),f(i.bottom)&&(n=Math.min(e.y,i.bottom),e.dy=e.dy+n-e.y,e.y=n))}function tf(e,t){return-1!==e.indexOf(t)}function nf(e){return!!e.waypoints}function rf(e){return!!e.labelTarget}Qm.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"],Qm.prototype.activateSelection=function(e,t,n){this._dragging.init(e,"spaceTool.selection",{autoActivate:t,cursor:Ym,data:{context:{reactivate:n}},trapClick:!1})},Qm.prototype.activateMakeSpace=function(e){this._dragging.init(e,"spaceTool",{autoActivate:!0,cursor:Ym,data:{context:{}}})},Qm.prototype.makeSpace=function(e,t,n,i,r){return this._modeling.createSpace(e,t,n,i,r)},Qm.prototype.init=function(e,t){var n=Um(e.dx)>Um(e.dy)?"x":"y",i=e["d"+n],r=e[n]-i;if(Um(i)<5)return!1;i<0&&(i*=-1),Io(e)&&(i*=-1);var o=function(e,t){if("x"===e){if(t>0)return"e";if(t<0)return"w"}if("y"===e){if(t>0)return"s";if(t<0)return"n"}return null}(n,i),a=Et(this._canvas.getRootElement(),!0),s=this.calculateAdjustments(a,n,i,r);return W(t,s,{axis:n,direction:o,spaceToolConstraints:function(e,t,n,i,r){var o=e.movingShapes,a=e.resizingShapes;if(!a.length)return;var s,c,l={};return E(a,(function(e){var p,u,h,d=xn(e),m=w(e.children,(function(e){return!(nf(e)||rf(e)||tf(o,e)||tf(a,e))})),v=w(e.children,(function(e){return!nf(e)&&!rf(e)&&tf(o,e)}));m.length&&(u=Jm(xn(St(m))),p=i-d[Xm[n]]+u[Xm[n]],"n"===n?l.bottom=c=f(c)?Math.min(c,p):p:"w"===n?l.right=c=f(c)?Math.min(c,p):p:"s"===n?l.top=s=f(s)?Math.max(s,p):p:"e"===n&&(l.left=s=f(s)?Math.max(s,p):p)),v.length&&(h=Jm(xn(St(v))),p=i-h[Xm[Zm[n]]]+d[Xm[Zm[n]]],"n"===n?l.bottom=c=f(c)?Math.min(c,p):p:"w"===n?l.right=c=f(c)?Math.min(c,p):p:"s"===n?l.top=s=f(s)?Math.max(s,p):p:"e"===n&&(l.left=s=f(s)?Math.max(s,p):p));var g=r&&r[e.id];g&&("n"===n?(p=i+e[Km[t]]-g[Km[t]],l.bottom=c=f(c)?Math.min(c,p):p):"w"===n?(p=i+e[Km[t]]-g[Km[t]],l.right=c=f(c)?Math.min(c,p):p):"s"===n?(p=i-e[Km[t]]+g[Km[t]],l.top=s=f(s)?Math.max(s,p):p):"e"===n&&(p=i-e[Km[t]]+g[Km[t]],l.left=s=f(s)?Math.max(s,p):p))})),l}(s,n,o,r,this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:o,shapes:s.resizingShapes,start:r})),start:r}),Ka("resize-"+("x"===n?"ew":"ns")),!0},Qm.prototype.calculateAdjustments=function(e,t,n,i){var r=this._rules,o=[],a=[];return E(e,(function(e){if(e.parent&&!nf(e)){var s=e[t],c=s+e[Km[t]];return n>0&&s>i||n<0&&c<i?o.push(e):s<i&&c>i&&r.allowed("shape.resize",{shape:e})?a.push(e):void 0}})),{movingShapes:o,resizingShapes:a}},Qm.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},Qm.prototype.isActive=function(){var e=this._dragging.context();return e&&/^spaceTool/.test(e.prefix)};var of="djs-dragging",af="djs-resizing",sf=Math.max;function cf(e,t,n,i,r){function o(e,t){E(e,(function(e){r.addDragger(e,t),n.addMarker(e,of)}))}e.on("spaceTool.selection.start",(function(e){var t=n.getLayer("space"),r=e.context,o="M 0,-10000 L 0,10000",a="M -10000,0 L 10000,0",s=Ue("g");ze(s,i.cls("djs-crosshair-group",["no-events"])),ke(t,s);var c=Ue("path");ze(c,"d",o),Le(c).add("djs-crosshair"),ke(s,c);var l=Ue("path");ze(l,"d",a),Le(l).add("djs-crosshair"),ke(s,l),r.crosshairGroup=s})),e.on("spaceTool.selection.move",(function(e){ii(e.context.crosshairGroup,e.x,e.y)})),e.on("spaceTool.selection.cleanup",(function(e){var t=e.context.crosshairGroup;t&&Fe(t)})),e.on("spaceTool.move",250,(function(e){var a=e.context,s=a.line,c=a.axis,l=a.movingShapes,p=a.resizingShapes;if(a.initialized){if(!a.dragGroup){var u=n.getLayer("space");ze(s=Ue("path"),"d","M0,0 L0,0"),Le(s).add("djs-crosshair"),ke(u,s),a.line=s;var h=Ue("g");ze(h,i.cls("djs-drag-group",["no-events"])),ke(n.getActiveLayer(),h),o(l,h),o(a.movingConnections=t.filter((function(e){var t=!1;E(l,(function(n){E(n.outgoing,(function(n){e===n&&(t=!0)}))}));var n=!1;E(l,(function(t){E(t.incoming,(function(t){e===t&&(n=!0)}))}));var i=!1;E(p,(function(t){E(t.outgoing,(function(t){e===t&&(i=!0)}))}));var r=!1;return E(p,(function(t){E(t.incoming,(function(t){e===t&&(r=!0)}))})),function(e){return e.waypoints}(e)&&(t||i)&&(n||r)})),h),a.dragGroup=h}if(!a.frameGroup){var d=Ue("g");ze(d,i.cls("djs-frame-group",["no-events"])),ke(n.getActiveLayer(),d);var m=[];E(p,(function(e){var t=r.addFrame(e,d),i=t.getBBox();m.push({element:t,initialBounds:i}),n.addMarker(e,af)})),a.frameGroup=d,a.frames=m}ze(s,{d:{x:"M"+e.x+", -10000 L"+e.x+", 10000",y:"M -10000, "+e.y+" L 10000, "+e.y}[c]});var f={x:e.dx,y:e.dy};f[{x:"y",y:"x"}[a.axis]]=0,ii(a.dragGroup,f.x,f.y),E(a.frames,(function(e){var t,n,i=e.element,r=e.initialBounds;"e"===a.direction?ze(i,{width:sf(r.width+f.x,5)}):ze(i,{width:t=sf(r.width-f.x,5),x:r.x+r.width-t}),"s"===a.direction?ze(i,{height:sf(r.height+f.y,5)}):ze(i,{height:n=sf(r.height-f.y,5),y:r.y+r.height-n})}))}})),e.on("spaceTool.cleanup",(function(e){var t=e.context,i=t.movingShapes,r=t.movingConnections,o=t.resizingShapes,a=t.line,s=t.dragGroup,c=t.frameGroup;E(i,(function(e){n.removeMarker(e,of)})),E(r,(function(e){n.removeMarker(e,of)})),s&&(Fe(a),Fe(s)),E(o,(function(e){n.removeMarker(e,af)})),c&&Fe(c)}))}cf.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];var lf={__init__:["spaceToolPreview"],__depends__:[sc,hc,Gm,Pl,Vl],spaceTool:["type",Qm],spaceToolPreview:["type",cf]};function pf(e){this._model=e}function uf(e,t,n,i){la.call(this,e),this._bpmnFactory=t,this._translate=i;var r=this;function o(e){E(e.context.oldRoot.children,(function(e){kr(e,"bpmn:BaseElement")&&r.updateParent(e)}))}function a(e){var t=e.context.shape;kr(t,"bpmn:BaseElement")&&r.updateBounds(t)}function s(e){r.updateConnection(e.context)}function c(e){r.updateConnectionWaypoints(e.context.connection)}function l(e){r.updateAttachment(e.context)}this.executed(["connection.layout","connection.create"],(function(e){var t,i=e.context,r=i.hints||{};i.cropped||!1===r.createElementsBehavior||((t=i.connection).waypoints=n.getCroppedWaypoints(t),i.cropped=!0)})),this.reverted(["connection.layout"],(function(e){delete e.context.cropped})),this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],hf((function(e){var t=e.context;r.updateParent(t.shape||t.connection,t.oldParent)}))),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],hf((function(e){var t=e.context,n=t.shape||t.connection,i=t.parent||t.newParent;r.updateParent(n,i)}))),this.executed(["canvas.updateRoot"],o),this.reverted(["canvas.updateRoot"],o),this.executed(["shape.move","shape.create","shape.resize"],hf((function(e){"label"!==e.context.shape.type&&a(e)}))),this.reverted(["shape.move","shape.create","shape.resize"],hf((function(e){"label"!==e.context.shape.type&&a(e)}))),e.on("shape.changed",(function(e){"label"===e.element.type&&a({context:{shape:e.element}})})),this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],hf(s)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],hf(s)),this.executed(["connection.layout","connection.move","connection.updateWaypoints"],hf(c)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],hf(c)),this.executed("connection.reconnect",hf((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=Tr(n),a=Tr(i),s=Tr(r);o.conditionExpression&&!Dr(s,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(t.oldConditionExpression=o.conditionExpression,delete o.conditionExpression),i!==r&&a.default===o&&(t.oldDefault=a.default,delete a.default)}))),this.reverted("connection.reconnect",hf((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=Tr(n),a=Tr(i),s=Tr(r);t.oldConditionExpression&&(o.conditionExpression=t.oldConditionExpression),t.oldDefault&&(a.default=t.oldDefault,delete s.default)}))),this.executed(["element.updateAttachment"],hf(l)),this.reverted(["element.updateAttachment"],hf(l))}function hf(e){return function(t){var n=t.context;kr(n.shape||n.connection,"bpmn:BaseElement")&&e(t)}}function df(e,t,n){Zn.call(this),this._bpmnFactory=e,this._moddle=t,this._translate=n}function mf(e,t,n){e[n]=t[n],delete t[n]}function ff(e,t){this._modeling=e,this._canvas=t}function vf(e){this._modeling=e}function gf(e,t){this._canvas=e,this._layouter=t}pf.$inject=["moddle"],pf.prototype._needsId=function(e){return Dr(e,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])},pf.prototype._ensureId=function(e){var t;e.id?this._model.ids.claim(e.id,e):(t=kr(e,"bpmn:Activity")?"Activity":kr(e,"bpmn:Event")?"Event":kr(e,"bpmn:Gateway")?"Gateway":Dr(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(e.$type||"").replace(/^[^:]*:/g,""),t+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(t,e)))},pf.prototype.create=function(e,t){var n=this._model.create(e,t||{});return this._ensureId(n),n},pf.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},pf.prototype.createDiShape=function(e,t){return this.create("bpmndi:BPMNShape",W({bpmnElement:e,bounds:this.createDiBounds()},t))},pf.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)},pf.prototype.createDiWaypoints=function(e){var t=this;return R(e,(function(e){return t.createDiWaypoint(e)}))},pf.prototype.createDiWaypoint=function(e){return this.create("dc:Point",K(e,["x","y"]))},pf.prototype.createDiEdge=function(e,t){return this.create("bpmndi:BPMNEdge",W({bpmnElement:e,waypoint:this.createDiWaypoints([])},t))},pf.prototype.createDiPlane=function(e,t){return this.create("bpmndi:BPMNPlane",W({bpmnElement:e},t))},r(uf,la),uf.$inject=["eventBus","bpmnFactory","connectionDocking","translate"],uf.prototype.updateAttachment=function(e){var t=e.shape,n=t.businessObject,i=t.host;n.attachedToRef=i&&i.businessObject},uf.prototype.updateParent=function(e,t){if(!(e instanceof Kn||kr(e,"bpmn:DataStoreReference")&&e.parent&&kr(e.parent,"bpmn:Collaboration"))){var n=e.parent,i=e.businessObject,r=zr(e),o=n&&n.businessObject,a=zr(n);kr(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,o,t&&t.businessObject),kr(e,"bpmn:DataOutputAssociation")&&(o=e.source?e.source.businessObject:null),kr(e,"bpmn:DataInputAssociation")&&(o=e.target?e.target.businessObject:null),this.updateSemanticParent(i,o),kr(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,o),this.updateDiParent(r,a)}},uf.prototype.updateBounds=function(e){var t=zr(e),n=function(e){if(!kr(e,"bpmn:Activity"))return;var t=zr(e);if(!t)return;var n=t.get("label");if(!n)return;return n.get("bounds")}(e);if(n){var i=Qa(n,t.get("bounds"));W(n,{x:e.x+i.x,y:e.y+i.y})}var r=e instanceof Kn?this._getLabel(t):t,o=r.bounds;o||(o=this._bpmnFactory.createDiBounds(),r.set("bounds",o)),W(o,{x:e.x,y:e.y,width:e.width,height:e.height})},uf.prototype.updateFlowNodeRefs=function(e,t,n){n!==t&&(kr(n,"bpmn:Lane")&&kt(n.get("flowNodeRef"),e),kr(t,"bpmn:Lane")&&Dt(t.get("flowNodeRef"),e))},uf.prototype.updateDiConnection=function(e,t,n){var i=zr(e),r=zr(t),o=zr(n);i.sourceElement&&i.sourceElement.bpmnElement!==Tr(t)&&(i.sourceElement=t&&r),i.targetElement&&i.targetElement.bpmnElement!==Tr(n)&&(i.targetElement=n&&o)},uf.prototype.updateDiParent=function(e,t){if(t&&!kr(t,"bpmndi:BPMNPlane")&&(t=t.$parent),e.$parent!==t){var n=(t||e.$parent).get("planeElement");t?(n.push(e),e.$parent=t):(kt(n,e),e.$parent=null)}},uf.prototype.getLaneSet=function(e){var t,n;return kr(e,"bpmn:Lane")?((t=e.childLaneSet)||(t=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=t,t.$parent=e),t):(kr(e,"bpmn:Participant")&&(e=e.processRef),(t=(n=e.get("laneSets"))[0])||((t=this._bpmnFactory.create("bpmn:LaneSet")).$parent=e,n.push(t)),t)},uf.prototype.updateSemanticParent=function(e,t,n){var i,r=this._translate;if(e.$parent!==t&&(!kr(e,"bpmn:DataInput")&&!kr(e,"bpmn:DataOutput")||(kr(t,"bpmn:Participant")&&"processRef"in t&&(t=t.processRef),!("ioSpecification"in t)||t.ioSpecification!==e.$parent))){if(kr(e,"bpmn:Lane"))t&&(t=this.getLaneSet(t)),i="lanes";else if(kr(e,"bpmn:FlowElement")){if(t)if(kr(t,"bpmn:Participant"))t=t.processRef;else if(kr(t,"bpmn:Lane"))do{t=t.$parent.$parent}while(kr(t,"bpmn:Lane"));i="flowElements"}else if(kr(e,"bpmn:Artifact")){for(;t&&!kr(t,"bpmn:Process")&&!kr(t,"bpmn:SubProcess")&&!kr(t,"bpmn:Collaboration");){if(kr(t,"bpmn:Participant")){t=t.processRef;break}t=t.$parent}i="artifacts"}else if(kr(e,"bpmn:MessageFlow"))i="messageFlows";else if(kr(e,"bpmn:Participant")){i="participants";var o,a=e.processRef;a&&(o=function(e){for(;e&&!kr(e,"bpmn:Definitions");)e=e.$parent;return e}(e.$parent||t),e.$parent&&(kt(o.get("rootElements"),a),a.$parent=null),t&&(Dt(o.get("rootElements"),a),a.$parent=o))}else kr(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":kr(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(r("no parent for {element} in {parent}",{element:e.id,parent:t.id}));var s;if(e.$parent&&kt(s=e.$parent.get(i),e),t?((s=t.get(i)).push(e),e.$parent=t):e.$parent=null,n){var c=n.get(i);kt(s,e),t&&(c||(c=[],t.set(i,c)),c.push(e))}}},uf.prototype.updateConnectionWaypoints=function(e){zr(e).set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))},uf.prototype.updateConnection=function(e){var t,n=e.connection,i=Tr(n),r=n.source,o=Tr(r),a=n.target,s=Tr(n.target);if(kr(i,"bpmn:DataAssociation"))kr(i,"bpmn:DataInputAssociation")?(i.get("sourceRef")[0]=o,t=e.parent||e.newParent||s,this.updateSemanticParent(i,s,t)):kr(i,"bpmn:DataOutputAssociation")&&(t=e.parent||e.newParent||o,this.updateSemanticParent(i,o,t),i.targetRef=s);else{var c=kr(i,"bpmn:SequenceFlow");i.sourceRef!==o&&(c&&(kt(i.sourceRef&&i.sourceRef.get("outgoing"),i),o&&o.get("outgoing")&&o.get("outgoing").push(i)),i.sourceRef=o),i.targetRef!==s&&(c&&(kt(i.targetRef&&i.targetRef.get("incoming"),i),s&&s.get("incoming")&&s.get("incoming").push(i)),i.targetRef=s)}this.updateConnectionWaypoints(n),this.updateDiConnection(n,r,a)},uf.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label},r(df,Zn),df.$inject=["bpmnFactory","moddle","translate"],df.prototype.baseCreate=Zn.prototype.create,df.prototype.create=function(e,t){if("label"===e){var n=t.di||this._bpmnFactory.createDiLabel();return this.baseCreate(e,W({type:"label",di:n},wo,t))}return this.createBpmnElement(e,t)},df.prototype.createBpmnElement=function(e,t){var n,i,r,o=this._translate,a=(t=t||{}).businessObject,s=t.di;if(!a){if(!t.type)throw new Error(o("no shape type specified"));Mr(a=this._bpmnFactory.create(t.type))}if(!Dr(s,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])){var c=W(s||{},{id:a.id+"_di"});s="root"===e?this._bpmnFactory.createDiPlane(a,c):"connection"===e?this._bpmnFactory.createDiEdge(a,c):this._bpmnFactory.createDiShape(a,c)}return kr(a,"bpmn:Group")&&(t=W({isFrame:!0},t)),function(e,t,n){E(n,(function(n){void 0!==t[n]&&mf(e,t,n)}))}(a,t,["processRef","isInterrupting","associationDirection","isForCompensation"]),t.isExpanded&&mf(s,t,"isExpanded"),kr(a,"bpmn:SubProcess")&&(t.collapsed=!Yr(a,s)),kr(a,"bpmn:ExclusiveGateway")&&(s.isMarkerVisible=!0),t.eventDefinitionType&&(i=a.get("eventDefinitions")||[],r=this._bpmnFactory.create(t.eventDefinitionType,t.eventDefinitionAttrs),"bpmn:ConditionalEventDefinition"===t.eventDefinitionType&&(r.condition=this._bpmnFactory.create("bpmn:FormalExpression")),i.push(r),r.$parent=a,a.eventDefinitions=i,delete t.eventDefinitionType),n=this.getDefaultSize(a,s),t=W({id:a.id},n,t,{businessObject:a,di:s}),this.baseCreate(e,t)},df.prototype.getDefaultSize=function(e,t){var n=Tr(e);return t=t||zr(e),kr(n,"bpmn:SubProcess")?Yr(n,t)?{width:350,height:200}:{width:100,height:80}:kr(n,"bpmn:Task")?{width:100,height:80}:kr(n,"bpmn:Gateway")?{width:50,height:50}:kr(n,"bpmn:Event")?{width:36,height:36}:kr(n,"bpmn:Participant")?Yr(n,t)?{width:600,height:250}:{width:400,height:60}:kr(n,"bpmn:Lane")?{width:400,height:100}:kr(n,"bpmn:DataObjectReference")?{width:36,height:50}:kr(n,"bpmn:DataStoreReference")?{width:50,height:50}:kr(n,"bpmn:TextAnnotation")?{width:100,height:30}:kr(n,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}},df.prototype.createParticipantShape=function(e){return m(e)||(e={isExpanded:e}),!1!==(e=W({type:"bpmn:Participant"},e||{})).isExpanded&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)},ff.$inject=["modeling","canvas"],ff.prototype.preExecute=function(e){var t=this._modeling,n=e.elements,i=e.alignment;E(n,(function(e){var n={x:0,y:0};i.left?n.x=i.left-e.x:i.right?n.x=i.right-e.width-e.x:i.center?n.x=i.center-Math.round(e.width/2)-e.x:i.top?n.y=i.top-e.y:i.bottom?n.y=i.bottom-e.height-e.y:i.middle&&(n.y=i.middle-Math.round(e.height/2)-e.y),t.moveElements([e],n,e.parent)}))},ff.prototype.postExecute=function(e){},vf.$inject=["modeling"],vf.prototype.preExecute=function(e){var t=e.source;if(!t)throw new Error("source required");var n=e.target||t.parent,i=e.shape,r=e.hints||{};i=e.shape=this._modeling.createShape(i,e.position,n,{attach:r.attach}),e.shape=i},vf.prototype.postExecute=function(e){var t,n,i=e.hints||{};t=e.source,n=e.shape,M(t.outgoing,(function(e){return e.target===n}))||(i.connectionTarget===e.source?this._modeling.connect(e.shape,e.source,e.connection):this._modeling.connect(e.source,e.shape,e.connection))},gf.$inject=["canvas","layouter"],gf.prototype.execute=function(e){var t=e.connection,n=e.source,i=e.target,r=e.parent,o=e.parentIndex,a=e.hints;if(!n||!i)throw new Error("source and target required");if(!r)throw new Error("parent required");return t.source=n,t.target=i,t.waypoints||(t.waypoints=this._layouter.layoutConnection(t,a)),this._canvas.addConnection(t,r,o),t},gf.prototype.revert=function(e){var t=e.connection;return this._canvas.removeConnection(t),t.source=null,t.target=null,t};var yf=Math.round;function bf(e){this._modeling=e}function _f(e){return!!e.waypoints}bf.$inject=["modeling"],bf.prototype.preExecute=function(e){var t=e.elements,n=e.parent,i=e.parentIndex,r=e.position,o=e.hints,a=this._modeling;E(t,(function(e){f(e.x)||(e.x=0),f(e.y)||(e.y=0)}));var s=St(w(t,(function(e){return!e.hidden})));E(t,(function(e){_f(e)&&(e.waypoints=R(e.waypoints,(function(e){return{x:yf(e.x-s.x-s.width/2+r.x),y:yf(e.y-s.y-s.height/2+r.y)}}))),W(e,{x:yf(e.x-s.x-s.width/2+r.x),y:yf(e.y-s.y-s.height/2+r.y)})}));var c=bt(t),l={};E(t,(function(e){if(_f(e))l[e.id]=f(i)?a.createConnection(l[e.source.id],l[e.target.id],i,e,e.parent||n,o):a.createConnection(l[e.source.id],l[e.target.id],e,e.parent||n,o);else{var t=W({},o);-1===c.indexOf(e)&&(t.autoResize=!1),l[e.id]=f(i)?a.createShape(e,K(e,["x","y","width","height"]),e.parent||n,i,t):a.createShape(e,K(e,["x","y","width","height"]),e.parent||n,t)}})),e.elements=D(l)};var xf=Math.round;function wf(e){this._canvas=e}function Ef(e){wf.call(this,e)}wf.$inject=["canvas"],wf.prototype.execute=function(e){var t=e.shape,n=e.position,i=e.parent,r=e.parentIndex;if(!i)throw new Error("parent required");if(!n)throw new Error("position required");return void 0!==n.width?W(t,n):W(t,{x:n.x-xf(t.width/2),y:n.y-xf(t.height/2)}),this._canvas.addShape(t,i,r),t},wf.prototype.revert=function(e){var t=e.shape;return this._canvas.removeShape(t),t},r(Ef,wf),Ef.$inject=["canvas"];var Sf=wf.prototype.execute;Ef.prototype.execute=function(e){var t=e.shape;return function(e){["width","height"].forEach((function(t){void 0===e[t]&&(e[t]=0)}))}(t),t.labelTarget=e.labelTarget,Sf.call(this,e)};var Cf=wf.prototype.revert;function Pf(e,t){this._canvas=e,this._modeling=t}function Mf(e,t){this._modeling=e,this._elementRegistry=t}function Rf(e,t){this._canvas=e,this._modeling=t}function Af(e){this._modeling=e}Ef.prototype.revert=function(e){return e.shape.labelTarget=null,Cf.call(this,e)},Pf.$inject=["canvas","modeling"],Pf.prototype.preExecute=function(e){var t=this._modeling,n=e.connection;Bm(n.incoming,(function(e){t.removeConnection(e,{nested:!0})})),Bm(n.outgoing,(function(e){t.removeConnection(e,{nested:!0})}))},Pf.prototype.execute=function(e){var t=e.connection,n=t.parent;return e.parent=n,e.parentIndex=Tt(n.children,t),e.source=t.source,e.target=t.target,this._canvas.removeConnection(t),t.source=null,t.target=null,t},Pf.prototype.revert=function(e){var t=e.connection,n=e.parent,i=e.parentIndex;return t.source=e.source,t.target=e.target,Dt(n.children,t,i),this._canvas.addConnection(t,n),t},Mf.$inject=["modeling","elementRegistry"],Mf.prototype.postExecute=function(e){var t=this._modeling,n=this._elementRegistry;E(e.elements,(function(e){n.get(e.id)&&(e.waypoints?t.removeConnection(e):t.removeShape(e))}))},Rf.$inject=["canvas","modeling"],Rf.prototype.preExecute=function(e){var t=this._modeling,n=e.shape;Bm(n.incoming,(function(e){t.removeConnection(e,{nested:!0})})),Bm(n.outgoing,(function(e){t.removeConnection(e,{nested:!0})})),Bm(n.children,(function(e){e.waypoints?t.removeConnection(e,{nested:!0}):t.removeShape(e,{nested:!0})}))},Rf.prototype.execute=function(e){var t=this._canvas,n=e.shape,i=n.parent;return e.oldParent=i,e.oldParentIndex=Tt(i.children,n),t.removeShape(n),n},Rf.prototype.revert=function(e){var t=this._canvas,n=e.shape,i=e.oldParent,r=e.oldParentIndex;return Dt(i.children,n,r),t.addShape(n,i),n},Af.$inject=["modeling"];var kf={x:"y",y:"x"};function Df(e,t){this._layouter=e,this._canvas=t}function Tf(){}function zf(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function Of(e){this._modeling=e}function Bf(e){this._helper=new Of(e)}function jf(e){this._modeling=e,this._helper=new Of(e)}function Nf(e){this._modeling=e}function Lf(e){return e.original||e}function If(e,t){this._modeling=e,this._rules=t}function Ff(e){this._modeling=e}function Vf(e){this._modeling=e}function Hf(e){return W({},e)}function $f(e){switch(e){case"n":return"y";case"w":return"x";case"s":return"y";case"e":return"x"}}function Gf(e,t,n){var i=$f(n);return/e|s/.test(n)?e[i]>t:/n|w/.test(n)?e[i]<t:void 0}function Wf(e,t){return-1!==e.indexOf(t)}function Uf(e){this._modeling=e}function qf(e){var t={};return E(e,(function(e){t[e.id]=e.hidden,e.children&&(t=W({},t,qf(e.children)))})),t}function Kf(e,t){var n=[];return E(e,(function(e){e.hidden=t,n=n.concat(e),e.children&&(n=n.concat(Kf(e.children,e.collapsed||t)))})),n}function Yf(e,t){var n=[];return E(e,(function(e){e.hidden=t[e.id],n=n.concat(e),e.children&&(n=n.concat(Yf(e.children,t)))})),n}function Xf(e){this._modeling=e}function Zf(e,t){return kt(e&&e.attachers,t)}function Qf(e,t,n){if(e){var i=e.attachers;i||(e.attachers=i=[]),Dt(i,t,n)}}function Jf(){}function ev(e,t,n){this._eventBus=e,this._elementFactory=t,this._commandStack=n;var i=this;e.on("diagram.init",(function(){i.registerHandlers(n)}))}function tv(e){this._elementRegistry=e}function nv(e,t){E(t,(function(t,n){e.set(n,t)}))}Af.prototype.preExecute=function(e){var t=this._modeling,n=e.groups,i=e.axis,r=e.dimension;function o(e,t){e.range.min=Math.min(t[i],e.range.min),e.range.max=Math.max(t[i]+t[r],e.range.max)}function a(e){return e[i]+e[r]/2}function s(e){return e.length-1}function c(e){return e.max-e.min}var l,p,u=n[0],h=s(n),d=n[h],m=0;E(n,(function(e,l){var p,u,d;e.elements.length<2?l&&l!==n.length-1&&(o(e,e.elements[0]),m+=c(e.range)):(u=(p=B(e.elements,i))[0],l===h&&(u=p[s(p)]),d=a(u),e.range=null,E(p,(function(n){!function(e,n){var r={y:0};r[i]=e-a(n),r[i]&&(r[kf[i]]=0,t.moveElements([n],r,n.parent))}(d,n),null!==e.range?o(e,n):e.range={min:n[i],max:n[i]+n[r]}})),l&&l!==n.length-1&&(m+=c(e.range)))})),p=Math.abs(d.range.min-u.range.max),(l=Math.round((p-m)/(n.length-1)))<n.length-1||E(n,(function(e,o){var a,s={};e!==u&&e!==d&&(a=n[o-1],e.range.max=0,E(e.elements,(function(n,o){s[kf[i]]=0,s[i]=a.range.max-n[i]+l,e.range.min!==n[i]&&(s[i]+=n[i]-e.range.min),s[i]&&t.moveElements([n],s,n.parent),e.range.max=Math.max(n[i]+n[r],o?e.range.max:0)})))}))},Af.prototype.postExecute=function(e){},Df.$inject=["layouter","canvas"],Df.prototype.execute=function(e){var t=e.connection;return W(e,{oldWaypoints:t.waypoints}),t.waypoints=this._layouter.layoutConnection(t,e.hints),t},Df.prototype.revert=function(e){var t=e.connection;return t.waypoints=e.oldWaypoints,t},Tf.prototype.execute=function(e){var t=e.connection,n=e.delta,i=e.newParent||t.parent,r=e.newParentIndex,o=t.parent;return e.oldParent=o,e.oldParentIndex=kt(o.children,t),Dt(i.children,t,r),t.parent=i,E(t.waypoints,(function(e){e.x+=n.x,e.y+=n.y,e.original&&(e.original.x+=n.x,e.original.y+=n.y)})),t},Tf.prototype.revert=function(e){var t=e.connection,n=t.parent,i=e.oldParent,r=e.oldParentIndex,o=e.delta;return kt(n.children,t),Dt(i.children,t,r),t.parent=i,E(t.waypoints,(function(e){e.x-=o.x,e.y-=o.y,e.original&&(e.original.x-=o.x,e.original.y-=o.y)})),t},zf.prototype.add=function(e,t){return this.addAll([e],t)},zf.prototype.addAll=function(e,t){return W(this,function(e,t,n){p(t)&&(t=!0),m(t)&&(n=t,t=!0);var i=Mt((n=n||{}).allShapes),r=Mt(n.allConnections),o=Mt(n.enclosedElements),a=Mt(n.enclosedConnections),s=Mt(n.topLevel,t&&T(e,(function(e){return e.id})));function c(e){s[e.source.id]&&s[e.target.id]&&(s[e.id]=[e]),i[e.source.id]&&i[e.target.id]&&(a[e.id]=o[e.id]=e),r[e.id]=e}return wt(e,(function(e){if(o[e.id]=e,!e.waypoints)return i[e.id]=e,E(e.incoming,c),E(e.outgoing,c),e.children;a[e.id]=r[e.id]=e})),{allShapes:i,allConnections:r,topLevel:s,enclosedConnections:a,enclosedElements:o}}(e,!!t,this)),this},Of.prototype.moveRecursive=function(e,t,n){return e?this.moveClosure(this.getClosure(e),t,n):[]},Of.prototype.moveClosure=function(e,t,n,i,r){var o=this._modeling,a=e.allShapes,s=e.allConnections,c=e.enclosedConnections,l=e.topLevel,p=!1;r&&r.parent===n&&(p=!0),E(a,(function(e){o.moveShape(e,t,l[e.id]&&!p&&n,{recurse:!1,layout:!1})})),E(s,(function(e){var i=!!a[e.source.id],r=!!a[e.target.id];c[e.id]&&i&&r?o.moveConnection(e,t,l[e.id]&&!p&&n):o.layoutConnection(e,{connectionStart:i&&Jh(e,e.source,t),connectionEnd:r&&ed(e,e.target,t)})}))},Of.prototype.getClosure=function(e){return(new zf).addAll(e,!0)},Bf.$inject=["modeling"],Bf.prototype.preExecute=function(e){e.closure=this._helper.getClosure(e.shapes)},Bf.prototype.postExecute=function(e){var t,n=e.hints;n&&n.primaryShape&&(t=n.primaryShape,n.oldParent=t.parent),this._helper.moveClosure(e.closure,e.delta,e.newParent,e.newHost,t)},jf.$inject=["modeling"],jf.prototype.execute=function(e){var t=e.shape,n=e.delta,i=e.newParent||t.parent,r=e.newParentIndex,o=t.parent;return e.oldBounds=K(t,["x","y","width","height"]),e.oldParent=o,e.oldParentIndex=kt(o.children,t),Dt(i.children,t,r),W(t,{parent:i,x:t.x+n.x,y:t.y+n.y}),t},jf.prototype.postExecute=function(e){var t=e.shape,n=e.delta,i=e.hints,r=this._modeling;!1!==i.layout&&(E(t.incoming,(function(e){r.layoutConnection(e,{connectionEnd:ed(e,t,n)})})),E(t.outgoing,(function(e){r.layoutConnection(e,{connectionStart:Jh(e,t,n)})}))),!1!==i.recurse&&this.moveChildren(e)},jf.prototype.revert=function(e){var t=e.shape,n=e.oldParent,i=e.oldParentIndex,r=e.delta;return Dt(n.children,t,i),W(t,{parent:n,x:t.x-r.x,y:t.y-r.y}),t},jf.prototype.moveChildren=function(e){var t=e.delta,n=e.shape;this._helper.moveRecursive(n.children,t,null)},jf.prototype.getNewParent=function(e){return e.newParent||e.shape.parent},Nf.$inject=["modeling"],Nf.prototype.execute=function(e){var t=e.newSource,n=e.newTarget,i=e.connection,r=e.dockingOrPoints;if(!t&&!n)throw new Error("newSource or newTarget required");return d(r)&&(e.oldWaypoints=i.waypoints,i.waypoints=r),t&&(e.oldSource=i.source,i.source=t),n&&(e.oldTarget=i.target,i.target=n),i},Nf.prototype.postExecute=function(e){var t=e.connection,n=e.newSource,i=e.newTarget,r=e.dockingOrPoints,o=e.hints||{},a={};o.connectionStart&&(a.connectionStart=o.connectionStart),o.connectionEnd&&(a.connectionEnd=o.connectionEnd),!1!==o.layoutConnection&&(!n||i&&"source"!==o.docking||(a.connectionStart=a.connectionStart||Lf(d(r)?r[0]:r)),!i||n&&"target"!==o.docking||(a.connectionEnd=a.connectionEnd||Lf(d(r)?r[r.length-1]:r)),o.newWaypoints&&(a.waypoints=o.newWaypoints),this._modeling.layoutConnection(t,a))},Nf.prototype.revert=function(e){var t=e.oldSource,n=e.oldTarget,i=e.oldWaypoints,r=e.connection;return t&&(r.source=t),n&&(r.target=n),i&&(r.waypoints=i),r},If.$inject=["modeling","rules"],If.prototype.preExecute=function(e){var t,n=this,i=this._modeling,r=this._rules,o=e.oldShape,a=e.newData,s=e.hints||{};function c(e,t,n){return r.allowed("connection.reconnect",{connection:n,source:e,target:t})}var l,p={x:a.x,y:a.y},u={x:o.x,y:o.y,width:o.width,height:o.height};t=e.newShape=e.newShape||n.createShape(a,p,o.parent,s),o.host&&i.updateAttachment(t,o.host),!1!==s.moveChildren&&(l=o.children.slice(),i.moveElements(l,{x:0,y:0},t,s));var h=o.incoming.slice(),d=o.outgoing.slice();E(h,(function(e){c(e.source,t,e)&&n.reconnectEnd(e,t,Qh(e,t,u),s)})),E(d,(function(e){var i=e.target;c(t,i,e)&&n.reconnectStart(e,t,Zh(e,t,u),s)}))},If.prototype.postExecute=function(e){var t=e.oldShape;this._modeling.removeShape(t)},If.prototype.execute=function(e){},If.prototype.revert=function(e){},If.prototype.createShape=function(e,t,n,i){return this._modeling.createShape(e,t,n,i)},If.prototype.reconnectStart=function(e,t,n,i){this._modeling.reconnectStart(e,t,n,i)},If.prototype.reconnectEnd=function(e,t,n,i){this._modeling.reconnectEnd(e,t,n,i)},Ff.$inject=["modeling"],Ff.prototype.execute=function(e){var t=e.shape,n=e.newBounds,i=e.minBounds;if(void 0===n.x||void 0===n.y||void 0===n.width||void 0===n.height)throw new Error("newBounds must have {x, y, width, height} properties");if(i&&(n.width<i.width||n.height<i.height))throw new Error("width and height cannot be less than minimum height and width");if(!i&&n.width<10||n.height<10)throw new Error("width and height cannot be less than 10px");return e.oldBounds={width:t.width,height:t.height,x:t.x,y:t.y},W(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},Ff.prototype.postExecute=function(e){var t=this._modeling,n=e.shape,i=e.oldBounds;!1!==(e.hints||{}).layout&&(E(n.incoming,(function(e){t.layoutConnection(e,{connectionEnd:Qh(e,n,i)})})),E(n.outgoing,(function(e){t.layoutConnection(e,{connectionStart:Zh(e,n,i)})})))},Ff.prototype.revert=function(e){var t=e.shape,n=e.oldBounds;return W(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},Vf.$inject=["modeling"],Vf.prototype.preExecute=function(e){var t=e.delta,n=e.direction,i=e.movingShapes,r=e.resizingShapes,o=e.start,a={};this.moveShapes(i,t),E(r,(function(e){a[e.id]=function(e){return{x:e.x,y:e.y,height:e.height,width:e.width}}(e)})),this.resizeShapes(r,t,n),this.updateConnectionWaypoints(function(e,t){var n=[];return E(e.concat(t),(function(i){var r=i.incoming,o=i.outgoing;E(r.concat(o),(function(i){var r=i.source,o=i.target;(Wm(e,r)||Wm(e,o)||Wm(t,r)||Wm(t,o))&&(Wm(n,i)||n.push(i))}))})),n}(i,r),t,n,o,i,r,a)},Vf.prototype.execute=function(){},Vf.prototype.revert=function(){},Vf.prototype.moveShapes=function(e,t){var n=this;E(e,(function(e){n._modeling.moveShape(e,t,null,{autoResize:!1,layout:!1,recurse:!1})}))},Vf.prototype.resizeShapes=function(e,t,n){var i=this;E(e,(function(e){var r=function(e,t,n){var i=e.x,r=e.y,o=e.width,a=e.height,s=n.x,c=n.y;switch(t){case"n":return{x:i,y:r+c,width:o,height:a-c};case"s":return{x:i,y:r,width:o,height:a+c};case"w":return{x:i+s,y:r,width:o-s,height:a};case"e":return{x:i,y:r,width:o+s,height:a};default:throw new Error("unknown direction: "+t)}}(e,n,t);i._modeling.resizeShape(e,r,null,{attachSupport:!1,autoResize:!1,layout:!1})}))},Vf.prototype.updateConnectionWaypoints=function(e,t,n,i,r,o,a){var s=this,c=r.concat(o);E(e,(function(e){var l=e.source,p=e.target,u=function(e){return R(e.waypoints,(function(e){return(e=Hf(e)).original&&(e.original=Hf(e.original)),e}))}(e),h=$f(n),d={labelBehavior:!1};Wf(c,l)&&Wf(c,p)?(u=R(u,(function(e){return Gf(e,i,n)&&(e[h]=e[h]+t[h]),e.original&&Gf(e.original,i,n)&&(e.original[h]=e.original[h]+t[h]),e})),s._modeling.updateWaypoints(e,u,{labelBehavior:!1})):(Wf(c,l)||Wf(c,p))&&(Wf(r,l)?d.connectionStart=Jh(e,l,t):Wf(r,p)?d.connectionEnd=ed(e,p,t):Wf(o,l)?d.connectionStart=Zh(e,l,a[l.id]):Wf(o,p)&&(d.connectionEnd=Qh(e,p,a[p.id])),s._modeling.layoutConnection(e,d))}))},Uf.$inject=["modeling"],Uf.prototype.execute=function(e){var t=e.shape,n=t.children;e.oldChildrenVisibility=qf(n),t.collapsed=!t.collapsed;var i=Kf(n,t.collapsed);return[t].concat(i)},Uf.prototype.revert=function(e){var t=e.shape,n=e.oldChildrenVisibility,i=Yf(t.children,n);return t.collapsed=!t.collapsed,[t].concat(i)},Xf.$inject=["modeling"],Xf.prototype.execute=function(e){var t=e.shape,n=e.newHost,i=t.host;return e.oldHost=i,e.attacherIdx=Zf(i,t),Qf(n,t),t.host=n,t},Xf.prototype.revert=function(e){var t=e.shape,n=e.newHost,i=e.oldHost,r=e.attacherIdx;return t.host=i,Zf(n,t),Qf(i,t,r),t},Jf.prototype.execute=function(e){var t=e.connection,n=e.newWaypoints;return e.oldWaypoints=t.waypoints,t.waypoints=n,t},Jf.prototype.revert=function(e){var t=e.connection,n=e.oldWaypoints;return t.waypoints=n,t},ev.$inject=["eventBus","elementFactory","commandStack"],ev.prototype.getHandlers=function(){return{"shape.append":vf,"shape.create":wf,"shape.delete":Rf,"shape.move":jf,"shape.resize":Ff,"shape.replace":If,"shape.toggleCollapse":Uf,spaceTool:Vf,"label.create":Ef,"connection.create":gf,"connection.delete":Pf,"connection.move":Tf,"connection.layout":Df,"connection.updateWaypoints":Jf,"connection.reconnect":Nf,"elements.create":bf,"elements.move":Bf,"elements.delete":Mf,"elements.distribute":Af,"elements.align":ff,"element.updateAttachment":Xf}},ev.prototype.registerHandlers=function(e){E(this.getHandlers(),(function(t,n){e.registerHandler(n,t)}))},ev.prototype.moveShape=function(e,t,n,i,r){"object"==typeof i&&(r=i,i=null);var o={shape:e,delta:t,newParent:n,newParentIndex:i,hints:r||{}};this._commandStack.execute("shape.move",o)},ev.prototype.updateAttachment=function(e,t){var n={shape:e,newHost:t};this._commandStack.execute("element.updateAttachment",n)},ev.prototype.moveElements=function(e,t,n,i){var r,o=(i=i||{}).attach,a=n;!0===o?(r=n,a=n.parent):!1===o&&(r=null);var s={shapes:e,delta:t,newParent:a,newHost:r,hints:i};this._commandStack.execute("elements.move",s)},ev.prototype.moveConnection=function(e,t,n,i,r){"object"==typeof i&&(r=i,i=void 0);var o={connection:e,delta:t,newParent:n,newParentIndex:i,hints:r||{}};this._commandStack.execute("connection.move",o)},ev.prototype.layoutConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.layout",n)},ev.prototype.createConnection=function(e,t,n,i,r,o){"object"==typeof n&&(o=r,r=i,i=n,n=void 0);var a={source:e,target:t,parent:r,parentIndex:n,connection:i=this._create("connection",i),hints:o};return this._commandStack.execute("connection.create",a),a.connection},ev.prototype.createShape=function(e,t,n,i,r){"number"!=typeof i&&(r=i,i=void 0);var o,a,s=(r=r||{}).attach;e=this._create("shape",e),s?(o=n.parent,a=n):o=n;var c={position:t,shape:e,parent:o,parentIndex:i,host:a,hints:r};return this._commandStack.execute("shape.create",c),c.shape},ev.prototype.createElements=function(e,t,n,i,r){d(e)||(e=[e]),"number"!=typeof i&&(r=i,i=void 0);var o={position:t,elements:e,parent:n,parentIndex:i,hints:r=r||{}};return this._commandStack.execute("elements.create",o),o.elements},ev.prototype.createLabel=function(e,t,n,i){n=this._create("label",n);var r={labelTarget:e,position:t,parent:i||e.parent,shape:n};return this._commandStack.execute("label.create",r),r.shape},ev.prototype.appendShape=function(e,t,n,i,r){r=r||{};var o={source:e,position:n,target:i,shape:t=this._create("shape",t),connection:r.connection,connectionParent:r.connectionParent,hints:r};return this._commandStack.execute("shape.append",o),o.shape},ev.prototype.removeElements=function(e){var t={elements:e};this._commandStack.execute("elements.delete",t)},ev.prototype.distributeElements=function(e,t,n){var i={groups:e,axis:t,dimension:n};this._commandStack.execute("elements.distribute",i)},ev.prototype.removeShape=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.delete",n)},ev.prototype.removeConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.delete",n)},ev.prototype.replaceShape=function(e,t,n){var i={oldShape:e,newData:t,hints:n||{}};return this._commandStack.execute("shape.replace",i),i.newShape},ev.prototype.alignElements=function(e,t){var n={elements:e,alignment:t};this._commandStack.execute("elements.align",n)},ev.prototype.resizeShape=function(e,t,n,i){var r={shape:e,newBounds:t,minBounds:n,hints:i};this._commandStack.execute("shape.resize",r)},ev.prototype.createSpace=function(e,t,n,i,r){var o={delta:n,direction:i,movingShapes:e,resizingShapes:t,start:r};this._commandStack.execute("spaceTool",o)},ev.prototype.updateWaypoints=function(e,t,n){var i={connection:e,newWaypoints:t,hints:n||{}};this._commandStack.execute("connection.updateWaypoints",i)},ev.prototype.reconnect=function(e,t,n,i,r){var o={connection:e,newSource:t,newTarget:n,dockingOrPoints:i,hints:r||{}};this._commandStack.execute("connection.reconnect",o)},ev.prototype.reconnectStart=function(e,t,n,i){i||(i={}),this.reconnect(e,t,e.target,n,W(i,{docking:"source"}))},ev.prototype.reconnectEnd=function(e,t,n,i){i||(i={}),this.reconnect(e,e.source,t,n,W(i,{docking:"target"}))},ev.prototype.connect=function(e,t,n,i){return this.createConnection(e,t,n||{},e.parent,i)},ev.prototype._create=function(e,t){return t instanceof Wn?t:this._elementFactory.create(e,t)},ev.prototype.toggleCollapse=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.toggleCollapse",n)},tv.$inject=["elementRegistry"],tv.prototype.execute=function(e){var t=e.element,n=e.moddleElement,i=e.properties;if(!n)throw new Error("<moddleElement> required");var r=e.changed||this.getVisualReferences(n).concat(t),o=e.oldProperties||function(e,t){return C(t,(function(t,n){return t[n]=e.get(n),t}),{})}(n,A(i));return nv(n,i),e.oldProperties=o,e.changed=r,r},tv.prototype.revert=function(e){var t=e.oldProperties,n=e.moddleElement,i=e.changed;return nv(n,t),i},tv.prototype.getVisualReferences=function(e){var t=this._elementRegistry;return kr(e,"bpmn:DataObject")?function(e,t){return t.filter((function(t){return kr(t,"bpmn:DataObjectReference")&&Tr(t).dataObjectRef===e}))}(e,t):[]};var iv="default",rv="id",ov="di",av={width:0,height:0};function sv(e,t,n,i,r){this._elementRegistry=e,this._moddle=t,this._translate=n,this._modeling=i,this._textRenderer=r}function cv(e,t){return rv in e&&e.id!==t.id}function lv(e,t){var n=e.businessObject,i=zr(e);E(t,(function(e,t){t!==ov?n.set(t,e):i&&function(e,t){E(t,(function(t,n){e.set(n,t)}))}(i,e)}))}sv.$inject=["elementRegistry","moddle","translate","modeling","textRenderer"],sv.prototype.execute=function(e){var t=e.element,n=[t],i=this._translate;if(!t)throw new Error(i("element required"));var r=this._elementRegistry,o=this._moddle.ids,a=t.businessObject,s=function(e){var t=W({},e);return pv.forEach((function(n){n in e&&(t[n]=Tr(t[n]))})),t}(e.properties),c=e.oldProperties||function(e,t){var n=A(t),i=e.businessObject,r=zr(e);return C(n,(function(e,n){return e[n]=n!==ov?i.get(n):function(e,t){return C(t,(function(t,n){return t[n]=e&&e.get(n),t}),{})}(r,A(t.di)),e}),{})}(t,s);return cv(s,a)&&(o.unclaim(a.id),r.updateId(t,s.id),o.claim(s.id,a)),iv in s&&(s.default&&n.push(r.get(s.default.id)),a.default&&n.push(r.get(a.default.id))),lv(t,s),e.oldProperties=c,e.changed=n,n},sv.prototype.postExecute=function(e){var t=e.element.label,n=t&&Tr(t).name;if(n){var i=this._textRenderer.getExternalLabelBounds(t,n);this._modeling.resizeShape(t,i,av)}},sv.prototype.revert=function(e){var t=e.element,n=e.properties,i=e.oldProperties,r=t.businessObject,o=this._elementRegistry,a=this._moddle.ids;return lv(t,i),cv(n,r)&&(a.unclaim(n.id),o.updateId(t,i.id),a.claim(i.id,r)),e.changed};var pv=["default"];function uv(e,t){this._canvas=e,this._modeling=t}function hv(e,t){this._modeling=e,this._spaceTool=t}function dv(e,t){this._modeling=e,this._translate=t}function mv(e,t){this._modeling=e,this._spaceTool=t}uv.$inject=["canvas","modeling"],uv.prototype.execute=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=t.getRootElement(),o=r.businessObject,a=o.$parent,s=zr(r);t.setRootElement(n),t.removeRootElement(r),Dt(a.rootElements,i),i.$parent=a,kt(a.rootElements,o),o.$parent=null,r.di=null,s.bpmnElement=i,n.di=s,e.oldRoot=r},uv.prototype.revert=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=e.oldRoot,o=r.businessObject,a=i.$parent,s=zr(n);t.setRootElement(r),t.removeRootElement(n),kt(a.rootElements,i),i.$parent=null,Dt(a.rootElements,o),o.$parent=a,n.di=null,s.bpmnElement=o,r.di=s},hv.$inject=["modeling","spaceTool"],hv.prototype.preExecute=function(e){var t=this._spaceTool,n=this._modeling,i=e.shape,r=e.location,o=Ip(i),a=o===i,s=a?i:i.parent;Lp(s).length||n.createShape({type:"bpmn:Lane"},{x:i.x+jp,y:i.y,width:i.width-jp,height:i.height},s);var c=[];wt(o,(function(e){return c.push(e),e.label&&c.push(e.label),e===i?[]:w(e.children,(function(e){return e!==i}))}));var l="top"===r?-120:120,p="top"===r?i.y:i.y+i.height,u=p+("top"===r?10:-10),h="top"===r?"n":"s",d=t.calculateAdjustments(c,"y",l,u);t.makeSpace(d.movingShapes,d.resizingShapes,{x:0,y:l},h,u),e.newLane=n.createShape({type:"bpmn:Lane"},{x:i.x+(a?jp:0),y:p-("top"===r?120:0),width:i.width-(a?jp:0),height:120},s)},dv.$inject=["modeling","translate"],dv.prototype.preExecute=function(e){var t=this._modeling,n=this._translate,i=e.shape,r=e.count,o=Lp(i),a=o.length;if(a>r)throw new Error(n("more than {count} child lanes",{count:r}));var s,c,l,p,u,h=Math.round(i.height/r);for(u=0;u<r;u++)s=i.y+u*h,c=u===r-1?i.height-h*u:h,l={x:i.x+jp,y:s,width:i.width-jp,height:c},u<a?t.resizeShape(o[u],l):(p={type:"bpmn:Lane"},t.createShape(p,l,i))},mv.$inject=["modeling","spaceTool"],mv.prototype.preExecute=function(e){var t=e.shape,n=e.newBounds;!1!==e.balanced?this.resizeBalanced(t,n):this.resizeSpace(t,n)},mv.prototype.resizeBalanced=function(e,t){var n=this._modeling,i=Fp(e,t);n.resizeShape(e,t),i.forEach((function(e){n.resizeShape(e.shape,e.newBounds)}))},mv.prototype.resizeSpace=function(e,t){var n,i,r,o,a,s=this._spaceTool,c=xn(e),l=Ap(xn(t),c),p=Ip(e),u=[],h=[];wt(p,(function(e){return u.push(e),(kr(e,"bpmn:Lane")||kr(e,"bpmn:Participant"))&&h.push(e),e.children})),(l.bottom||l.top)&&(n=l.bottom||l.top,i=e.y+(l.bottom?e.height:0)+(l.bottom?-10:10),r=l.bottom?"s":"n",o=l.top>0||l.bottom<0?-n:n,a=s.calculateAdjustments(u,"y",o,i),s.makeSpace(a.movingShapes,a.resizingShapes,{x:0,y:n},r)),(l.left||l.right)&&(n=l.right||l.left,i=e.x+(l.right?e.width:0)+(l.right?-10:100),r=l.right?"e":"w",o=l.left>0||l.right<0?-n:n,a=s.calculateAdjustments(h,"x",o,i),s.makeSpace(a.movingShapes,a.resizingShapes,{x:n,y:0},r))};var fv="flowNodeRef",vv="lanes";function gv(e){this._elementRegistry=e}function yv(e){this._moddle=e}gv.$inject=["elementRegistry"],gv.prototype.computeUpdates=function(e,t){var n=[],i=[],r={},o=[];function a(e){-1===n.indexOf(e)&&(o.push(e),n.push(e))}function s(e){return e.parent?function(e){var t=Ip(e);return r[t.id]||(r[t.id]=Np(t)),r[t.id]}(e).filter((function(t){return n=e,i=xn(t),r=n.x+n.width/2,o=n.y+n.height/2,r>i.left&&r<i.right&&o>i.top&&o<i.bottom;var n,i,r,o})).map((function(e){return e.businessObject})):[]}return t.forEach((function(e){var t=Ip(e);t&&-1===n.indexOf(t)&&(t.children.filter((function(e){return kr(e,"bpmn:FlowNode")})).forEach(a),n.push(t))})),e.forEach(a),o.forEach((function(e){var t=e.businessObject,n=t.get(vv).slice(),r=s(e);i.push({flowNode:t,remove:n,add:r})})),t.forEach((function(e){var t=e.businessObject;e.parent||t.get(fv).forEach((function(e){i.push({flowNode:e,remove:[t],add:[]})}))})),i},gv.prototype.execute=function(e){var t=e.updates;t||(t=e.updates=this.computeUpdates(e.flowNodeShapes,e.laneShapes)),t.forEach((function(e){var t=e.flowNode,n=t.get(vv);e.remove.forEach((function(e){kt(n,e),kt(e.get(fv),t)})),e.add.forEach((function(e){Dt(n,e),Dt(e.get(fv),t)}))}))},gv.prototype.revert=function(e){e.updates.forEach((function(e){var t=e.flowNode,n=t.get(vv);e.add.forEach((function(e){kt(n,e),kt(e.get(fv),t)})),e.remove.forEach((function(e){Dt(n,e),Dt(e.get(fv),t)}))}))},yv.$inject=["moddle"],yv.prototype.execute=function(e){var t=this._moddle.ids,n=e.id,i=e.element;e.claiming?t.claim(n,i):t.unclaim(n)},yv.prototype.revert=function(e){var t=this._moddle.ids,n=e.id,i=e.element;e.claiming?t.unclaim(n):t.claim(n,i)};var bv={fill:void 0,stroke:void 0};function _v(e){this._commandStack=e,this._normalizeColor=function(e){if(e){if(g(e)){var t=function(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle="transparent",t.fillStyle=e,/^#[0-9a-fA-F]{6}$/.test(t.fillStyle)?t.fillStyle:null}(e);if(t)return t}throw new Error("invalid color value: "+e)}}}_v.$inject=["commandStack"],_v.prototype.postExecute=function(e){var t=e.elements,n=e.colors||bv,i=this,r={};"fill"in n&&W(r,{"background-color":this._normalizeColor(n.fill)}),"stroke"in n&&W(r,{"border-color":this._normalizeColor(n.stroke)}),E(t,(function(e){var t=function(e){return!!e.waypoints}(e)?K(r,["border-color"]):r;!function(e){"border-color"in e&&(e.stroke=e["border-color"]);"background-color"in e&&(e.fill=e["background-color"])}(t),Mo(e)?i._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:zr(e).label,properties:{color:r["border-color"]}}):i._commandStack.execute("element.updateProperties",{element:e,properties:{di:t}})}))};var xv={width:0,height:0};function wv(e,t,n){function i(e,t){var i=e.label||e,r=e.labelTarget||e;return function(e,t,n){var i=e.businessObject,r=Jr(i);r&&("categoryValueRef"===r?i.categoryValueRef.value=t:i[r]=t)}(i,t),function(e,t){if(!Eo(e)){var i=zr(e);t&&!i.label&&(i.label=n.create("bpmndi:BPMNLabel")),!t&&i.label&&delete i.label}}(e,t),[i,r]}this.preExecute=function(t){var n=t.element,i=n.businessObject,r=t.newLabel;if(!Mo(n)&&Eo(n)&&!So(n)&&!Ev(r)){var o=Po(n);o={x:o.x,y:o.y+7},e.createLabel(n,o,{id:i.id+"_label",businessObject:i,di:n.di})}},this.execute=function(e){return e.oldLabel=eo(e.element),i(e.element,e.newLabel)},this.revert=function(e){return i(e.element,e.oldLabel)},this.postExecute=function(n){var i=n.element,r=i.label||i,o=n.newLabel,a=n.newBounds,s=n.hints||{};if(Mo(r)||kr(r,"bpmn:TextAnnotation"))if(Mo(r)&&Ev(o))!1!==s.removeShape&&e.removeShape(r,{unsetLabel:!1});else{var c=eo(r);void 0===a&&(a=t.getExternalLabelBounds(r,c)),a&&e.resizeShape(r,a,xv)}}}function Ev(e){return!e||!e.trim()}function Sv(e,t,n,i){ev.call(this,e,t,n),this._bpmnRules=i}function Cv(){}wv.$inject=["modeling","textRenderer","bpmnFactory"],r(Sv,ev),Sv.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],Sv.prototype.getHandlers=function(){var e=ev.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=tv,e["element.updateProperties"]=sv,e["canvas.updateRoot"]=uv,e["lane.add"]=hv,e["lane.resize"]=mv,e["lane.split"]=dv,e["lane.updateRefs"]=gv,e["id.updateClaim"]=yv,e["element.setColor"]=_v,e["element.updateLabel"]=wv,e},Sv.prototype.updateLabel=function(e,t,n,i){this._commandStack.execute("element.updateLabel",{element:e,newLabel:t,newBounds:n,hints:i||{}})},Sv.prototype.connect=function(e,t,n,i){var r=this._bpmnRules;if(n||(n=r.canConnect(e,t)),n)return this.createConnection(e,t,n,e.parent,i)},Sv.prototype.updateModdleProperties=function(e,t,n){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:n})},Sv.prototype.updateProperties=function(e,t){this._commandStack.execute("element.updateProperties",{element:e,properties:t})},Sv.prototype.resizeLane=function(e,t,n){this._commandStack.execute("lane.resize",{shape:e,newBounds:t,balanced:n})},Sv.prototype.addLane=function(e,t){var n={shape:e,location:t};return this._commandStack.execute("lane.add",n),n.newLane},Sv.prototype.splitLane=function(e,t){this._commandStack.execute("lane.split",{shape:e,count:t})},Sv.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"}),t={newRoot:e};return this._commandStack.execute("canvas.updateRoot",t),e},Sv.prototype.updateLaneRefs=function(e,t){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:t})},Sv.prototype.makeProcess=function(){var e={newRoot:this._create("root",{type:"bpmn:Process"})};this._commandStack.execute("canvas.updateRoot",e)},Sv.prototype.claimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t,claiming:!0})},Sv.prototype.unclaimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t})},Sv.prototype.setColor=function(e,t){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:t})},Cv.prototype.layoutConnection=function(e,t){return[(t=t||{}).connectionStart||Sn(t.source||e.source),t.connectionEnd||Sn(t.target||e.target)]};var Pv=Math.round,Mv={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function Rv(e,t,n){var i,r,o,a=Cn(t,e,5),s=n.split(":")[0],c=Pv((t.x-e.x)/2+e.x),l=Pv((t.y-e.y)/2+e.y),p=(o=a,{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[s].test(o)),u=/h|r|l/.test(s),h=!1;return p?(i=u?{x:c,y:e.y}:{x:e.x,y:l},r=u?"h:h":"v:v"):(r=u?"h:v":"v:h",function(e,t){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[t].test(e)}(a,s)?u?(h=l===e.y,i={x:e.x+20*(/l/.test(s)?-1:1),y:h?l+20:l}):i={x:(h=c===e.x)?c+20:c,y:e.y+20*(/t/.test(s)?-1:1)}:i={x:c,y:l}),{waypoints:kv(e,i,r).concat(i),directions:r,turnNextDirections:h}}function Av(e){return e.split(":").reverse().join(":")}function kv(e,t,n){if(!function(e){return e&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e)}(n=n||"h:h"))throw new Error("unknown directions: <"+n+">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }");if(Bv(n)){var i=function(e,t,n){return Rv(e,t,n)}(e,t,n),r=function(e,t,n){var i=Rv(t,e,Av(n));return{waypoints:i.waypoints.slice().reverse(),directions:Av(i.directions),turnNextDirections:i.turnNextDirections}}(e,t,n),o=function(e,t){var n=e.directions.split(":")[1],i=t.directions.split(":")[0];e.turnNextDirections&&(n="h"==n?"v":"h"),t.turnNextDirections&&(i="h"==i?"v":"h");var r=n+":"+i;return{waypoints:kv(e.waypoints[e.waypoints.length-1],t.waypoints[0],r),directions:r}}(i,r);return[].concat(i.waypoints,o.waypoints,r.waypoints)}return function(e,t,n){var i=Pv((t.x-e.x)/2+e.x),r=Pv((t.y-e.y)/2+e.y);if("h:v"===n)return[{x:t.x,y:e.y}];if("v:h"===n)return[{x:e.x,y:t.y}];if("h:h"===n)return[{x:i,y:e.y},{x:i,y:t.y}];if("v:v"===n)return[{x:e.x,y:r},{x:t.x,y:r}];throw new Error("invalid directions: can only handle varians of [hv]:[hv]")}(e,t,n)}function Dv(e,t,n,i,r){var o=S(r&&r.preferredLayouts||[],"straight")[0]||"h:h",a=Cn(e,t,Mv[o]||0),s=function(e,t){if(Bv(t))return t;switch(e){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return t}}(a,o);n=n||Sn(e),i=i||Sn(t);var c=s.split(":");return function(e,t,n){var i=kv(e,t,n);return i.unshift(e),i.push(t),Nv(i)}(jv(n,e,c[0],function(e){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[e]}(a)),jv(i,t,c[1],a),s)}function Tv(e,t,n,i,r,o){var a;return d(n)&&(r=n,o=i,n=Sn(e),i=Sn(t)),r=r||[],(a=-1!==(o=W({preferredLayouts:[]},o)).preferredLayouts.indexOf("straight")&&function(e,t,n,i,r){var o,a,s={};if(a=Cn(e,t),!/^(top|bottom|left|right)$/.test(a))return null;/top|bottom/.test(a)&&(o="x");/left|right/.test(a)&&(o="y");return"target"===r.preserveDocking?zv(o,i,e)?(s[o]=i[o],[{x:void 0!==s.x?s.x:n.x,y:void 0!==s.y?s.y:n.y,original:{x:void 0!==s.x?s.x:n.x,y:void 0!==s.y?s.y:n.y}},{x:i.x,y:i.y}]):null:zv(o,n,t)?(s[o]=n[o],[{x:n.x,y:n.y},{x:void 0!==s.x?s.x:i.x,y:void 0!==s.y?s.y:i.y,original:{x:void 0!==s.x?s.x:i.x,y:void 0!==s.y?s.y:i.y}}]):null}(e,t,n,i,o))||(a=o.connectionEnd&&function(e,t,n,i){var r=i.slice().reverse();return(r=Ov(e,t,n,r))?r.reverse():null}(t,e,i,r))?a:(a=o.connectionStart&&Ov(e,t,n,r))||(!o.connectionStart&&!o.connectionEnd&&r&&r.length?r:Dv(e,t,n,i,o))}function zv(e,t,n){return function(e,t,n){return e>=t&&e<=n}(t[e],n[e],n[e]+n[{x:"width",y:"height"}[e]])}function Ov(e,t,n,i){if(function(e){return e.length<3||!(e.length>4)&&!!_(e,(function(t,n){var i=e[n-1];return i&&zt(t,i)<3}))}(i))return null;var r,o=i[0],a=i.slice();return a[0]=n,a[1]=function(e,t,n){switch(Bt(t,e)){case"v":return{x:n.x,y:e.y};case"h":return{x:e.x,y:n.y}}return{x:e.x,y:e.y}}(a[1],o,n),(r=function(e,t,n){var i;for(i=e.length-2;0!==i;i--)if(jt(e[i],t,20)||jt(e[i],n,20))return e.slice(i);return e}(a,e,t))!==a&&(a=Ov(e,t,n,r)),a&&Bt(a)?null:a}function Bv(e){return e&&/t|r|b|l/.test(e)}function jv(e,t,n,i){if("h"===n&&(n=/left/.test(i)?"l":"r"),"v"===n&&(n=/top/.test(i)?"t":"b"),"t"===n)return{original:e,x:e.x,y:t.y};if("r"===n)return{original:e,x:t.x+t.width,y:e.y};if("b"===n)return{original:e,x:e.x,y:t.y+t.height};if("l"===n)return{original:e,x:t.x,y:e.y};throw new Error("unexpected dockingDirection: <"+n+">")}function Nv(e){return e.reduce((function(t,n,i){return Ot(t[t.length-1],e[i+1],n,0)||t.push(n),t}),[])}var Lv={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},Iv={top:"t",right:"r",bottom:"b",left:"l"};function Fv(){}function Vv(e,t){return kr(t,"bpmn:Participant")?"source":kr(e,"bpmn:Participant")?"target":Wv(t)?"source":Wv(e)||kr(t,"bpmn:Event")?"target":kr(e,"bpmn:Event")?"source":null}function Hv(e){return Wv(e)?"target":"source"}function $v(e,t){return e?e.original||e:Sn(t)}function Gv(e,t){return kr(t,"bpmn:Activity")&&kr(e,"bpmn:BoundaryEvent")&&t.businessObject.isForCompensation}function Wv(e){return kr(e,"bpmn:SubProcess")&&Yr(e)}function Uv(e,t){return e===t}function qv(e){var t=/right|left/.exec(e);return t&&t[0]}function Kv(e){var t=/top|bottom/.exec(e);return t&&t[0]}function Yv(e){return"right"===e||"left"===e}function Xv(e,t){var n=t.waypoints,i=n&&n.length&&Cn(n[0],e);return"top"===i?["t:r"]:"right"===i?["r:b"]:"left"===i?["l:t"]:["b:l"]}function Zv(e,t,n){var i,r,o=Sn(e),a=Sn(t),s=(r=(i=e).host,Cn(Sn(i),r,-10)),c=Uv(e.host,t),l=-1!==["top","right","bottom","left"].indexOf(s),p=Cn(a,o,{x:e.width/2+t.width/2,y:e.height/2+t.height/2});return c?function(e,t,n,i,r){var o,a=t?e:Kv(e),s=Iv[a];o=t?Yv(e)?Qv("y",n,i,r)?"h":"b":Qv("x",n,i,r)?"v":"l":"v";return[s+":"+o]}(s,l,e,t,n):[function(e,t,n){if(n)return Iv[e];if(Uv(Kv(e),Kv(t))||function(e,t){return Lv[e]===t}(qv(e),qv(t)))return Iv[Kv(e)];return Iv[qv(e)]}(s,p,l)+":"+function(e,t,n){if(n)return Yv(e)?function(e,t){var n=qv(e),i=Lv[n];return-1!==t.indexOf(i)}(e,t)||Uv(e,t)?"h":"v":function(e,t){var n=Kv(e),i=Lv[n];return-1!==t.indexOf(i)}(e,t)||Uv(e,t)?"v":"h";return Yv(t)||Uv(Kv(e),Kv(t))&&qv(t)?"h":"v"}(s,p,l)]}function Qv(e,t,n,i){return!(Jv(e,i,n,40)||Jv(e,i,{x:n.x+n.width,y:n.y+n.height},40)||Jv(e,i,Sn(t),40))}function Jv(e,t,n,i){return Math.abs(t[e]-n[e])<i}function eg(e){return W({original:e.point.original||e.point},e.actual)}function tg(e,t){this._elementRegistry=e,this._graphicsFactory=t}r(Fv,Cv),Fv.prototype.layoutConnection=function(e,t){t||(t={});var n,i,r=t.source||e.source,o=t.target||e.target,a=t.waypoints||e.waypoints,s=t.connectionStart,c=t.connectionEnd;return s||(s=$v(a&&a[0],r)),c||(c=$v(a&&a[a.length-1],o)),(kr(e,"bpmn:Association")||kr(e,"bpmn:DataAssociation"))&&a&&!Gv(r,o)?[].concat([s],a.slice(1,-1),[c]):(kr(e,"bpmn:MessageFlow")?n=function(e,t){return{preferredLayouts:["straight","v:v"],preserveDocking:Vv(e,t)}}(r,o):(kr(e,"bpmn:SequenceFlow")||Gv(r,o))&&(n=r===o?{preferredLayouts:Xv(r,e)}:kr(r,"bpmn:BoundaryEvent")?{preferredLayouts:Zv(r,o,c)}:Wv(r)||Wv(o)?function(e){return{preferredLayouts:["straight","h:h"],preserveDocking:Hv(e)}}(r):kr(r,"bpmn:Gateway")?{preferredLayouts:["v:h"]}:kr(o,"bpmn:Gateway")?{preferredLayouts:["h:v"]}:{preferredLayouts:["h:h"]}),n&&(i=Nv(Tv(r,o,s,c,a,n=W(n,t)))),i||[s,c])},tg.$inject=["elementRegistry","graphicsFactory"],tg.prototype.getCroppedWaypoints=function(e,t,n){t=t||e.source,n=n||e.target;var i=this.getDockingPoint(e,t,!0),r=this.getDockingPoint(e,n),o=e.waypoints.slice(i.idx+1,r.idx);return o.unshift(eg(i)),o.push(eg(r)),o},tg.prototype.getDockingPoint=function(e,t,n){var i,r,o=e.waypoints;return{point:r=o[i=n?0:o.length-1],actual:this._getIntersection(t,e,n)||r,idx:i}},tg.prototype._getIntersection=function(e,t,n){return Pn(this._getShapePath(e),this._getConnectionPath(t),n)},tg.prototype._getConnectionPath=function(e){return this._graphicsFactory.getConnectionPath(e)},tg.prototype._getShapePath=function(e){return this._graphicsFactory.getShapePath(e)},tg.prototype._getGfx=function(e){return this._elementRegistry.getGraphics(e)};var ng={__init__:["modeling","bpmnUpdater"],__depends__:[Vd,wm,Sm,Mm,cp,Am,Om,Lm,Hm,Jo,ca,lf],bpmnFactory:["type",pf],bpmnUpdater:["type",uf],elementFactory:["type",df],modeling:["type",Sv],layouter:["type",Fv],connectionDocking:["type",tg]},ig=Math.round;function rg(e,t,n,i,r){function o(e,t,n,i){return r.allowed("elements.move",{shapes:e,delta:t,position:n,target:i})}function a(e,n,i,r){if(m(i)&&(r=i,i=!1),!n.waypoints&&n.parent&&!Le(e.target).has("djs-hit-no-move")){var o=function(e){return{x:e.x+ig(e.width/2),y:e.y+ig(e.height/2)}}(n);return t.init(e,o,"shape.move",{cursor:"grabbing",autoActivate:i,data:{shape:n,context:r||{}}}),!0}}e.on("shape.move.start",1500,(function(e){var t=e.context,n=e.shape,r=i.get().slice();-1===r.indexOf(n)&&(r=[n]),W(t,{shapes:r=function(e){var t=T(e,"id");return w(e,(function(e){for(;e=e.parent;)if(t[e.id])return!1;return!0}))}(r),validatedShapes:r,shape:n})})),e.on("shape.move.start",1250,(function(e){var t=e.context,n=t.validatedShapes;if(!(t.canExecute=o(n)))return!1})),e.on("shape.move.move",500,(function(e){var t,n=e.context,i=n.validatedShapes,r=e.hover,a={x:e.dx,y:e.dy};t=o(i,a,{x:e.x,y:e.y},r),n.delta=a,n.canExecute=t,n.target=null!==t?r:null})),e.on("shape.move.end",(function(e){var t=e.context,i=t.delta,r=t.canExecute,o="attach"===r,a=t.shapes;if(!1===r)return!1;i.x=ig(i.x),i.y=ig(i.y),0===i.x&&0===i.y||n.moveElements(a,i,t.target,{primaryShape:t.shape,attach:o})})),e.on("element.mousedown",(function(e){if(Lo(e)){var t=Oo(e);if(!t)throw new Error("must supply DOM mousedown event");return a(t,e.element)}})),this.start=a}rg.$inject=["eventBus","dragging","modeling","selection","rules"];var og="djs-dragging",ag="drop-ok",sg="drop-not-ok",cg="new-parent",lg="attach-ok";function pg(e,t,n,i){function r(e){return function(e){return w(e,(function(t){return!function(e){return e.waypoints}(t)||_(e,j({id:t.source.id}))&&_(e,j({id:t.target.id}))}))}(o(e))}function o(e){var t=Et(e,!0),n=R(t,(function(e){return(e.incoming||[]).concat(e.outgoing||[])}));return s(t.concat(n))}function a(e,n){[lg,ag,sg,cg].forEach((function(i){i===n?t.addMarker(e,i):t.removeMarker(e,i)}))}e.on("shape.move.start",499,(function(e){var a=e.context,c=a.shapes,l=a.allDraggedElements,p=r(c);if(!a.dragGroup){var u=Ue("g");ze(u,n.cls("djs-drag-group",["no-events"])),ke(t.getActiveLayer(),u),a.dragGroup=u}p.forEach((function(e){i.addDragger(e,a.dragGroup)})),E(l=l?s([l,o(c)]):o(c),(function(e){t.addMarker(e,og)})),a.allDraggedElements=l,a.differentParents=1!==k(T(c,(function(e){return e.parent&&e.parent.id})))})),e.on("shape.move.move",499,(function(e){var t=e.context,n=t.dragGroup,i=t.target,r=t.shape.parent,o=t.canExecute;i&&("attach"===o?a(i,lg):t.canExecute&&i&&i.id!==r.id?a(i,cg):a(i,t.canExecute?ag:sg)),ii(n,e.dx,e.dy)})),e.on(["shape.move.out","shape.move.cleanup"],(function(e){var t=e.context.target;t&&a(t,null)})),e.on("shape.move.cleanup",(function(e){var n=e.context,i=n.allDraggedElements,r=n.dragGroup;E(i,(function(e){t.removeMarker(e,og)})),r&&Fe(r)})),this.makeDraggable=function(e,n,r){i.addDragger(n,e.dragGroup),r&&t.addMarker(n,og),e.allDraggedElements?e.allDraggedElements.push(n):e.allDraggedElements=[n]}}pg.$inject=["eventBus","canvas","styles","previewSupport"];var ug={__depends__:[Go,Jo,Uo,hc,sc,Pl],__init__:["move","movePreview"],move:["type",rg],movePreview:["type",pg]},hg=".djs-palette-toggle",dg=".entry",mg="open",fg="two-column";function vg(e,t){this._eventBus=e,this._canvas=t;var n=this;e.on("tool-manager.update",(function(e){var t=e.tool;n.updateToolHighlight(t)})),e.on("i18n.changed",(function(){n._update()})),e.on("diagram.init",(function(){n._diagramInitialized=!0,n._rebuild()}))}function gg(e,t){var n=t.getPaletteEntries();return v(n)?n(e):(E(n,(function(t,n){e[n]=t})),e)}vg.$inject=["eventBus","canvas"],vg.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("palette.getProviders",e,(function(e){e.providers.push(t)})),this._rebuild()},vg.prototype.getEntries=function(){return this._getProviders().reduce(gg,{})},vg.prototype._rebuild=function(){this._diagramInitialized&&(this._getProviders().length&&(this._container||this._init(),this._update()))},vg.prototype._init=function(){var e=this,t=this._eventBus,n=this._getParentContainer(),i=this._container=Ee(vg.HTML_MARKUP);n.appendChild(i),le(n).add("djs-palette-shown"),we.bind(i,".djs-palette-toggle, .entry","click",(function(t){var n=t.delegateTarget;if(me(n,hg))return e.toggle();e.trigger("click",t)})),be.bind(i,"mousedown",(function(e){e.stopPropagation()})),we.bind(i,dg,"dragstart",(function(t){e.trigger("dragstart",t)})),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:i})},vg.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},vg.prototype._toggleState=function(e){e=e||{};var t,n=this._getParentContainer(),i=this._container,r=this._eventBus,o=le(i),a=le(n);t="twoColumn"in e?e.twoColumn:this._needsCollapse(n.clientHeight,this._entries||{}),o.toggle(fg,t),a.toggle("djs-palette-two-column",t),"open"in e&&(o.toggle(mg,e.open),a.toggle("djs-palette-open",e.open)),r.fire("palette.changed",{twoColumn:t,open:this.isOpen()})},vg.prototype._update=function(){var e=Pe(".djs-palette-entries",this._container),t=this._entries=this.getEntries();ue(e),E(t,(function(t,n){var i=t.group||"default",r=Pe("[data-group="+ha(i)+"]",e);r||(re(r=Ee('<div class="group"></div>'),"data-group",i),e.appendChild(r));var o=t.html||(t.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),a=Ee(o);if(r.appendChild(a),!t.separator&&(re(a,"data-action",n),t.title&&re(a,"title",t.title),t.className&&function(e,t){var n=le(e);(d(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(a,t.className),t.imageUrl)){var s=Ee("<img>");re(s,"src",t.imageUrl),a.appendChild(s)}})),this.open()},vg.prototype.trigger=function(e,t,n){var i,r,o,a=this._entries,s=t.delegateTarget||t.target;if(!s)return t.preventDefault();(i=a[re(s,"data-action")])&&(r=i.action,o=t.originalEvent||t,v(r)?"click"===e&&r(o,n):r[e]&&r[e](o,n),t.preventDefault())},vg.prototype._layoutChanged=function(){this._toggleState({})},vg.prototype._needsCollapse=function(e,t){return e<46*Object.keys(t).length+50},vg.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},vg.prototype.open=function(){this._toggleState({open:!0})},vg.prototype.toggle=function(e){this.isOpen()?this.close():this.open()},vg.prototype.isActiveTool=function(e){return e&&this._activeTool===e},vg.prototype.updateToolHighlight=function(e){var t;this._toolsContainer||(t=Pe(".djs-palette-entries",this._container),this._toolsContainer=Pe("[data-group=tools]",t)),E(this._toolsContainer.children,(function(t){var n=t.getAttribute("data-action");if(n){var i=le(t);n=n.replace("-tool",""),i.contains("entry")&&n===e?i.add("highlighted-entry"):i.remove("highlighted-entry")}}))},vg.prototype.isOpen=function(){return le(this._container).has(mg)},vg.prototype._getParentContainer=function(){return this._canvas.getContainer()},vg.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';var yg={__init__:["palette"],palette:["type",vg]},bg="crosshair";function _g(e,t,n,i,r,o,a){this._selection=r,this._dragging=n,this._mouse=a;var s=this,c=function(e){var n,i=t.getActiveLayer();ze(n=e.frame=Ue("rect"),{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),ke(i,n)},l=function(e){var t=e.frame,n=e.bbox;ze(t,{x:n.x,y:n.y,width:n.width,height:n.height})},p=function(e){e.frame&&Fe(e.frame)};o.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),e.on("lasso.selection.end",(function(t){var n=t.originalEvent.target;(t.hover||n instanceof SVGElement)&&e.once("lasso.selection.ended",(function(){s.activateLasso(t.originalEvent,!0)}))})),e.on("lasso.end",(function(e){var t=xg(e),n=i.filter((function(e){return e}));s.select(n,t)})),e.on("lasso.start",(function(e){var t=e.context;t.bbox=xg(e),c(t)})),e.on("lasso.move",(function(e){var t=e.context;t.bbox=xg(e),l(t)})),e.on("lasso.cleanup",(function(e){var t=e.context;p(t)})),e.on("element.mousedown",1500,(function(e){if(Fo(e))return s.activateLasso(e.originalEvent),!0}))}function xg(e){var t={x:e.x-e.dx,y:e.y-e.dy},n={x:e.x,y:e.y};return t.x<=n.x&&t.y<n.y||t.x<n.x&&t.y<=n.y?{x:t.x,y:t.y,width:n.x-t.x,height:n.y-t.y}:t.x>=n.x&&t.y<n.y||t.x>n.x&&t.y<=n.y?{x:n.x,y:t.y,width:t.x-n.x,height:n.y-t.y}:t.x<=n.x&&t.y>n.y||t.x<n.x&&t.y>=n.y?{x:t.x,y:n.y,width:n.x-t.x,height:t.y-n.y}:t.x>=n.x&&t.y>n.y||t.x>n.x&&t.y>=n.y?{x:n.x,y:n.y,width:t.x-n.x,height:t.y-n.y}:{x:n.x,y:n.y,width:0,height:0}}_g.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],_g.prototype.activateLasso=function(e,t){this._dragging.init(e,"lasso",{autoActivate:t,cursor:bg,data:{context:{}}})},_g.prototype.activateSelection=function(e,t){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:t,cursor:bg,data:{context:{}}})},_g.prototype.select=function(e,t){var n=function(e,t){var n={};return E(e,(function(e){var i=e;i.waypoints&&(i=St(i)),!f(t.y)&&i.x>t.x&&(n[e.id]=e),!f(t.x)&&i.y>t.y&&(n[e.id]=e),i.x>t.x&&i.y>t.y&&(f(t.width)&&f(t.height)&&i.width+i.x<t.width+t.x&&i.height+i.y<t.height+t.y?n[e.id]=e:f(t.width)&&f(t.height)||(n[e.id]=e))})),n}(e,t);this._selection.select(D(n))},_g.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},_g.prototype.isActive=function(){var e=this._dragging.context();return e&&/^lasso/.test(e.prefix)};var wg={__depends__:[Gm,Vl],__init__:["lassoTool"],lassoTool:["type",_g]},Eg=1500,Sg="grab";function Cg(e,t,n,i,r,o){this._dragging=n,this._mouse=o;var a=this,s=i.get("keyboard",!1);r.registerTool("hand",{tool:"hand",dragging:"hand.move"}),e.on("element.mousedown",Eg,(function(e){if(Io(e))return a.activateMove(e.originalEvent,!0),!1})),s&&s.addListener(Eg,(function(e){if(Pg(e.keyEvent)&&!a.isActive()){var t=a._mouse.getLastMoveEvent();a.activateMove(t,!!t)}}),"keyboard.keydown"),s&&s.addListener(Eg,(function(e){Pg(e.keyEvent)&&a.isActive()&&a.toggle()}),"keyboard.keyup"),e.on("hand.end",(function(t){var n=t.originalEvent.target;if(!(t.hover||n instanceof SVGElement))return!1;e.once("hand.ended",(function(){a.activateMove(t.originalEvent,{reactivate:!0})}))})),e.on("hand.move.move",(function(e){var n=t.viewbox().scale;t.scroll({dx:e.dx*n,dy:e.dy*n})})),e.on("hand.move.end",(function(t){var n=t.context.reactivate;return!Io(t)&&n&&e.once("hand.move.ended",(function(e){a.activateHand(e.originalEvent,!0,!0)})),!1}))}function Pg(e){return za(" ",e)}Cg.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"],Cg.prototype.activateMove=function(e,t,n){"object"==typeof t&&(n=t,t=!1),this._dragging.init(e,"hand.move",{autoActivate:t,cursor:Sg,data:{context:n||{}}})},Cg.prototype.activateHand=function(e,t,n){this._dragging.init(e,"hand",{trapClick:!1,autoActivate:t,cursor:Sg,data:{context:{reactivate:n}}})},Cg.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateHand(e,!!e)},Cg.prototype.isActive=function(){var e=this._dragging.context();return!!e&&/^(hand|hand\.move)$/.test(e.prefix)};var Mg={__depends__:[Gm,Vl],__init__:["handTool"],handTool:["type",Cg]},Rg="connect-ok",Ag="connect-not-ok";function kg(e,t,n,i,r,o,a){var s=this;this._dragging=t,this._rules=o,this._mouse=a,r.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),e.on("global-connect.hover",(function(e){var t=e.context,n=e.hover,r=t.canStartConnect=s.canStartConnect(n);null!==r&&(t.startTarget=n,i.addMarker(n,r?Rg:Ag))})),e.on(["global-connect.out","global-connect.cleanup"],(function(e){var t=e.context.startTarget,n=e.context.canStartConnect;t&&i.removeMarker(t,n?Rg:Ag)})),e.on(["global-connect.ended"],(function(t){var i=t.context.startTarget,r={x:t.x,y:t.y};if(s.canStartConnect(i))return e.once("element.out",(function(){e.once(["connect.ended","connect.canceled"],(function(){e.fire("global-connect.drag.ended")})),n.start(null,i,r)})),!1}))}kg.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"],kg.prototype.start=function(e,t){this._dragging.init(e,"global-connect",{autoActivate:t,trapClick:!1,data:{context:{}}})},kg.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();return this.start(e,!!e)},kg.prototype.isActive=function(){var e=this._dragging.context();return e&&/^global-connect/.test(e.prefix)},kg.prototype.canStartConnect=function(e){return this._rules.allowed("connection.start",{source:e})};var Dg={__depends__:[dl,hc,sc,Gm,Vl],globalConnect:["type",kg]};function Tg(e,t,n,i,r,o,a,s){this._palette=e,this._create=t,this._elementFactory=n,this._spaceTool=i,this._lassoTool=r,this._handTool=o,this._globalConnect=a,this._translate=s,e.registerProvider(this)}Tg.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"],Tg.prototype.getPaletteEntries=function(e){var t={},n=this._create,i=this._elementFactory,r=this._spaceTool,o=this._lassoTool,a=this._handTool,s=this._globalConnect,c=this._translate;function l(e,t,r,o,a){function s(t){var r=i.createShape(W({type:e},a));a&&(zr(r).isExpanded=a.isExpanded);n.start(t,r)}var l=e.replace(/^bpmn:/,"");return{group:t,className:r,title:o||c("Create {type}",{type:l}),action:{dragstart:s,click:s}}}function p(e){var t=i.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),r=i.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:t});n.start(e,[t,r],{hints:{autoSelect:[t]}})}function u(e){n.start(e,i.createParticipantShape())}return W(t,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:c("Activate the hand tool"),action:{click:function(e){a.activateHand(e)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:c("Activate the lasso tool"),action:{click:function(e){o.activateSelection(e)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:c("Activate the create/remove space tool"),action:{click:function(e){r.activateSelection(e)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:c("Activate the global connect tool"),action:{click:function(e){s.start(e)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":l("bpmn:StartEvent","event","bpmn-icon-start-event-none",c("Create StartEvent")),"create.intermediate-event":l("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",c("Create Intermediate/Boundary Event")),"create.end-event":l("bpmn:EndEvent","event","bpmn-icon-end-event-none",c("Create EndEvent")),"create.exclusive-gateway":l("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",c("Create Gateway")),"create.task":l("bpmn:Task","activity","bpmn-icon-task",c("Create Task")),"create.data-object":l("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",c("Create DataObjectReference")),"create.data-store":l("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",c("Create DataStoreReference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:c("Create expanded SubProcess"),action:{dragstart:p,click:p}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:c("Create Pool/Participant"),action:{dragstart:u,click:u}},"create.group":l("bpmn:Group","artifact","bpmn-icon-group",c("Create Group"))}),t};var zg={__depends__:[yg,Nl,lf,wg,Mg,Dg,xo],__init__:["paletteProvider"],paletteProvider:["type",Tg]};function Og(e,t,n,i,r){la.call(this,e),e.on("shape.move.move",250,(function(e){var o=e.context,a=o.canExecute;o.visualReplacements||(o.visualReplacements={}),a&&a.replacements?function(e){E(e.canExecute.replacements,(function(o){var a=o.oldElementId,s={type:o.newElementType};if(!e.visualReplacements[a]){var c=t.get(a);W(s,{x:c.x,y:c.y});var l=n.createShape(s);i.addShape(l,c.parent);var p=Pe('[data-element-id="'+ha(c.id)+'"]',e.dragGroup);p&&ze(p,{display:"none"});var u=r.addDragger(l,e.dragGroup);e.visualReplacements[a]=u,i.removeShape(l)}}))}(o):function(e){var t=e.visualReplacements;E(t,(function(n,i){var r=Pe('[data-element-id="'+ha(i)+'"]',e.dragGroup);r&&ze(r,{display:"inline"}),n.remove(),t[i]&&delete t[i]}))}(o)}))}Og.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"],r(Og,la);var Bg={__depends__:[Pl],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",Og]},jg=40,Ng=["x","y"],Lg=Math.abs;function Ig(e){e.on(["connect.hover","connect.move","connect.end"],1250,(function(e){var t=e.context,n=t.canExecute,i=t.start,r=t.hover,o=t.source,a=t.target;e.originalEvent&&Ta(e.originalEvent)||(t.initialConnectionStart||(t.initialConnectionStart=t.connectionStart),n&&r&&function(e,t,n){Ng.forEach((function(i){var r=Hg(i,t);e[i]<t[i]+n?nl(e,i,t[i]+n):e[i]>t[i]+r-n&&nl(e,i,t[i]+r-n)}))}(e,r,function(e){return kr(e,"bpmn:Task")?10:20}(r)),r&&function(e,t){return M(t,(function(t){return Vg(e,t)}))}(n,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(t.connectionStart=el(i),Dr(r,["bpmn:Event","bpmn:Gateway"])&&Fg(e,el(r)),Dr(r,["bpmn:Task","bpmn:SubProcess"])&&function(e,t){var n=el(t);Ng.forEach((function(i){(function(e,t,n){return e[n]>t[n]+20&&e[n]<t[n]+Hg(n,t)-20})(e,t,i)&&nl(e,i,n[i])}))}(e,r),kr(o,"bpmn:BoundaryEvent")&&a===o.host&&function(e){var t=e.context,n=t.source,i=t.target;if(function(e){var t=e.hover,n=e.source;return t&&n&&t===n}(t))return;var r=el(n),o=Cn(r,i,-10),a=[];/top|bottom/.test(o)&&a.push("x");/left|right/.test(o)&&a.push("y");a.forEach((function(t){var n,i=e[t];Lg(i-r[t])<jg&&(n=i>r[t]?r[t]+jg:r[t]-jg,nl(e,t,n))}))}(e)):Vg(n,"bpmn:MessageFlow")?(kr(i,"bpmn:Event")&&(t.connectionStart=el(i)),kr(r,"bpmn:Event")&&Fg(e,el(r))):t.connectionStart=t.initialConnectionStart)}))}function Fg(e,t){nl(e,"x",t.x),nl(e,"y",t.y)}function Vg(e,t){return e&&e.type===t}function Hg(e,t){return"x"===e?t.width:t.height}function $g(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function Gg(e){this._snapValues={}}Ig.$inject=["eventBus"],$g.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]},$g.prototype.setSnapOrigin=function(e,t){this._snapOrigins[e]=t,-1===this._snapLocations.indexOf(e)&&this._snapLocations.push(e)},$g.prototype.addDefaultSnap=function(e,t){var n=this._defaultSnaps[e];n||(n=this._defaultSnaps[e]=[]),n.push(t)},$g.prototype.getSnapLocations=function(){return this._snapLocations},$g.prototype.setSnapLocations=function(e){this._snapLocations=e},$g.prototype.pointsForTarget=function(e){var t=e.id||e,n=this._targets[t];return n||(n=this._targets[t]=new Gg).initDefaults(this._defaultSnaps),n},Gg.prototype.add=function(e,t){var n=this._snapValues[e];n||(n=this._snapValues[e]={x:[],y:[]}),-1===n.x.indexOf(t.x)&&n.x.push(t.x),-1===n.y.indexOf(t.y)&&n.y.push(t.y)},Gg.prototype.snap=function(e,t,n,i){var r=this._snapValues[t];return r&&function(e,t,n){var i,r;for(n=void 0===n?10:n,i=0;i<t.length;i++)if(r=t[i],Xc(r-e)<=n)return r}(e[n],r[n],i)},Gg.prototype.initDefaults=function(e){var t=this;E(e||{},(function(e,n){E(e,(function(e){t.add(n,e)}))}))};function Wg(e,t,n){var i=this;this._elementRegistry=e,t.on(["create.start","shape.move.start"],(function(e){i.initSnap(e)})),t.on(["create.move","create.end","shape.move.move","shape.move.end"],1250,(function(e){var t=e.context,r=t.shape,o=t.snapContext,a=t.target;if((!e.originalEvent||!Ta(e.originalEvent))&&!tl(e)&&a){var s=o.pointsForTarget(a);s.initialized||((s=i.addSnapTargetPoints(s,r,a)).initialized=!0),n.snap(e,s)}})),t.on(["create.cleanup","shape.move.cleanup"],(function(){n.hide()}))}function Ug(e){return!!e.labelTarget}Wg.$inject=["elementRegistry","eventBus","snapping"],Wg.prototype.initSnap=function(e){var t,n=this._elementRegistry,i=e.context,r=i.shape,o=i.snapContext;o||(o=i.snapContext=new $g);var a=(t=n.get(r.id)?el(r,e):{x:e.x+el(r).x,y:e.y+el(r).y}).x-r.width/2,s=t.y-r.height/2,c=t.x+r.width/2,l=t.y+r.height/2;return o.setSnapOrigin("mid",{x:t.x-e.x,y:t.y-e.y}),Ug(r)||(o.setSnapOrigin("top-left",{x:a-e.x,y:s-e.y}),o.setSnapOrigin("bottom-right",{x:c-e.x,y:l-e.y})),o},Wg.prototype.addSnapTargetPoints=function(e,t,n){return E(this.getSnapTargets(t,n),(function(n){if(Ug(n))Ug(t)&&e.add("mid",el(n));else if(n.waypoints){if(n.waypoints.length<3)return;E(n.waypoints.slice(1,-1),(function(t){e.add("mid",t)}))}else{e.add("mid",el(n))}})),f(t.x)&&f(t.y)?(this._elementRegistry.get(t.id)&&e.add("mid",el(t)),e):e},Wg.prototype.getSnapTargets=function(e,t){return il(t).filter((function(e){return!e.hidden}))};function qg(e,t){t.invoke(Wg,this),e.on(["create.move","create.end"],1500,Kg),e.on(["create.move","create.end","shape.move.move","shape.move.end"],1500,(function(e){var t=e.context,n=t.canExecute,i=t.target;n&&("attach"===n||n.attach)&&!tl(e)&&function(e,t){var n,i=xn(t),r=Hd(e,t),o=e.context.shape;n=o.parent?{x:0,y:0}:Sn(o);/top/.test(r)?nl(e,"y",i.top-n.y):/bottom/.test(r)&&nl(e,"y",i.bottom-n.y);/left/.test(r)?nl(e,"x",i.left-n.x):/right/.test(r)&&nl(e,"x",i.right-n.x)}(e,i)}))}function Kg(e){var t=e.context.createConstraints;if(t){var n=t.top,i=t.right,r=t.bottom,o=t.left;(o&&o>=e.x||i&&i<=e.x)&&nl(e,"x",e.x),(n&&n>=e.y||r&&r<=e.y)&&nl(e,"y",e.y)}}function Yg(e,t){return-1!==e.indexOf(t)}function Xg(e,t,n){return t?{x:e.x-n.x,y:e.y-n.y}:{x:e.x,y:e.y}}r(qg,Wg),qg.$inject=["eventBus","injector"],qg.prototype.initSnap=function(e){var t=Wg.prototype.initSnap.call(this,e),n=e.shape,i=!!this._elementRegistry.get(n.id);return E(n.outgoing,(function(n){var r=n.waypoints[0];r=r.original||r,t.setSnapOrigin(n.id+"-docking",Xg(r,i,e))})),E(n.incoming,(function(n){var r=n.waypoints[n.waypoints.length-1];r=r.original||r,t.setSnapOrigin(n.id+"-docking",Xg(r,i,e))})),kr(n,"bpmn:Participant")&&t.setSnapLocations(["top-left","bottom-right","mid"]),t},qg.prototype.addSnapTargetPoints=function(e,t,n){Wg.prototype.addSnapTargetPoints.call(this,e,t,n);var i=this.getSnapTargets(t,n);E(i,(function(n){var i;(function(e){if(kr(e,"bpmn:SubProcess")&&Yr(e))return!0;return kr(e,"bpmn:Participant")}(n)||(i="bpmn:TextAnnotation",[t,n].every((function(e){return kr(e,i)}))))&&(e.add("top-left",Qc(n)),e.add("bottom-right",Jc(n)))}));var r=this._elementRegistry;return E(t.incoming,(function(n){if(r.get(t.id)){Yg(i,n.source)||e.add("mid",Sn(n.source));var o=n.waypoints[0];e.add(n.id+"-docking",o.original||o)}})),E(t.outgoing,(function(n){if(r.get(t.id)){Yg(i,n.target)||e.add("mid",Sn(n.target));var o=n.waypoints[n.waypoints.length-1];e.add(n.id+"-docking",o.original||o)}})),kr(n,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,t,n.parent)),e},qg.prototype.getSnapTargets=function(e,t){return Wg.prototype.getSnapTargets.call(this,e,t).filter((function(e){return!kr(e,"bpmn:Lane")}))};function Zg(e,t){var n=this;e.on(["resize.start"],(function(e){n.initSnap(e)})),e.on(["resize.move","resize.end"],1250,(function(e){var i=e.context,r=i.shape,o=r.parent,a=i.direction,s=i.snapContext;if(!(e.originalEvent&&Ta(e.originalEvent)||tl(e))){var c=s.pointsForTarget(o);c.initialized||((c=n.addSnapTargetPoints(c,r,o,a)).initialized=!0),function(e){return"n"===e||"s"===e}(a)&&nl(e,"x",e.x),function(e){return"e"===e||"w"===e}(a)&&nl(e,"y",e.y),t.snap(e,c)}})),e.on(["resize.cleanup"],(function(){t.hide()}))}function Qg(e,t){var n=Sn(e),i=xn(e),r={x:n.x,y:n.y};return-1!==t.indexOf("n")?r.y=i.top:-1!==t.indexOf("s")&&(r.y=i.bottom),-1!==t.indexOf("e")?r.x=i.right:-1!==t.indexOf("w")&&(r.x=i.left),r}Zg.prototype.initSnap=function(e){var t=e.context,n=t.shape,i=t.direction,r=t.snapContext;r||(r=t.snapContext=new $g);var o=Qg(n,i);return r.setSnapOrigin("corner",{x:o.x-e.x,y:o.y-e.y}),r},Zg.prototype.addSnapTargetPoints=function(e,t,n,i){return E(this.getSnapTargets(t,n),(function(t){e.add("corner",Jc(t)),e.add("corner",Qc(t))})),e.add("corner",Qg(t,i)),e},Zg.$inject=["eventBus","snapping"],Zg.prototype.getSnapTargets=function(e,t){return il(t).filter((function(t){return!(n=t,i=e,n.host===i||function(e){return!!e.waypoints}(t)||function(e){return!!e.hidden}(t)||function(e){return!!e.labelTarget}(t));var n,i}))};function Jg(e){this._canvas=e,this._asyncHide=V(H(this.hide,this),1e3)}Jg.$inject=["canvas"],Jg.prototype.snap=function(e,t){var n=e.context.snapContext,i=n.getSnapLocations(),r={x:tl(e,"x"),y:tl(e,"y")};E(i,(function(i){var o=n.getSnapOrigin(i),a={x:e.x+o.x,y:e.y+o.y};if(E(["x","y"],(function(e){var n;r[e]||void 0!==(n=t.snap(a,i,e,7))&&(r[e]={value:n,originValue:n-o[e]})})),r.x&&r.y)return!1})),this.showSnapLine("vertical",r.x&&r.x.value),this.showSnapLine("horizontal",r.y&&r.y.value),E(["x","y"],(function(t){var n=r[t];m(n)&&nl(e,t,n.originValue)}))},Jg.prototype._createLine=function(e){var t=this._canvas.getLayer("snap"),n=Ue("path");return ze(n,{d:"M0,0 L0,0"}),Le(n).add("djs-snap-line"),ke(t,n),{update:function(t){f(t)?ze(n,"horizontal"===e?{d:"M-100000,"+t+" L+100000,"+t,display:""}:{d:"M "+t+",-100000 L "+t+", +100000",display:""}):ze(n,{display:"none"})}}},Jg.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},Jg.prototype.showSnapLine=function(e,t){var n=this.getSnapLine(e);n&&n.update(t),this._asyncHide()},Jg.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]},Jg.prototype.hide=function(){E(this._snapLines,(function(e){e.update()}))};var ey={__depends__:[{__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",Wg],resizeSnapping:["type",Zg],snapping:["type",Jg]}],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",Ig],createMoveSnapping:["type",qg]};function ty(e,t,n,i){this._open=!1,this._results=[],this._eventMaps=[],this._canvas=e,this._eventBus=t,this._overlays=n,this._selection=i,this._container=Ee(ty.BOX_HTML),this._searchInput=Pe(ty.INPUT_SELECTOR,this._container),this._resultsContainer=Pe(ty.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),t.on(["canvas.destroy","diagram.destroy"],this.close,this)}function ny(e,t,n){var i=function(e){var t="";return e.forEach((function(e){e.matched?t+='<strong class="'+ty.RESULT_HIGHLIGHT_CLASS+'">'+ma(e.matched)+"</strong>":t+=ma(e.normal)})),""!==t?t:null}(t),r=Ee(n);r.innerHTML=i,e.appendChild(r)}ty.$inject=["canvas","eventBus","overlays","selection"],ty.prototype._bindEvents=function(){var e=this;function t(t,n,i,r){e._eventMaps.push({el:t,type:i,listener:we.bind(t,n,i,r)})}t(document,"html","click",(function(t){e.close()})),t(this._container,ty.INPUT_SELECTOR,"click",(function(e){e.stopPropagation(),e.delegateTarget.focus()})),t(this._container,ty.RESULT_SELECTOR,"mouseover",(function(t){t.stopPropagation(),e._scrollToNode(t.delegateTarget),e._preselect(t.delegateTarget)})),t(this._container,ty.RESULT_SELECTOR,"click",(function(t){t.stopPropagation(),e._select(t.delegateTarget)})),t(this._container,ty.INPUT_SELECTOR,"keydown",(function(e){38===e.keyCode&&e.preventDefault(),40===e.keyCode&&e.preventDefault()})),t(this._container,ty.INPUT_SELECTOR,"keyup",(function(t){if(27===t.keyCode)return e.close();if(13===t.keyCode){var n=e._getCurrentResult();return n?e._select(n):e.close()}return 38===t.keyCode?e._scrollToDirection(!0):40===t.keyCode?e._scrollToDirection():void(37!==t.keyCode&&39!==t.keyCode&&e._search(t.delegateTarget.value))}))},ty.prototype._unbindEvents=function(){this._eventMaps.forEach((function(e){we.unbind(e.el,e.type,e.listener)}))},ty.prototype._search=function(e){var t=this;if(this._clearResults(),e&&""!==e){var n=this._searchProvider.find(e);if(n.length){n.forEach((function(e){var n=e.element.id,i=t._createResultNode(e,n);t._results[n]={element:e.element,node:i}}));var i=Pe(ty.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}}},ty.prototype._scrollToDirection=function(e){var t=this._getCurrentResult();if(t){var n=e?t.previousElementSibling:t.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}},ty.prototype._scrollToNode=function(e){if(e&&e!==this._getCurrentResult()){var t=e.offsetTop,n=this._resultsContainer.scrollTop,i=t-this._resultsContainer.clientHeight+e.clientHeight;t<n?this._resultsContainer.scrollTop=t:n<i&&(this._resultsContainer.scrollTop=i)}},ty.prototype._clearResults=function(){ue(this._resultsContainer),this._results=[],this._resetOverlay(),this._eventBus.fire("searchPad.cleared")},ty.prototype._getCurrentResult=function(){return Pe(ty.RESULT_SELECTED_SELECTOR,this._resultsContainer)},ty.prototype._createResultNode=function(e,t){var n=Ee(ty.RESULT_HTML);return e.primaryTokens.length>0&&ny(n,e.primaryTokens,ty.RESULT_PRIMARY_HTML),ny(n,e.secondaryTokens,ty.RESULT_SECONDARY_HTML),re(n,ty.RESULT_ID_ATTRIBUTE,t),this._resultsContainer.appendChild(n),n},ty.prototype.registerProvider=function(e){this._searchProvider=e},ty.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._bindEvents(),this._open=!0,le(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},ty.prototype.close=function(){this.isOpen()&&(this._unbindEvents(),this._open=!1,le(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._resetOverlay(),this._eventBus.fire("searchPad.closed"))},ty.prototype.toggle=function(){this.isOpen()?this.close():this.open()},ty.prototype.isOpen=function(){return this._open},ty.prototype._preselect=function(e){var t=this._getCurrentResult();if(e!==t){t&&le(t).remove(ty.RESULT_SELECTED_CLASS);var n=re(e,ty.RESULT_ID_ATTRIBUTE),i=this._results[n].element;le(e).add(ty.RESULT_SELECTED_CLASS),this._resetOverlay(i),this._canvas.scrollToElement(i,{top:400}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}},ty.prototype._select=function(e){var t=re(e,ty.RESULT_ID_ATTRIBUTE),n=this._results[t].element;this.close(),this._resetOverlay(),this._canvas.scrollToElement(n,{top:400}),this._selection.select(n),this._eventBus.fire("searchPad.selected",n)},ty.prototype._resetOverlay=function(e){if(this._overlayId&&this._overlays.remove(this._overlayId),e){var t=function(e){var t=6,n=e.width+2*t,i=e.height+2*t,r={width:n+"px",height:i+"px"},o=Ee('<div class="'+ty.OVERLAY_CLASS+'"></div>');return ie(o,r),{position:{bottom:i-t,right:n-t},show:!0,html:o}}(St(e));this._overlayId=this._overlays.add(e,t)}},ty.CONTAINER_SELECTOR=".djs-search-container",ty.INPUT_SELECTOR=".djs-search-input input",ty.RESULTS_CONTAINER_SELECTOR=".djs-search-results",ty.RESULT_SELECTOR=".djs-search-result",ty.RESULT_SELECTED_CLASS="djs-search-result-selected",ty.RESULT_SELECTED_SELECTOR="."+ty.RESULT_SELECTED_CLASS,ty.RESULT_ID_ATTRIBUTE="data-result-id",ty.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",ty.OVERLAY_CLASS="djs-search-overlay",ty.BOX_HTML='<div class="djs-search-container djs-draggable djs-scrollable"><div class="djs-search-input"><input type="text"/></div><div class="djs-search-results"></div></div>',ty.RESULT_HTML='<div class="djs-search-result"></div>',ty.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',ty.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';var iy={__depends__:[aa,Jo],searchPad:["type",ty]};function ry(e,t,n){this._elementRegistry=e,this._canvas=n,t.registerProvider(this)}function oy(e){return w(e,(function(e){return!!e.matched})).length>0}function ay(e,t){var n=[],i=e;if(!e)return n;e=e.toLowerCase(),t=t.toLowerCase();var r=e.indexOf(t);return r>-1?(0!==r&&n.push({normal:i.substr(0,r)}),n.push({matched:i.substr(r,t.length)}),t.length+r<e.length&&n.push({normal:i.substr(t.length+r,e.length)})):n.push({normal:i}),n}ry.$inject=["elementRegistry","searchPad","canvas"],ry.prototype.find=function(e){var t=this._canvas.getRootElement(),n=this._elementRegistry.filter((function(e){return!e.labelTarget}));return n=w(n,(function(e){return e!==t})),n=B(n=w(n=R(n,(function(t){return{primaryTokens:ay(eo(t),e),secondaryTokens:ay(t.id,e),element:t}})),(function(e){return oy(e.primaryTokens)||oy(e.secondaryTokens)})),(function(e){return eo(e.element)+e.element.id}))};var sy={__depends__:[iy],__init__:["bpmnSearch"],bpmnSearch:["type",ry]};function cy(e){Kr.call(this,e)}r(cy,Kr),cy.Viewer=Da,cy.NavigatedViewer=ss,cy.prototype.createDiagram=Pr((function(){return this.importXML('<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>')})),cy.prototype._interactionModules=[Ua,es,fs,as],cy.prototype._modelingModules=[js,Ys,pc,ec,sl,dl,fl,$p,ep,Nl,Zp,iu,gu,bu,xu,Au,Ku,ng,ug,zg,Bg,Fu,ey,sy],cy.prototype._modules=[].concat(Da.prototype._modules,cy.prototype._interactionModules,cy.prototype._modelingModules);var ly={min:.2,max:4};function py(e,t,n,i,r){var o=this;function a(e){o._state._svgClientRect&&!fy(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),hy(uy({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox),o._canvas),o._update()}function s(e){return function(t){o._state._svgClientRect&&!fy(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),e&&a(t);var n=uy({x:t.clientX-o._state._svgClientRect.left,y:t.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox),r=i.viewbox(),s=function(e,t){var n={x:t.x+t.width/2,y:t.y+t.height/2};return{x:e.x-n.x,y:e.y-n.y}}(n,r),p=o._viewportDom.getBoundingClientRect(),u={x:t.clientX-p.left+1,y:t.clientY-p.top+1};W(o._state,{cachedViewbox:r,initialDragPosition:{x:t.clientX,y:t.clientY},isDragging:!0,offsetViewport:s,offsetViewportDom:u,viewportClientRect:o._viewport.getBoundingClientRect(),parentClientRect:o._parent.getBoundingClientRect()}),be.bind(document,"mousemove",c),be.bind(document,"mouseup",l)}}function c(e){if(o._state.isDragging){o._state._svgClientRect&&!fy(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect());var t=o._state.offsetViewportDom,n=o._state.viewportClientRect,i=o._state.parentClientRect;W(o._viewportDom.style,{top:e.clientY-t.y-i.top+"px",left:e.clientX-t.x-i.left+"px"});var r=gy(i,{top:e.clientY-t.y-i.top,left:e.clientX-t.x-i.left,width:n.width,height:n.height});W(o._overlay.style,{clipPath:r});var a=uy({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);hy({x:a.x-o._state.offsetViewport.x,y:a.y-o._state.offsetViewport.y},o._canvas)}}function l(e){o._state.isDragging&&(o._state.initialDragPosition.x===e.clientX&&o._state.initialDragPosition.y===e.clientY&&a(e),o._update(),W(o._state,{cachedViewbox:null,initialDragPosition:null,isDragging:!1,offsetViewport:null,offsetViewportDom:null}),be.unbind(document,"mousemove",c),be.unbind(document,"mouseup",l))}this._canvas=i,this._elementRegistry=r,this._eventBus=n,this._injector=t,this._state={isOpen:void 0,isDragging:!1,initialDragPosition:null,offsetViewport:null,cachedViewbox:null,dragger:null,svgClientRect:null,parentClientRect:null,zoomDelta:0},this._init(),this.toggle(e&&e.open||!1),be.bind(this._svg,"click",(function(e){e.preventDefault(),e.stopPropagation(),a(e)})),be.bind(this._viewportDom,"mousedown",s(!1)),be.bind(this._svg,"mousedown",s(!0)),be.bind(this._parent,"wheel",(function(e){if(e.preventDefault(),e.stopPropagation(),e.ctrlKey&&(o._state._svgClientRect&&!fy(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),t=e,n=o._state._svgClientRect,t.x>n.left&&t.x<n.left+n.width&&t.y>n.top&&t.y<n.top+n.height)){var t,n,r,a,s,c,l=0===e.deltaMode?.02:.32,p=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*vy(e.deltaY)*-l;if(o._state.zoomDelta+=p,Math.abs(o._state.zoomDelta)>.1){var u=p>0?1:-1,h=Math.log(i.zoom())/Math.log(10),d=(r=ly,a=20,s=Math.log(r.min)/Math.log(10),c=Math.log(r.max)/Math.log(10),(Math.abs(s)+Math.abs(c))/a),m=Math.round(h/d)*d;m+=d*u;var f=Math.pow(10,m);i.zoom(function(e,t){return Math.max(e.min,Math.min(e.max,t))}(ly,f),v),o._state.zoomDelta=0;var v=uy({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);hy(v,o._canvas),o._update()}}})),be.bind(this._toggle,"click",(function(e){e.preventDefault(),e.stopPropagation(),o.toggle()})),n.on(["shape.added","connection.added"],(function(e){var t=e.element;o._addElement(t),o._update()})),n.on(["shape.removed","connection.removed"],(function(e){var t=e.element;o._removeElement(t),o._update()})),n.on("elements.changed",250,(function(e){e.elements.forEach((function(e){o._updateElement(e)})),o._update()})),n.on("element.updateId",(function(e){var t=e.element,n=e.newId;o._updateElementId(t,n)})),n.on("canvas.viewbox.changed",(function(){o._state.isDragging||o._update()})),n.on("canvas.resized",(function(){document.body.contains(o._parent)&&(o._state.isDragging||o._update(),o._state._svgClientRect=o._svg.getBoundingClientRect())})),n.on("root.set",(function(e){o._clear(),e.element.children.forEach((function(e){o._addElement(e)})),o._update()}))}function uy(e,t,n){var i=t.getBoundingClientRect(),r=function(e,t){var n=e.width/e.height,i=W({},{x:e.x,y:e.y,width:e.width,height:e.height});if(n>t){var r=i.width*(1/t);W(i,{y:i.y-(r-i.height)/2,height:r})}else if(n<t){var o=i.height*t;W(i,{x:i.x-(o-i.width)/2,width:o})}return i}(n,i.width/i.height);return{x:dy(e.x,0,i.width,r.x,r.x+r.width),y:dy(e.y,0,i.height,r.y,r.y+r.height)}}function hy(e,t){var n=t.viewbox(),i=n.width,r=n.height;t.viewbox({x:e.x-i/2,y:e.y-r/2,width:i,height:r})}function dy(e,t,n,i,r){return(e-t)*(r-i)/(n-t)+i}function my(e,t,n){var i=function(e){var t=Pe(".children",e);t||ke(e,t=Ue("g",{class:"children"}));return t}(t),r=[].slice.call(i.childNodes)[n];r?t.insertBefore(e,r.nextSibling):t.appendChild(e)}function fy(e){return 0===e.width&&0===e.height}py.$inject=["config.minimap","injector","eventBus","canvas","elementRegistry"],py.prototype._init=function(){var e=this._canvas.getContainer(),t=this._parent=document.createElement("div");le(t).add("djs-minimap"),e.appendChild(t);var n=this._toggle=document.createElement("div");le(n).add("toggle"),t.appendChild(n);var i=this._map=document.createElement("div");le(i).add("map"),t.appendChild(i);var r=this._svg=Ue("svg");ze(r,{width:"100%",height:"100%"}),ke(i,r),ke(r,this._elementsGroup=Ue("g"));var o=this._viewportGroup=Ue("g");ke(r,o);var a=this._viewport=Ue("rect");Le(a).add("viewport"),ke(o,a),be.bind(t,"mousedown",(function(e){e.stopPropagation()}));var s=this._viewportDom=document.createElement("div");le(s).add("viewport-dom"),this._parent.appendChild(s);var c=this._overlay=document.createElement("div");le(c).add("overlay"),this._parent.appendChild(c)},py.prototype._update=function(){var e=this._canvas.viewbox(),t=e.inner,n=e.outer;if(by(e)){var i,r,o,a,s=n.width-t.width,c=n.height-t.height;t.width<n.width?(i=t.x-s/2,o=n.width,t.x+t.width<n.width&&(i=Math.min(0,t.x))):(i=t.x,o=t.width),t.height<n.height?(r=t.y-c/2,a=n.height,t.y+t.height<n.height&&(r=Math.min(0,t.y))):(r=t.y,a=t.height),i-=50,r-=50,o+=100,a+=100,this._lastViewbox={x:i,y:r,width:o,height:a},ze(this._svg,{viewBox:i+", "+r+", "+o+", "+a}),ze(this._viewport,{x:e.x,y:e.y,width:e.width,height:e.height});var l=this._state._parentClientRect=this._parent.getBoundingClientRect(),p=this._viewport.getBoundingClientRect(),u={top:p.top-l.top,left:p.left-l.left,width:p.width,height:p.height};W(this._viewportDom.style,{top:u.top+"px",left:u.left+"px",width:u.width+"px",height:u.height+"px"});var h=gy(l,u);W(this._overlay.style,{clipPath:h})}},py.prototype.open=function(){W(this._state,{isOpen:!0}),le(this._parent).add("open");var e=this._injector.get("translate",!1)||function(e){return e};re(this._toggle,"title",e("Close minimap")),this._update(),this._eventBus.fire("minimap.toggle",{open:!0})},py.prototype.close=function(){W(this._state,{isOpen:!1}),le(this._parent).remove("open");var e=this._injector.get("translate",!1)||function(e){return e};re(this._toggle,"title",e("Open minimap")),this._eventBus.fire("minimap.toggle",{open:!1})},py.prototype.toggle=function(e){var t=this.isOpen();void 0===e&&(e=!t),e!=t&&(e?this.open():this.close())},py.prototype.isOpen=function(){return this._state.isOpen},py.prototype._updateElement=function(e){try{void 0!==e.parent&&null!==e.parent&&(this._removeElement(e),this._addElement(e))}catch(e){console.warn("Minimap#_updateElement errored",e)}},py.prototype._updateElementId=function(e,t){try{var n=Pe("#"+ha(e.id),this._elementsGroup);n&&(n.id=t)}catch(e){console.warn("Minimap#_updateElementId errored",e)}},py.prototype._addElement=function(e){var t=this;if(this._removeElement(e),this._canvas.findRoot(e)===this._canvas.getRootElement()){var n,i,r,o=this._createElement(e),a=Pe("#"+ha(e.parent.id),this._elementsGroup);if(o){var s=function(e,t){var n=Pe(".djs-children",t.parentNode);if(!n)return;var i=[].slice.call(n.childNodes),r=-1;return i.forEach((function(t,n){Pe(".djs-element",t)===e&&(r=n)})),r}(this._elementRegistry.getGraphics(e),this._elementRegistry.getGraphics(e.parent));return"undefined"!==s&&a?a.childNodes.length>s?my(o,a,s):my(o,a,a.childNodes.length-1):this._elementsGroup.appendChild(o),!function(e){return e.waypoints}(e)?(i=e.x,r=e.y,a&&(i-=(n=e.parent).x,r-=n.y),ze(o,{transform:"translate("+i+" "+r+")"})):(i=0,r=0,void 0!==(n=e.parent).x&&void 0!==n.y&&(i=-n.x,r=-n.y),ze(o,{transform:"translate("+i+" "+r+")"})),e.children&&e.children.length&&e.children.forEach((function(e){t._addElement(e)})),o}}},py.prototype._removeElement=function(e){var t=this._svg.getElementById(e.id);t&&Fe(t)},py.prototype._createElement=function(e){var t,n=this._elementRegistry.getGraphics(e);if(n&&(t=ti(n))){var i=He(t);return ze(i,{id:e.id}),i}},py.prototype._clear=function(){Ve(this._elementsGroup)};var vy=Math.sign||function(e){return e>=0?1:-1};function gy(e,t){return"polygon("+[yy(t.left,t.top),yy(t.left+t.width,t.top),yy(t.left+t.width,t.top+t.height),yy(t.left,t.top+t.height),yy(t.left,e.height),yy(e.width,e.height),yy(e.width,0),yy(0,0),yy(0,e.height),yy(t.left,e.height)].join(", ")+")"}function yy(e,t){return e+"px "+t+"px"}function by(e){return P(e,(function(e){return m(e)?by(e):f(e)&&isFinite(e)}))}var _y={__init__:["minimap"],minimap:["type",py]};function xy(e,t){var n,i,r=(e=e||{}).borderColor||"rgba(0,0,0,0.1)",o=e.crossColor||"#CCC",a=-1;ke(t.getLayer("djs-origin",-1),n=Sy("g",{"pointer-events":"none"})),!1!==e.showBorder&&ke(n,Sy("path",{class:Ey("border"),d:wy(["M",-22,a,"H",-1e3,"M",22,a,"H",6e3,"M",a,-22,"V",-1e3,"M",a,22,"V",3e3]),fill:"none",stroke:r,"stroke-width":"2px","stroke-dasharray":"6, 6","shape-rendering":"crispedges"})),ke(n,Sy("path",{d:wy(["M",-15,a,"H",15,"M",a,-15,"V",15]),class:Ey("cross"),fill:"none",stroke:o,"stroke-width":"2px","stroke-linecap":"round"})),(i=Sy("text",{x:-40,y:-10,fill:o,class:Ey("label")})).textContent="(0, 0)",ke(n,i)}function wy(e){return e.join(" ")}function Ey(e){return"djs-origin-"+e}function Sy(e,t){var n=Ue(e);return ze(n,t),n}xy.$inject=["config.origin","canvas"];var Cy={__init__:[xy]},Py={offset:{x:150,y:75},tolerance:50,alignOnSave:!0};function My(e,t,n,i,r,o){function a(e,n){var i=n.offset,r=n.tolerance,o={};return["x","y"].forEach((function(n){var a=-e[n]+i[n],s=t.get("gridSnapping",!1);s&&(a=function(e,t,n){n||(n="round");return Math[n](e/t)*t}(a,s.getGridSpacing())),o[n]=Math.abs(a)<r?0:a})),o}function s(){var t=r.viewbox().inner,n=r.getRootElement().children;if(n.length){var o=a(t,e);0===o.x&&0===o.y||i.execute("elements.alignToOrigin",{elements:n,delta:o})}}function c(e){return function(t){n.once("commandStack.changed",(function(){var n=t.delta,i=r.viewbox().scale;r.scroll({dx:e*n.x*i,dy:e*n.y*i})}))}}var l,p,u;e=function(e){var t=W({},Py,e||{});return f(t.offset)&&(t.offset={x:t.offset,y:t.offset}),t}(e),i.register("elements.alignToOrigin",{preExecute:function(e){var t=e.delta,n=e.elements;o.moveElements(n,t)},execute:c(-1),revert:c(1)}),e.alignOnSave&&(l=t.get("_parent",!1),p=n,((u=l&&l._eventBus)||p).on("saveXML.start",1250,s),u&&p.on("diagram.destroy",(function(){u.off("saveXML.start",s)}))),this.align=s,this.computeAdjustment=a,this._config=e}My.$inject=["config.alignToOrigin","injector","eventBus","commandStack","canvas","modeling"];var Ry={__init__:["alignToOrigin"],alignToOrigin:["type",My]};function Ay(e){function t(e){if(!e.labelTarget){var t=Tr(e);kr(t,"bpmn:Participant")&&(t=t.processRef),kr(t,"bpmn:Process")&&(t.isExecutable=!!t.isExecutable)}}e.on(["shape.added","root.added"],(function(e){t(e.element)})),e.on("elements.changed",(function(e){e.elements.forEach((function(e){t(e)}))}))}Ay.$inject=["eventBus"];var ky,Dy,Ty,zy,Oy,By={__init__:[Ay]},jy={},Ny=[],Ly=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Iy(e,t){for(var n in t)e[n]=t[n];return e}function Fy(e){var t=e.parentNode;t&&t.removeChild(e)}function Vy(e,t,n){var i,r,o,a=arguments,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return Hy(e,s,i,r,null)}function Hy(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++ky.__v:r};return null!=ky.vnode&&ky.vnode(o),o}function $y(e){return e.children}function Gy(e,t){this.props=e,this.context=t}function Wy(e,t){if(null==t)return e.__?Wy(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Wy(e):null}function Uy(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Uy(e)}}function qy(e){(!e.__d&&(e.__d=!0)&&Dy.push(e)&&!Ky.__r++||zy!==ky.debounceRendering)&&((zy=ky.debounceRendering)||Ty)(Ky)}function Ky(){for(var e;Ky.__r=Dy.length;)e=Dy.sort((function(e,t){return e.__v.__b-t.__v.__b})),Dy=[],e.some((function(e){var t,n,i,r,o,a;e.__d&&(o=(r=(t=e).__v).__e,(a=t.__P)&&(n=[],(i=Iy({},r)).__v=r.__v+1,ib(a,r,i,t.__n,void 0!==a.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?Wy(r):o,r.__h),rb(n,r),r.__e!=o&&Uy(r)))}))}function Yy(e,t,n,i,r,o,a,s,c,l){var p,u,h,d,m,f,v,g=i&&i.__k||Ny,y=g.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(d=n.__k[p]=null==(d=t[p])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?Hy(null,d,null,null,d):Array.isArray(d)?Hy($y,{children:d},null,null,null):d.__b>0?Hy(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(h=g[p])||h&&d.key==h.key&&d.type===h.type)g[p]=void 0;else for(u=0;u<y;u++){if((h=g[u])&&d.key==h.key&&d.type===h.type){g[u]=void 0;break}h=null}ib(e,d,h=h||jy,r,o,a,s,c,l),m=d.__e,(u=d.ref)&&h.ref!=u&&(v||(v=[]),h.ref&&v.push(h.ref,null,d),v.push(u,d.__c||m,d)),null!=m?(null==f&&(f=m),"function"==typeof d.type&&null!=d.__k&&d.__k===h.__k?d.__d=c=Xy(d,c,e):c=Qy(e,d,h,g,m,c),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=c):e.value=""):c&&h.__e==c&&c.parentNode!=e&&(c=Wy(h))}for(n.__e=f,p=y;p--;)null!=g[p]&&("function"==typeof n.type&&null!=g[p].__e&&g[p].__e==n.__d&&(n.__d=Wy(i,p+1)),sb(g[p],g[p]));if(v)for(p=0;p<v.length;p++)ab(v[p],v[++p],v[++p])}function Xy(e,t,n){var i,r;for(i=0;i<e.__k.length;i++)(r=e.__k[i])&&(r.__=e,t="function"==typeof r.type?Xy(r,t,n):Qy(n,r,r,e.__k,r.__e,t));return t}function Zy(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Zy(e,t)})):t.push(e)),t}function Qy(e,t,n,i,r,o){var a,s,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),a=null;else{for(s=o,c=0;(s=s.nextSibling)&&c<i.length;c+=2)if(s==r)break e;e.insertBefore(r,o),a=o}return void 0!==a?a:r.nextSibling}function Jy(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||Ly.test(t)?n:n+"px"}function eb(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||Jy(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||Jy(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?nb:tb,o):e.removeEventListener(t,o?nb:tb,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function tb(e){this.l[e.type+!1](ky.event?ky.event(e):e)}function nb(e){this.l[e.type+!0](ky.event?ky.event(e):e)}function ib(e,t,n,i,r,o,a,s,c){var l,p,u,h,d,m,f,v,g,y,b,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(l=ky.__b)&&l(t);try{e:if("function"==typeof _){if(v=t.props,g=(l=_.contextType)&&i[l.__c],y=l?g?g.props.value:l.__:i,n.__c?f=(p=t.__c=n.__c).__=p.__E:("prototype"in _&&_.prototype.render?t.__c=p=new _(v,y):(t.__c=p=new Gy(v,y),p.constructor=_,p.render=cb),g&&g.sub(p),p.props=v,p.state||(p.state={}),p.context=y,p.__n=i,u=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=_.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=Iy({},p.__s)),Iy(p.__s,_.getDerivedStateFromProps(v,p.__s))),h=p.props,d=p.state,u)null==_.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==_.getDerivedStateFromProps&&v!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(v,y),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(v,p.__s,y)||t.__v===n.__v){p.props=v,p.state=p.__s,t.__v!==n.__v&&(p.__d=!1),p.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),p.__h.length&&a.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(v,p.__s,y),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(h,d,m)}))}p.context=y,p.props=v,p.state=p.__s,(l=ky.__r)&&l(t),p.__d=!1,p.__v=t,p.__P=e,l=p.render(p.props,p.state,p.context),p.state=p.__s,null!=p.getChildContext&&(i=Iy(Iy({},i),p.getChildContext())),u||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(h,d)),b=null!=l&&l.type===$y&&null==l.key?l.props.children:l,Yy(e,Array.isArray(b)?b:[b],t,n,i,r,o,a,s,c),p.base=t.__e,t.__h=null,p.__h.length&&a.push(p),f&&(p.__E=p.__=null),p.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ob(n.__e,t,n,i,r,o,a,c);(l=ky.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=o)&&(t.__e=s,t.__h=!!c,o[o.indexOf(s)]=null),ky.__e(e,t,n)}}function rb(e,t){ky.__c&&ky.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){ky.__e(e,t.__v)}}))}function ob(e,t,n,i,r,o,a,s){var c,l,p,u,h=n.props,d=t.props,m=t.type,f=0;if("svg"===m&&(r=!0),null!=o)for(;f<o.length;f++)if((c=o[f])&&(c===e||(m?c.localName==m:3==c.nodeType))){e=c,o[f]=null;break}if(null==e){if(null===m)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,d.is&&d),o=null,s=!1}if(null===m)h===d||s&&e.data===d||(e.data=d);else{if(o=o&&Ny.slice.call(e.childNodes),l=(h=n.props||jy).dangerouslySetInnerHTML,p=d.dangerouslySetInnerHTML,!s){if(null!=o)for(h={},u=0;u<e.attributes.length;u++)h[e.attributes[u].name]=e.attributes[u].value;(p||l)&&(p&&(l&&p.__html==l.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||eb(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||eb(e,o,t[o],n[o],i)}(e,d,h,r,s),p)t.__k=[];else if(f=t.props.children,Yy(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==m,o,a,e.firstChild,s),null!=o)for(f=o.length;f--;)null!=o[f]&&Fy(o[f]);s||("value"in d&&void 0!==(f=d.value)&&(f!==e.value||"progress"===m&&!f)&&eb(e,"value",f,h.value,!1),"checked"in d&&void 0!==(f=d.checked)&&f!==e.checked&&eb(e,"checked",f,h.checked,!1))}return e}function ab(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){ky.__e(e,n)}}function sb(e,t,n){var i,r,o;if(ky.unmount&&ky.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||ab(i,null,t)),n||"function"==typeof e.type||(n=null!=(r=e.__e)),e.__e=e.__d=void 0,null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){ky.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&sb(i[o],t,n);null!=r&&Fy(r)}function cb(e,t,n){return this.constructor(e,n)}function lb(e,t,n){var i,r,o;ky.__&&ky.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],ib(t,e=(!i&&n||t).__k=Vy($y,null,[e]),r||jy,jy,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?Ny.slice.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),rb(o,e)}function pb(e,t){var n={__c:t="__cC"+Oy++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(qy)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}ky={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e},__v:0},Gy.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Iy({},this.state),"function"==typeof e&&(e=e(Iy({},n),this.props)),e&&Iy(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),qy(this))},Gy.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),qy(this))},Gy.prototype.render=$y,Dy=[],Ty="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ky.__r=0,Oy=0;var ub,hb,db,mb=0,fb=[],vb=ky.__b,gb=ky.__r,yb=ky.diffed,bb=ky.__c,_b=ky.unmount;function xb(e,t){ky.__h&&ky.__h(hb,e,mb||t),mb=0;var n=hb.__H||(hb.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function wb(e){return mb=1,Eb(Ob,e)}function Eb(e,t,n){var i=xb(ub++,2);return i.t=e,i.__c||(i.__=[n?n(t):Ob(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=hb),i.__}function Sb(e,t){var n=xb(ub++,3);!ky.__s&&zb(n.__H,t)&&(n.__=e,n.__H=t,hb.__H.__h.push(n))}function Cb(e){return mb=5,Pb((function(){return{current:e}}),[])}function Pb(e,t){var n=xb(ub++,7);return zb(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Mb(e,t){return mb=8,Pb((function(){return e}),t)}function Rb(e){var t=hb.context[e.__c],n=xb(ub++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(hb)),t.props.value):e.__}function Ab(){fb.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Db),e.__H.__h.forEach(Tb),e.__H.__h=[]}catch(t){e.__H.__h=[],ky.__e(t,e.__v)}})),fb=[]}ky.__b=function(e){hb=null,vb&&vb(e)},ky.__r=function(e){gb&&gb(e),ub=0;var t=(hb=e.__c).__H;t&&(t.__h.forEach(Db),t.__h.forEach(Tb),t.__h=[])},ky.diffed=function(e){yb&&yb(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==fb.push(t)&&db===ky.requestAnimationFrame||((db=ky.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),kb&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);kb&&(t=requestAnimationFrame(n))})(Ab)),hb=void 0},ky.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Db),e.__h=e.__h.filter((function(e){return!e.__||Tb(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ky.__e(n,e.__v)}})),bb&&bb(e,t)},ky.unmount=function(e){_b&&_b(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Db)}catch(e){ky.__e(e,t.__v)}};var kb="function"==typeof requestAnimationFrame;function Db(e){var t=hb;"function"==typeof e.__c&&e.__c(),hb=t}function Tb(e){var t=hb;e.__c=e.__(),hb=t}function zb(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ob(e,t){return"function"==typeof t?t(e):t}
9
9
  /*!
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
12
12
  http://jedwatson.github.io/classnames
13
- */var gb=n((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)t.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function yb(e,t){for(var n in t)e[n]=t[n];return e}function bb(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function _b(e){this.props=e}(_b.prototype=new Py).isPureReactComponent=!0,_b.prototype.shouldComponentUpdate=function(e,t){return bb(this.props,e)||bb(this.state,t)};var xb=hy.__b;hy.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),xb&&xb(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var wb=hy.__e;hy.__e=function(e,t,n){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);wb(e,t,n)};var Eb=hy.unmount;function Sb(){this.__u=0,this.t=null,this.__b=null}function Cb(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Pb(){this.u=null,this.o=null}hy.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Eb&&Eb(e)},(Sb.prototype=new Py).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=Cb(i.__v),o=!1,a=function(){o||(o=!0,n.__R=null,r?r(s):s())};n.__R=a;var s=function(){if(!--i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)})),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},c=!0===t.__h;i.__u++||c||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(a,a)},Sb.prototype.componentWillUnmount=function(){this.t=[]},Sb.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=yb({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)}))),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&Ey(Cy,null,e.fallback);return r&&(r.__h=null),[Ey(Cy,null,t.__e?null:e.children),r]};var Mb=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Pb.prototype=new Py).__e=function(e){var t=this,n=Cb(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),Mb(t,e,i)):r()};n?n(o):o()}},Pb.prototype.render=function(e){this.u=null,this.o=new Map;var t=Oy(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Pb.prototype.componentDidUpdate=Pb.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Mb(e,n,t)}))};var Rb="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Tb=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,kb=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Py.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Py.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ab=hy.event;function zb(){}function Ob(){return this.cancelBubble}function Db(){return this.defaultPrevented}hy.event=function(e){return Ab&&(e=Ab(e)),e.persist=zb,e.isPropagationStopped=Ob,e.isDefaultPrevented=Db,e.nativeEvent=e};var Bb={configurable:!0,get:function(){return this.class}},jb=hy.vnode;hy.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){for(var r in i={},n){var o=n[r];"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!kb(n.type)?r="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(r)?r=r.toLowerCase():Tb.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=Oy(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=Oy(n.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i}t&&n.class!=n.className&&(Bb.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Bb)),e.$$typeof=Rb,jb&&jb(e)};var Nb=hy.__r;hy.__r=function(e){Nb&&Nb(e),e.__c};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var Lb=Ey;function Ib(e,t,n,i,r){var o={};for(var a in t)"ref"!=a&&(o[a]=t[a]);var s,c,l={type:e,props:o,key:n,ref:t&&t.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++hy.__v,__source:i,__self:r};if("function"==typeof e&&(s=e.defaultProps))for(c in s)void 0===o[c]&&(o[c]=s[c]);return hy.vnode&&hy.vnode(l),l}var Fb=function(e){return Ib("svg",{...e,children:Ib("path",{fillRule:"evenodd",d:"m11.657 8-4.95 4.95a1 1 0 0 1-1.414-1.414L8.828 8 5.293 4.464A1 1 0 1 1 6.707 3.05L11.657 8z"})})};Fb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var Hb=function(e){return Ib("svg",{...e,children:Ib("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.637 12.637v-4.72h1.362v4.721c0 .36-.137.676-.411.95-.275.275-.591.412-.95.412H3.362c-.38 0-.703-.132-.967-.396A1.315 1.315 0 0 1 2 12.638V3.362c0-.38.132-.703.396-.967S2.982 2 3.363 2h4.553v1.363H3.363v9.274h9.274zM14 2H9.28l-.001 1.362h2.408L5.065 9.984l.95.95 6.622-6.622v2.409H14V2z",fill:"#818798"})})};Hb.defaultProps={width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Vb=function(e){return Ib("svg",{...e,children:[Ib("path",{d:"M5.8 7.06V5.95h4.307v1.11H5.8zm0 3.071v-1.11h4.307v1.11H5.8z",fill:"#505562"}),Ib("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3.268A4.732 4.732 0 1 0 12.732 8H14a6 6 0 1 1-6-6v1.268z",fill:"#505562"}),Ib("path",{d:"m11.28 6.072-.832-.56 1.016-1.224L10 3.848l.312-.912 1.392.584L11.632 2h1.032l-.072 1.52 1.392-.584.312.912-1.464.44 1.008 1.224-.832.552-.864-1.296-.864 1.304z",fill:"#505562"})]})};Vb.defaultProps={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var $b=function(e){return Ib("svg",{...e,children:[Ib("path",{d:"M5.845 7.04V5.93h4.307v1.11H5.845zm0 3.07V9h4.307v1.11H5.845z",fill:"#505562"}),Ib("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.286 8a4.714 4.714 0 1 0 9.428 0 4.714 4.714 0 0 0-9.428 0zM8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2z",fill:"#505562"})]})};function Gb(e){const{element:t,headerProvider:n}=e,{getElementIcon:i,getDocumentationRef:r,getElementLabel:o,getTypeLabel:a}=n,s=o(t),c=a(t),l=r&&r(t),p=i(t);return Ib("div",{class:"bio-properties-panel-header",children:[Ib("div",{class:"bio-properties-panel-header-icon",children:p&&Ib(p,{width:"32",height:"32",viewBox:"0 0 32 32"})}),Ib("div",{class:"bio-properties-panel-header-labels",children:[Ib("div",{title:c,class:"bio-properties-panel-header-type",children:c}),s?Ib("div",{title:s,class:"bio-properties-panel-header-label",children:s}):null]}),Ib("div",{class:"bio-properties-panel-header-actions",children:l?Ib("a",{rel:"noopener",class:"bio-properties-panel-header-link",href:l,title:"Open documentation",target:"_blank",children:Ib(Hb,{})}):null})]})}$b.defaultProps={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const Wb=Uy({description:{},getDescriptionForId:()=>{}}),Ub=Uy({eventBus:null}),qb=Uy({layout:{},setLayout:()=>{},getLayoutForKey:()=>{},setLayoutForKey:()=>{}});function Kb(e,t,n=1e3){const{eventBus:i}=pb(Ub);ab((()=>{if(i)return i.on(e,n,t),()=>i.off(e,t)}),[t,e,i,n])}function Yb(e){const t=sb();return ab((()=>{t.current=e})),t.current}function Xb(e){const{onShow:t}=pb(qb),n=sb(),[i,r]=rb(!1),o=lb((n=>{e(n)&&(f(t)&&t(),n.focus&&!i&&r(!0))}),[e]);return ab((()=>{i&&n.current&&(f(n.current.focus)&&n.current.focus(),f(n.current.select)&&n.current.select(),r(!1))}),[i]),Kb("propertiesPanel.showEntry",o),n}function Zb(e){const{eventBus:t}=pb(Ub),[n,i]=rb(null);Kb("propertiesPanel.updated",lb((()=>i(null)),[]));return Kb("propertiesPanel.showError",lb((n=>{i(null),e(n)&&(t&&t.fire("propertiesPanel.showEntry",n),i(n.message))}),[e])),n}function Qb(e){const{element:t,entries:n=[],id:i,label:r,shouldOpen:o=!1}=e,[a,s]=function(e,t){const{getLayoutForKey:n,setLayoutForKey:i}=pb(qb),r=n(e,t),[o,a]=rb(r);return[o,t=>{a(t),i(e,t)}]}(["groups",i,"open"],o),c=lb((()=>s(!0)),[s]),[l,p]=rb(!1);ab((()=>{const e=n.find((e=>{const{id:t,isEdited:n}=e,i=ye(`[data-entry-id="${t}"]`);if(!f(n)||!i)return!1;return n(ye(".bio-properties-panel-input",i))}));p(e)}),[n]);const u={...pb(qb),onShow:c};return Ib("div",{class:"bio-properties-panel-group","data-group-id":"group-"+i,children:[Ib("div",{class:gb("bio-properties-panel-group-header",l?"":"empty",a?"open":""),onClick:()=>s(!a),children:[Ib("div",{title:r,class:"bio-properties-panel-group-header-title",children:r}),Ib("div",{class:"bio-properties-panel-group-header-buttons",children:[l&&Ib(Jb,{}),Ib("button",{title:"Toggle section",class:"bio-properties-panel-group-header-button bio-properties-panel-arrow",children:Ib(Fb,{class:a?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})})]})]}),Ib("div",{class:gb("bio-properties-panel-group-entries",a?"open":""),children:Ib(qb.Provider,{value:u,children:n.map((e=>{const{component:n,id:i}=e;return Ey(n,{...e,element:t,key:i})}))})})]})}function Jb(){return Ib("div",{title:"Section contains data",class:"bio-properties-panel-dot"})}const e_={open:!0},t_={},n_=["propertiesPanel.showEntry","propertiesPanel.showError"];function i_(e){const{element:t,headerProvider:n,groups:i,layoutConfig:r={},layoutChanged:o,descriptionConfig:a={},descriptionLoaded:s,eventBus:c}=e,[l,p]=rb((u=r,{...e_,...u}));var u;ab((()=>{"function"==typeof o&&o(l)}),[l,o]);const h={layout:l,setLayout:p,getLayoutForKey:(e,t)=>U(l,e,t),setLayoutForKey:(e,t)=>{const n=G({},l);W(n,e,t),p(n)}},d=function(e){return{...t_,...e}}(a);"function"==typeof s&&s(d);const m={description:d,getDescriptionForId:(e,t)=>d[e]&&d[e](t)};!function(e,t){const n=sb([]),i=sb(!0),r=e=>t=>{!0===i.current&&n.current.unshift([e,t])};ab((()=>{if(!t)return;const n=e.map((e=>[e,r(e)]));return n.forEach((([e,n])=>{t.on(e,1e4,n)})),()=>{n.forEach((([e,n])=>{t.off(e,n)}))}}),[e,t]),ab((()=>{if(t){for(i.current=!1;n.current.length;){const[e,i]=n.current.pop();t.fire(e,i)}i.current=!0}}))}(n_,c);const f={eventBus:c},v={element:t};return t?Ib(qb.Provider,{value:v,children:Ib(Wb.Provider,{value:m,children:Ib(qb.Provider,{value:h,children:Ib(Ub.Provider,{value:f,children:Ib("div",{class:gb("bio-properties-panel",l.open?"open":""),children:[Ib(Gb,{element:t,headerProvider:n}),Ib("div",{class:"bio-properties-panel-scroll-container",children:i.map((e=>{const{component:n=Qb,id:i}=e;return Ey(n,{...e,key:i,element:t})}))})]})})})})}):Ib("div",{class:"bio-properties-panel-placeholder",children:"Select an element to edit its properties."})}function r_(e){const{element:t,forId:n,value:i}=e,r=function(e,t){const{getDescriptionForId:n}=pb(Wb);return n(e,t)}(n,t),o=i||r;if(o)return Ib("div",{class:"bio-properties-panel-description",children:o})}const o_=()=>{};function a_(e){const{id:t,label:n,onChange:i,disabled:r,value:o=!1,show:a=o_}=e;return Ib("div",{class:"bio-properties-panel-checkbox",children:[Ib("input",{ref:Xb(a),id:l_(t),name:t,type:"checkbox",class:"bio-properties-panel-input",onChange:({target:e})=>{i(e.checked)},checked:o,disabled:r}),Ib("label",{for:l_(t),class:"bio-properties-panel-label",children:n})]})}function s_(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:a,disabled:s,show:c=o_}=e,l=o(t),p=Zb(c);return Ib("div",{class:"bio-properties-panel-entry bio-properties-panel-checkbox-entry","data-entry-id":n,children:[Ib(a_,{disabled:s,id:n,label:r,onChange:a,show:c,value:l}),p&&Ib("div",{class:"bio-properties-panel-error",children:p}),Ib(r_,{forId:n,element:t,value:i})]})}function c_(e){return e&&!!e.checked}function l_(e){return`bio-properties-panel-${e}`}const p_=()=>{};function u_(e){const{id:t,label:n,onChange:i,options:r=[],value:o,disabled:a,show:s=p_}=e,c=Xb(s);return Ib("div",{class:"bio-properties-panel-select",children:[Ib("label",{for:m_(t),class:"bio-properties-panel-label",children:n}),Ib("select",{ref:c,id:m_(t),name:t,class:"bio-properties-panel-input",onInput:({target:e})=>{i(e.value)},value:o,disabled:a,children:r.map(((e,t)=>Ib("option",{value:e.value,disabled:e.disabled,children:e.label},t)))})]})}function h_(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:a,getOptions:s,disabled:c,show:l=p_}=e,p=o(t),u=s(t),h=Zb(l);return Ib("div",{class:gb("bio-properties-panel-entry",h?"has-error":""),"data-entry-id":n,children:[Ib(u_,{id:n,label:r,value:p,onChange:a,options:u,disabled:c,show:l}),h&&Ib("div",{class:"bio-properties-panel-error",children:h}),Ib(r_,{forId:n,element:t,value:i})]})}function d_(e){return e&&!!e.value}function m_(e){return`bio-properties-panel-${e}`}function f_(e){const{label:t,feel:n=!1}=e;return Ib("i",{class:"bio-properties-panel-feel-icon",title:t+("required"===n?" must be a FEEL expression":" can optionally be a FEEL expression"),children:Ib("required"===n?Vb:$b,{})})}function v_(e){const{id:t,label:n,rows:i=2,debounce:r,feel:o,onInput:a,value:s="",disabled:c,monospace:l}=e,p=cb((()=>r((({target:e})=>a(e.value.length?e.value:void 0)))),[a,r]);return Ib("div",{class:"bio-properties-panel-textarea",children:[Ib("label",{for:b_(t),class:"bio-properties-panel-label",children:[n,o&&Ib(f_,{feel:o,label:n})]}),Ib("textarea",{id:b_(t),name:t,spellCheck:"false",class:gb("bio-properties-panel-input",l?"bio-properties-panel-input-monospace":""),onInput:p,onFocus:e.onFocus,onBlur:e.onBlur,rows:i,value:s,disabled:c})]})}function g_(e){const{element:t,id:n,description:i,debounce:r,feel:o,label:a,getValue:s,setValue:c,rows:l,monospace:p,disabled:u}=e;return Ib("div",{class:"bio-properties-panel-entry","data-entry-id":n,children:[Ib(v_,{id:n,label:a,value:s(t),onInput:c,rows:l,debounce:r,monospace:p,feel:o,disabled:u}),Ib(r_,{forId:n,element:t,value:i})]})}function y_(e){return e&&!!e.value}function b_(e){return`bio-properties-panel-${e}`}const __=()=>{};function x_(e){const{debounce:t,disabled:n=!1,id:i,label:r,onInput:o,feel:a=!1,value:s="",show:c=__}=e,l=Xb(c),p=cb((()=>t((({target:e})=>o(e.value.length?e.value:void 0)))),[o,t]);return Ib("div",{class:"bio-properties-panel-textfield",children:[Ib("label",{for:S_(i),class:"bio-properties-panel-label",children:[r,a&&Ib(f_,{feel:a,label:r})]}),Ib("input",{ref:l,id:S_(i),type:"text",name:i,spellCheck:"false",autoComplete:"off",disabled:n,class:"bio-properties-panel-input",onInput:p,onFocus:e.onFocus,onBlur:e.onBlur,value:s||""})]})}function w_(e){const{element:t,id:n,description:i,debounce:r,disabled:o,feel:a,label:s,getValue:c,setValue:l,validate:p,show:u=__}=e,[h,d]=rb(null),[m,v]=rb(null);let g=c(t);const y=Yb(g);ab((()=>{if(f(p)){const e=p(g)||null;v(e)}}),[g]);y===g&&m&&(g=h);const b=Zb(u)||m;return Ib("div",{class:gb("bio-properties-panel-entry",b?"has-error":""),"data-entry-id":n,children:[Ib(x_,{debounce:r,disabled:o,feel:a,id:n,label:s,onInput:e=>{let t=null;f(p)&&(t=p(e)||null),t?d(e):l(e),v(t)},show:u,value:g}),b&&Ib("div",{class:"bio-properties-panel-error",children:b}),Ib(r_,{forId:n,element:t,value:i})]})}function E_(e){return e&&!!e.value}function S_(e){return`bio-properties-panel-${e}`}function C_(e){return function(t){return!1!==e?F(t,m(e)?e:300):t}}C_.$inject=["config.debounceInput"];var P_={debounceInput:["factory",C_]},M_=t(Y);const{isNil:R_,isString:T_,isUndefined:k_}=M_;var A_=function(e,t){if(!e)return null;if(e===t)return[];let n,i=[];do{if(n=e.$parent,!n){if(e.$instanceOf("bpmn:Definitions"))break;return null}if(i=[...z_(e,n),...i],e=n,t&&e===t)break}while(n);return i};function z_(e,t){for(let n of Object.values(t.$descriptor.propertiesByName))if(n.isMany){if(t.get(n.name).includes(e))return[n.name,t.get(n.name).indexOf(e)]}else if(t.get(n.name)===e)return[n.name];return[]}var O_=function(...e){let t=[];for(let n of e){if(R_(n)||k_(n))return null;T_(n)&&(n=[n]),t=t.concat(n)}return t};function D_(e,t="."){return R_(e)||k_(e)?null:e.join(t)}const B_=Uy({selectedElement:null,injector:null,getService:()=>null});function j_(e,t){const{getService:n}=pb(B_);return n(e,t)}function N_(e,t){return lb((n=>{const{id:i,path:r}=n;return i===e.get("id")&&(h(t)?r&&function(e,t,n="."){return!(R_(e)||k_(e)||R_(t)||k_(t))&&(T_(e)||(e=D_(e,n)),T_(t)||(t=D_(t,n)),e===t)}(r,t):!!f(t)&&!!t(n))}),[e,t])}function L_(){return(L_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function I_(){return(I_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function F_(){return(F_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function H_(){return(H_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function V_(){return(V_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function $_(){return($_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function G_(){return(G_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var W_=({styles:e={},...t})=>Lb("svg",G_({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),Lb("path",{stroke:"#000",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"1.1,4.3",d:"M1.5 30.5L27 5"}),Lb("path",{d:"M31.803.197L26.5 16.107l-1.52-1.52 3.783-11.35-11.35 3.783-1.52-1.52z"}));function U_(){return(U_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function q_(){return(q_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function K_(){return(K_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Y_(){return(Y_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function X_(){return(X_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Z_(){return(Z_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Q_(){return(Q_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function J_(){return(J_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ex(){return(ex=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function tx(){return(tx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function nx(){return(nx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ix(){return(ix=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function rx(){return(rx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ox(){return(ox=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ax(){return(ax=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function sx(){return(sx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function cx(){return(cx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function lx(){return(lx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function px(){return(px=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ux(){return(ux=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function hx(){return(hx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function dx(){return(dx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function mx(){return(mx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function fx(){return(fx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var vx=({styles:e={},...t})=>Lb("svg",fx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.111.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.454 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 5.021zm-3.956 3.946l-3.096 3.097 3.985 3.985-3.913 3.913 3.047 3.048 3.913-3.913 3.988 3.987 3.097-3.096L19.076 16l3.914-3.913-3.048-3.048-3.913 3.913-3.986-3.985zm-.002 1.222l3.988 3.987 3.913-3.913 1.826 1.826-3.913 3.913 3.985 3.986-1.873 1.873-3.985-3.985-3.913 3.913-1.827-1.827 3.914-3.913-3.988-3.987 1.873-1.873z"}));function gx(){return(gx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var yx=({styles:e={},...t})=>Lb("svg",gx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.793l-7.157 5.055v-5.055zm-.865 1.665v7.125l-5.048-3.562 5.048-3.563zm7.161 0v7.132l-5.048-3.566 5.048-3.566z"}));function bx(){return(bx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var _x=({styles:e={},...t})=>Lb("svg",bx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-5.352 4.266V22.761h10.716V9.279H10.642zm.863.866h8.987v11.75h-8.987v-11.75zm.927 1.323v.862h7.133v-.862h-7.133zm0 2.602v.866h7.133v-.866h-7.133zm0 3.008v.862h7.133v-.862h-7.133zm0 2.717v.863h7.133v-.863h-7.133z"}));function xx(){return(xx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var wx=({styles:e={},...t})=>Lb("svg",xx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm6.132 4.194c-1.21 2.455-2.422 4.91-3.633 7.364l-4.516-5.875-4.103 12.133 4.6-5.912c1.58 1.81 3.162 3.619 4.744 5.429L22.13 9.215zM14.383 13.1l4.295 5.445 1.073-2.387-1.027 4.131-4.384-5.157-1.778 2.75 1.821-4.782z"}));function Ex(){return(Ex=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Sx=({styles:e={},...t})=>Lb("svg",Ex({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156zm.032 2.929c.822 2.586 1.598 5.186 2.42 7.771l-2.42-2.612c-.682.597-2.452 2.884-2.338 2.388.87-2.487 1.447-5.067 2.338-7.547z"}));function Cx(){return(Cx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Px=({styles:e={},...t})=>Lb("svg",Cx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912zm.974 2.584l3.61 4.295-3.61 4.294v-1.933h-7.88v-4.688h7.88v-1.968z"}));function Mx(){return(Mx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Rx=({styles:e={},...t})=>Lb("svg",Mx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-7.245 5.475v11.06h14.502v-11.06H8.754zm3.222 1.728h8.057c-1.427.878-2.854 2.806-4.281 3.016l-3.776-3.016zm9.554 1.017v6.587H10.48V13.24l5.524 4.414 5.526-4.414z"}));function Tx(){return(Tx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var kx=({styles:e={},...t})=>Lb("svg",Tx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.531 2.91 8.95h9.42l2.91-8.95-7.62-5.53zm0 1.067l6.604 4.794-2.523 7.757h-8.162l-2.522-7.757 6.603-4.794z"}));function Ax(){return(Ax=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var zx=({styles:e={},...t})=>Lb("svg",Ax({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M10.638 9.563V23.056h10.724V9.563H10.638zm.863.866h8.995v11.76H11.5V10.43zm.928 1.324v.862h7.139v-.862h-7.14zm0 2.605v.866h7.139v-.866h-7.14zm0 3.01v.863h7.139v-.863h-7.14zm0 2.72v.863h7.139v-.864h-7.14zM15.999.308h-.004l-.188.001h-.011l-.188.004h-.011L15.41.32h-.011l-.187.008h-.005L15.2.33l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.37h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003.178-.001h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 1.023l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.62h-.005l-.005-.002-.182-.035h-.006L18.938.58l-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.43 17.783.41l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.37h-.005L17.38.368l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.328h-.011L16.6.32h-.011l-.187-.006h-.011L16.204.31h-.011L16.005.31H16zm9.016 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zm-18.381.344l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003L4.682 5l-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.595h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01L16.32 3.6h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 13.135l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187V16.7l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zm-30.21.572l-.161.001-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158-.074-.155-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178-.001-.177v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057-.159-.028zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14v-.005l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 23.019l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 27.127l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"}));function Ox(){return(Ox=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Dx=({styles:e={},...t})=>Lb("svg",Ox({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.012 9.222c-1.673 4.657-2.735 9.508-4.409 14.164 1.536-1.526 2.874-3.236 4.41-4.762l4.408 4.762c-1.497-4.712-2.911-9.451-4.409-14.164zm.032 2.93c.823 2.588 1.599 5.19 2.421 7.777l-2.42-2.614c-.683.598-2.454 2.886-2.34 2.39.871-2.489 1.448-5.07 2.34-7.552zM16.012.312c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function Bx(){return(Bx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var jx=({styles:e={},...t})=>Lb("svg",Bx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M8.742 10.464v11.072h14.516V10.464H8.742zm3.224 1.73h8.066a69569 69569 0 00-4.034 3.22l-4.032-3.22zm9.565 1.018v6.594H10.469v-6.593L16 17.63l5.532-4.419zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"}));function Nx(){return(Nx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Lx=({styles:e={},...t})=>Lb("svg",Nx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M23.637 13.902l-7.625-5.535-7.624 5.535 2.912 8.956h9.425l2.912-8.956zm-1.017.33l-2.524 7.762H11.93l-2.524-7.762 6.607-4.796 6.608 4.796zM16.012.311c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function Ix(){return(Ix=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Fx=({styles:e={},...t})=>Lb("svg",Ix({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M13.51 9.081v4.428H9.08v4.982h4.428v4.428h4.982V18.49h4.428v-4.982H18.49V9.081h-4.982zm.83.83h3.32v4.428h4.429v3.322H17.66v4.428h-3.32v-4.454H9.91v-3.296h4.428V9.911zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z",opacity:".98"}));function Hx(){return(Hx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Vx=({styles:e={},...t})=>Lb("svg",Hx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.012 8.816L9.21 21.026h13.606l-6.803-12.21zm0 1.776l5.332 9.57H10.681l5.331-9.57zm0-10.281c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function $x(){return($x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Gx=({styles:e={},...t})=>Lb("svg",$x({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.998 8.406c-3.018-.041-5.92 1.926-7.031 4.727-1.138 2.695-.51 6.012 1.537 8.103 1.99 2.141 5.268 2.93 8.014 1.927 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.88-4.3-7.137a7.552 7.552 0 00-3.288-.75zm0 1.384c2.759-.052 5.373 1.973 6.015 4.655.704 2.578-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.086-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86zm1.962 1.765l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.615c-.252-.14-.505-.278-.757-.417zm-1.965-8.268h-.158l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.048.12.047.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.138-.107-.121-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.005-.002-.006-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.141-.031-.006-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.001-.143-.026-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.01l-.148-.001h-.01zM10.357 4.66l-.156.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.004.003-.005.004-.11.096-.004.004-.004.003-.109.098-.004.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.003.004-.004.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.005-.086.117-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.029.15-.058.138-.085.119-.108.082-.106.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022-.16.008zm13.91 2.116l-.158.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.026.159.054.152.082.139.086.102.09.09.094.098.093.099.092.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.115.068.117.067.115.065.118.064.117.062.118.061.12.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.049.127.046.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.086.137.109.119.129.096.145.07.155.043.16.013.161-.017.155-.046.143-.074.126-.1.106-.122.082-.138.055-.152.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.059-.132-.002-.005-.002-.004-.061-.132-.003-.004-.002-.005-.062-.13-.003-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.073-.125-.003-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.08-.12-.004-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.117-.003-.005-.003-.004-.088-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.093-.113-.004-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.109-.004-.004-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023-.16.008zM4.288 12.828l-.158.032-.15.06-.135.088-.117.11-.095.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.006-.019.144v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.006l-.001.005-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.006.033.14v.006l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.103.102-.126.076-.142.049-.153.02-.16-.01-.161-.032-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.132-.024-.134-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.132.01-.139.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029-.16.002zm23.286 4.202l-.156.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.134-.026.132-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.062.119-.063.116-.067.119-.066.116-.068.115-.07.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.108-.085.109-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.082-.12.003-.005.002-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.004.003-.005.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.003-.005.002-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.002-.006.04-.138.002-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.141.001-.006.001-.005.031-.141.002-.006v-.005l.03-.142.001-.005.001-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022-.16.007zM6.681 22.734l-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.11.04.047.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.106.004.003.004.004.103.105.004.004.004.004.105.103.004.004.003.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.005.004.004.003.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.003.126.072.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.068.005.002.004.002.13.066.004.003.005.002.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.003.133.056.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.161-.015.155-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.158-.061-.15-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.079-.11-.08-.109-.082-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm15.063 2.691l-.156.044-.12.057-.06.034-.12.066-.116.064-.119.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.036-.13.035-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021h.005l.006-.002.143-.022h.006l.005-.002.143-.024h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.036.005-.002.005-.001.14-.038.005-.001.005-.002.14-.04h.005l.005-.002.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.056.005-.003.005-.002.132-.057.005-.002.005-.003.132-.059.005-.002.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.002.005-.003.129-.066.004-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.002.065-.038.132-.093.112-.115.089-.135.062-.149.034-.157.004-.161-.027-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.045-.16-.017-.161.014zM15.994 0l-.187.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.01L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.184.027h-.006l-.005.001-.184.029h-.005l-.005.001-.183.031-.005.001-.006.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.177.027.17.03.173.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.088-.135.06-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.144-.073-.129-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.005-.001-.184-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06 17.385.06h-.005l-.187-.015h-.005l-.005-.001-.187-.013h-.01L16.799.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0h-.01zm8.86 2.939l-.157.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.127.125.123.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.085.152.083.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.161-.016.155-.046.143-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.002-.005-.003-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.002-.005-.102-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.004-.003-.005-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.003-.004-.004-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.003-.004-.133-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027-.16.004zm-18.381.348l-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.005-.003.004-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.005-.003.004-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023-.161.008zm24.514 11.15l-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.024.175-.027.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.161-.061.164-.063.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.078.158-.081.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.12.13.096.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.004.002-.005.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.17.002-.006.001-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.18.001-.006.001-.005.038-.182v-.005l.002-.005.035-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02-.161.009zM.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.005.074.169.002.005.002.004.076.169.002.005.002.004.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.156-.07-.162-.068-.16-.067-.164-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15 .777 15zM6.17 26.842l-.152.052-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.005.003.004.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.003.162.088.005.002.004.002.164.087.005.002.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.169.076.004.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.061.005.002.005.001.175.06.005.001.005.002.176.057.005.001.005.002.177.055.005.001.005.002.177.052.005.002.005.001.178.051.005.001.005.002.178.048.006.002h.005l.179.047.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.169-.044-.17-.045-.166-.048-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm19.214.073l-.156.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.157.073-.158.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.048-.17.045-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.008.133-.017.115-.024h.005l.005-.002.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002h.005l.18-.047.004-.001.005-.002.179-.048.005-.002.005-.001.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.005-.002.004-.002.172-.068.005-.001.005-.002.171-.07.005-.002.005-.002.17-.072.005-.002.005-.002.169-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.002.167-.08.004-.003.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.002.163-.087.005-.002.005-.002.162-.088.005-.003.005-.003.161-.09.005-.002.004-.003.16-.092.005-.002.005-.003.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.002.155-.102.005-.003.004-.003.154-.104.004-.003.005-.003.152-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.111.004-.004.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02-.16.009z"}));function Wx(){return(Wx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Ux=({styles:e={},...t})=>Lb("svg",Wx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.157.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.408 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 4.975zm-2.15 3.281v5.534H8.213v4.38h5.636v5.534h4.31V18.17h5.639v-4.38h-5.64V8.256h-4.31zm.865.865h2.583v5.534h5.635v2.65h-5.635v5.533h-2.583v-5.534h-5.64v-2.649h5.64V9.121z"}));function qx(){return(qx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Kx=({styles:e={},...t})=>Lb("svg",qx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.521L9.206 20.745h13.598L16.005 8.542zm0 1.775l5.329 9.564H10.677l5.328-9.564z"}));function Yx(){return(Yx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Xx=({styles:e={},...t})=>Lb("svg",Yx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-.137 3.42c-2.965.02-5.792 1.968-6.884 4.722-1.137 2.693-.509 6.007 1.536 8.096 1.988 2.14 5.263 2.929 8.007 1.926 2.875-.98 4.987-3.824 5.063-6.865.154-2.954-1.622-5.875-4.295-7.13a7.545 7.545 0 00-3.427-.75zm.27 1.381c2.708.013 5.249 2.014 5.88 4.652.704 2.576-.481 5.512-2.788 6.862-2.356 1.478-5.677 1.084-7.611-.918-2.042-1.97-2.405-5.376-.839-7.738 1.11-1.762 3.146-2.877 5.229-2.857h.13zm1.831 1.764l-2.072 3.76c-.64.068-.792 1.039-.202 1.298.39.27.696-.18 1.051-.164h3.168v-.864h-3.18l1.992-3.612-.757-.418z"}));function Zx(){return(Zx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Qx=({styles:e={},...t})=>Lb("svg",Zx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.848.001C8.113-.093.931 6.281.125 13.983c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.207C29.105 4.938 23.55.48 17.367.06A16.448 16.448 0 0015.848 0v.001zm.293 1.727c7.113-.099 13.662 5.97 14.077 13.08.56 6.299-3.516 12.735-9.582 14.679-5.798 2.004-12.806-.12-16.283-5.237C.717 19.159.874 11.638 5.016 6.876 7.722 3.638 11.902 1.63 16.14 1.728zm-.415 1.555C9.157 3.258 3.256 9.156 3.278 15.729c-.16 5.965 4.365 11.725 10.293 12.737 5.409 1.065 11.37-1.744 13.775-6.753 2.534-4.986 1.386-11.627-2.953-15.251-2.364-2.077-5.512-3.27-8.667-3.18zm.507 1.692c5.82-.026 11.013 5.318 10.79 11.143-.024 5.3-4.313 10.267-9.636 10.803-5.075.667-10.426-2.588-11.885-7.553-1.535-4.744.494-10.46 4.925-12.885a11.072 11.072 0 015.806-1.508z"}));function Jx(){return(Jx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ew(){return(ew=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function tw(){return(tw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function nw(){return(nw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function iw(){return(iw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function rw(){return(rw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ow(){return(ow=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function aw(){return(aw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function sw(){return(sw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function cw(){return(cw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function lw(){return(lw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function pw(){return(pw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function uw(){return(uw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function hw(){return(hw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function dw(){return(dw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function mw(){return(mw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function fw(){return(fw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function vw(){return(vw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function gw(){return(gw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function yw(){return(yw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function bw(){return(bw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _w(){return(_w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function xw(){return(xw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ww(){return(ww=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ew(){return(Ew=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Sw(){return(Sw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Cw(){return(Cw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Pw(){return(Pw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Mw(){return(Mw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Rw(){return(Rw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Tw(){return(Tw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function kw(){return(kw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Aw(){return(Aw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var zw=({styles:e={},...t})=>Lb("svg",Aw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M5.637 3A5.644 5.644 0 000 8.637v15.417a5.644 5.644 0 005.637 5.637h20.726A5.644 5.644 0 0032 24.054V8.637A5.644 5.644 0 0026.363 3H5.637zm0 1.778h20.726a3.83 3.83 0 013.859 3.859v15.417a3.83 3.83 0 01-3.859 3.858h-4.201V16.695H9.838v11.217H5.637a3.83 3.83 0 01-3.859-3.858V8.637a3.83 3.83 0 013.859-3.859zm5.33 13.046h10.066v10.065H10.967V17.824zm4.189 1.431V22.06H12.35v1.689h2.804V26.554h1.69V23.749h2.804V22.06h-2.804V19.255h-1.69z"}));function Ow(){return(Ow=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Dw=({styles:e={},...t})=>Lb("svg",Ow({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M5.636 3A5.642 5.642 0 000 8.636v15.418a5.643 5.643 0 005.636 5.636h20.728A5.643 5.643 0 0032 24.054V8.636A5.642 5.642 0 0026.364 3H5.636zm0 1.778h20.728a3.83 3.83 0 013.858 3.858v15.418a3.83 3.83 0 01-3.858 3.858h-4.203V16.723H9.84v11.189H5.636a3.83 3.83 0 01-3.858-3.858V8.636a3.83 3.83 0 013.858-3.858zm5.331 13.074h10.066v10.06H10.967v-10.06zm1.336 3.996v1.711h7.394v-1.71h-7.394z"}));function Bw(){return(Bw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function jw(){return(jw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Nw(){return(Nw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Lw(){return(Lw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Iw={Association:({styles:e={},...t})=>Lb("svg",L_({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),Lb("path",{stroke:"#000",strokeWidth:"2",fill:"none",strokeDasharray:"3.3,6",strokeLinecap:"square",d:"M1.5 30.5l29-29"})),BusinessRuleTask:({styles:e={},...t})=>Lb("svg",I_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.296 7.398v12.665h16.87V7.398H5.296zm.718 4.386h15.433v3.44H9.985v-3.432h-.719v3.431H6.014v-3.44zm0 4.158h3.252v3.403H6.014v-3.403zm3.97 0h11.463v3.403H9.985v-3.403z"}),Lb("path",{d:"M6.079 8.209v3.587H21.44V8.209z"})),CallActivity:({styles:e={},...t})=>Lb("svg",F_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M24.978 3c3.761 0 6.89 2.979 7.018 6.695l.004.238V22.4c0 3.747-3.05 6.804-6.783 6.93l-.24.003H7.023c-3.761 0-6.89-2.978-7.018-6.695L0 22.4V9.933C0 6.187 3.05 3.13 6.783 3.004L7.023 3h17.955zm0 3.667H7.022c-1.842 0-3.255 1.344-3.35 3.079l-.005.187V22.4c0 1.761 1.35 3.167 3.16 3.262l.195.005L10 25.666V15h12v10.666h2.978c1.842 0 3.255-1.344 3.35-3.079l.005-.187V9.933c0-1.761-1.35-3.166-3.16-3.261l-.195-.005zm-3.732 9.087H10.754v9.912h10.491v-9.912zm-4.475 1.817v2.658h2.658v1.542H16.77v2.658H15.23V21.77H12.57V20.23h2.658V17.57h1.542z"})),Collaboration:({styles:e={},...t})=>Lb("svg",H_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("g",{fillRule:"evenodd"},Lb("path",{fillRule:"nonzero",d:"M0 0v8.62h32V0H0zm1.655 7.054v-5.37h28.62v5.37H1.656zM0 23.38V32h32v-8.62H0zm1.655 7.054v-5.37h28.62v5.37H1.656z"}),Lb("path",{d:"M24 8l4 7h-8l4-7zm0 2l-2.28 4h4.56L24 10zM23.5 21h1v3h-1zM23.5 15h1v3h-1zM8 24l-4-7h8l-4 7zm0-2l2.28-4H5.72L8 22zM7.5 8h1v3h-1zM7.5 14h1v3h-1z"}))),ConditionalFlow:({styles:e={},...t})=>Lb("svg",V_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M32 .041S20.42 5.95 14.537 8.713c1.26 1.15 2.432 2.392 3.648 3.588-5.703 5.78-3.15 3.303-8.087 8.316l-8.472 1.377L0 32l10.006-1.626.098-.598 1.279-7.873c4.975-5.052 2.403-2.555 8.118-8.346 1.218 1.214 2.43 2.435 3.648 3.648C26.29 11.018 32 .041 32 .041zM9.603 22.397L8.54 28.91 2.03 29.97l1.061-6.515 6.512-1.058z"})),SequenceFlow:({styles:e={},...t})=>Lb("svg",$_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L0 30.734 1.325 32l18.08-18.32c1.227 1.223 2.448 2.453 3.676 3.676C26.247 11.12 32 .06 32 .06z"})),DataInput:({styles:e={},...t})=>Lb("svg",U_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354zm.808 1.868l3.711 3.487-3.71 3.487V9.329H7.888V7.723h4.283V5.039z"})),DataInputAssociation:W_,DataOutput:({styles:e={},...t})=>Lb("svg",K_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354z"})),DataOutputAssociation:W_,DataObjectReference:({styles:e={},...t})=>Lb("svg",q_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M21.345 0H4v32h24.512V7.36L21.345 0zM19.24 1.818v7.507h7.454v20.857H5.818V1.818H19.24zm1.818.493l5.06 5.196h-5.06V2.311z"})),DataStoreReference:({styles:e={},...t})=>Lb("svg",Y_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.008 1c-3.712 0-7.417.306-10.319.939-1.45.316-2.7.71-3.68 1.226C1.065 3.662.297 4.304.061 5.23a.823.823 0 00-.035.15L0 5.502l.017.084c-.012 7.41 0 14.46 0 22.08l.017.082c.203.985.995 1.656 1.975 2.172.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.98-.516 1.772-1.187 1.975-2.172l.017-.082V5.541a.825.825 0 000-.106v-.016l-.002-.013a.823.823 0 00-.046-.197c-.244-.916-1.007-1.55-1.943-2.044-.98-.516-2.23-.91-3.68-1.226C23.423 1.306 19.718 1 16.006 1zm0 1.646c3.62 0 7.245.308 9.968.901 1.36.297 2.497.67 3.263 1.074.612.323.932.643 1.063.882-.131.24-.451.56-1.063.882-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.901-1.361-.297-2.497-.67-3.264-1.074-.611-.322-.931-.642-1.062-.882.13-.24.451-.56 1.062-.882.767-.403 1.903-.777 3.264-1.074 2.723-.593 6.348-.9 9.968-.9zM1.664 7.647c.112.067.227.132.345.194.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.119-.062.234-.127.346-.194v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.671-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.187c.112.067.227.132.345.195.98.516 2.23.91 3.68 1.226 2.902.632 6.607.938 10.319.938 3.711 0 7.416-.306 10.318-.938 1.451-.317 2.701-.71 3.68-1.226.119-.063.234-.128.346-.195v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.67-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.188c.112.067.227.131.345.194.98.516 2.23.91 3.68 1.226 2.902.633 6.607.939 10.319.939 3.711 0 7.416-.306 10.318-.94 1.451-.316 2.701-.709 3.68-1.225.119-.063.234-.127.346-.194V27.47c-.08.245-.398.618-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.9-9.968.9-3.62 0-7.245-.306-9.968-.9-1.361-.297-2.497-.67-3.264-1.074-.714-.377-1.032-.75-1.112-.995V16.022z"})),DefaultFlow:({styles:e={},...t})=>Lb("svg",X_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L6.84 23.804H.046v1.755h5.063L0 30.735 1.325 32l6.357-6.441h7.145v-1.756H9.414l9.99-10.123c1.228 1.223 2.45 2.453 3.677 3.676C26.247 11.12 32 .06 32 .06z"})),CancelEndEvent:({styles:e={},...t})=>Lb("svg",Z_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-3.955 3.918L8.94 12.072l3.985 3.985-3.913 3.913 3.048 3.047 3.913-3.913 3.987 3.987 3.096-3.096-3.987-3.987 3.913-3.913-3.047-3.048-3.913 3.913-3.985-3.985z"})),CompensateEndEvent:({styles:e={},...t})=>Lb("svg",Q_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-.56 5.744l-7.407 5.23 7.408 5.234v-5.057c2.384 1.687 4.771 3.371 7.157 5.057V10.801l-7.157 5.054v-5.054z"})),ErrorEndEvent:({styles:e={},...t})=>Lb("svg",J_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm6.132 4.166l-3.633 7.363-4.516-5.874-4.102 12.131 4.599-5.91 4.743 5.427 2.909-13.137z"})),EscalationEndEvent:({styles:e={},...t})=>Lb("svg",ex({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.9c-1.672 4.653-2.733 9.5-4.406 14.153 1.535-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.497-4.71-2.91-9.445-4.406-14.155z"})),LinkEndEvent:({styles:e={},...t})=>Lb("svg",tx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm1.78 4.065v3.555H9.779v6.713h7.994v3.554l5.828-6.91-5.828-6.912z"})),MessageEndEvent:({styles:e={},...t})=>Lb("svg",nx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-5.91 5.448l6.041 4.9 6.04-4.9H10.084zm-1.34 1.137v9.92h14.513v-9.718l-7.132 5.786-7.381-5.988z"})),MultipleEndEvent:({styles:e={},...t})=>Lb("svg",ix({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.529 18.529 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.011 3.039l-7.619 5.53 2.91 8.95h9.418l2.91-8.95-7.619-5.53z"})),EndEvent:({styles:e={},...t})=>Lb("svg",rx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.84.042C8.654-.01 1.913 5.437.4 12.454-1.057 18.62 1.554 25.495 6.784 29.09c5.076 3.636 12.31 3.92 17.59.544 5.309-3.251 8.435-9.744 7.445-15.921C30.91 7.307 25.795 1.738 19.442.422a16.064 16.064 0 00-3.602-.38zm.382 5.01c5.28-.017 10.13 4.353 10.669 9.61.687 5.025-2.552 10.281-7.423 11.792-4.754 1.617-10.486-.447-12.962-4.856-2.74-4.575-1.574-11.094 2.768-14.27a11.05 11.05 0 016.948-2.276z"})),SignalEndEvent:({styles:e={},...t})=>Lb("svg",ox({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.492c-2.261 4.07-4.532 8.136-6.797 12.204h13.595L15.999 8.55z"})),TerminateEndEvent:({styles:e={},...t})=>Lb("svg",ax({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 2.859c-5.264-.2-9.495 5.551-7.755 10.516 1.366 5.085 8.108 7.436 12.339 4.301 4.455-2.807 4.708-9.943.462-13.058A8.128 8.128 0 0016 7.915z"})),EventSubProcess:({styles:e={},...t})=>Lb("svg",sx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M7.295 4.78h1.779V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.78V4.78zm3.557 0h1.78V3.003h-1.78V4.78zm3.558 0h1.78V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.779V4.78zm3.558 0c.55.014 1.106-.034 1.654.045l.245-1.762c-.629-.096-1.266-.05-1.9-.061V4.78zM5.732 3.004a5.933 5.933 0 00-.915.093c.111.582.226 1.164.315 1.75.358-.101.947.098.746-.483-.096-.382.164-1.208-.146-1.36zm22.372 2.281c.427.234.812.547 1.13.915.42-.4 1.002-.777 1.33-1.18a5.863 5.863 0 00-1.593-1.289l-.867 1.554zm-25.27-1.44c-.587.354-1.11.811-1.539 1.345.47.333.96.86 1.417 1.077.299-.362.66-.673 1.065-.913-.328-.493-.55-1.055-.944-1.509zM30.515 7.26c-.563.046-.557.342-.378.784.154.25-.097.862.25.85.525-.023 1.14.043 1.612-.032a5.891 5.891 0 00-.362-2.027l-1.122.425zM.268 7.114A6.042 6.042 0 000 9.052h1.78c-.013-.5.047-1.003.208-1.478L.296 7.027l-.026.079-.002.008zM30.22 12.45H32v-1.779h-1.779v1.779zm-30.22.16h1.78v-1.779H0v1.78zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.779H0v1.779zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.78H0v1.78zm30.22 3.397H32v-1.779h-1.779v1.78zm-30.22.16h1.78v-1.778H0v1.778zm30.137 1.47a4.059 4.059 0 01-.522 1.32c.506.283 1.046.715 1.53.908a5.836 5.836 0 00.744-1.918c-.576-.094-1.209-.264-1.752-.31zm-29.984.51c.157.676.435 1.325.82 1.904l1.486-.977a4.065 4.065 0 01-.577-1.347l-1.73.42zm28.427 1.943c-.371.277-.79.49-1.234.627l.548 1.693a5.84 5.84 0 001.835-.96l-1.082-1.412-.066.05-.001.002zm-26.164 1.47c.567.413 1.21.722 1.886.907.14-.569.343-1.175.444-1.722a4.062 4.062 0 01-1.283-.624l-1.047 1.438zm3.88 1.119h1.779v-1.78h-1.78v1.78zm3.55 0h1.787v-1.78H9.846v1.78zm3.565 0h1.78v-1.78h-1.78v1.78zm3.558 0h1.78v-1.78h-1.78v1.78zm3.451 0h1.743v-1.78h-1.743v1.78zm3.665 0h1.779v-1.78h-1.78v1.78zm-1.922-.545V16.776H9.846V29.25h12.318zM10.967 17.905h10.068V27.97H10.967V17.905zm1.336 3.998v1.711h7.396v-1.711h-7.396z",opacity:".97"})),ComplexGateway:({styles:e={},...t})=>Lb("svg",cx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.327 6.79v.007l-.145.027-.118.08-.083.123-.028.145v4.954L11.793 10.8l-.125-.08-.14-.029-.144.027-.122.082-.46.46-.085.125-.026.142.028.14.08.125 3.505 3.505H9.347l-.001-.002-.145.032-.118.08-.083.122-.028.146v.652l.029.147.082.119.12.08.144.032h4.956L10.8 20.207v-.001l-.084.124-.026.142.028.14.08.124.46.461.126.082.14.029.143-.027.124-.084L15.3 17.69v4.964-.001l.028.147.082.12.12.08.144.031h.652l.148-.03.118-.08.083-.12.028-.146v-4.962l3.505 3.505.126.082.14.027.142-.027.124-.084.461-.46.083-.123s.028-.144.027-.146l-.028-.14-.082-.126-3.496-3.496h4.948l.148-.03.119-.08.082-.12.028-.147v-.652l-.028-.145-.083-.122-.119-.08s-.147-.033-.147-.031h-4.964l3.512-3.512.082-.122.029-.144-.028-.14-.084-.124-.46-.461-.123-.082-.14-.027-.145.027-.122.082-3.507 3.507V9.348l-.028-.146-.082-.122-.12-.08-.147-.029h-.652z"})),EventBasedGateway:({styles:e={},...t})=>Lb("svg",lx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm0 5.876l-.254.185-7.377 5.355 2.915 8.964h9.433l2.915-8.964-7.631-5.54zm0 1.07l6.614 4.8-2.526 7.769h-8.175l-2.526-7.768 6.614-4.802z"})),ExclusiveGateway:({styles:e={},...t})=>Lb("svg",dx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm-5.162 7.69l-.166.032-.141.096-.532.532s-.097.142-.097.144l-.03.164.032.162.093.144 4.857 4.858-4.855 4.855v-.001L9.9 21l-.03.164.032.162s.093.142.093.144l.531.532.146.095.162.032.164-.03.144-.097 4.855-4.856 4.857 4.857.145.095.162.032.164-.03.144-.097.531-.532.095-.14.033-.168-.033-.162-.095-.146L17.144 16 22 11.144l.095-.14.033-.166-.033-.163-.097-.144-.532-.532-.14-.095-.163-.032-.166.032-.141.095L16 14.855l-4.858-4.858v-.002l-.144-.092-.162-.032z"})),Gateway:({styles:e={},...t})=>Lb("svg",px({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.373a1.313 1.313 0 00-1.833 0L.373 15.084zm1.806.918L16 2.182l13.821 13.82L16 29.823 2.179 16.003z"})),InclusiveGateway:({styles:e={},...t})=>Lb("svg",ux({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm0 6.379a7.447 7.447 0 00-7.44 7.441A7.447 7.447 0 0016 23.443 7.447 7.447 0 0023.443 16a7.447 7.447 0 00-7.441-7.441zm0 .825a6.61 6.61 0 016.617 6.616A6.61 6.61 0 0116 22.618 6.61 6.61 0 019.385 16 6.61 6.61 0 0116 9.385z"})),ParallelGateway:({styles:e={},...t})=>Lb("svg",hx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.377 5.708l-.168.032-.136.092-.096.14-.032.168v6.868h-6.87l-.002-.002-.166.037-.137.092v-.002l-.095.141-.033.167v.753s.032.169.034.17l.094.138.138.092.167.036h6.87v6.867l-.001-.001.033.17.095.138.138.092s.166.035.167.037h.752l.17-.036.137-.092.095-.137.033-.17v-6.867h6.868l.17-.035.137-.092.095-.137.033-.17v-.753s-.033-.165-.032-.167l-.096-.14-.138-.093s-.17-.037-.17-.035H16.81V8.323l-.033-.168-.094-.14-.138-.092-.17-.034h-.752z"})),Group:({styles:e={},...t})=>Lb("svg",mx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.34.016c-2.333.025-4.684 1.77-5.29 4.17C.608 5.848.88 7.608.804 9.314v2.922h2.041c.038-2.332-.076-4.673.062-7C3.14 3.355 4.869 1.938 6.643 2.04h8.956V.009c-3.086 0-6.173-.02-9.258 0v.007zm13.094 2.023h1.92V.009h-1.92v2.03zm5.756 0c1.265-.069 2.66.045 3.602 1.055 1.036.983 1.201 2.523 1.122 3.91v6.313h2.078c-.03-2.677.062-5.36-.047-8.032-.17-2.743-2.62-5.111-5.215-5.236-.511-.064-1.027-.02-1.54-.033v2.023zM.803 18.319h2.041v-2.026H.804v2.026zm29.11 1.084h2.08v-2.03h-2.08v2.03zM.804 26.148c.004 2.218 1.393 4.366 3.313 5.28 1.728.853 3.681.448 5.521.544.43-.112 1.29.231 1.435-.183v-1.847c-1.788-.043-3.584.094-5.365-.082-1.67-.354-2.919-2.048-2.863-3.844v-3.644H.804v3.777zm29.11-.068c.04 1.961-1.508 3.787-3.381 3.842-1.954.06-3.914.02-5.87.026v2.03c2.118-.042 4.242.08 6.355-.063 2.524-.264 4.818-2.644 4.94-5.323.08-1.039.014-2.085.035-3.126h-2.078v2.613zm-15.006 5.898h1.92v-2.03h-1.92v2.03z"})),CancelIntermediateCatchEvent:vx,CompensateIntermediateCatchEvent:yx,ConditionalIntermediateCatchEvent:_x,ErrorIntermediateCatchEvent:wx,EscalationIntermediateCatchEvent:Sx,LinkIntermediateCatchEvent:Px,MessageIntermediateCatchEvent:Rx,MultipleIntermediateCatchEvent:kx,ConditionalIntermediateCatchEventNonInterrupting:zx,EscalationIntermediateCatchEventNonInterrupting:Dx,MessageIntermediateCatchEventNonInterrupting:jx,MultipleIntermediateCatchEventNonInterrupting:Lx,ParallelIntermediateCatchEventNonInterrupting:Fx,SignalIntermediateCatchEventNonInterrupting:Vx,TimerIntermediateCatchEventNonInterrupting:Gx,ParallelMultipleIntermediateCatchEvent:Ux,SignalIntermediateCatchEvent:Kx,TimerIntermediateCatchEvent:Xx,IntermediateThrowEvent:Qx,CompensateIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",Jx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.747l-7.157 5.055v-5.055z"})),EscalationIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",ew({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156z"})),LinkIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",tw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912z"})),MessageIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",nw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-5.91 5.475l6.04 4.901 6.042-4.9H10.088zm-1.341 1.138v9.921h14.514V11.79l-7.132 5.787-7.382-5.99z"})),MultipleIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",iw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.532 2.91 8.95h9.42l2.91-8.95-7.62-5.532z"})),SignalIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",rw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.52c-2.261 4.07-4.533 8.136-6.798 12.205h13.596L16.005 8.495z"})),Lane:({styles:e={},...t})=>Lb("svg",ow({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M0 7v18.62h32V7H0zm1.655 17.056V8.684h28.62v15.372H1.656z"})),ManualTask:({styles:e={},...t})=>Lb("svg",aw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm4.43 1.328c-.222.005-.43.09-.606.203-.985.638-4.356 2.977-5.096 3.486-.67.46-1.12 1.153-1.38 1.974-.27.858-.235 1.793-.232 2.576.002.59.016 1.104.17 1.727.22.908.634 1.63 1.23 2.118.597.49 1.363.732 2.23.734 3.038.012 6.078.016 9.119 0 .327-.002.645-.127.848-.37.204-.241.287-.56.291-.914a1.732 1.732 0 00-.097-.625h.327c.335 0 .641-.11.852-.316.21-.206.317-.475.374-.754a1.783 1.783 0 00-.126-1.143 1.18 1.18 0 00.877-.521c.196-.306.257-.666.258-1.025.001-.375-.088-.738-.293-1.033a1.179 1.179 0 00-.958-.512h-.478c.108-.237.156-.505.155-.782-.003-.373-.098-.721-.316-.99a1.21 1.21 0 00-.943-.43c-2.273-.004-4.236.018-6.412.012l-.19-.001c.102-.104.202-.205.312-.314.337-.336.662-.652.83-.869.4-.516.46-1.215.123-1.729-.178-.272-.439-.456-.72-.494a.93.93 0 00-.148-.008zm.029.728l.022.001c.055.008.115.027.209.172.132.201.126.606-.09.884-.079.102-.431.465-.767.8-.337.334-.657.643-.815.836-.153.186-.096.338-.056.435.04.096.085.212.298.263.063.014.066.01.086.012l.066.003c2.429.027 4.986-.004 7.223-.003.194 0 .293.056.379.162.086.105.151.286.153.533 0 .257-.065.467-.155.59-.09.124-.183.182-.37.183-1.706-.001-3.411-.005-5.117-.009v.731c2.23.004 4.461.01 6.692.012.17 0 .265.06.361.2.096.138.164.364.163.615 0 .268-.058.501-.143.634-.085.132-.162.193-.385.195-2.32-.001-4.554-.006-6.688-.003v.73c1.905 0 3.809.003 5.713.001.194.005.316.09.416.26.102.173.151.442.093.728-.04.193-.102.313-.17.38-.067.065-.148.108-.343.108h-5.71l.002.734c1.445 0 2.89-.01 4.334-.001.162 0 .232.041.297.123.064.081.123.238.12.488-.003.244-.061.385-.12.455-.06.07-.127.11-.296.11-3.037.016-6.076.012-9.113 0-.735-.002-1.316-.196-1.77-.568-.454-.372-.793-.935-.986-1.728-.134-.546-.146-.978-.148-1.558-.003-.796-.018-1.664.199-2.354.222-.705.582-1.24 1.096-1.593.75-.515 4.14-2.866 5.079-3.474a.504.504 0 01.241-.087z"})),MessageFlow:({styles:e={},...t})=>Lb("svg",sw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M4.073 26.607l1.295 1.296L1.325 32l-.662-.633L0 30.735l4.073-4.128zm6.953-7.046l1.296 1.296L1.325 32l7.555-7.656-1.295-1.296 1.455-1.474 1.986-2.013zM32 .06s-2.699 5.189-5.417 10.462l-.326.633c-1.14 2.214-2.265 4.407-3.176 6.2-1.228-1.222-2.449-2.452-3.676-3.675l-3.57 3.618-1.297-1.296 3.541-3.588c-.98-.964-1.932-1.958-2.923-2.91l-.753-.706c2.68-1.258 6.533-3.165 9.95-4.876l.617-.309C28.838 1.673 32 .06 32 .06zm-4.126 4.06l-.015.007-.115.057-.048.024-.115.057L17.7 9.172l5.017 4.948 5.157-10z"})),Participant:({styles:e={},...t})=>Lb("svg",cw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M0 5v22.069h32V5H0zm30.276 1.684v18.82H6.62V6.684h23.655zm-28.62 0h3.31v18.82h-3.31V6.684z"})),Process:({styles:e={},...t})=>Lb("svg",lw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{fillRule:"evenodd",d:"M16.177 0l.137.002c.452.009.9.037 1.342.082.346.036.62.303.68.646l.437 2.536c.055.319.296.57.608.655.986.269 1.923.653 2.796 1.14.28.155.624.145.885-.039l2.083-1.47a.775.775 0 01.937.022c.86.699 1.645 1.484 2.343 2.343.22.27.223.653.023.937l-1.439 2.038a.833.833 0 00-.031.896c.512.889.92 1.846 1.204 2.855a.833.833 0 00.653.601l2.435.42c.342.059.61.333.645.679a15.928 15.928 0 01.08 2.064l-.003.114c-.012.382-.038.76-.077 1.134a.775.775 0 01-.645.68l-2.396.412a.835.835 0 00-.656.61 12.511 12.511 0 01-1.2 2.917.832.832 0 00.034.892l1.396 1.978c.2.284.196.667-.023.936a16.104 16.104 0 01-2.343 2.343.775.775 0 01-.937.023l-1.99-1.404a.833.833 0 00-.88-.026c-.907.516-1.886.922-2.916 1.2a.833.833 0 00-.61.656l-.414 2.396a.775.775 0 01-.679.646 16.096 16.096 0 01-3.312 0 .775.775 0 01-.679-.646l-.423-2.452a.834.834 0 00-.598-.636 12.474 12.474 0 01-1.468-.514 12.49 12.49 0 01-1.417-.68.833.833 0 00-.878.03l-2.026 1.43a.775.775 0 01-.937-.023 16.069 16.069 0 01-2.342-2.342.774.774 0 01-.024-.936l1.402-1.986a.833.833 0 00.032-.896 12.507 12.507 0 01-1.214-2.911.833.833 0 00-.655-.606l-2.386-.412a.775.775 0 01-.646-.678 16.097 16.097 0 010-3.314.775.775 0 01.646-.678l2.386-.412a.833.833 0 00.655-.606 12.507 12.507 0 011.214-2.911.833.833 0 00-.032-.896L3.552 6.853a.774.774 0 01.023-.936 16.091 16.091 0 012.343-2.343.775.775 0 01.937-.023l2.03 1.433c.26.177.6.182.874.028.915-.512 1.88-.9 2.87-1.167a.833.833 0 00.612-.656l.424-2.46a.775.775 0 01.679-.645C14.845.032 15.348.004 15.85 0h.326zM16 6.4c-5.302 0-9.6 4.297-9.6 9.599 0 5.302 4.298 9.6 9.6 9.6s9.6-4.298 9.6-9.6-4.298-9.6-9.6-9.6zm-3 4.283c0-1.425 1.637-2.203 2.715-1.29l5.69 4.815c.794.672.794 1.91 0 2.583l-5.69 4.815c-1.078.913-2.715.134-2.715-1.29z"})),ReceiveTask:({styles:e={},...t})=>Lb("svg",pw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.23 7.764v11.577h17.55V7.764H5.23zm1.816.758h13.917l-6.959 4.577-6.958-4.577zm-1.06.21l8.018 5.274 8.018-5.275v9.853H5.987V8.73z"})),ScriptTask:({styles:e={},...t})=>Lb("svg",uw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm2.99 3.077l-.077.045-.026.015c-1.09.646-1.84 1.239-2.336 1.818-.496.579-.735 1.162-.742 1.725-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.324.408-.911.897-1.85 1.445l-1.388.808h8.56l.101-.059c.996-.58 1.667-1.116 2.094-1.655.429-.54.603-1.107.547-1.638-.11-1.052-.967-1.818-1.688-2.556-.721-.739-1.306-1.436-1.298-2.092.004-.331.132-.7.535-1.171.402-.47 1.08-1.02 2.119-1.636l1.362-.806h-8.54zm.241.867h5.271a6.83 6.83 0 00-1.113 1.01c-.496.58-.736 1.163-.743 1.726-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.312.393-.872.862-1.753 1.386H8.728c.367-.286.658-.566.88-.847.43-.54.604-1.107.548-1.638-.11-1.052-.968-1.818-1.688-2.556-.721-.739-1.306-1.435-1.298-2.092.004-.331.132-.7.534-1.171.389-.454 1.04-.984 2.021-1.575zm-1.233 1.48v.4h4.12v-.4h-4.12zm-.154 2.158v.4H12.6v-.4H8.34zm1.931 2.158v.4h4.126v-.4H10.27zm.59 2.158v.4h4.276v-.4h-4.276z"})),SendTask:({styles:e={},...t})=>Lb("svg",hw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm-1.38 3.16l8.332 4.717L21.78 8.16H5.114zm.021 1.745v9.309H21.8V9.905l-8.353 4.655-8.31-4.655z"})),ServiceTask:({styles:e={},...t})=>Lb("svg",dw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm1.22 1.681V7.84c-.329.093-.63.223-.914.382l-.83-.82-1.554 1.561.83.82c-.16.288-.285.594-.372.911l-1.177.002v2.2l1.189-.004c.109.431.345.819.58 1.165v-1.898l-1.038.004v-.737l1.034-.002.058-.294c.084-.429.252-.838.493-1.203l.165-.25-.727-.718.523-.526.728.719.247-.165c.379-.25.793-.417 1.206-.505l.291-.06-.002-1.01h.75L9.19 8.417H11.16c-.185-.221-.951-.508-1.237-.588L9.93 6.68H7.713zm2.078 2.105l.003 1.158a4.19 4.19 0 00-.915.383l-.83-.821-1.553 1.562.83.82c-.16.288-.286.593-.373.91l-1.176.003v2.2l1.188-.004c.094.326.224.624.383.905l-.85.847 1.57 1.543.847-.843c.29.161.599.286.919.373v1.198c.756.006 1.56.003 2.206.003V17.81a4.19 4.19 0 00.915-.383l.847.835 1.554-1.56-.848-.836c.16-.288.286-.594.373-.912l1.152-.007V12.75l-1.165.007a4.09 4.09 0 00-.382-.905l.805-.807-1.57-1.546-.804.806a4.16 4.16 0 00-.915-.372l.007-1.147H9.792zm.732.73h.751l-.006 1.005.297.058c.43.085.844.252 1.21.492l.25.162.701-.704.528.52-.702.704.169.25c.248.374.412.779.505 1.196l.061.292 1.016-.006v.737l-1.01.006-.058.292c-.085.43-.252.838-.494 1.205l-.165.25.744.733-.523.525-.743-.734-.248.165c-.378.247-.789.418-1.203.503l-.294.058v1.067h-.745v-1.059l-.295-.057a3.395 3.395 0 01-1.21-.492l-.248-.162-.747.743-.528-.52.747-.744-.17-.25a3.546 3.546 0 01-.506-1.196l-.06-.291-1.04.004v-.738l1.034-.002.058-.294c.085-.428.252-.837.493-1.203l.165-.25-.726-.718.522-.526.728.72.248-.166a3.546 3.546 0 011.205-.504l.292-.06-.003-1.01zm.388 2.685a1.65 1.65 0 00-1.645 1.645c0 .904.74 1.645 1.645 1.645a1.65 1.65 0 001.645-1.645 1.65 1.65 0 00-1.645-1.645zm0 .73a.91.91 0 01.915.915.91.91 0 01-.915.914.91.91 0 01-.915-.914.91.91 0 01.915-.915z"})),CompensateStartEvent:({styles:e={},...t})=>Lb("svg",mw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-.566 9.03l-7.415 5.235 7.415 5.238v-5.062c2.386 1.689 4.775 3.375 7.163 5.062V10.761l-7.163 5.058v-5.058zm-.866 1.666v7.13L9.51 15.993l5.052-3.565zm7.166 0v7.137l-5.052-3.568 5.052-3.569z"})),ConditionalStartEvent:({styles:e={},...t})=>Lb("svg",fw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-5.362 7.523v13.493h10.724V9.253H10.638zm.863.866h8.995V21.88H11.501V10.12zm.928 1.324v.863h7.139v-.863h-7.139zm0 2.605v.867h7.139v-.867h-7.139zm0 3.01v.864h7.139v-.863h-7.139zm0 2.72v.863h7.139v-.863h-7.139z"})),ErrorStartEvent:({styles:e={},...t})=>Lb("svg",vw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm6.13 7.45l-3.635 7.37-4.52-5.88c-1.37 4.048-2.738 8.095-4.106 12.143l4.603-5.917 4.748 5.433 2.91-13.149zm-7.754 3.889l4.299 5.449 1.073-2.39-1.028 4.135-4.387-5.16-1.78 2.75 1.823-4.784z"})),EscalationStartEvent:({styles:e={},...t})=>Lb("svg",gw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 7.183c-1.674 4.658-2.736 9.509-4.41 14.166 1.535-1.526 2.874-3.236 4.41-4.763l4.41 4.763c-1.499-4.713-2.913-9.453-4.41-14.166zm.032 2.931c.822 2.588 1.598 5.19 2.42 7.778l-2.42-2.615c-.683.598-2.455 2.887-2.34 2.39.871-2.489 1.448-5.07 2.34-7.553z"})),MessageStartEvent:({styles:e={},...t})=>Lb("svg",yw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-7.257 8.732v11.069h14.513v-11.07H8.738zm3.224 1.73h8.064c-1.428.878-2.857 2.807-4.285 3.018l-3.779-3.019zm9.562 1.017v6.593H10.465V13.21l5.528 4.417 5.53-4.418z"})),MultipleStartEvent:({styles:e={},...t})=>Lb("svg",bw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 6.328l-7.626 5.536c.97 2.986 1.942 5.971 2.913 8.957h9.426l2.912-8.957-7.625-5.536zm0 1.068l6.609 4.798-2.525 7.763H11.91l-2.524-7.763 6.609-4.798z"})),ConditionalStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",_w({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M10.632 9.189V22.68h10.723V9.189H10.632zm.862.865h8.994v11.76H11.494v-11.76zm.928 1.324v.863h7.138v-.863h-7.138zm0 2.605v.866h7.138v-.866h-7.138zm0 3.01v.863h7.138v-.863h-7.138zm0 2.72v.862h7.138v-.863h-7.138zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"})),EscalationStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",xw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 9.209c-1.674 4.655-2.735 9.504-4.408 14.16 1.534-1.526 2.873-3.235 4.407-4.761l4.408 4.76c-1.497-4.71-2.91-9.448-4.408-14.16zm.031 2.93c.822 2.586 1.598 5.187 2.42 7.774l-2.42-2.614c-.682.598-2.453 2.886-2.34 2.389.873-2.488 1.45-5.068 2.34-7.55zM16.132.364c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.564c-.734.078-1.196.762-1.735 1.206C3.552 6.02 2.55 7.511 1.681 9.053c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786A15.932 15.932 0 011.728 16a.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),MessageStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",ww({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M8.746 10.393v11.064h14.506V10.393H8.746zm3.223 1.728h8.06c-1.428.879-2.856 2.807-4.283 3.018l-3.777-3.018zm9.557 1.018v6.59H10.473v-6.59l5.525 4.416 5.528-4.416zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),MultipleStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",Ew({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M23.621 13.524L16 7.99l-7.622 5.534 2.911 8.952h9.422l2.911-8.952zm-1.016.33l-2.523 7.759h-8.165l-2.524-7.76L16 9.059l6.606 4.796zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),ParallelMultipleStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",Sw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M13.503 9.016v4.428H9.075v4.98h4.428v4.428h4.98v-4.427h4.428v-4.981h-4.427V9.016h-4.981zm.83.83h3.32v4.428h4.428v3.32h-4.428v4.428h-3.32v-4.454H9.905v-3.294h4.428V9.846zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z",opacity:".98"})),SignalStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",Cw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.007 8.82L9.21 21.022h13.596L16.007 8.82zm0 1.775l5.328 9.563H10.68l5.327-9.563zM16.14.386c-1.571.236-4.195-.284-4.9 1.381.619 1.703 2.745.069 4.085.365 1.421-.13 2.84.2 4.235.259C21.27.784 18.19.344 17 .413a20.456 20.456 0 00-.86-.027zM25 3.162c-2.19.694.401 2.26 1.181 3.094 1.083 1.152 1.954 2.484 2.715 3.864 1.48 1.005 1.845-1.26.81-2.03-1.158-1.897-2.613-3.704-4.513-4.89l-.192-.038zm-18.438.423c-1.793.712-2.909 2.548-4.01 4.061-.773.814-2.211 3.653.005 3.211 1.123-1.469 1.87-3.306 3.267-4.614.664-.7 2.73-2.013.738-2.658zm24.57 11.072c-1.659.435-.468 2.667-.99 3.895a13.427 13.427 0 01-1.497 4.435c-.23 1.659 1.991 1.165 2.018-.199a14.277 14.277 0 001.254-7.552.865.865 0 00-.785-.579zm-30.18.666c-1.677.386-.633 2.667-.608 3.876.371 1.623.792 3.35 1.79 4.696 2.382.321.571-2.338.292-3.492a15.92 15.92 0 01-.684-4.39.877.877 0 00-.79-.69zm24.558 11.81c-1.755.865-3.303 2.266-5.274 2.765-1.162-.016-3.074 1.271-1.331 2.102 2.66-.447 5.163-1.733 7.236-3.445.472-.506.06-1.432-.631-1.421zm-19.151.043c-2.004.786.416 2.405 1.43 2.913 1.608.904 3.379 1.636 5.208 1.877 1.77-.804-.228-2.094-1.357-2.073-1.75-.537-3.403-1.396-4.798-2.586l-.227-.104-.256-.027z"})),TimerStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",Pw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.991 8.7c-3.018-.042-5.92 1.925-7.03 4.725-1.138 2.695-.509 6.011 1.537 8.102 1.99 2.142 5.267 2.93 8.013 1.927 2.877-.98 4.99-3.826 5.067-6.87.153-2.956-1.624-5.88-4.299-7.135a7.551 7.551 0 00-3.288-.75zm0 1.383c2.758-.052 5.372 1.972 6.014 4.654.704 2.578-.482 5.516-2.79 6.867-2.358 1.48-5.682 1.085-7.617-.919-2.043-1.97-2.407-5.38-.84-7.743 1.11-1.764 3.149-2.88 5.233-2.86zm1.962 1.764l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.614-.757-.418zM16.12.358h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136L19.823.9l-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006L19.135.64l-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006L17.512.42l-.22-.017-.005-.001h-.006l-.22-.015h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012l-.221-.003h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zm-18.458.426l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1V9.5l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114V16.5l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V16.308l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"})),CancelBoundaryEvent:vx,CompensateBoundaryEvent:yx,ConditionalBoundaryEvent:_x,ErrorBoundaryEvent:wx,EscalationBoundaryEvent:Sx,LinkBoundaryEvent:Px,MessageBoundaryEvent:Rx,MultipleBoundaryEvent:kx,BoundaryEvent:Qx,ConditionalBoundaryEventNonInterrupting:zx,EscalationBoundaryEventNonInterrupting:Dx,MessageBoundaryEventNonInterrupting:jx,MultipleBoundaryEventNonInterrupting:Lx,ParallelBoundaryEventNonInterrupting:Fx,SignalBoundaryEventNonInterrupting:Vx,TimerBoundaryEventNonInterrupting:Gx,ParallelMultipleBoundaryEvent:Ux,SignalBoundaryEvent:Kx,TimerBoundaryEvent:Xx,StartEvent:({styles:e={},...t})=>Lb("svg",Mw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.847.004C9.61-.016 3.624 4.014 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846.004zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625-4.814-3.84-6.538-10.94-4.067-16.57 2.14-5.206 7.515-8.775 13.147-8.71.097-.001.194-.002.29-.001z"})),ParallelMultipleStartEvent:({styles:e={},...t})=>Lb("svg",Rw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.847 0C9.61-.02 3.624 4.01 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846 0zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625C2.101 23.17.377 16.07 2.848 10.44c2.134-5.2 7.522-8.78 13.147-8.71.097-.001.194-.002.29-.001zM13.504 9.08v4.427H9.077v4.98h4.427v4.427h4.98v-4.427h4.428v-4.98h-4.427V9.08h-4.98zm.83.83h3.32v4.427h4.428v3.32h-4.427v4.427h-3.32v-4.453H9.906v-3.294h4.427V9.91z"})),SignalStartEvent:({styles:e={},...t})=>Lb("svg",Tw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm0 6.776L9.19 20.724H22.8L15.995 8.511zm0 1.777l5.332 9.572H10.662l5.333-9.572z"})),TimerStartEvent:({styles:e={},...t})=>Lb("svg",kw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-.143 6.676c-2.967.02-5.797 1.97-6.89 4.727-1.138 2.695-.51 6.012 1.537 8.102 1.99 2.142 5.268 2.932 8.014 1.928 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.881-4.3-7.137a7.552 7.552 0 00-3.43-.75zm.27 1.383c2.71.012 5.254 2.015 5.886 4.656.704 2.577-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.085-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86h.13zm1.833 1.765l-2.074 3.763c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.181l1.992-3.615-.757-.418z"})),CollapsedSubProcess:zw,CollapsedAdHocSubProcess:zw,ExpandedSubProcess:Dw,ExpandedAdHocSubProcess:Dw,Task:({styles:e={},...t})=>Lb("svg",Bw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 2.667C2.916 2.667 0 5.57 0 9.142v13.383C0 26.097 2.916 29 6.494 29h19.012C29.084 29 32 26.097 32 22.525V9.142c0-3.572-2.916-6.475-6.494-6.475H6.494zm0 2h19.012c2.509 0 4.494 1.98 4.494 4.475v13.383C30 25.02 28.015 27 25.506 27H6.494C3.985 27 2 25.02 2 22.525V9.142c0-2.495 1.985-4.475 4.494-4.475z"})),TextAnnotation:({styles:e={},...t})=>Lb("svg",jw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M22.087 0v31.647H32v-1.788h-8.125V1.788H32V0h-9.913zm-2.924 13.999l-2.737 2.167 2.167 2.738 2.738-2.167-2.168-2.738zm-5.475 4.335L10.95 20.5l2.168 2.738 2.737-2.168-2.167-2.737zm-5.475 4.335l-2.738 2.167 2.168 2.738 2.737-2.168-2.167-2.737zm-5.476 4.335L0 29.17l2.167 2.738 2.738-2.168-2.168-2.737z"})),Transaction:({styles:e={},...t})=>Lb("svg",Nw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M5.422 3A5.424 5.424 0 000 8.422v15.822a5.424 5.424 0 005.422 5.423h21.156A5.424 5.424 0 0032 24.244V8.422A5.424 5.424 0 0026.578 3H5.422zm0 1.244h21.156a4.155 4.155 0 014.178 4.178v15.822a4.155 4.155 0 01-4.178 4.178H5.422a4.155 4.155 0 01-4.178-4.178V8.422a4.155 4.155 0 014.178-4.178zm1.056 1.778a3.373 3.373 0 00-3.367 3.366v13.89a3.373 3.373 0 003.367 3.366h19.044a3.373 3.373 0 003.367-3.366V9.388a3.373 3.373 0 00-3.367-3.366H6.478zm0 1.245h19.044c1.187 0 2.122.935 2.122 2.121v13.89a2.104 2.104 0 01-2.122 2.122H6.478a2.104 2.104 0 01-2.122-2.122V9.388c0-1.186.935-2.121 2.122-2.121z"})),UserTask:({styles:e={},...t})=>Lb("svg",Lw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{fillRule:"evenodd",d:"M10.263 7.468c-1.698 0-2.912 1.305-2.915 2.791v.001c0 .45.121.924.311 1.352.138.309.308.593.516.82-1.235.423-2.683 1.119-3.414 2.49l-.04.075v4.44h11.083v-4.44l-.04-.074c-.72-1.352-2.136-2.047-3.36-2.471.597-.608.774-1.392.774-2.192-.004-1.487-1.218-2.792-2.915-2.792zm-1.16 1.583c.08 0 .165.003.26.008.757.045 1.012.181 1.207.31.196.13.334.252.851.268.404-.016.598-.087.737-.169.056-.033.103-.067.152-.1.128.275.197.578.198.893 0 .894-.154 1.52-.975 2.034l.08.604c.171.052.348.11.527.171.025.105.054.242.073.387.02.153.029.311.016.43a.422.422 0 01-.056.19c-.417.417-1.157.66-1.908.66-.75 0-1.49-.243-1.908-.66a.422.422 0 01-.056-.19 1.949 1.949 0 01.016-.43c.02-.146.049-.284.074-.388.177-.062.352-.118.521-.17l.048-.648a.616.616 0 00-.126-.118c-.183-.138-.405-.44-.562-.793-.157-.353-.254-.757-.254-1.08 0-.387.105-.758.297-1.079l.11-.04c.143-.046.339-.09.679-.09zm-1.448 4.304l-.002.014c-.025.185-.04.387-.018.589.021.202.074.42.248.593.595.594 1.494.857 2.382.857.889 0 1.788-.263 2.382-.857.174-.174.227-.391.249-.593a2.496 2.496 0 00-.018-.59l-.002-.01c.903.396 1.776.963 2.258 1.81v3.599H13.53v-2.538h-.67v2.538H7.651v-2.538h-.67v2.538H5.39v-3.599c.483-.849 1.359-1.416 2.264-1.813zM6.495 3C2.914 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.01C28.016 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5z"}))};function Fw(e){const{type:t}=e;let n=Vw(t);const i=function(e){const t=Er(e).eventDefinitions;return t&&t[0]}(e);if(i)return n=`${function(e){return Vw(e.$type).replace("EventDefinition","")}(i)}${n}`,(xr(e,"bpmn:StartEvent")&&!Lr(e)||xr(e,"bpmn:BoundaryEvent")&&!function(e){const t=Er(e);return t&&!1!==t.cancelActivity}(e))&&(n=`${n}NonInterrupting`),n;if(xr(e,"bpmn:SubProcess")&&!xr(e,"bpmn:Transaction"))if(Ir(e))n=`Event${n}`;else{n=`${Nr(e)&&!function(e){return xr(e&&(e.di||Er(e).di),"bpmndi:BPMNPlane")}(e)?"Expanded":"Collapsed"}${n}`}return function(e){const t=Er(e),n=Er(e.source);if(!xr(e,"bpmn:SequenceFlow")||!n)return!1;return n.default&&n.default===t&&(xr(n,"bpmn:Gateway")||xr(n,"bpmn:Activity"))}(e)&&(n="DefaultFlow"),function(e){const t=Er(e),n=Er(e.source);if(!xr(e,"bpmn:SequenceFlow")||!n)return!1;return t.conditionExpression&&xr(n,"bpmn:Activity")}(e)&&(n="ConditionalFlow"),n}const Hw={getDocumentationRef:e=>{const t=$w();if(t)return function(e,t){const n=Gw(e,t);return n&&n.documentationRef}(e,t)},getElementLabel:e=>xr(e,"bpmn:Process")?Er(e).name:Vr(e),getElementIcon:e=>{const t=Fw(e),n=$w();if(n){const t=Gw(e,n);if(t&&t.icon)return()=>Ib("img",{class:"bio-properties-panel-header-template-icon",width:"32",height:"32",src:t.icon.contents})}return Iw[t]},getTypeLabel:e=>{const t=$w();if(t){const n=Gw(e,t);if(n&&n.name)return n.name}return Fw(e).replace(/(\B[A-Z])/g," $1").replace(/(\bNon Interrupting)/g,"($1)")}};function Vw(e){return e.split(":")[1]}function $w(){return j_("elementTemplates",!1)}function Gw(e,t){return t.get(e)}function Ww(e){const{element:t,injector:n,getProviders:i,layoutConfig:r,descriptionConfig:o}=e,a=n.get("canvas"),s=n.get("elementRegistry"),c=n.get("eventBus"),[l,p]=rb({selectedElement:t}),u=l.selectedElement,h=e=>{if(!e)return;let t=e;t&&"label"===t.type&&(t=t.labelTarget),p({...l,selectedElement:t}),c.fire("propertiesPanel.updated",{element:t})};ab((()=>{const e=e=>{const t=e.newSelection[0],n=a.getRootElement();(function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)})(n)||h(t||n)};return c.on("selection.changed",e),()=>{c.off("selection.changed",e)}}),[]),ab((()=>{const e=e=>{const t=function(e,t){return b(e,(e=>e===t))}(e.elements,u);t&&function(e,t){return e&&t.get(e.id)}(t,s)&&h(t)};return c.on("elements.changed",e),()=>{c.off("elements.changed",e)}}),[u]),ab((()=>{const e=e=>{const t=e.element;h(t)};return c.on("root.added",e),()=>{c.off("root.added",e)}}),[u]),ab((()=>{const e=()=>{h(u)};return c.on("propertiesPanel.providersChanged",e),()=>{c.off("propertiesPanel.providersChanged",e)}}),[u]),ab((()=>{const e=()=>{h(u)};return c.on("elementTemplates.changed",e),()=>{c.off("elementTemplates.changed",e)}}),[u]);const d={selectedElement:u,injector:n,getService:(e,t)=>n.get(e,t)},m=i(u),f=cb((()=>S(m,(function(e,t){return t.getGroups(u)(e)}),[])),[m,u]);return Ib(B_.Provider,{value:d,children:Ib(i_,{element:u,headerProvider:Hw,groups:f,layoutConfig:r,layoutChanged:e=>{c.fire("propertiesPanel.layoutChanged",{layout:e})},descriptionConfig:o,descriptionLoaded:e=>{c.fire("propertiesPanel.descriptionLoaded",{description:e})},eventBus:c})})}class Uw{constructor(e,t,n){const{parent:i,layout:r,description:o}=e||{};this._eventBus=n,this._injector=t,this._layoutConfig=r,this._descriptionConfig=o,this._container=fe('<div style="height: 100%" class="bio-properties-panel-container" input-handle-modified-keys="y,z"></div>'),n.on("diagram.init",(()=>{i&&this.attachTo(i)})),n.on("diagram.destroy",(()=>{this.detach()})),n.on("root.added",(e=>{const{element:t}=e;this._render(t)}))}attachTo(e){if(!e)throw new Error("container required");"string"==typeof e&&(e=ye(e)),this.detach(),e.appendChild(this._container),this._eventBus.fire("propertiesPanel.attach")}detach(){const e=this._container.parentNode;e&&(e.removeChild(this._container),this._eventBus.fire("propertiesPanel.detach"))}registerProvider(e,t){t||(t=e,e=1e3),"function"==typeof t.getGroups?(this._eventBus.on("propertiesPanel.getProviders",e,(function(e){e.providers.push(t)})),this._eventBus.fire("propertiesPanel.providersChanged")):console.error("Properties provider does not implement #getGroups(element) API")}_getProviders(){const e=this._eventBus.createEvent({type:"propertiesPanel.getProviders",providers:[]});return this._eventBus.fire(e),e.providers}_render(e){const t=this._injector.get("canvas");e||(e=t.getRootElement()),function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)}(e)||(Wy(Ib(Ww,{element:e,injector:this._injector,getProviders:this._getProviders.bind(this),layoutConfig:this._layoutConfig,descriptionConfig:this._descriptionConfig}),this._container),this._eventBus.fire("propertiesPanel.rendered"))}_destroy(){this._container&&(Wy(null,this._container),this._eventBus.fire("propertiesPanel.destroyed"))}}Uw.$inject=["config.propertiesPanel","injector","eventBus"];class qw{constructor(e){this._commandStack=e}preExecute(e){const t=this._commandStack;w(e,(function(e){t.execute(e.cmd,e.context)}))}}qw.$inject=["commandStack"];const Kw={"properties-panel.multi-command-executor":qw};function Yw(e,t){e.on("diagram.init",(function(){w(Kw,(function(e,n){t.registerHandler(n,e)}))}))}Yw.$inject=["eventBus","commandStack"];var Xw={__depends__:[{__init__:[Yw]},P_],__init__:["propertiesPanel"],propertiesPanel:["type",Uw]};function Zw(e){const{autoFocusEntry:t,element:n,getOptions:i}=e,r=i(n),o=Yb(r);return ab((()=>{if(t&&o&&r.length>o.length){const e=ye(`[data-entry-id="${t}"]`),n=ye(".bio-properties-panel-input",e);n&&n.select()}}),[r]),Ib(h_,{...e})}function Qw(e){return tE(e,"bpmn:ErrorEventDefinition")}function Jw(e){return tE(e,"bpmn:TimerEventDefinition")}function eE(e){const t=Qw(e);return t&&t.get("errorRef")}function tE(e,t){return b(Er(e).get("eventDefinitions")||[],(function(e){return xr(e,t)}))}function nE(e){return xr(e,"bpmn:ReceiveTask")?Er(e):tE(e,"bpmn:MessageEventDefinition")}function iE(e){const t=nE(e);return t&&t.get("messageRef")}function rE(e){return tE(e,"bpmn:LinkEventDefinition")}function oE(e){return tE(e,"bpmn:SignalEventDefinition")}function aE(e){const t=oE(e);return t&&t.get("signalRef")}function sE(e){return tE(e,"bpmn:EscalationEventDefinition")}function cE(e){const t=sE(e);return t&&t.get("escalationRef")}function lE(e){return tE(e,"bpmn:CompensateEventDefinition")}function pE(e){const{element:t}=e;return function(e){return wr(e,["bpmn:EndEvent","bpmn:IntermediateThrowEvent"])&&!!lE(e)}(t)?[{id:"waitForCompletion",component:uE,isEdited:c_},{id:"activityRef",component:hE,isEdited:d_}]:[]}function uE(e){const{element:t}=e,n=j_("commandStack"),i=j_("translate"),r=lE(t);return s_({element:t,id:"waitForCompletion",label:i("Wait for completion"),getValue:()=>r.get("waitForCompletion"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:r,properties:{waitForCompletion:e}})}})}function hE(e){const{element:t}=e,n=j_("commandStack"),i=j_("elementRegistry"),r=j_("translate"),o=lE(t);return Zw({element:t,id:"activityRef",label:r("Activity reference"),getValue:()=>{const e=function(e){const t=lE(e);return t&&t.get("activityRef")}(t);return e&&e.get("id")},setValue:e=>{const r=e?Er(i.get(e)):void 0;n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{activityRef:r}})},getOptions:()=>{let e=[{value:"",label:r("<none>")}];const n=function(e){let t=Er(e).$parent,n=fE(t);xr(t,"bpmn:SubProcess")&&t.triggeredByEvent&&(t=t.$parent,t&&(n=[...n,...fE(t)]));return n}(t);var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((function(t){e.push({value:t.id,label:vE(t)})})),e}})}function dE(e,t){const{flowElements:n}=e;return n.filter((function(e){return xr(e,t)}))}function mE(e,t){return xr(e,"bpmn:CallActivity")||xr(e,"bpmn:SubProcess")&&!e.triggeredByEvent&&!e.isForCompensation||function(e,t){const{id:n}=e;return!!b(t,(function(e){const{attachedToRef:t}=e,i=lE(e);return t&&i&&t.id===n}))}(e,t)}function fE(e){const t=function(e){return dE(e,"bpmn:Activity")}(e),n=function(e){return dE(e,"bpmn:BoundaryEvent")}(e);return t.filter((function(e){return mE(e,n)}))}function vE(e){const{id:t,name:n}=e;return`${n?n+" ":""}(id=${t})`}const gE="text/plain";function yE(e){const{element:t}=e,n=[{id:"documentation",component:bE,isEdited:y_}];return function(e){return xr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)&&n.push({id:"processDocumentation",component:_E,isEdited:y_}),n}function bE(e){const{element:t}=e,n=j_("bpmnFactory"),i=j_("commandStack"),r=j_("translate"),o=j_("debounceInput"),a=wE(Er(t)),s=EE(t,Er(t),n,i);return g_({element:t,id:"documentation",label:r("Element documentation"),getValue:a,setValue:s,debounce:o})}function _E(e){const{element:t}=e,n=j_("bpmnFactory"),i=j_("commandStack"),r=j_("translate"),o=j_("debounceInput"),a=Er(t).processRef,s=wE(a),c=EE(t,a,n,i);return g_({element:t,id:"processDocumentation",label:r("Process documentation"),getValue:s,setValue:c,debounce:o})}function xE(e){return e.find((function(e){return(e.textFormat||gE)===gE}))}function wE(e){return function(){const t=xE(e&&e.get("documentation"));return t&&t.text}}function EE(e,t,n,i){return function(r){let o=xE(t&&t.get("documentation"));return o?r?i.execute("element.updateModdleProperties",{element:e,moddleElement:o,properties:{text:r}}):i.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:{documentation:E(t.get("documentation"),o)}}):r?(o=n.create("bpmn:Documentation",{text:r}),i.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:{documentation:[...t.get("documentation"),o]}})):void 0}}function SE(e,t,n,i){const r=i.create(e,t);return n&&(r.$parent=n),r}function CE(e){return new o([32,32,1]).nextPrefixed(e)}function PE(e){let t=e;for(;t.$parent;)t=t.$parent;return t}function ME(e,t){const n=PE(e);return i=n.get("rootElements"),r=t,(i||[]).filter((e=>xr(e,r)));var i,r}function RE(e,t,n){return ME(e,t).find((e=>e.id===n))}const TE="create-new";function kE(e){const{element:t}=e;if(!function(e){return wr(e,["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:EndEvent"])&&!!Qw(e)}(t))return[];let n=[{id:"errorRef",component:AE,isEdited:d_}];return eE(t)&&(n=[...n,{id:"errorName",component:zE,isEdited:E_},{id:"errorCode",component:OE,isEdited:E_}]),n}function AE(e){const{element:t}=e,n=j_("bpmnFactory"),i=j_("commandStack"),r=j_("translate"),o=Qw(t),a=Er(t),s=N_(a,O_(A_(o,a),"errorRef"));return Zw({element:t,id:"errorRef",label:r("Global error reference"),autoFocusEntry:"errorName",getValue:()=>{const e=eE(t);return e?e.get("id"):""},setValue:e=>{const r=PE(o),a=[];let s;return e===TE&&(s=SE("bpmn:Error",{name:CE("Error_")},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})),s=s||RE(o,"bpmn:Error",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{errorRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:TE,label:r("Create new ...")}];const n=ME(Er(t),"bpmn:Error");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e},show:s})}function zE(e){const{element:t}=e,n=j_("commandStack"),i=j_("translate"),r=j_("debounceInput"),o=eE(t);return w_({element:t,id:"errorName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function OE(e){const{element:t}=e,n=j_("commandStack"),i=j_("translate"),r=j_("debounceInput"),o=eE(t),a=Er(t),s=N_(a,O_(A_(o,a),"errorCode"));return w_({element:t,id:"errorCode",label:i("Code"),getValue:()=>o.get("errorCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{errorCode:e}}),debounce:r,show:s})}const DE="create-new";function BE(e){const{element:t}=e;if(!function(e){return xr(e,"bpmn:Event")&&!!sE(e)}(t))return[];let n=[{id:"escalationRef",component:jE,isEdited:d_}];return cE(t)&&(n=[...n,{id:"escalationName",component:NE,isEdited:E_},{id:"escalationCode",component:LE,isEdited:E_}]),n}function jE(e){const{element:t}=e,n=j_("bpmnFactory"),i=j_("commandStack"),r=j_("translate"),o=sE(t);return Zw({element:t,id:"escalationRef",label:r("Global escalation reference"),autoFocusEntry:"escalationName",getValue:()=>{const e=cE(t);return e&&e.get("id")},setValue:e=>{const r=PE(o),a=[];let s;if(e===DE){const i=CE("Escalation_");s=SE("bpmn:Escalation",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||RE(o,"bpmn:Escalation",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{escalationRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:DE,label:r("Create new ...")}];const n=ME(Er(t),"bpmn:Escalation");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function NE(e){const{element:t}=e,n=j_("commandStack"),i=j_("translate"),r=j_("debounceInput"),o=cE(t);return w_({element:t,id:"escalationName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function LE(e){const{element:t}=e,n=j_("commandStack"),i=j_("translate"),r=j_("debounceInput"),o=cE(t);return w_({element:t,id:"escalationCode",label:i("Code"),getValue:()=>o.get("escalationCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{escalationCode:e}}),debounce:r})}function IE(e){const{element:t}=e;return xr(t,"bpmn:Process")||function(e){return xr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"isExecutable",component:FE,isEdited:c_}]:[]}function FE(e){const{element:t}=e,n=j_("modeling"),i=j_("commandStack"),r=j_("translate");let o,a;if(a=e=>{n.updateProperties(t,{isExecutable:e})},o=e=>e.businessObject.isExecutable,xr(t,"bpmn:Participant")){const e=t.businessObject.get("processRef");a=n=>{i.execute("element.updateModdleProperties",{element:t,moddleElement:e,properties:{isExecutable:n}})},o=()=>e.get("isExecutable")}return s_({element:t,id:"isExecutable",label:r("Executable"),getValue:o,setValue:a})}const HE=/\s/,VE=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,$E=/^[a-z_][\w-.]*$/i;function GE(e,t,n){const i=e.$model.ids.assigned(t);return t?i&&i!==e?n("ID must be unique."):function(e,t){if(n=e,HE.test(n))return t("ID must not contain spaces.");var n;if(!$E.test(e))return VE.test(e)?t("ID must not contain prefix."):t("ID must be a valid QName.")}(t,n):n("ID must not be empty.")}function WE(e){const{element:t}=e,n=j_("modeling"),i=j_("debounceInput"),r=j_("translate");return w_({element:t,id:"id",label:r(xr(t,"bpmn:Participant")?"Participant ID":"ID"),getValue:e=>e.businessObject.id,setValue:e=>{n.updateProperties(t,{id:e})},debounce:i,validate:e=>GE(Er(t),e,r)})}function UE(e){const{element:t}=e;return function(e){return wr(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!rE(e)}(t)?[{id:"linkName",component:qE,isEdited:E_}]:[]}function qE(e){const{element:t}=e,n=j_("commandStack"),i=j_("translate"),r=j_("debounceInput"),o=rE(t);return w_({element:t,id:"linkName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}})},debounce:r})}const KE="create-new";function YE(e){const{element:t}=e;if(!function(e){return xr(e,"bpmn:ReceiveTask")||wr(e,["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent"])&&!!nE(e)}(t))return[];let n=[{id:"messageRef",component:XE,isEdited:d_}];return iE(t)&&(n=[...n,{id:"messageName",component:ZE,isEdited:E_}]),n}function XE(e){const{element:t}=e,n=j_("bpmnFactory"),i=j_("commandStack"),r=j_("translate"),o=nE(t),a=Er(t),s=N_(a,O_(A_(o,a),"messageRef"));return Zw({element:t,id:"messageRef",label:r("Global message reference"),autoFocusEntry:"messageName",getValue:()=>{const e=iE(t);return e?e.get("id"):""},setValue:e=>{const r=PE(o),a=[];let s;if(e===KE){const i=CE("Message_");s=SE("bpmn:Message",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||RE(o,"bpmn:Message",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{messageRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:KE,label:r("Create new ...")}];const n=ME(Er(t),"bpmn:Message");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e},show:s})}function ZE(e){const{element:t}=e,n=j_("commandStack"),i=j_("translate"),r=j_("debounceInput"),o=iE(t),a=Er(t),s=N_(a,O_(A_(o,a),"name"));return w_({element:t,id:"messageName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r,show:s})}function QE(e){const{element:t}=e;if(!function(e){const t=iS(e);return!!t&&xr(t,"bpmn:MultiInstanceLoopCharacteristics")}(t))return[];return[{id:"loopCardinality",component:JE,isEdited:E_},{id:"completionCondition",component:eS,isEdited:E_}]}function JE(e){const{element:t}=e,n=j_("bpmnFactory"),i=j_("debounceInput"),r=j_("commandStack"),o=j_("translate");return w_({element:t,id:"loopCardinality",label:o("Loop cardinality"),getValue:()=>function(e){return tS(function(e){return nS(e,"loopCardinality")}(e))}(t),setValue:e=>r.execute("element.updateModdleProperties",rS(t,"loopCardinality",e,n)),debounce:i})}function eS(e){const{element:t}=e,n=j_("bpmnFactory"),i=j_("debounceInput"),r=j_("commandStack"),o=j_("translate");return w_({element:t,id:"completionCondition",label:o("Completion condition"),getValue:()=>function(e){return tS(function(e){return nS(e,"completionCondition")}(e))}(t),setValue:e=>r.execute("element.updateModdleProperties",rS(t,"completionCondition",e,n)),debounce:i})}function tS(e){return e&&e.get("body")}function nS(e,t){const n=iS(e);return n&&n.get(t)}function iS(e){return Er(e).loopCharacteristics}function rS(e,t,n,i){const r=iS(e),o={};if(!n)return o[t]=void 0,{element:e,moddleElement:r,properties:o};const a=r.get(t);return a?{element:e,moddleElement:a,properties:{body:n}}:(o[t]=function(e,t,n){return SE("bpmn:FormalExpression",{body:t},e,n)}(r,n,i),{element:e,moddleElement:r,properties:o})}function oS(e){const{element:t}=e;return wr(t,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])?[]:[{id:"name",component:aS,isEdited:E_}]}function aS(e){const{element:t}=e,n=j_("modeling"),i=j_("debounceInput"),r=j_("canvas"),o=j_("bpmnFactory"),a=j_("translate");let s={element:t,id:"name",label:a("Name"),debounce:i,setValue:e=>{n.updateProperties(t,{name:e})},getValue:e=>e.businessObject.name};return xr(t,"bpmn:TextAnnotation")?s={...s,setValue:e=>{n.updateProperties(t,{text:e})},getValue:e=>e.businessObject.text}:xr(t,"bpmn:Group")?s={...s,setValue:e=>{const i=Er(t);i.categoryValueRef||function(e,t,n){const i=function(e,t){const n=t.create("bpmn:CategoryValue"),i=t.create("bpmn:Category",{categoryValue:[n]});return function(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)}}(e.get("rootElements"),i),Er(i).$parent=e,Er(n).$parent=i,n}(Er(t).$parent,n);e.categoryValueRef=i}(i,r.getRootElement(),o),n.updateLabel(t,e)},getValue:e=>{const t=Er(e).categoryValueRef;return t&&t.value}}:xr(t,"bpmn:Participant")&&(s.label=a("Participant Name")),w_(s)}function sS(e){const{element:t}=e;return function(e){return xr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"processId",component:lS,isEdited:E_},{id:"processName",component:cS,isEdited:E_}]:[]}function cS(e){const{element:t}=e,n=j_("commandStack"),i=j_("translate"),r=j_("debounceInput"),o=t.businessObject.get("processRef");return w_({element:t,id:"processName",label:i("Process name"),getValue:()=>o.get("name"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}})},debounce:r})}function lS(e){const{element:t}=e,n=j_("commandStack"),i=j_("translate"),r=j_("debounceInput"),o=t.businessObject.get("processRef");return w_({element:t,id:"processId",label:i("Process ID"),getValue:()=>o.get("id"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{id:e}})},debounce:r,validate:e=>GE(o,e,i)})}const pS="create-new";function uS(e){const{element:t}=e;if(!function(e){return xr(e,"bpmn:Event")&&!!oE(e)}(t))return[];let n=[{id:"signalRef",component:hS,isEdited:d_}];return aE(t)&&(n=[...n,{id:"signalName",component:dS,isEdited:E_}]),n}function hS(e){const{element:t}=e,n=j_("bpmnFactory"),i=j_("commandStack"),r=j_("translate"),o=oE(t);return Zw({element:t,id:"signalRef",label:r("Global signal reference"),autoFocusEntry:"signalName",getValue:()=>{const e=aE(t);return e?e.get("id"):""},setValue:e=>{const r=PE(o),a=[];let s;if(e===pS){const i=CE("Signal_");s=SE("bpmn:Signal",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||RE(o,"bpmn:Signal",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{signalRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:pS,label:r("Create new ...")}];const n=ME(Er(t),"bpmn:Signal");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function dS(e){const{element:t}=e,n=j_("commandStack"),i=j_("translate"),r=j_("debounceInput"),o=aE(t);return w_({element:t,id:"signalName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function mS(e){const{element:t,listener:n,idPrefix:i}=e;let{timerEventDefinition:r}=e;if(!r){r=Jw(Er(t))}const o=function(e){if(!e)return;return void 0!==e.get("timeDate")?"timeDate":void 0!==e.get("timeCycle")?"timeCycle":void 0!==e.get("timeDuration")?"timeDuration":void 0}(r);if(!function(e){return wr(e,["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"])&&!!Jw(e)}(t)&&!function(e){return e&&xr(e,"camunda:TaskListener")&&Jw(e)}(n))return[];const a=[];return a.push({id:yS(i,"timerEventDefinitionType"),component:fS,isEdited:d_,timerEventDefinition:r,timerEventDefinitionType:o}),o&&a.push({id:yS(i,"timerEventDefinitionValue"),component:vS,isEdited:E_,timerEventDefinition:r,timerEventDefinitionType:o}),a}function fS(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=j_("commandStack"),o=j_("bpmnFactory"),a=j_("translate");return h_({element:t,id:"timerEventDefinitionType",label:a("Type"),getValue:()=>i||"",setValue:e=>{if(e===i)return;const a=o.create("bpmn:FormalExpression",{body:void 0});a.$parent=n;const s={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};""!==e&&(s[e]=a),r.execute("element.updateModdleProperties",{element:t,moddleElement:n,properties:s})},getOptions:e=>[{value:"",label:a("<none>")},{value:"timeDate",label:a("Date")},{value:"timeDuration",label:a("Duration")},{value:"timeCycle",label:a("Cycle")}]})}function vS(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=j_("commandStack"),o=j_("translate"),a=j_("debounceInput"),s=n.get(i);return w_({element:t,id:"timerEventDefinitionValue",label:o("Value"),getValue:()=>s&&s.get("body"),setValue:e=>{r.execute("element.updateModdleProperties",{element:t,moddleElement:s,properties:{body:e}})},debounce:a,description:gS(i,o)})}function gS(e,t){switch(e){case"timeDate":return Ib("div",{children:[Ib("p",{children:t("A specific point in time defined as ISO 8601 combined date and time representation.")}),Ib("ul",{children:[Ib("li",{children:[Ib("code",{children:"2019-10-01T12:00:00Z"})," - ",t("UTC time")]}),Ib("li",{children:[Ib("code",{children:"2019-10-02T08:09:40+02:00"})," - ",t("UTC plus 2 hours zone offset")]})]}),Ib("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]});case"timeCycle":return Ib("div",{children:[Ib("p",{children:t("A cycle defined as ISO 8601 repeating intervals format.")}),Ib("ul",{children:[Ib("li",{children:[Ib("code",{children:"R5/PT10S"})," - ",t("every 10 seconds, up to 5 times")]}),Ib("li",{children:[Ib("code",{children:"R/P1D"})," - ",t("every day, infinitely")]})]}),Ib("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]});case"timeDuration":return Ib("div",{children:[Ib("p",{children:t("A time duration defined as ISO 8601 durations format.")}),Ib("ul",{children:[Ib("li",{children:[Ib("code",{children:"PT15S"})," - ",t("15 seconds")]}),Ib("li",{children:[Ib("code",{children:"PT1H30M"})," - ",t("1 hour and 30 minutes")]}),Ib("li",{children:[Ib("code",{children:"P14D"})," - ",t("14 days")]})]}),Ib("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]})}}function yS(e,t){return e?e+t:t}function bS(e){return{id:"general",label:"General",entries:[...oS({element:e}),{id:"id",component:WE,isEdited:E_},...sS({element:e}),...IE({element:e})],component:Qb}}function _S(e){const t={label:"Compensation",id:"compensation",component:Qb,entries:[...pE({element:e})]};return t.entries.length?t:null}function xS(e){return{id:"documentation",label:"Documentation",entries:[...yE({element:e})],component:Qb}}function wS(e){const t={id:"error",label:"Error",component:Qb,entries:[...kE({element:e})]};return t.entries.length?t:null}function ES(e){const t={id:"message",label:"Message",component:Qb,entries:[...YE({element:e})]};return t.entries.length?t:null}function SS(e){const t={id:"signal",label:"Signal",component:Qb,entries:[...uS({element:e})]};return t.entries.length?t:null}function CS(e){const t={label:"Link",id:"link",component:Qb,entries:[...UE({element:e})]};return t.entries.length?t:null}function PS(e){const t={id:"escalation",label:"Escalation",component:Qb,entries:[...BE({element:e})]};return t.entries.length?t:null}function MS(e){const t={label:"Timer",id:"timer",component:Qb,entries:[...mS({element:e})]};return t.entries.length?t:null}function RS(e){const t={label:"Multi-instance",id:"multiInstance",component:Qb,entries:[...QE({element:e})]};return t.entries.length?t:null}class TS{constructor(e){e.registerProvider(this)}getGroups(e){return t=>t=t.concat(function(e){return[bS(e),xS(e),_S(e),wS(e),CS(e),ES(e),RS(e),SS(e),PS(e),MS(e)].filter((e=>null!==e))}(e))}}TS.$inject=["propertiesPanel"];var kS,AS={__init__:["bpmnPropertiesProvider"],bpmnPropertiesProvider:["type",TS]},zS={};function OS(e,t,n){if(3===e.nodeType){var i="textContent"in e?e.textContent:e.nodeValue||"";if(!1!==OS.options.trim){var r=0===t||t===n.length-1;if((!(i=i.match(/^[\s\n]+$/g)&&"all"!==OS.options.trim?" ":i.replace(/(^[\s\n]+|[\s\n]+$)/g,"all"===OS.options.trim||r?"":" "))||" "===i)&&n.length>1&&r)return null}return i}if(1!==e.nodeType)return null;var o=String(e.nodeName).toLowerCase();if("script"===o&&!OS.options.allowScripts)return null;var a,s,c=OS.h(o,function(e){var t=e&&e.length;if(!t)return null;for(var n={},i=0;i<t;i++){var r=e[i],o=r.name,a=r.value;"on"===o.substring(0,2)&&OS.options.allowEvents&&(a=new Function(a)),n[o]=a}return n}(e.attributes),(s=(a=e.childNodes)&&Array.prototype.map.call(a,OS).filter(BS))&&s.length?s:null);return OS.visitor&&OS.visitor(c),c}var DS,BS=function(e){return e},jS={};function NS(e){var t=(e.type||"").toLowerCase(),n=NS.map;n&&n.hasOwnProperty(t)?(e.type=n[t],e.props=Object.keys(e.props||{}).reduce((function(t,n){var i;return t[(i=n,i.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=e.props[n],t}),{})):e.type=t.replace(/[^a-z0-9-]/i,"")}function LS(e={}){this._injectOriginModule(e),Gg.call(this,e)}return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.setReviver=function(e){DS=e},t.prototype.shouldComponentUpdate=function(e){var t=this.props;return e.wrap!==t.wrap||e.type!==t.type||e.markup!==t.markup},t.prototype.setComponents=function(e){if(this.map={},e)for(var t in e)if(e.hasOwnProperty(t)){var n=t.replace(/([A-Z]+)([A-Z][a-z0-9])|([a-z0-9]+)([A-Z])/g,"$1$3-$2$4").toLowerCase();this.map[n]=e[t]}},t.prototype.render=function(e){var t=e.wrap;void 0===t&&(t=!0);var n,i=e.type,r=e.markup,o=e.components,a=e.reviver,s=e.onError,c=e["allow-scripts"],l=e["allow-events"],p=e.trim,u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&-1===t.indexOf(i)&&(n[i]=e[i]);return n}(e,["wrap","type","markup","components","reviver","onError","allow-scripts","allow-events","trim"]),h=a||this.reviver||this.constructor.prototype.reviver||DS||Ey;this.setComponents(o);var d={allowScripts:c,allowEvents:l,trim:p};try{n=function(e,t,n,i,r){var o=function(e,t){var n,i,r,o,a="html"===t?"text/html":"application/xml";"html"===t?(o="body",r="<!DOCTYPE html>\n<html><body>"+e+"</body></html>"):(o="xml",r='<?xml version="1.0" encoding="UTF-8"?>\n<xml>'+e+"</xml>");try{n=(new DOMParser).parseFromString(r,a)}catch(e){i=e}if(n||"html"!==t||((n=kS||(kS=function(){if(document.implementation&&document.implementation.createHTMLDocument)return document.implementation.createHTMLDocument("");var e=document.createElement("iframe");return e.style.cssText="position:absolute; left:0; top:-999em; width:1px; height:1px; overflow:hidden;",e.setAttribute("sandbox","allow-forms"),document.body.appendChild(e),e.contentWindow.document}())).open(),n.write(r),n.close()),n){var s=n.getElementsByTagName(o)[0],c=s.firstChild;return e&&!c&&(s.error="Document parse failed."),c&&"parsererror"===String(c.nodeName).toLowerCase()&&(c.removeChild(c.firstChild),c.removeChild(c.lastChild),s.error=c.textContent||c.nodeValue||i||"Unknown error",s.removeChild(c)),s}}(e,t);if(o&&o.error)throw new Error(o.error);var a=o&&o.body||o;NS.map=i||jS;var s=a&&function(e,t,n,i){return OS.visitor=t,OS.h=n,OS.options=i||zS,OS(e)}(a,NS,n,r);return NS.map=null,s&&s.props&&s.props.children||null}(r,i,h,this.map,d)}catch(e){s?s({error:e}):"undefined"!=typeof console&&console.error&&console.error("preact-markup: "+e)}if(!1===t)return n||null;var m=u.hasOwnProperty("className")?"className":"class",f=u[m];return f?f.splice?f.splice(0,0,"markup"):"string"==typeof f?u[m]+=" markup":"object"==typeof f&&(f.markup=!0):u[m]="markup",h("div",u,n||null)}}(Py),document.createElement("form"),i(LS,Gg),LS.prototype._injectOriginModule=function(e){this._modules=[].concat(this._modules,e&&e.disableAdjustOrigin?sy:py)},LS.prototype._extensionModules=[ny,gy,Xw,AS],LS.prototype._modules=[].concat(Gg.prototype._modules,LS.prototype._extensionModules),LS}));
13
+ */var Bb=n((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)t.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function jb(e,t){for(var n in t)e[n]=t[n];return e}function Nb(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function Lb(e){this.props=e}(Lb.prototype=new Gy).isPureReactComponent=!0,Lb.prototype.shouldComponentUpdate=function(e,t){return Nb(this.props,e)||Nb(this.state,t)};var Ib=ky.__b;ky.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ib&&Ib(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var Fb=ky.__e;ky.__e=function(e,t,n){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Fb(e,t,n)};var Vb=ky.unmount;function Hb(){this.__u=0,this.t=null,this.__b=null}function $b(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Gb(){this.u=null,this.o=null}ky.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Vb&&Vb(e)},(Hb.prototype=new Gy).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=$b(i.__v),o=!1,a=function(){o||(o=!0,n.__R=null,r?r(s):s())};n.__R=a;var s=function(){if(!--i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)})),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},c=!0===t.__h;i.__u++||c||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(a,a)},Hb.prototype.componentWillUnmount=function(){this.t=[]},Hb.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=jb({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)}))),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&Vy($y,null,e.fallback);return r&&(r.__h=null),[Vy($y,null,t.__e?null:e.children),r]};var Wb=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Gb.prototype=new Gy).__e=function(e){var t=this,n=$b(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),Wb(t,e,i)):r()};n?n(o):o()}},Gb.prototype.render=function(e){this.u=null,this.o=new Map;var t=Zy(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Gb.prototype.componentDidUpdate=Gb.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Wb(e,n,t)}))};var Ub="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,qb=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Kb=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Gy.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Gy.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Yb=ky.event;function Xb(){}function Zb(){return this.cancelBubble}function Qb(){return this.defaultPrevented}ky.event=function(e){return Yb&&(e=Yb(e)),e.persist=Xb,e.isPropagationStopped=Zb,e.isDefaultPrevented=Qb,e.nativeEvent=e};var Jb={configurable:!0,get:function(){return this.class}},e_=ky.vnode;ky.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){for(var r in i={},n){var o=n[r];"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!Kb(n.type)?r="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(r)?r=r.toLowerCase():qb.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=Zy(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=Zy(n.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i}t&&n.class!=n.className&&(Jb.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Jb)),e.$$typeof=Ub,e_&&e_(e)};var t_=ky.__r;ky.__r=function(e){t_&&t_(e),e.__c};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var n_=Vy;function i_(e,t,n,i,r){var o={};for(var a in t)"ref"!=a&&(o[a]=t[a]);var s,c,l={type:e,props:o,key:n,ref:t&&t.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++ky.__v,__source:i,__self:r};if("function"==typeof e&&(s=e.defaultProps))for(c in s)void 0===o[c]&&(o[c]=s[c]);return ky.vnode&&ky.vnode(l),l}var r_=function(e){return i_("svg",{...e,children:i_("path",{fillRule:"evenodd",d:"m11.657 8-4.95 4.95a1 1 0 0 1-1.414-1.414L8.828 8 5.293 4.464A1 1 0 1 1 6.707 3.05L11.657 8z"})})};r_.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var o_=function(e){return i_("svg",{...e,children:i_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.637 12.637v-4.72h1.362v4.721c0 .36-.137.676-.411.95-.275.275-.591.412-.95.412H3.362c-.38 0-.703-.132-.967-.396A1.315 1.315 0 0 1 2 12.638V3.362c0-.38.132-.703.396-.967S2.982 2 3.363 2h4.553v1.363H3.363v9.274h9.274zM14 2H9.28l-.001 1.362h2.408L5.065 9.984l.95.95 6.622-6.622v2.409H14V2z",fill:"#818798"})})};o_.defaultProps={width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var a_=function(e){return i_("svg",{...e,children:[i_("path",{d:"M5.8 7.06V5.95h4.307v1.11H5.8zm0 3.071v-1.11h4.307v1.11H5.8z",fill:"#505562"}),i_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3.268A4.732 4.732 0 1 0 12.732 8H14a6 6 0 1 1-6-6v1.268z",fill:"#505562"}),i_("path",{d:"m11.28 6.072-.832-.56 1.016-1.224L10 3.848l.312-.912 1.392.584L11.632 2h1.032l-.072 1.52 1.392-.584.312.912-1.464.44 1.008 1.224-.832.552-.864-1.296-.864 1.304z",fill:"#505562"})]})};a_.defaultProps={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var s_=function(e){return i_("svg",{...e,children:[i_("path",{d:"M5.845 7.04V5.93h4.307v1.11H5.845zm0 3.07V9h4.307v1.11H5.845z",fill:"#505562"}),i_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.286 8a4.714 4.714 0 1 0 9.428 0 4.714 4.714 0 0 0-9.428 0zM8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2z",fill:"#505562"})]})};function c_(e){const{element:t,headerProvider:n}=e,{getElementIcon:i,getDocumentationRef:r,getElementLabel:o,getTypeLabel:a}=n,s=o(t),c=a(t),l=r&&r(t),p=i(t);return i_("div",{class:"bio-properties-panel-header",children:[i_("div",{class:"bio-properties-panel-header-icon",children:p&&i_(p,{width:"32",height:"32",viewBox:"0 0 32 32"})}),i_("div",{class:"bio-properties-panel-header-labels",children:[i_("div",{title:c,class:"bio-properties-panel-header-type",children:c}),s?i_("div",{title:s,class:"bio-properties-panel-header-label",children:s}):null]}),i_("div",{class:"bio-properties-panel-header-actions",children:l?i_("a",{rel:"noopener",class:"bio-properties-panel-header-link",href:l,title:"Open documentation",target:"_blank",children:i_(o_,{})}):null})]})}s_.defaultProps={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const l_=pb({description:{},getDescriptionForId:()=>{}}),p_=pb({eventBus:null}),u_=pb({layout:{},setLayout:()=>{},getLayoutForKey:()=>{},setLayoutForKey:()=>{}});function h_(e,t,n=1e3){const{eventBus:i}=Rb(p_);Sb((()=>{if(i)return i.on(e,n,t),()=>i.off(e,t)}),[t,e,i,n])}function d_(e){const t=Cb();return Sb((()=>{t.current=e})),t.current}function m_(e){const{onShow:t}=Rb(u_),n=Cb(),[i,r]=wb(!1),o=Mb((n=>{e(n)&&(v(t)&&t(),n.focus&&!i&&r(!0))}),[e]);return Sb((()=>{i&&n.current&&(v(n.current.focus)&&n.current.focus(),v(n.current.select)&&n.current.select(),r(!1))}),[i]),h_("propertiesPanel.showEntry",o),n}function f_(e){const{eventBus:t}=Rb(p_),[n,i]=wb(null);h_("propertiesPanel.updated",Mb((()=>i(null)),[]));return h_("propertiesPanel.showError",Mb((n=>{i(null),e(n)&&(t&&t.fire("propertiesPanel.showEntry",n),i(n.message))}),[e])),n}function v_(e){const{element:t,entries:n=[],id:i,label:r,shouldOpen:o=!1}=e,a=Cb(null),[s,c]=function(e,t){const{getLayoutForKey:n,setLayoutForKey:i}=Rb(u_),r=n(e,t),[o,a]=wb(r);return[o,t=>{a(t),i(e,t)}]}(["groups",i,"open"],o),l=Mb((()=>c(!0)),[c]),[p,u]=wb(!1),[h,d]=wb(!1);Sb((()=>{const e=n.find((e=>{const{id:t,isEdited:n}=e,i=Pe(`[data-entry-id="${t}"]`);if(!v(n)||!i)return!1;return n(Pe(".bio-properties-panel-input",i))}));u(e)}),[n]),function(e,t,n){Sb((()=>{if(!IntersectionObserver)return;let i;if(e.current){const r=Pe(t);i=new IntersectionObserver((e=>{e[0].intersectionRatio<1?n(!0):1===e[0].intersectionRatio&&n(!1)}),{root:r,rootMargin:"0px 0px 999999% 0px",threshold:[1]}),i.observe(e.current)}return()=>{e.current&&i&&i.unobserve(e.current)}}),[e])}(a,"div.bio-properties-panel-scroll-container",d);const m={...Rb(u_),onShow:l};return i_("div",{class:"bio-properties-panel-group","data-group-id":"group-"+i,ref:a,children:[i_("div",{class:Bb("bio-properties-panel-group-header",p?"":"empty",s?"open":"",h&&s?"sticky":""),onClick:()=>c(!s),children:[i_("div",{title:r,class:"bio-properties-panel-group-header-title",children:r}),i_("div",{class:"bio-properties-panel-group-header-buttons",children:[p&&i_(g_,{}),i_("button",{title:"Toggle section",class:"bio-properties-panel-group-header-button bio-properties-panel-arrow",children:i_(r_,{class:s?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})})]})]}),i_("div",{class:Bb("bio-properties-panel-group-entries",s?"open":""),children:i_(u_.Provider,{value:m,children:n.map((e=>{const{component:n,id:i}=e;return Vy(n,{...e,element:t,key:i})}))})})]})}function g_(){return i_("div",{title:"Section contains data",class:"bio-properties-panel-dot"})}function y_(e){const{text:t,icon:n}=e;return i_("div",{class:"bio-properties-panel open",children:i_("section",{class:"bio-properties-panel-placeholder",children:[n&&i_(n,{class:"bio-properties-panel-placeholder-icon"}),i_("p",{class:"bio-properties-panel-placeholder-text",children:t})]})})}const b_={open:!0},__={},x_=["propertiesPanel.showEntry","propertiesPanel.showError"];function w_(e){const{element:t,headerProvider:n,placeholderProvider:i,groups:r,layoutConfig:o={},layoutChanged:a,descriptionConfig:s={},descriptionLoaded:c,eventBus:l}=e,[p,u]=wb((h=o,{...b_,...h}));var h;Sb((()=>{"function"==typeof a&&a(p)}),[p,a]);const m={layout:p,setLayout:u,getLayoutForKey:(e,t)=>q(p,e,t),setLayoutForKey:(e,t)=>{const n=W({},p);U(n,e,t),u(n)}},f=function(e){return{...__,...e}}(s);"function"==typeof c&&c(f);const v={description:f,getDescriptionForId:(e,t)=>f[e]&&f[e](t)};!function(e,t){const n=Cb([]),i=Cb(!0),r=e=>t=>{!0===i.current&&n.current.unshift([e,t])};Sb((()=>{if(!t)return;const n=e.map((e=>[e,r(e)]));return n.forEach((([e,n])=>{t.on(e,1e4,n)})),()=>{n.forEach((([e,n])=>{t.off(e,n)}))}}),[e,t]),Sb((()=>{if(t){for(i.current=!1;n.current.length;){const[e,i]=n.current.pop();t.fire(e,i)}i.current=!0}}))}(x_,l);const g={eventBus:l},y={element:t};return i&&!t?i_(y_,{...i.getEmpty()}):i&&d(t)?i_(y_,{...i.getMultiple()}):i_(u_.Provider,{value:y,children:i_(l_.Provider,{value:v,children:i_(u_.Provider,{value:m,children:i_(p_.Provider,{value:g,children:i_("div",{class:Bb("bio-properties-panel",p.open?"open":""),children:[i_(c_,{element:t,headerProvider:n}),i_("div",{class:"bio-properties-panel-scroll-container",children:r.map((e=>{const{component:n=v_,id:i}=e;return Vy(n,{...e,key:i,element:t})}))})]})})})})})}function E_(e){const{element:t,forId:n,value:i}=e,r=function(e,t){const{getDescriptionForId:n}=Rb(l_);return n(e,t)}(n,t),o=i||r;if(o)return i_("div",{class:"bio-properties-panel-description",children:o})}const S_=()=>{};function C_(e){const{id:t,label:n,onChange:i,disabled:r,value:o=!1,show:a=S_}=e,[s,c]=wb(o);Sb((()=>{o!==s&&c(o)}),[o]);return i_("div",{class:"bio-properties-panel-checkbox",children:[i_("input",{ref:m_(a),id:R_(t),name:t,type:"checkbox",class:"bio-properties-panel-input",onChange:e=>{(({target:e})=>{i(e.checked)})(e),c(e.target.value)},checked:s,disabled:r}),i_("label",{for:R_(t),class:"bio-properties-panel-label",children:n})]})}function P_(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:a,disabled:s,show:c=S_}=e,l=o(t),p=f_(c);return i_("div",{class:"bio-properties-panel-entry bio-properties-panel-checkbox-entry","data-entry-id":n,children:[i_(C_,{disabled:s,id:n,label:r,onChange:a,show:c,value:l}),p&&i_("div",{class:"bio-properties-panel-error",children:p}),i_(E_,{forId:n,element:t,value:i})]})}function M_(e){return e&&!!e.checked}function R_(e){return`bio-properties-panel-${e}`}const A_=()=>{};function k_(e){const{id:t,label:n,onChange:i,options:r=[],value:o,disabled:a,show:s=A_}=e,c=m_(s),[l,p]=wb(o);return Sb((()=>{o!==l&&p(o)}),[o]),i_("div",{class:"bio-properties-panel-select",children:[i_("label",{for:z_(t),class:"bio-properties-panel-label",children:n}),i_("select",{ref:c,id:z_(t),name:t,class:"bio-properties-panel-input",onInput:e=>{(({target:e})=>{i(e.value)})(e),p(e.target.value)},value:l,disabled:a,children:r.map(((e,t)=>i_("option",{value:e.value,disabled:e.disabled,children:e.label},t)))})]})}function D_(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:a,getOptions:s,disabled:c,show:l=A_}=e,p=o(t),u=s(t),h=f_(l);return i_("div",{class:Bb("bio-properties-panel-entry",h?"has-error":""),"data-entry-id":n,children:[i_(k_,{id:n,label:r,value:p,onChange:a,options:u,disabled:c,show:l}),h&&i_("div",{class:"bio-properties-panel-error",children:h}),i_(E_,{forId:n,element:t,value:i})]})}function T_(e){return e&&!!e.value}function z_(e){return`bio-properties-panel-${e}`}function O_(e){const{label:t,feel:n=!1}=e;return i_("i",{class:"bio-properties-panel-feel-icon",title:t+("required"===n?" must be a FEEL expression":" can optionally be a FEEL expression"),children:i_("required"===n?a_:s_,{})})}function B_(e){const{id:t,label:n,rows:i=2,debounce:r,feel:o,onInput:a,value:s="",disabled:c,monospace:l}=e,[p,u]=wb(s),h=Pb((()=>r((({target:e})=>a(e.value.length?e.value:void 0)))),[a,r]);return Sb((()=>{s!==p&&u(s)}),[s]),i_("div",{class:"bio-properties-panel-textarea",children:[i_("label",{for:L_(t),class:"bio-properties-panel-label",children:[n,o&&i_(O_,{feel:o,label:n})]}),i_("textarea",{id:L_(t),name:t,spellCheck:"false",class:Bb("bio-properties-panel-input",l?"bio-properties-panel-input-monospace":""),onInput:e=>{h(e),u(e.target.value)},onFocus:e.onFocus,onBlur:e.onBlur,rows:i,value:p,disabled:c})]})}function j_(e){const{element:t,id:n,description:i,debounce:r,feel:o,label:a,getValue:s,setValue:c,rows:l,monospace:p,disabled:u}=e;return i_("div",{class:"bio-properties-panel-entry","data-entry-id":n,children:[i_(B_,{id:n,label:a,value:s(t),onInput:c,rows:l,debounce:r,monospace:p,feel:o,disabled:u}),i_(E_,{forId:n,element:t,value:i})]})}function N_(e){return e&&!!e.value}function L_(e){return`bio-properties-panel-${e}`}const I_=()=>{};function F_(e){const{debounce:t,disabled:n=!1,id:i,label:r,onInput:o,feel:a=!1,value:s="",show:c=I_}=e,[l,p]=wb(s||""),u=m_(c),h=Pb((()=>t((({target:e})=>o(e.value.length?e.value:void 0)))),[o,t]);return Sb((()=>{s!==l&&p(s)}),[s]),i_("div",{class:"bio-properties-panel-textfield",children:[i_("label",{for:$_(i),class:"bio-properties-panel-label",children:[r,a&&i_(O_,{feel:a,label:r})]}),i_("input",{ref:u,id:$_(i),type:"text",name:i,spellCheck:"false",autoComplete:"off",disabled:n,class:"bio-properties-panel-input",onInput:e=>{h(e),p(e.target.value)},onFocus:e.onFocus,onBlur:e.onBlur,value:l})]})}function V_(e){const{element:t,id:n,description:i,debounce:r,disabled:o,feel:a,label:s,getValue:c,setValue:l,validate:p,show:u=I_}=e,[h,d]=wb(null),[m,f]=wb(null);let g=c(t);const y=d_(g);Sb((()=>{if(v(p)){const e=p(g)||null;f(e)}}),[g]);y===g&&m&&(g=h);const b=f_(u)||m;return i_("div",{class:Bb("bio-properties-panel-entry",b?"has-error":""),"data-entry-id":n,children:[i_(F_,{debounce:r,disabled:o,feel:a,id:n,label:s,onInput:e=>{let t=null;v(p)&&(t=p(e)||null),t?d(e):l(e),f(t)},show:u,value:g}),b&&i_("div",{class:"bio-properties-panel-error",children:b}),i_(E_,{forId:n,element:t,value:i})]})}function H_(e){return e&&!!e.value}function $_(e){return`bio-properties-panel-${e}`}function G_(e){return function(t){return!1!==e?V(t,f(e)?e:300):t}}G_.$inject=["config.debounceInput"];var W_={debounceInput:["factory",G_]},U_=t(X);const{isNil:q_,isString:K_,isUndefined:Y_}=U_;var X_=function(e,t){if(!e)return null;if(e===t)return[];let n,i=[];do{if(n=e.$parent,!n){if(e.$instanceOf("bpmn:Definitions"))break;return null}if(i=[...Z_(e,n),...i],e=n,t&&e===t)break}while(n);return i};function Z_(e,t){for(let n of Object.values(t.$descriptor.propertiesByName))if(n.isMany){if(t.get(n.name).includes(e))return[n.name,t.get(n.name).indexOf(e)]}else if(t.get(n.name)===e)return[n.name];return[]}var Q_=function(...e){let t=[];for(let n of e){if(q_(n)||Y_(n))return null;K_(n)&&(n=[n]),t=t.concat(n)}return t};function J_(e,t="."){return q_(e)||Y_(e)?null:e.join(t)}const ex=pb({selectedElement:null,injector:null,getService:()=>null});function tx(e,t){const{getService:n}=Rb(ex);return n(e,t)}function nx(e,t){return Mb((n=>{const{id:i,path:r}=n;return i===e.get("id")&&(d(t)?r&&function(e,t,n="."){return!(q_(e)||Y_(e)||q_(t)||Y_(t))&&(K_(e)||(e=J_(e,n)),K_(t)||(t=J_(t,n)),e===t)}(r,t):!!v(t)&&!!t(n))}),[e,t])}function ix(){return(ix=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function rx(){return(rx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ox(){return(ox=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ax(){return(ax=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function sx(){return(sx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function cx(){return(cx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function lx(){return(lx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var px=({styles:e={},...t})=>n_("svg",lx({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),n_("path",{stroke:"#000",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"1.1,4.3",d:"M1.5 30.5L27 5"}),n_("path",{d:"M31.803.197L26.5 16.107l-1.52-1.52 3.783-11.35-11.35 3.783-1.52-1.52z"}));function ux(){return(ux=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function hx(){return(hx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function dx(){return(dx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function mx(){return(mx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function fx(){return(fx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function vx(){return(vx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function gx(){return(gx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function yx(){return(yx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function bx(){return(bx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _x(){return(_x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function xx(){return(xx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function wx(){return(wx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ex(){return(Ex=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Sx(){return(Sx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Cx(){return(Cx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Px(){return(Px=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Mx(){return(Mx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Rx(){return(Rx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ax(){return(Ax=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function kx(){return(kx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Dx(){return(Dx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Tx(){return(Tx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function zx(){return(zx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ox(){return(Ox=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Bx=({styles:e={},...t})=>n_("svg",Ox({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.049C8.195-.111.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.454 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 5.021zm-3.956 3.946l-3.096 3.097 3.985 3.985-3.913 3.913 3.047 3.048 3.913-3.913 3.988 3.987 3.097-3.096L19.076 16l3.914-3.913-3.048-3.048-3.913 3.913-3.986-3.985zm-.002 1.222l3.988 3.987 3.913-3.913 1.826 1.826-3.913 3.913 3.985 3.986-1.873 1.873-3.985-3.985-3.913 3.913-1.827-1.827 3.914-3.913-3.988-3.987 1.873-1.873z"}));function jx(){return(jx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Nx=({styles:e={},...t})=>n_("svg",jx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.793l-7.157 5.055v-5.055zm-.865 1.665v7.125l-5.048-3.562 5.048-3.563zm7.161 0v7.132l-5.048-3.566 5.048-3.566z"}));function Lx(){return(Lx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Ix=({styles:e={},...t})=>n_("svg",Lx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-5.352 4.266V22.761h10.716V9.279H10.642zm.863.866h8.987v11.75h-8.987v-11.75zm.927 1.323v.862h7.133v-.862h-7.133zm0 2.602v.866h7.133v-.866h-7.133zm0 3.008v.862h7.133v-.862h-7.133zm0 2.717v.863h7.133v-.863h-7.133z"}));function Fx(){return(Fx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Vx=({styles:e={},...t})=>n_("svg",Fx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm6.132 4.194c-1.21 2.455-2.422 4.91-3.633 7.364l-4.516-5.875-4.103 12.133 4.6-5.912c1.58 1.81 3.162 3.619 4.744 5.429L22.13 9.215zM14.383 13.1l4.295 5.445 1.073-2.387-1.027 4.131-4.384-5.157-1.778 2.75 1.821-4.782z"}));function Hx(){return(Hx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var $x=({styles:e={},...t})=>n_("svg",Hx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156zm.032 2.929c.822 2.586 1.598 5.186 2.42 7.771l-2.42-2.612c-.682.597-2.452 2.884-2.338 2.388.87-2.487 1.447-5.067 2.338-7.547z"}));function Gx(){return(Gx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Wx=({styles:e={},...t})=>n_("svg",Gx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912zm.974 2.584l3.61 4.295-3.61 4.294v-1.933h-7.88v-4.688h7.88v-1.968z"}));function Ux(){return(Ux=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var qx=({styles:e={},...t})=>n_("svg",Ux({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-7.245 5.475v11.06h14.502v-11.06H8.754zm3.222 1.728h8.057c-1.427.878-2.854 2.806-4.281 3.016l-3.776-3.016zm9.554 1.017v6.587H10.48V13.24l5.524 4.414 5.526-4.414z"}));function Kx(){return(Kx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Yx=({styles:e={},...t})=>n_("svg",Kx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.531 2.91 8.95h9.42l2.91-8.95-7.62-5.53zm0 1.067l6.604 4.794-2.523 7.757h-8.162l-2.522-7.757 6.603-4.794z"}));function Xx(){return(Xx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Zx=({styles:e={},...t})=>n_("svg",Xx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M10.638 9.563V23.056h10.724V9.563H10.638zm.863.866h8.995v11.76H11.5V10.43zm.928 1.324v.862h7.139v-.862h-7.14zm0 2.605v.866h7.139v-.866h-7.14zm0 3.01v.863h7.139v-.863h-7.14zm0 2.72v.863h7.139v-.864h-7.14zM15.999.308h-.004l-.188.001h-.011l-.188.004h-.011L15.41.32h-.011l-.187.008h-.005L15.2.33l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.37h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003.178-.001h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 1.023l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.62h-.005l-.005-.002-.182-.035h-.006L18.938.58l-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.43 17.783.41l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.37h-.005L17.38.368l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.328h-.011L16.6.32h-.011l-.187-.006h-.011L16.204.31h-.011L16.005.31H16zm9.016 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zm-18.381.344l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003L4.682 5l-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.595h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01L16.32 3.6h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 13.135l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187V16.7l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zm-30.21.572l-.161.001-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158-.074-.155-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178-.001-.177v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057-.159-.028zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14v-.005l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 23.019l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 27.127l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"}));function Qx(){return(Qx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Jx=({styles:e={},...t})=>n_("svg",Qx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16.012 9.222c-1.673 4.657-2.735 9.508-4.409 14.164 1.536-1.526 2.874-3.236 4.41-4.762l4.408 4.762c-1.497-4.712-2.911-9.451-4.409-14.164zm.032 2.93c.823 2.588 1.599 5.19 2.421 7.777l-2.42-2.614c-.683.598-2.454 2.886-2.34 2.39.871-2.489 1.448-5.07 2.34-7.552zM16.012.312c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function ew(){return(ew=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var tw=({styles:e={},...t})=>n_("svg",ew({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M8.742 10.464v11.072h14.516V10.464H8.742zm3.224 1.73h8.066a69569 69569 0 00-4.034 3.22l-4.032-3.22zm9.565 1.018v6.594H10.469v-6.593L16 17.63l5.532-4.419zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"}));function nw(){return(nw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var iw=({styles:e={},...t})=>n_("svg",nw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M23.637 13.902l-7.625-5.535-7.624 5.535 2.912 8.956h9.425l2.912-8.956zm-1.017.33l-2.524 7.762H11.93l-2.524-7.762 6.607-4.796 6.608 4.796zM16.012.311c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function rw(){return(rw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var ow=({styles:e={},...t})=>n_("svg",rw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M13.51 9.081v4.428H9.08v4.982h4.428v4.428h4.982V18.49h4.428v-4.982H18.49V9.081h-4.982zm.83.83h3.32v4.428h4.429v3.322H17.66v4.428h-3.32v-4.454H9.91v-3.296h4.428V9.911zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z",opacity:".98"}));function aw(){return(aw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var sw=({styles:e={},...t})=>n_("svg",aw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16.012 8.816L9.21 21.026h13.606l-6.803-12.21zm0 1.776l5.332 9.57H10.681l5.331-9.57zm0-10.281c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function cw(){return(cw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var lw=({styles:e={},...t})=>n_("svg",cw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.998 8.406c-3.018-.041-5.92 1.926-7.031 4.727-1.138 2.695-.51 6.012 1.537 8.103 1.99 2.141 5.268 2.93 8.014 1.927 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.88-4.3-7.137a7.552 7.552 0 00-3.288-.75zm0 1.384c2.759-.052 5.373 1.973 6.015 4.655.704 2.578-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.086-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86zm1.962 1.765l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.615c-.252-.14-.505-.278-.757-.417zm-1.965-8.268h-.158l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.048.12.047.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.138-.107-.121-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.005-.002-.006-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.141-.031-.006-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.001-.143-.026-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.01l-.148-.001h-.01zM10.357 4.66l-.156.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.004.003-.005.004-.11.096-.004.004-.004.003-.109.098-.004.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.003.004-.004.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.005-.086.117-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.029.15-.058.138-.085.119-.108.082-.106.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022-.16.008zm13.91 2.116l-.158.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.026.159.054.152.082.139.086.102.09.09.094.098.093.099.092.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.115.068.117.067.115.065.118.064.117.062.118.061.12.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.049.127.046.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.086.137.109.119.129.096.145.07.155.043.16.013.161-.017.155-.046.143-.074.126-.1.106-.122.082-.138.055-.152.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.059-.132-.002-.005-.002-.004-.061-.132-.003-.004-.002-.005-.062-.13-.003-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.073-.125-.003-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.08-.12-.004-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.117-.003-.005-.003-.004-.088-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.093-.113-.004-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.109-.004-.004-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023-.16.008zM4.288 12.828l-.158.032-.15.06-.135.088-.117.11-.095.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.006-.019.144v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.006l-.001.005-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.006.033.14v.006l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.103.102-.126.076-.142.049-.153.02-.16-.01-.161-.032-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.132-.024-.134-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.132.01-.139.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029-.16.002zm23.286 4.202l-.156.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.134-.026.132-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.062.119-.063.116-.067.119-.066.116-.068.115-.07.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.108-.085.109-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.082-.12.003-.005.002-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.004.003-.005.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.003-.005.002-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.002-.006.04-.138.002-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.141.001-.006.001-.005.031-.141.002-.006v-.005l.03-.142.001-.005.001-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022-.16.007zM6.681 22.734l-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.11.04.047.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.106.004.003.004.004.103.105.004.004.004.004.105.103.004.004.003.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.005.004.004.003.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.003.126.072.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.068.005.002.004.002.13.066.004.003.005.002.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.003.133.056.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.161-.015.155-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.158-.061-.15-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.079-.11-.08-.109-.082-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm15.063 2.691l-.156.044-.12.057-.06.034-.12.066-.116.064-.119.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.036-.13.035-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021h.005l.006-.002.143-.022h.006l.005-.002.143-.024h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.036.005-.002.005-.001.14-.038.005-.001.005-.002.14-.04h.005l.005-.002.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.056.005-.003.005-.002.132-.057.005-.002.005-.003.132-.059.005-.002.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.002.005-.003.129-.066.004-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.002.065-.038.132-.093.112-.115.089-.135.062-.149.034-.157.004-.161-.027-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.045-.16-.017-.161.014zM15.994 0l-.187.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.01L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.184.027h-.006l-.005.001-.184.029h-.005l-.005.001-.183.031-.005.001-.006.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.177.027.17.03.173.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.088-.135.06-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.144-.073-.129-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.005-.001-.184-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06 17.385.06h-.005l-.187-.015h-.005l-.005-.001-.187-.013h-.01L16.799.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0h-.01zm8.86 2.939l-.157.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.127.125.123.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.085.152.083.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.161-.016.155-.046.143-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.002-.005-.003-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.002-.005-.102-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.004-.003-.005-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.003-.004-.004-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.003-.004-.133-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027-.16.004zm-18.381.348l-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.005-.003.004-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.005-.003.004-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023-.161.008zm24.514 11.15l-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.024.175-.027.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.161-.061.164-.063.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.078.158-.081.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.12.13.096.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.004.002-.005.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.17.002-.006.001-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.18.001-.006.001-.005.038-.182v-.005l.002-.005.035-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02-.161.009zM.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.005.074.169.002.005.002.004.076.169.002.005.002.004.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.156-.07-.162-.068-.16-.067-.164-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15 .777 15zM6.17 26.842l-.152.052-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.005.003.004.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.003.162.088.005.002.004.002.164.087.005.002.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.169.076.004.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.061.005.002.005.001.175.06.005.001.005.002.176.057.005.001.005.002.177.055.005.001.005.002.177.052.005.002.005.001.178.051.005.001.005.002.178.048.006.002h.005l.179.047.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.169-.044-.17-.045-.166-.048-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm19.214.073l-.156.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.157.073-.158.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.048-.17.045-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.008.133-.017.115-.024h.005l.005-.002.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002h.005l.18-.047.004-.001.005-.002.179-.048.005-.002.005-.001.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.005-.002.004-.002.172-.068.005-.001.005-.002.171-.07.005-.002.005-.002.17-.072.005-.002.005-.002.169-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.002.167-.08.004-.003.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.002.163-.087.005-.002.005-.002.162-.088.005-.003.005-.003.161-.09.005-.002.004-.003.16-.092.005-.002.005-.003.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.002.155-.102.005-.003.004-.003.154-.104.004-.003.005-.003.152-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.111.004-.004.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02-.16.009z"}));function pw(){return(pw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var uw=({styles:e={},...t})=>n_("svg",pw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.003C8.195-.157.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.408 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 4.975zm-2.15 3.281v5.534H8.213v4.38h5.636v5.534h4.31V18.17h5.639v-4.38h-5.64V8.256h-4.31zm.865.865h2.583v5.534h5.635v2.65h-5.635v5.533h-2.583v-5.534h-5.64v-2.649h5.64V9.121z"}));function hw(){return(hw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var dw=({styles:e={},...t})=>n_("svg",hw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.521L9.206 20.745h13.598L16.005 8.542zm0 1.775l5.329 9.564H10.677l5.328-9.564z"}));function mw(){return(mw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var fw=({styles:e={},...t})=>n_("svg",mw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-.137 3.42c-2.965.02-5.792 1.968-6.884 4.722-1.137 2.693-.509 6.007 1.536 8.096 1.988 2.14 5.263 2.929 8.007 1.926 2.875-.98 4.987-3.824 5.063-6.865.154-2.954-1.622-5.875-4.295-7.13a7.545 7.545 0 00-3.427-.75zm.27 1.381c2.708.013 5.249 2.014 5.88 4.652.704 2.576-.481 5.512-2.788 6.862-2.356 1.478-5.677 1.084-7.611-.918-2.042-1.97-2.405-5.376-.839-7.738 1.11-1.762 3.146-2.877 5.229-2.857h.13zm1.831 1.764l-2.072 3.76c-.64.068-.792 1.039-.202 1.298.39.27.696-.18 1.051-.164h3.168v-.864h-3.18l1.992-3.612-.757-.418z"}));function vw(){return(vw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var gw=({styles:e={},...t})=>n_("svg",vw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.848.001C8.113-.093.931 6.281.125 13.983c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.207C29.105 4.938 23.55.48 17.367.06A16.448 16.448 0 0015.848 0v.001zm.293 1.727c7.113-.099 13.662 5.97 14.077 13.08.56 6.299-3.516 12.735-9.582 14.679-5.798 2.004-12.806-.12-16.283-5.237C.717 19.159.874 11.638 5.016 6.876 7.722 3.638 11.902 1.63 16.14 1.728zm-.415 1.555C9.157 3.258 3.256 9.156 3.278 15.729c-.16 5.965 4.365 11.725 10.293 12.737 5.409 1.065 11.37-1.744 13.775-6.753 2.534-4.986 1.386-11.627-2.953-15.251-2.364-2.077-5.512-3.27-8.667-3.18zm.507 1.692c5.82-.026 11.013 5.318 10.79 11.143-.024 5.3-4.313 10.267-9.636 10.803-5.075.667-10.426-2.588-11.885-7.553-1.535-4.744.494-10.46 4.925-12.885a11.072 11.072 0 015.806-1.508z"}));function yw(){return(yw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function bw(){return(bw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _w(){return(_w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function xw(){return(xw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ww(){return(ww=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ew(){return(Ew=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Sw(){return(Sw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Cw(){return(Cw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Pw(){return(Pw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Mw(){return(Mw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Rw(){return(Rw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Aw(){return(Aw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function kw(){return(kw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Dw(){return(Dw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Tw(){return(Tw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function zw(){return(zw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ow(){return(Ow=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Bw(){return(Bw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function jw(){return(jw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Nw(){return(Nw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Lw(){return(Lw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Iw(){return(Iw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Fw(){return(Fw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Vw(){return(Vw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Hw(){return(Hw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function $w(){return($w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Gw(){return(Gw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ww(){return(Ww=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Uw(){return(Uw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function qw(){return(qw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Kw(){return(Kw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Yw(){return(Yw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Xw(){return(Xw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Zw=({styles:e={},...t})=>n_("svg",Xw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M5.637 3A5.644 5.644 0 000 8.637v15.417a5.644 5.644 0 005.637 5.637h20.726A5.644 5.644 0 0032 24.054V8.637A5.644 5.644 0 0026.363 3H5.637zm0 1.778h20.726a3.83 3.83 0 013.859 3.859v15.417a3.83 3.83 0 01-3.859 3.858h-4.201V16.695H9.838v11.217H5.637a3.83 3.83 0 01-3.859-3.858V8.637a3.83 3.83 0 013.859-3.859zm5.33 13.046h10.066v10.065H10.967V17.824zm4.189 1.431V22.06H12.35v1.689h2.804V26.554h1.69V23.749h2.804V22.06h-2.804V19.255h-1.69z"}));function Qw(){return(Qw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Jw=({styles:e={},...t})=>n_("svg",Qw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M5.636 3A5.642 5.642 0 000 8.636v15.418a5.643 5.643 0 005.636 5.636h20.728A5.643 5.643 0 0032 24.054V8.636A5.642 5.642 0 0026.364 3H5.636zm0 1.778h20.728a3.83 3.83 0 013.858 3.858v15.418a3.83 3.83 0 01-3.858 3.858h-4.203V16.723H9.84v11.189H5.636a3.83 3.83 0 01-3.858-3.858V8.636a3.83 3.83 0 013.858-3.858zm5.331 13.074h10.066v10.06H10.967v-10.06zm1.336 3.996v1.711h7.394v-1.71h-7.394z"}));function eE(){return(eE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function tE(){return(tE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function nE(){return(nE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function iE(){return(iE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var rE={Association:({styles:e={},...t})=>n_("svg",ix({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),n_("path",{stroke:"#000",strokeWidth:"2",fill:"none",strokeDasharray:"3.3,6",strokeLinecap:"square",d:"M1.5 30.5l29-29"})),BusinessRuleTask:({styles:e={},...t})=>n_("svg",rx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.296 7.398v12.665h16.87V7.398H5.296zm.718 4.386h15.433v3.44H9.985v-3.432h-.719v3.431H6.014v-3.44zm0 4.158h3.252v3.403H6.014v-3.403zm3.97 0h11.463v3.403H9.985v-3.403z"}),n_("path",{d:"M6.079 8.209v3.587H21.44V8.209z"})),CallActivity:({styles:e={},...t})=>n_("svg",ox({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M24.978 3c3.761 0 6.89 2.979 7.018 6.695l.004.238V22.4c0 3.747-3.05 6.804-6.783 6.93l-.24.003H7.023c-3.761 0-6.89-2.978-7.018-6.695L0 22.4V9.933C0 6.187 3.05 3.13 6.783 3.004L7.023 3h17.955zm0 3.667H7.022c-1.842 0-3.255 1.344-3.35 3.079l-.005.187V22.4c0 1.761 1.35 3.167 3.16 3.262l.195.005L10 25.666V15h12v10.666h2.978c1.842 0 3.255-1.344 3.35-3.079l.005-.187V9.933c0-1.761-1.35-3.166-3.16-3.261l-.195-.005zm-3.732 9.087H10.754v9.912h10.491v-9.912zm-4.475 1.817v2.658h2.658v1.542H16.77v2.658H15.23V21.77H12.57V20.23h2.658V17.57h1.542z"})),Collaboration:({styles:e={},...t})=>n_("svg",ax({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("g",{fillRule:"evenodd"},n_("path",{fillRule:"nonzero",d:"M0 0v8.62h32V0H0zm1.655 7.054v-5.37h28.62v5.37H1.656zM0 23.38V32h32v-8.62H0zm1.655 7.054v-5.37h28.62v5.37H1.656z"}),n_("path",{d:"M24 8l4 7h-8l4-7zm0 2l-2.28 4h4.56L24 10zM23.5 21h1v3h-1zM23.5 15h1v3h-1zM8 24l-4-7h8l-4 7zm0-2l2.28-4H5.72L8 22zM7.5 8h1v3h-1zM7.5 14h1v3h-1z"}))),ConditionalFlow:({styles:e={},...t})=>n_("svg",sx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M32 .041S20.42 5.95 14.537 8.713c1.26 1.15 2.432 2.392 3.648 3.588-5.703 5.78-3.15 3.303-8.087 8.316l-8.472 1.377L0 32l10.006-1.626.098-.598 1.279-7.873c4.975-5.052 2.403-2.555 8.118-8.346 1.218 1.214 2.43 2.435 3.648 3.648C26.29 11.018 32 .041 32 .041zM9.603 22.397L8.54 28.91 2.03 29.97l1.061-6.515 6.512-1.058z"})),SequenceFlow:({styles:e={},...t})=>n_("svg",cx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L0 30.734 1.325 32l18.08-18.32c1.227 1.223 2.448 2.453 3.676 3.676C26.247 11.12 32 .06 32 .06z"})),DataInput:({styles:e={},...t})=>n_("svg",ux({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354zm.808 1.868l3.711 3.487-3.71 3.487V9.329H7.888V7.723h4.283V5.039z"})),DataInputAssociation:px,DataOutput:({styles:e={},...t})=>n_("svg",dx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354z"})),DataOutputAssociation:px,DataObjectReference:({styles:e={},...t})=>n_("svg",hx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M21.345 0H4v32h24.512V7.36L21.345 0zM19.24 1.818v7.507h7.454v20.857H5.818V1.818H19.24zm1.818.493l5.06 5.196h-5.06V2.311z"})),DataStoreReference:({styles:e={},...t})=>n_("svg",mx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16.008 1c-3.712 0-7.417.306-10.319.939-1.45.316-2.7.71-3.68 1.226C1.065 3.662.297 4.304.061 5.23a.823.823 0 00-.035.15L0 5.502l.017.084c-.012 7.41 0 14.46 0 22.08l.017.082c.203.985.995 1.656 1.975 2.172.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.98-.516 1.772-1.187 1.975-2.172l.017-.082V5.541a.825.825 0 000-.106v-.016l-.002-.013a.823.823 0 00-.046-.197c-.244-.916-1.007-1.55-1.943-2.044-.98-.516-2.23-.91-3.68-1.226C23.423 1.306 19.718 1 16.006 1zm0 1.646c3.62 0 7.245.308 9.968.901 1.36.297 2.497.67 3.263 1.074.612.323.932.643 1.063.882-.131.24-.451.56-1.063.882-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.901-1.361-.297-2.497-.67-3.264-1.074-.611-.322-.931-.642-1.062-.882.13-.24.451-.56 1.062-.882.767-.403 1.903-.777 3.264-1.074 2.723-.593 6.348-.9 9.968-.9zM1.664 7.647c.112.067.227.132.345.194.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.119-.062.234-.127.346-.194v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.671-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.187c.112.067.227.132.345.195.98.516 2.23.91 3.68 1.226 2.902.632 6.607.938 10.319.938 3.711 0 7.416-.306 10.318-.938 1.451-.317 2.701-.71 3.68-1.226.119-.063.234-.128.346-.195v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.67-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.188c.112.067.227.131.345.194.98.516 2.23.91 3.68 1.226 2.902.633 6.607.939 10.319.939 3.711 0 7.416-.306 10.318-.94 1.451-.316 2.701-.709 3.68-1.225.119-.063.234-.127.346-.194V27.47c-.08.245-.398.618-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.9-9.968.9-3.62 0-7.245-.306-9.968-.9-1.361-.297-2.497-.67-3.264-1.074-.714-.377-1.032-.75-1.112-.995V16.022z"})),DefaultFlow:({styles:e={},...t})=>n_("svg",fx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L6.84 23.804H.046v1.755h5.063L0 30.735 1.325 32l6.357-6.441h7.145v-1.756H9.414l9.99-10.123c1.228 1.223 2.45 2.453 3.677 3.676C26.247 11.12 32 .06 32 .06z"})),CancelEndEvent:({styles:e={},...t})=>n_("svg",vx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-3.955 3.918L8.94 12.072l3.985 3.985-3.913 3.913 3.048 3.047 3.913-3.913 3.987 3.987 3.096-3.096-3.987-3.987 3.913-3.913-3.047-3.048-3.913 3.913-3.985-3.985z"})),CompensateEndEvent:({styles:e={},...t})=>n_("svg",gx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-.56 5.744l-7.407 5.23 7.408 5.234v-5.057c2.384 1.687 4.771 3.371 7.157 5.057V10.801l-7.157 5.054v-5.054z"})),ErrorEndEvent:({styles:e={},...t})=>n_("svg",yx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm6.132 4.166l-3.633 7.363-4.516-5.874-4.102 12.131 4.599-5.91 4.743 5.427 2.909-13.137z"})),EscalationEndEvent:({styles:e={},...t})=>n_("svg",bx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.9c-1.672 4.653-2.733 9.5-4.406 14.153 1.535-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.497-4.71-2.91-9.445-4.406-14.155z"})),LinkEndEvent:({styles:e={},...t})=>n_("svg",_x({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm1.78 4.065v3.555H9.779v6.713h7.994v3.554l5.828-6.91-5.828-6.912z"})),MessageEndEvent:({styles:e={},...t})=>n_("svg",xx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-5.91 5.448l6.041 4.9 6.04-4.9H10.084zm-1.34 1.137v9.92h14.513v-9.718l-7.132 5.786-7.381-5.988z"})),MultipleEndEvent:({styles:e={},...t})=>n_("svg",wx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.529 18.529 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.011 3.039l-7.619 5.53 2.91 8.95h9.418l2.91-8.95-7.619-5.53z"})),EndEvent:({styles:e={},...t})=>n_("svg",Ex({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.84.042C8.654-.01 1.913 5.437.4 12.454-1.057 18.62 1.554 25.495 6.784 29.09c5.076 3.636 12.31 3.92 17.59.544 5.309-3.251 8.435-9.744 7.445-15.921C30.91 7.307 25.795 1.738 19.442.422a16.064 16.064 0 00-3.602-.38zm.382 5.01c5.28-.017 10.13 4.353 10.669 9.61.687 5.025-2.552 10.281-7.423 11.792-4.754 1.617-10.486-.447-12.962-4.856-2.74-4.575-1.574-11.094 2.768-14.27a11.05 11.05 0 016.948-2.276z"})),SignalEndEvent:({styles:e={},...t})=>n_("svg",Sx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.492c-2.261 4.07-4.532 8.136-6.797 12.204h13.595L15.999 8.55z"})),TerminateEndEvent:({styles:e={},...t})=>n_("svg",Cx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 2.859c-5.264-.2-9.495 5.551-7.755 10.516 1.366 5.085 8.108 7.436 12.339 4.301 4.455-2.807 4.708-9.943.462-13.058A8.128 8.128 0 0016 7.915z"})),EventSubProcess:({styles:e={},...t})=>n_("svg",Px({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M7.295 4.78h1.779V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.78V4.78zm3.557 0h1.78V3.003h-1.78V4.78zm3.558 0h1.78V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.779V4.78zm3.558 0c.55.014 1.106-.034 1.654.045l.245-1.762c-.629-.096-1.266-.05-1.9-.061V4.78zM5.732 3.004a5.933 5.933 0 00-.915.093c.111.582.226 1.164.315 1.75.358-.101.947.098.746-.483-.096-.382.164-1.208-.146-1.36zm22.372 2.281c.427.234.812.547 1.13.915.42-.4 1.002-.777 1.33-1.18a5.863 5.863 0 00-1.593-1.289l-.867 1.554zm-25.27-1.44c-.587.354-1.11.811-1.539 1.345.47.333.96.86 1.417 1.077.299-.362.66-.673 1.065-.913-.328-.493-.55-1.055-.944-1.509zM30.515 7.26c-.563.046-.557.342-.378.784.154.25-.097.862.25.85.525-.023 1.14.043 1.612-.032a5.891 5.891 0 00-.362-2.027l-1.122.425zM.268 7.114A6.042 6.042 0 000 9.052h1.78c-.013-.5.047-1.003.208-1.478L.296 7.027l-.026.079-.002.008zM30.22 12.45H32v-1.779h-1.779v1.779zm-30.22.16h1.78v-1.779H0v1.78zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.779H0v1.779zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.78H0v1.78zm30.22 3.397H32v-1.779h-1.779v1.78zm-30.22.16h1.78v-1.778H0v1.778zm30.137 1.47a4.059 4.059 0 01-.522 1.32c.506.283 1.046.715 1.53.908a5.836 5.836 0 00.744-1.918c-.576-.094-1.209-.264-1.752-.31zm-29.984.51c.157.676.435 1.325.82 1.904l1.486-.977a4.065 4.065 0 01-.577-1.347l-1.73.42zm28.427 1.943c-.371.277-.79.49-1.234.627l.548 1.693a5.84 5.84 0 001.835-.96l-1.082-1.412-.066.05-.001.002zm-26.164 1.47c.567.413 1.21.722 1.886.907.14-.569.343-1.175.444-1.722a4.062 4.062 0 01-1.283-.624l-1.047 1.438zm3.88 1.119h1.779v-1.78h-1.78v1.78zm3.55 0h1.787v-1.78H9.846v1.78zm3.565 0h1.78v-1.78h-1.78v1.78zm3.558 0h1.78v-1.78h-1.78v1.78zm3.451 0h1.743v-1.78h-1.743v1.78zm3.665 0h1.779v-1.78h-1.78v1.78zm-1.922-.545V16.776H9.846V29.25h12.318zM10.967 17.905h10.068V27.97H10.967V17.905zm1.336 3.998v1.711h7.396v-1.711h-7.396z",opacity:".97"})),ComplexGateway:({styles:e={},...t})=>n_("svg",Mx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.327 6.79v.007l-.145.027-.118.08-.083.123-.028.145v4.954L11.793 10.8l-.125-.08-.14-.029-.144.027-.122.082-.46.46-.085.125-.026.142.028.14.08.125 3.505 3.505H9.347l-.001-.002-.145.032-.118.08-.083.122-.028.146v.652l.029.147.082.119.12.08.144.032h4.956L10.8 20.207v-.001l-.084.124-.026.142.028.14.08.124.46.461.126.082.14.029.143-.027.124-.084L15.3 17.69v4.964-.001l.028.147.082.12.12.08.144.031h.652l.148-.03.118-.08.083-.12.028-.146v-4.962l3.505 3.505.126.082.14.027.142-.027.124-.084.461-.46.083-.123s.028-.144.027-.146l-.028-.14-.082-.126-3.496-3.496h4.948l.148-.03.119-.08.082-.12.028-.147v-.652l-.028-.145-.083-.122-.119-.08s-.147-.033-.147-.031h-4.964l3.512-3.512.082-.122.029-.144-.028-.14-.084-.124-.46-.461-.123-.082-.14-.027-.145.027-.122.082-3.507 3.507V9.348l-.028-.146-.082-.122-.12-.08-.147-.029h-.652z"})),EventBasedGateway:({styles:e={},...t})=>n_("svg",Rx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm0 5.876l-.254.185-7.377 5.355 2.915 8.964h9.433l2.915-8.964-7.631-5.54zm0 1.07l6.614 4.8-2.526 7.769h-8.175l-2.526-7.768 6.614-4.802z"})),ExclusiveGateway:({styles:e={},...t})=>n_("svg",Tx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm-5.162 7.69l-.166.032-.141.096-.532.532s-.097.142-.097.144l-.03.164.032.162.093.144 4.857 4.858-4.855 4.855v-.001L9.9 21l-.03.164.032.162s.093.142.093.144l.531.532.146.095.162.032.164-.03.144-.097 4.855-4.856 4.857 4.857.145.095.162.032.164-.03.144-.097.531-.532.095-.14.033-.168-.033-.162-.095-.146L17.144 16 22 11.144l.095-.14.033-.166-.033-.163-.097-.144-.532-.532-.14-.095-.163-.032-.166.032-.141.095L16 14.855l-4.858-4.858v-.002l-.144-.092-.162-.032z"})),Gateway:({styles:e={},...t})=>n_("svg",Ax({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.373a1.313 1.313 0 00-1.833 0L.373 15.084zm1.806.918L16 2.182l13.821 13.82L16 29.823 2.179 16.003z"})),InclusiveGateway:({styles:e={},...t})=>n_("svg",kx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm0 6.379a7.447 7.447 0 00-7.44 7.441A7.447 7.447 0 0016 23.443 7.447 7.447 0 0023.443 16a7.447 7.447 0 00-7.441-7.441zm0 .825a6.61 6.61 0 016.617 6.616A6.61 6.61 0 0116 22.618 6.61 6.61 0 019.385 16 6.61 6.61 0 0116 9.385z"})),ParallelGateway:({styles:e={},...t})=>n_("svg",Dx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.377 5.708l-.168.032-.136.092-.096.14-.032.168v6.868h-6.87l-.002-.002-.166.037-.137.092v-.002l-.095.141-.033.167v.753s.032.169.034.17l.094.138.138.092.167.036h6.87v6.867l-.001-.001.033.17.095.138.138.092s.166.035.167.037h.752l.17-.036.137-.092.095-.137.033-.17v-6.867h6.868l.17-.035.137-.092.095-.137.033-.17v-.753s-.033-.165-.032-.167l-.096-.14-.138-.093s-.17-.037-.17-.035H16.81V8.323l-.033-.168-.094-.14-.138-.092-.17-.034h-.752z"})),Group:({styles:e={},...t})=>n_("svg",zx({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M6.34.016c-2.333.025-4.684 1.77-5.29 4.17C.608 5.848.88 7.608.804 9.314v2.922h2.041c.038-2.332-.076-4.673.062-7C3.14 3.355 4.869 1.938 6.643 2.04h8.956V.009c-3.086 0-6.173-.02-9.258 0v.007zm13.094 2.023h1.92V.009h-1.92v2.03zm5.756 0c1.265-.069 2.66.045 3.602 1.055 1.036.983 1.201 2.523 1.122 3.91v6.313h2.078c-.03-2.677.062-5.36-.047-8.032-.17-2.743-2.62-5.111-5.215-5.236-.511-.064-1.027-.02-1.54-.033v2.023zM.803 18.319h2.041v-2.026H.804v2.026zm29.11 1.084h2.08v-2.03h-2.08v2.03zM.804 26.148c.004 2.218 1.393 4.366 3.313 5.28 1.728.853 3.681.448 5.521.544.43-.112 1.29.231 1.435-.183v-1.847c-1.788-.043-3.584.094-5.365-.082-1.67-.354-2.919-2.048-2.863-3.844v-3.644H.804v3.777zm29.11-.068c.04 1.961-1.508 3.787-3.381 3.842-1.954.06-3.914.02-5.87.026v2.03c2.118-.042 4.242.08 6.355-.063 2.524-.264 4.818-2.644 4.94-5.323.08-1.039.014-2.085.035-3.126h-2.078v2.613zm-15.006 5.898h1.92v-2.03h-1.92v2.03z"})),CancelIntermediateCatchEvent:Bx,CompensateIntermediateCatchEvent:Nx,ConditionalIntermediateCatchEvent:Ix,ErrorIntermediateCatchEvent:Vx,EscalationIntermediateCatchEvent:$x,LinkIntermediateCatchEvent:Wx,MessageIntermediateCatchEvent:qx,MultipleIntermediateCatchEvent:Yx,ConditionalIntermediateCatchEventNonInterrupting:Zx,EscalationIntermediateCatchEventNonInterrupting:Jx,MessageIntermediateCatchEventNonInterrupting:tw,MultipleIntermediateCatchEventNonInterrupting:iw,ParallelIntermediateCatchEventNonInterrupting:ow,SignalIntermediateCatchEventNonInterrupting:sw,TimerIntermediateCatchEventNonInterrupting:lw,ParallelMultipleIntermediateCatchEvent:uw,SignalIntermediateCatchEvent:dw,TimerIntermediateCatchEvent:fw,IntermediateThrowEvent:gw,CompensateIntermediateThrowEvent:({styles:e={},...t})=>n_("svg",yw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.747l-7.157 5.055v-5.055z"})),EscalationIntermediateThrowEvent:({styles:e={},...t})=>n_("svg",bw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156z"})),LinkIntermediateThrowEvent:({styles:e={},...t})=>n_("svg",_w({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912z"})),MessageIntermediateThrowEvent:({styles:e={},...t})=>n_("svg",xw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-5.91 5.475l6.04 4.901 6.042-4.9H10.088zm-1.341 1.138v9.921h14.514V11.79l-7.132 5.787-7.382-5.99z"})),MultipleIntermediateThrowEvent:({styles:e={},...t})=>n_("svg",ww({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.532 2.91 8.95h9.42l2.91-8.95-7.62-5.532z"})),SignalIntermediateThrowEvent:({styles:e={},...t})=>n_("svg",Ew({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.52c-2.261 4.07-4.533 8.136-6.798 12.205h13.596L16.005 8.495z"})),Lane:({styles:e={},...t})=>n_("svg",Sw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M0 7v18.62h32V7H0zm1.655 17.056V8.684h28.62v15.372H1.656z"})),ManualTask:({styles:e={},...t})=>n_("svg",Cw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm4.43 1.328c-.222.005-.43.09-.606.203-.985.638-4.356 2.977-5.096 3.486-.67.46-1.12 1.153-1.38 1.974-.27.858-.235 1.793-.232 2.576.002.59.016 1.104.17 1.727.22.908.634 1.63 1.23 2.118.597.49 1.363.732 2.23.734 3.038.012 6.078.016 9.119 0 .327-.002.645-.127.848-.37.204-.241.287-.56.291-.914a1.732 1.732 0 00-.097-.625h.327c.335 0 .641-.11.852-.316.21-.206.317-.475.374-.754a1.783 1.783 0 00-.126-1.143 1.18 1.18 0 00.877-.521c.196-.306.257-.666.258-1.025.001-.375-.088-.738-.293-1.033a1.179 1.179 0 00-.958-.512h-.478c.108-.237.156-.505.155-.782-.003-.373-.098-.721-.316-.99a1.21 1.21 0 00-.943-.43c-2.273-.004-4.236.018-6.412.012l-.19-.001c.102-.104.202-.205.312-.314.337-.336.662-.652.83-.869.4-.516.46-1.215.123-1.729-.178-.272-.439-.456-.72-.494a.93.93 0 00-.148-.008zm.029.728l.022.001c.055.008.115.027.209.172.132.201.126.606-.09.884-.079.102-.431.465-.767.8-.337.334-.657.643-.815.836-.153.186-.096.338-.056.435.04.096.085.212.298.263.063.014.066.01.086.012l.066.003c2.429.027 4.986-.004 7.223-.003.194 0 .293.056.379.162.086.105.151.286.153.533 0 .257-.065.467-.155.59-.09.124-.183.182-.37.183-1.706-.001-3.411-.005-5.117-.009v.731c2.23.004 4.461.01 6.692.012.17 0 .265.06.361.2.096.138.164.364.163.615 0 .268-.058.501-.143.634-.085.132-.162.193-.385.195-2.32-.001-4.554-.006-6.688-.003v.73c1.905 0 3.809.003 5.713.001.194.005.316.09.416.26.102.173.151.442.093.728-.04.193-.102.313-.17.38-.067.065-.148.108-.343.108h-5.71l.002.734c1.445 0 2.89-.01 4.334-.001.162 0 .232.041.297.123.064.081.123.238.12.488-.003.244-.061.385-.12.455-.06.07-.127.11-.296.11-3.037.016-6.076.012-9.113 0-.735-.002-1.316-.196-1.77-.568-.454-.372-.793-.935-.986-1.728-.134-.546-.146-.978-.148-1.558-.003-.796-.018-1.664.199-2.354.222-.705.582-1.24 1.096-1.593.75-.515 4.14-2.866 5.079-3.474a.504.504 0 01.241-.087z"})),MessageFlow:({styles:e={},...t})=>n_("svg",Pw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M4.073 26.607l1.295 1.296L1.325 32l-.662-.633L0 30.735l4.073-4.128zm6.953-7.046l1.296 1.296L1.325 32l7.555-7.656-1.295-1.296 1.455-1.474 1.986-2.013zM32 .06s-2.699 5.189-5.417 10.462l-.326.633c-1.14 2.214-2.265 4.407-3.176 6.2-1.228-1.222-2.449-2.452-3.676-3.675l-3.57 3.618-1.297-1.296 3.541-3.588c-.98-.964-1.932-1.958-2.923-2.91l-.753-.706c2.68-1.258 6.533-3.165 9.95-4.876l.617-.309C28.838 1.673 32 .06 32 .06zm-4.126 4.06l-.015.007-.115.057-.048.024-.115.057L17.7 9.172l5.017 4.948 5.157-10z"})),Participant:({styles:e={},...t})=>n_("svg",Mw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M0 5v22.069h32V5H0zm30.276 1.684v18.82H6.62V6.684h23.655zm-28.62 0h3.31v18.82h-3.31V6.684z"})),Process:({styles:e={},...t})=>n_("svg",Rw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{fillRule:"evenodd",d:"M16.177 0l.137.002c.452.009.9.037 1.342.082.346.036.62.303.68.646l.437 2.536c.055.319.296.57.608.655.986.269 1.923.653 2.796 1.14.28.155.624.145.885-.039l2.083-1.47a.775.775 0 01.937.022c.86.699 1.645 1.484 2.343 2.343.22.27.223.653.023.937l-1.439 2.038a.833.833 0 00-.031.896c.512.889.92 1.846 1.204 2.855a.833.833 0 00.653.601l2.435.42c.342.059.61.333.645.679a15.928 15.928 0 01.08 2.064l-.003.114c-.012.382-.038.76-.077 1.134a.775.775 0 01-.645.68l-2.396.412a.835.835 0 00-.656.61 12.511 12.511 0 01-1.2 2.917.832.832 0 00.034.892l1.396 1.978c.2.284.196.667-.023.936a16.104 16.104 0 01-2.343 2.343.775.775 0 01-.937.023l-1.99-1.404a.833.833 0 00-.88-.026c-.907.516-1.886.922-2.916 1.2a.833.833 0 00-.61.656l-.414 2.396a.775.775 0 01-.679.646 16.096 16.096 0 01-3.312 0 .775.775 0 01-.679-.646l-.423-2.452a.834.834 0 00-.598-.636 12.474 12.474 0 01-1.468-.514 12.49 12.49 0 01-1.417-.68.833.833 0 00-.878.03l-2.026 1.43a.775.775 0 01-.937-.023 16.069 16.069 0 01-2.342-2.342.774.774 0 01-.024-.936l1.402-1.986a.833.833 0 00.032-.896 12.507 12.507 0 01-1.214-2.911.833.833 0 00-.655-.606l-2.386-.412a.775.775 0 01-.646-.678 16.097 16.097 0 010-3.314.775.775 0 01.646-.678l2.386-.412a.833.833 0 00.655-.606 12.507 12.507 0 011.214-2.911.833.833 0 00-.032-.896L3.552 6.853a.774.774 0 01.023-.936 16.091 16.091 0 012.343-2.343.775.775 0 01.937-.023l2.03 1.433c.26.177.6.182.874.028.915-.512 1.88-.9 2.87-1.167a.833.833 0 00.612-.656l.424-2.46a.775.775 0 01.679-.645C14.845.032 15.348.004 15.85 0h.326zM16 6.4c-5.302 0-9.6 4.297-9.6 9.599 0 5.302 4.298 9.6 9.6 9.6s9.6-4.298 9.6-9.6-4.298-9.6-9.6-9.6zm-3 4.283c0-1.425 1.637-2.203 2.715-1.29l5.69 4.815c.794.672.794 1.91 0 2.583l-5.69 4.815c-1.078.913-2.715.134-2.715-1.29z"})),ReceiveTask:({styles:e={},...t})=>n_("svg",Aw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.23 7.764v11.577h17.55V7.764H5.23zm1.816.758h13.917l-6.959 4.577-6.958-4.577zm-1.06.21l8.018 5.274 8.018-5.275v9.853H5.987V8.73z"})),ScriptTask:({styles:e={},...t})=>n_("svg",kw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm2.99 3.077l-.077.045-.026.015c-1.09.646-1.84 1.239-2.336 1.818-.496.579-.735 1.162-.742 1.725-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.324.408-.911.897-1.85 1.445l-1.388.808h8.56l.101-.059c.996-.58 1.667-1.116 2.094-1.655.429-.54.603-1.107.547-1.638-.11-1.052-.967-1.818-1.688-2.556-.721-.739-1.306-1.436-1.298-2.092.004-.331.132-.7.535-1.171.402-.47 1.08-1.02 2.119-1.636l1.362-.806h-8.54zm.241.867h5.271a6.83 6.83 0 00-1.113 1.01c-.496.58-.736 1.163-.743 1.726-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.312.393-.872.862-1.753 1.386H8.728c.367-.286.658-.566.88-.847.43-.54.604-1.107.548-1.638-.11-1.052-.968-1.818-1.688-2.556-.721-.739-1.306-1.435-1.298-2.092.004-.331.132-.7.534-1.171.389-.454 1.04-.984 2.021-1.575zm-1.233 1.48v.4h4.12v-.4h-4.12zm-.154 2.158v.4H12.6v-.4H8.34zm1.931 2.158v.4h4.126v-.4H10.27zm.59 2.158v.4h4.276v-.4h-4.276z"})),SendTask:({styles:e={},...t})=>n_("svg",Dw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm-1.38 3.16l8.332 4.717L21.78 8.16H5.114zm.021 1.745v9.309H21.8V9.905l-8.353 4.655-8.31-4.655z"})),ServiceTask:({styles:e={},...t})=>n_("svg",Tw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm1.22 1.681V7.84c-.329.093-.63.223-.914.382l-.83-.82-1.554 1.561.83.82c-.16.288-.285.594-.372.911l-1.177.002v2.2l1.189-.004c.109.431.345.819.58 1.165v-1.898l-1.038.004v-.737l1.034-.002.058-.294c.084-.429.252-.838.493-1.203l.165-.25-.727-.718.523-.526.728.719.247-.165c.379-.25.793-.417 1.206-.505l.291-.06-.002-1.01h.75L9.19 8.417H11.16c-.185-.221-.951-.508-1.237-.588L9.93 6.68H7.713zm2.078 2.105l.003 1.158a4.19 4.19 0 00-.915.383l-.83-.821-1.553 1.562.83.82c-.16.288-.286.593-.373.91l-1.176.003v2.2l1.188-.004c.094.326.224.624.383.905l-.85.847 1.57 1.543.847-.843c.29.161.599.286.919.373v1.198c.756.006 1.56.003 2.206.003V17.81a4.19 4.19 0 00.915-.383l.847.835 1.554-1.56-.848-.836c.16-.288.286-.594.373-.912l1.152-.007V12.75l-1.165.007a4.09 4.09 0 00-.382-.905l.805-.807-1.57-1.546-.804.806a4.16 4.16 0 00-.915-.372l.007-1.147H9.792zm.732.73h.751l-.006 1.005.297.058c.43.085.844.252 1.21.492l.25.162.701-.704.528.52-.702.704.169.25c.248.374.412.779.505 1.196l.061.292 1.016-.006v.737l-1.01.006-.058.292c-.085.43-.252.838-.494 1.205l-.165.25.744.733-.523.525-.743-.734-.248.165c-.378.247-.789.418-1.203.503l-.294.058v1.067h-.745v-1.059l-.295-.057a3.395 3.395 0 01-1.21-.492l-.248-.162-.747.743-.528-.52.747-.744-.17-.25a3.546 3.546 0 01-.506-1.196l-.06-.291-1.04.004v-.738l1.034-.002.058-.294c.085-.428.252-.837.493-1.203l.165-.25-.726-.718.522-.526.728.72.248-.166a3.546 3.546 0 011.205-.504l.292-.06-.003-1.01zm.388 2.685a1.65 1.65 0 00-1.645 1.645c0 .904.74 1.645 1.645 1.645a1.65 1.65 0 001.645-1.645 1.65 1.65 0 00-1.645-1.645zm0 .73a.91.91 0 01.915.915.91.91 0 01-.915.914.91.91 0 01-.915-.914.91.91 0 01.915-.915z"})),CompensateStartEvent:({styles:e={},...t})=>n_("svg",zw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-.566 9.03l-7.415 5.235 7.415 5.238v-5.062c2.386 1.689 4.775 3.375 7.163 5.062V10.761l-7.163 5.058v-5.058zm-.866 1.666v7.13L9.51 15.993l5.052-3.565zm7.166 0v7.137l-5.052-3.568 5.052-3.569z"})),ConditionalStartEvent:({styles:e={},...t})=>n_("svg",Ow({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-5.362 7.523v13.493h10.724V9.253H10.638zm.863.866h8.995V21.88H11.501V10.12zm.928 1.324v.863h7.139v-.863h-7.139zm0 2.605v.867h7.139v-.867h-7.139zm0 3.01v.864h7.139v-.863h-7.139zm0 2.72v.863h7.139v-.863h-7.139z"})),ErrorStartEvent:({styles:e={},...t})=>n_("svg",Bw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm6.13 7.45l-3.635 7.37-4.52-5.88c-1.37 4.048-2.738 8.095-4.106 12.143l4.603-5.917 4.748 5.433 2.91-13.149zm-7.754 3.889l4.299 5.449 1.073-2.39-1.028 4.135-4.387-5.16-1.78 2.75 1.823-4.784z"})),EscalationStartEvent:({styles:e={},...t})=>n_("svg",jw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 7.183c-1.674 4.658-2.736 9.509-4.41 14.166 1.535-1.526 2.874-3.236 4.41-4.763l4.41 4.763c-1.499-4.713-2.913-9.453-4.41-14.166zm.032 2.931c.822 2.588 1.598 5.19 2.42 7.778l-2.42-2.615c-.683.598-2.455 2.887-2.34 2.39.871-2.489 1.448-5.07 2.34-7.553z"})),MessageStartEvent:({styles:e={},...t})=>n_("svg",Nw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-7.257 8.732v11.069h14.513v-11.07H8.738zm3.224 1.73h8.064c-1.428.878-2.857 2.807-4.285 3.018l-3.779-3.019zm9.562 1.017v6.593H10.465V13.21l5.528 4.417 5.53-4.418z"})),MultipleStartEvent:({styles:e={},...t})=>n_("svg",Lw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 6.328l-7.626 5.536c.97 2.986 1.942 5.971 2.913 8.957h9.426l2.912-8.957-7.625-5.536zm0 1.068l6.609 4.798-2.525 7.763H11.91l-2.524-7.763 6.609-4.798z"})),ConditionalStartEventNonInterrupting:({styles:e={},...t})=>n_("svg",Iw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M10.632 9.189V22.68h10.723V9.189H10.632zm.862.865h8.994v11.76H11.494v-11.76zm.928 1.324v.863h7.138v-.863h-7.138zm0 2.605v.866h7.138v-.866h-7.138zm0 3.01v.863h7.138v-.863h-7.138zm0 2.72v.862h7.138v-.863h-7.138zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"})),EscalationStartEventNonInterrupting:({styles:e={},...t})=>n_("svg",Fw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16 9.209c-1.674 4.655-2.735 9.504-4.408 14.16 1.534-1.526 2.873-3.235 4.407-4.761l4.408 4.76c-1.497-4.71-2.91-9.448-4.408-14.16zm.031 2.93c.822 2.586 1.598 5.187 2.42 7.774l-2.42-2.614c-.682.598-2.453 2.886-2.34 2.389.873-2.488 1.45-5.068 2.34-7.55zM16.132.364c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.564c-.734.078-1.196.762-1.735 1.206C3.552 6.02 2.55 7.511 1.681 9.053c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786A15.932 15.932 0 011.728 16a.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),MessageStartEventNonInterrupting:({styles:e={},...t})=>n_("svg",Vw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M8.746 10.393v11.064h14.506V10.393H8.746zm3.223 1.728h8.06c-1.428.879-2.856 2.807-4.283 3.018l-3.777-3.018zm9.557 1.018v6.59H10.473v-6.59l5.525 4.416 5.528-4.416zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),MultipleStartEventNonInterrupting:({styles:e={},...t})=>n_("svg",Hw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M23.621 13.524L16 7.99l-7.622 5.534 2.911 8.952h9.422l2.911-8.952zm-1.016.33l-2.523 7.759h-8.165l-2.524-7.76L16 9.059l6.606 4.796zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),ParallelMultipleStartEventNonInterrupting:({styles:e={},...t})=>n_("svg",$w({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M13.503 9.016v4.428H9.075v4.98h4.428v4.428h4.98v-4.427h4.428v-4.981h-4.427V9.016h-4.981zm.83.83h3.32v4.428h4.428v3.32h-4.428v4.428h-3.32v-4.454H9.905v-3.294h4.428V9.846zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z",opacity:".98"})),SignalStartEventNonInterrupting:({styles:e={},...t})=>n_("svg",Gw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16.007 8.82L9.21 21.022h13.596L16.007 8.82zm0 1.775l5.328 9.563H10.68l5.327-9.563zM16.14.386c-1.571.236-4.195-.284-4.9 1.381.619 1.703 2.745.069 4.085.365 1.421-.13 2.84.2 4.235.259C21.27.784 18.19.344 17 .413a20.456 20.456 0 00-.86-.027zM25 3.162c-2.19.694.401 2.26 1.181 3.094 1.083 1.152 1.954 2.484 2.715 3.864 1.48 1.005 1.845-1.26.81-2.03-1.158-1.897-2.613-3.704-4.513-4.89l-.192-.038zm-18.438.423c-1.793.712-2.909 2.548-4.01 4.061-.773.814-2.211 3.653.005 3.211 1.123-1.469 1.87-3.306 3.267-4.614.664-.7 2.73-2.013.738-2.658zm24.57 11.072c-1.659.435-.468 2.667-.99 3.895a13.427 13.427 0 01-1.497 4.435c-.23 1.659 1.991 1.165 2.018-.199a14.277 14.277 0 001.254-7.552.865.865 0 00-.785-.579zm-30.18.666c-1.677.386-.633 2.667-.608 3.876.371 1.623.792 3.35 1.79 4.696 2.382.321.571-2.338.292-3.492a15.92 15.92 0 01-.684-4.39.877.877 0 00-.79-.69zm24.558 11.81c-1.755.865-3.303 2.266-5.274 2.765-1.162-.016-3.074 1.271-1.331 2.102 2.66-.447 5.163-1.733 7.236-3.445.472-.506.06-1.432-.631-1.421zm-19.151.043c-2.004.786.416 2.405 1.43 2.913 1.608.904 3.379 1.636 5.208 1.877 1.77-.804-.228-2.094-1.357-2.073-1.75-.537-3.403-1.396-4.798-2.586l-.227-.104-.256-.027z"})),TimerStartEventNonInterrupting:({styles:e={},...t})=>n_("svg",Ww({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.991 8.7c-3.018-.042-5.92 1.925-7.03 4.725-1.138 2.695-.509 6.011 1.537 8.102 1.99 2.142 5.267 2.93 8.013 1.927 2.877-.98 4.99-3.826 5.067-6.87.153-2.956-1.624-5.88-4.299-7.135a7.551 7.551 0 00-3.288-.75zm0 1.383c2.758-.052 5.372 1.972 6.014 4.654.704 2.578-.482 5.516-2.79 6.867-2.358 1.48-5.682 1.085-7.617-.919-2.043-1.97-2.407-5.38-.84-7.743 1.11-1.764 3.149-2.88 5.233-2.86zm1.962 1.764l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.614-.757-.418zM16.12.358h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136L19.823.9l-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006L19.135.64l-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006L17.512.42l-.22-.017-.005-.001h-.006l-.22-.015h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012l-.221-.003h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zm-18.458.426l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1V9.5l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114V16.5l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V16.308l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"})),CancelBoundaryEvent:Bx,CompensateBoundaryEvent:Nx,ConditionalBoundaryEvent:Ix,ErrorBoundaryEvent:Vx,EscalationBoundaryEvent:$x,LinkBoundaryEvent:Wx,MessageBoundaryEvent:qx,MultipleBoundaryEvent:Yx,BoundaryEvent:gw,ConditionalBoundaryEventNonInterrupting:Zx,EscalationBoundaryEventNonInterrupting:Jx,MessageBoundaryEventNonInterrupting:tw,MultipleBoundaryEventNonInterrupting:iw,ParallelBoundaryEventNonInterrupting:ow,SignalBoundaryEventNonInterrupting:sw,TimerBoundaryEventNonInterrupting:lw,ParallelMultipleBoundaryEvent:uw,SignalBoundaryEvent:dw,TimerBoundaryEvent:fw,StartEvent:({styles:e={},...t})=>n_("svg",Uw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.847.004C9.61-.016 3.624 4.014 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846.004zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625-4.814-3.84-6.538-10.94-4.067-16.57 2.14-5.206 7.515-8.775 13.147-8.71.097-.001.194-.002.29-.001z"})),ParallelMultipleStartEvent:({styles:e={},...t})=>n_("svg",qw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.847 0C9.61-.02 3.624 4.01 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846 0zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625C2.101 23.17.377 16.07 2.848 10.44c2.134-5.2 7.522-8.78 13.147-8.71.097-.001.194-.002.29-.001zM13.504 9.08v4.427H9.077v4.98h4.427v4.427h4.98v-4.427h4.428v-4.98h-4.427V9.08h-4.98zm.83.83h3.32v4.427h4.428v3.32h-4.427v4.427h-3.32v-4.453H9.906v-3.294h4.427V9.91z"})),SignalStartEvent:({styles:e={},...t})=>n_("svg",Kw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm0 6.776L9.19 20.724H22.8L15.995 8.511zm0 1.777l5.332 9.572H10.662l5.333-9.572z"})),TimerStartEvent:({styles:e={},...t})=>n_("svg",Yw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-.143 6.676c-2.967.02-5.797 1.97-6.89 4.727-1.138 2.695-.51 6.012 1.537 8.102 1.99 2.142 5.268 2.932 8.014 1.928 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.881-4.3-7.137a7.552 7.552 0 00-3.43-.75zm.27 1.383c2.71.012 5.254 2.015 5.886 4.656.704 2.577-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.085-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86h.13zm1.833 1.765l-2.074 3.763c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.181l1.992-3.615-.757-.418z"})),CollapsedSubProcess:Zw,CollapsedAdHocSubProcess:Zw,ExpandedSubProcess:Jw,ExpandedAdHocSubProcess:Jw,Task:({styles:e={},...t})=>n_("svg",eE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M6.494 2.667C2.916 2.667 0 5.57 0 9.142v13.383C0 26.097 2.916 29 6.494 29h19.012C29.084 29 32 26.097 32 22.525V9.142c0-3.572-2.916-6.475-6.494-6.475H6.494zm0 2h19.012c2.509 0 4.494 1.98 4.494 4.475v13.383C30 25.02 28.015 27 25.506 27H6.494C3.985 27 2 25.02 2 22.525V9.142c0-2.495 1.985-4.475 4.494-4.475z"})),TextAnnotation:({styles:e={},...t})=>n_("svg",tE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M22.087 0v31.647H32v-1.788h-8.125V1.788H32V0h-9.913zm-2.924 13.999l-2.737 2.167 2.167 2.738 2.738-2.167-2.168-2.738zm-5.475 4.335L10.95 20.5l2.168 2.738 2.737-2.168-2.167-2.737zm-5.475 4.335l-2.738 2.167 2.168 2.738 2.737-2.168-2.167-2.737zm-5.476 4.335L0 29.17l2.167 2.738 2.738-2.168-2.168-2.737z"})),Transaction:({styles:e={},...t})=>n_("svg",nE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{d:"M5.422 3A5.424 5.424 0 000 8.422v15.822a5.424 5.424 0 005.422 5.423h21.156A5.424 5.424 0 0032 24.244V8.422A5.424 5.424 0 0026.578 3H5.422zm0 1.244h21.156a4.155 4.155 0 014.178 4.178v15.822a4.155 4.155 0 01-4.178 4.178H5.422a4.155 4.155 0 01-4.178-4.178V8.422a4.155 4.155 0 014.178-4.178zm1.056 1.778a3.373 3.373 0 00-3.367 3.366v13.89a3.373 3.373 0 003.367 3.366h19.044a3.373 3.373 0 003.367-3.366V9.388a3.373 3.373 0 00-3.367-3.366H6.478zm0 1.245h19.044c1.187 0 2.122.935 2.122 2.121v13.89a2.104 2.104 0 01-2.122 2.122H6.478a2.104 2.104 0 01-2.122-2.122V9.388c0-1.186.935-2.121 2.122-2.121z"})),UserTask:({styles:e={},...t})=>n_("svg",iE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),n_("path",{fillRule:"evenodd",d:"M10.263 7.468c-1.698 0-2.912 1.305-2.915 2.791v.001c0 .45.121.924.311 1.352.138.309.308.593.516.82-1.235.423-2.683 1.119-3.414 2.49l-.04.075v4.44h11.083v-4.44l-.04-.074c-.72-1.352-2.136-2.047-3.36-2.471.597-.608.774-1.392.774-2.192-.004-1.487-1.218-2.792-2.915-2.792zm-1.16 1.583c.08 0 .165.003.26.008.757.045 1.012.181 1.207.31.196.13.334.252.851.268.404-.016.598-.087.737-.169.056-.033.103-.067.152-.1.128.275.197.578.198.893 0 .894-.154 1.52-.975 2.034l.08.604c.171.052.348.11.527.171.025.105.054.242.073.387.02.153.029.311.016.43a.422.422 0 01-.056.19c-.417.417-1.157.66-1.908.66-.75 0-1.49-.243-1.908-.66a.422.422 0 01-.056-.19 1.949 1.949 0 01.016-.43c.02-.146.049-.284.074-.388.177-.062.352-.118.521-.17l.048-.648a.616.616 0 00-.126-.118c-.183-.138-.405-.44-.562-.793-.157-.353-.254-.757-.254-1.08 0-.387.105-.758.297-1.079l.11-.04c.143-.046.339-.09.679-.09zm-1.448 4.304l-.002.014c-.025.185-.04.387-.018.589.021.202.074.42.248.593.595.594 1.494.857 2.382.857.889 0 1.788-.263 2.382-.857.174-.174.227-.391.249-.593a2.496 2.496 0 00-.018-.59l-.002-.01c.903.396 1.776.963 2.258 1.81v3.599H13.53v-2.538h-.67v2.538H7.651v-2.538h-.67v2.538H5.39v-3.599c.483-.849 1.359-1.416 2.264-1.813zM6.495 3C2.914 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.01C28.016 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5z"}))};function oE(e){const{type:t}=e;let n=sE(t);const i=function(e){const t=Tr(e).eventDefinitions;return t&&t[0]}(e);if(i)return n=`${function(e){return sE(e.$type).replace("EventDefinition","")}(i)}${n}`,(kr(e,"bpmn:StartEvent")&&!Xr(e)||kr(e,"bpmn:BoundaryEvent")&&!function(e){const t=Tr(e);return t&&!1!==t.cancelActivity}(e))&&(n=`${n}NonInterrupting`),n;if(kr(e,"bpmn:SubProcess")&&!kr(e,"bpmn:Transaction"))if(Zr(e))n=`Event${n}`;else{n=`${Yr(e)&&!function(e){return kr(e&&(e.di||Tr(e).di),"bpmndi:BPMNPlane")}(e)?"Expanded":"Collapsed"}${n}`}return function(e){const t=Tr(e),n=Tr(e.source);if(!kr(e,"bpmn:SequenceFlow")||!n)return!1;return n.default&&n.default===t&&(kr(n,"bpmn:Gateway")||kr(n,"bpmn:Activity"))}(e)&&(n="DefaultFlow"),function(e){const t=Tr(e),n=Tr(e.source);if(!kr(e,"bpmn:SequenceFlow")||!n)return!1;return t.conditionExpression&&kr(n,"bpmn:Activity")}(e)&&(n="ConditionalFlow"),n}const aE={getDocumentationRef:e=>{const t=cE();if(t)return function(e,t){const n=lE(e,t);return n&&n.documentationRef}(e,t)},getElementLabel:e=>kr(e,"bpmn:Process")?Tr(e).name:eo(e),getElementIcon:e=>{const t=oE(e),n=cE();if(n){const t=lE(e,n);if(t&&t.icon)return()=>i_("img",{class:"bio-properties-panel-header-template-icon",width:"32",height:"32",src:t.icon.contents})}return rE[t]},getTypeLabel:e=>{const t=cE();if(t){const n=lE(e,t);if(n&&n.name)return n.name}return oE(e).replace(/(\B[A-Z])/g," $1").replace(/(\bNon Interrupting)/g,"($1)")}};function sE(e){return e.split(":")[1]}function cE(){return tx("elementTemplates",!1)}function lE(e,t){return t.get(e)}function pE(){return(pE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var uE=({styles:e={},...t})=>n_("svg",pE({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"64",height:"64"},t),n_("defs",null,n_("rect",{id:"a",width:"57",height:"47",x:"3",y:"8",rx:"7"}),n_("mask",{id:"b",width:"57",height:"47",x:"0",y:"0",fill:"#fff",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox"},n_("use",{xlinkHref:"#a"}))),n_("g",{fill:"none",fillRule:"evenodd"},n_("path",{fill:"#818798",d:"M52 11a5 5 0 015 5v31a5 5 0 01-5 5H11a5 5 0 01-5-5V16a5 5 0 015-5h41zm0 2H11a3 3 0 00-2.995 2.824L8 16v31a3 3 0 002.824 2.995L11 50h41a3 3 0 002.995-2.824L55 47V16a3 3 0 00-2.824-2.995L52 13z"}),n_("path",{fill:"#D5D7DD",d:"M16 24h31v6H16zM21 33h21v6H21z"}),n_("use",{stroke:"#B9BCC6",strokeDasharray:"5 2",strokeWidth:"2",mask:"url(#b)",xlinkHref:"#a"})));function hE(){return(hE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var dE=({styles:e={},...t})=>n_("svg",hE({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"128",height:"64"},t),n_("defs",null,n_("path",{id:"a",d:"M9 9h110v47H9z"}),n_("mask",{id:"b",width:"110",height:"47",x:"0",y:"0",fill:"#fff",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox"},n_("use",{xlinkHref:"#a"}))),n_("g",{fill:"none",fillRule:"evenodd"},n_("path",{fill:"#818798",d:"M25 20.272L37.728 33 25 45.728 12.272 33 25 20.272zm0 2.829L15.1 33l9.9 9.9 9.9-9.9-9.9-9.9z"}),n_("path",{fill:"#D5D7DD",d:"M17 47h16v6H17z"}),n_("path",{fill:"#818798",d:"M35 32h27v2H35z"}),n_("path",{fill:"#818798",d:"M60 30v6l6-3z"}),n_("path",{fill:"#D5D7DD",d:"M80 34h21v6H80z"}),n_("g",null,n_("path",{fill:"#818798",d:"M111 12a5 5 0 015 5v31a5 5 0 01-5 5H70a5 5 0 01-5-5V17a5 5 0 015-5h41zm0 2H70a3 3 0 00-3 3v31a3 3 0 003 3h41a3 3 0 003-3V17a3 3 0 00-3-3z"}),n_("path",{fill:"#D5D7DD",d:"M75 25h31v6H75z"})),n_("use",{stroke:"#B9BCC6",strokeDasharray:"5 2",strokeWidth:"2",mask:"url(#b)",xlinkHref:"#a"})));const mE={getEmpty:()=>({text:"Select an element to edit its properties.",icon:uE}),getMultiple:()=>({text:"Multiple elements are selected. Select a single element to edit its properties.",icon:dE})};function fE(e){const{element:t,injector:n,getProviders:i,layoutConfig:r,descriptionConfig:o}=e,a=n.get("canvas"),s=n.get("elementRegistry"),c=n.get("eventBus"),[l,p]=wb({selectedElement:t}),u=l.selectedElement,h=e=>{if(!e)return;let t=e;t&&"label"===t.type&&(t=t.labelTarget),p({...l,selectedElement:t}),c.fire("propertiesPanel.updated",{element:t})};Sb((()=>{const e=e=>{const{newSelection:t=[]}=e;if(t.length>1)return h(t);const n=t[0],i=a.getRootElement();(function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)})(i)||h(n||i)};return c.on("selection.changed",e),()=>{c.off("selection.changed",e)}}),[]),Sb((()=>{const e=e=>{const t=function(e,t){return _(e,(e=>e===t))}(e.elements,u);t&&function(e,t){return e&&t.get(e.id)}(t,s)&&h(t)};return c.on("elements.changed",e),()=>{c.off("elements.changed",e)}}),[u]),Sb((()=>{const e=e=>{const t=e.element;h(t)};return c.on("root.added",e),()=>{c.off("root.added",e)}}),[u]),Sb((()=>{const e=()=>{h(u)};return c.on("propertiesPanel.providersChanged",e),()=>{c.off("propertiesPanel.providersChanged",e)}}),[u]),Sb((()=>{const e=()=>{h(u)};return c.on("elementTemplates.changed",e),()=>{c.off("elementTemplates.changed",e)}}),[u]);const m={selectedElement:u,injector:n,getService:(e,t)=>n.get(e,t)},f=i(u),v=Pb((()=>C(f,(function(e,t){if(d(u))return[];return t.getGroups(u)(e)}),[])),[f,u]);return i_(ex.Provider,{value:m,children:i_(w_,{element:u,headerProvider:aE,placeholderProvider:mE,groups:v,layoutConfig:r,layoutChanged:e=>{c.fire("propertiesPanel.layoutChanged",{layout:e})},descriptionConfig:o,descriptionLoaded:e=>{c.fire("propertiesPanel.descriptionLoaded",{description:e})},eventBus:c})})}class vE{constructor(e,t,n){const{parent:i,layout:r,description:o}=e||{};this._eventBus=n,this._injector=t,this._layoutConfig=r,this._descriptionConfig=o,this._container=Ee('<div style="height: 100%" class="bio-properties-panel-container" input-handle-modified-keys="y,z"></div>'),n.on("diagram.init",(()=>{i&&this.attachTo(i)})),n.on("diagram.destroy",(()=>{this.detach()})),n.on("root.added",(e=>{const{element:t}=e;this._render(t)}))}attachTo(e){if(!e)throw new Error("container required");"string"==typeof e&&(e=Pe(e)),this.detach(),e.appendChild(this._container),this._eventBus.fire("propertiesPanel.attach")}detach(){const e=this._container.parentNode;e&&(e.removeChild(this._container),this._eventBus.fire("propertiesPanel.detach"))}registerProvider(e,t){t||(t=e,e=1e3),"function"==typeof t.getGroups?(this._eventBus.on("propertiesPanel.getProviders",e,(function(e){e.providers.push(t)})),this._eventBus.fire("propertiesPanel.providersChanged")):console.error("Properties provider does not implement #getGroups(element) API")}_getProviders(){const e=this._eventBus.createEvent({type:"propertiesPanel.getProviders",providers:[]});return this._eventBus.fire(e),e.providers}_render(e){const t=this._injector.get("canvas");e||(e=t.getRootElement()),function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)}(e)||(lb(i_(fE,{element:e,injector:this._injector,getProviders:this._getProviders.bind(this),layoutConfig:this._layoutConfig,descriptionConfig:this._descriptionConfig}),this._container),this._eventBus.fire("propertiesPanel.rendered"))}_destroy(){this._container&&(lb(null,this._container),this._eventBus.fire("propertiesPanel.destroyed"))}}vE.$inject=["config.propertiesPanel","injector","eventBus"];class gE{constructor(e){this._commandStack=e}preExecute(e){const t=this._commandStack;E(e,(function(e){t.execute(e.cmd,e.context)}))}}gE.$inject=["commandStack"];const yE={"properties-panel.multi-command-executor":gE};function bE(e,t){e.on("diagram.init",(function(){E(yE,(function(e,n){t.registerHandler(n,e)}))}))}bE.$inject=["eventBus","commandStack"];var _E={__depends__:[{__init__:[bE]},W_],__init__:["propertiesPanel"],propertiesPanel:["type",vE]};function xE(e){const{autoFocusEntry:t,element:n,getOptions:i}=e,r=i(n),o=d_(r);return Sb((()=>{if(t&&o&&r.length>o.length){const e=Pe(`[data-entry-id="${t}"]`),n=Pe(".bio-properties-panel-input",e);n&&n.select()}}),[r]),i_(D_,{...e})}function wE(e){return CE(e,"bpmn:ErrorEventDefinition")}function EE(e){return CE(e,"bpmn:TimerEventDefinition")}function SE(e){const t=wE(e);return t&&t.get("errorRef")}function CE(e,t){return _(Tr(e).get("eventDefinitions")||[],(function(e){return kr(e,t)}))}function PE(e){return kr(e,"bpmn:ReceiveTask")?Tr(e):CE(e,"bpmn:MessageEventDefinition")}function ME(e){const t=PE(e);return t&&t.get("messageRef")}function RE(e){return CE(e,"bpmn:LinkEventDefinition")}function AE(e){return CE(e,"bpmn:SignalEventDefinition")}function kE(e){const t=AE(e);return t&&t.get("signalRef")}function DE(e){return CE(e,"bpmn:EscalationEventDefinition")}function TE(e){const t=DE(e);return t&&t.get("escalationRef")}function zE(e){return CE(e,"bpmn:CompensateEventDefinition")}function OE(e){const{element:t}=e;return function(e){return Dr(e,["bpmn:EndEvent","bpmn:IntermediateThrowEvent"])&&!!zE(e)}(t)?[{id:"waitForCompletion",component:BE,isEdited:M_},{id:"activityRef",component:jE,isEdited:T_}]:[]}function BE(e){const{element:t}=e,n=tx("commandStack"),i=tx("translate"),r=zE(t);return P_({element:t,id:"waitForCompletion",label:i("Wait for completion"),getValue:()=>r.get("waitForCompletion"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:r,properties:{waitForCompletion:e}})}})}function jE(e){const{element:t}=e,n=tx("commandStack"),i=tx("elementRegistry"),r=tx("translate"),o=zE(t);return xE({element:t,id:"activityRef",label:r("Activity reference"),getValue:()=>{const e=function(e){const t=zE(e);return t&&t.get("activityRef")}(t);return e&&e.get("id")},setValue:e=>{const r=e?Tr(i.get(e)):void 0;n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{activityRef:r}})},getOptions:()=>{let e=[{value:"",label:r("<none>")}];const n=function(e){let t=Tr(e).$parent,n=IE(t);kr(t,"bpmn:SubProcess")&&t.triggeredByEvent&&(t=t.$parent,t&&(n=[...n,...IE(t)]));return n}(t);var i;return(i=n,B(i,(e=>(e.name||"").toLowerCase()))).forEach((function(t){e.push({value:t.id,label:FE(t)})})),e}})}function NE(e,t){const{flowElements:n}=e;return n.filter((function(e){return kr(e,t)}))}function LE(e,t){return kr(e,"bpmn:CallActivity")||kr(e,"bpmn:SubProcess")&&!e.triggeredByEvent&&!e.isForCompensation||function(e,t){const{id:n}=e;return!!_(t,(function(e){const{attachedToRef:t}=e,i=zE(e);return t&&i&&t.id===n}))}(e,t)}function IE(e){const t=function(e){return NE(e,"bpmn:Activity")}(e),n=function(e){return NE(e,"bpmn:BoundaryEvent")}(e);return t.filter((function(e){return LE(e,n)}))}function FE(e){const{id:t,name:n}=e;return`${n?n+" ":""}(id=${t})`}const VE="text/plain";function HE(e){const{element:t}=e,n=[{id:"documentation",component:$E,isEdited:N_}];return function(e){return kr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)&&n.push({id:"processDocumentation",component:GE,isEdited:N_}),n}function $E(e){const{element:t}=e,n=tx("bpmnFactory"),i=tx("commandStack"),r=tx("translate"),o=tx("debounceInput"),a=UE(Tr(t)),s=qE(t,Tr(t),n,i);return j_({element:t,id:"documentation",label:r("Element documentation"),getValue:a,setValue:s,debounce:o})}function GE(e){const{element:t}=e,n=tx("bpmnFactory"),i=tx("commandStack"),r=tx("translate"),o=tx("debounceInput"),a=Tr(t).processRef,s=UE(a),c=qE(t,a,n,i);return j_({element:t,id:"processDocumentation",label:r("Process documentation"),getValue:s,setValue:c,debounce:o})}function WE(e){return e.find((function(e){return(e.textFormat||VE)===VE}))}function UE(e){return function(){const t=WE(e&&e.get("documentation"));return t&&t.text}}function qE(e,t,n,i){return function(r){let o=WE(t&&t.get("documentation"));return o?r?i.execute("element.updateModdleProperties",{element:e,moddleElement:o,properties:{text:r}}):i.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:{documentation:S(t.get("documentation"),o)}}):r?(o=n.create("bpmn:Documentation",{text:r}),i.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:{documentation:[...t.get("documentation"),o]}})):void 0}}function KE(e,t,n,i){const r=i.create(e,t);return n&&(r.$parent=n),r}function YE(e){return new a([32,32,1]).nextPrefixed(e)}function XE(e){let t=e;for(;t.$parent;)t=t.$parent;return t}function ZE(e,t){const n=XE(e);return i=n.get("rootElements"),r=t,(i||[]).filter((e=>kr(e,r)));var i,r}function QE(e,t,n){return ZE(e,t).find((e=>e.id===n))}const JE="create-new";function eS(e){const{element:t}=e;if(!function(e){return Dr(e,["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:EndEvent"])&&!!wE(e)}(t))return[];let n=[{id:"errorRef",component:tS,isEdited:T_}];return SE(t)&&(n=[...n,{id:"errorName",component:nS,isEdited:H_},{id:"errorCode",component:iS,isEdited:H_}]),n}function tS(e){const{element:t}=e,n=tx("bpmnFactory"),i=tx("commandStack"),r=tx("translate"),o=wE(t),a=Tr(t),s=nx(a,Q_(X_(o,a),"errorRef"));return xE({element:t,id:"errorRef",label:r("Global error reference"),autoFocusEntry:"errorName",getValue:()=>{const e=SE(t);return e?e.get("id"):""},setValue:e=>{const r=XE(o),a=[];let s;return e===JE&&(s=KE("bpmn:Error",{name:YE("Error_")},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})),s=s||QE(o,"bpmn:Error",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{errorRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:JE,label:r("Create new ...")}];const n=ZE(Tr(t),"bpmn:Error");var i;return(i=n,B(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e},show:s})}function nS(e){const{element:t}=e,n=tx("commandStack"),i=tx("translate"),r=tx("debounceInput"),o=SE(t);return V_({element:t,id:"errorName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function iS(e){const{element:t}=e,n=tx("commandStack"),i=tx("translate"),r=tx("debounceInput"),o=SE(t),a=Tr(t),s=nx(a,Q_(X_(o,a),"errorCode"));return V_({element:t,id:"errorCode",label:i("Code"),getValue:()=>o.get("errorCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{errorCode:e}}),debounce:r,show:s})}const rS="create-new";function oS(e){const{element:t}=e;if(!function(e){return kr(e,"bpmn:Event")&&!!DE(e)}(t))return[];let n=[{id:"escalationRef",component:aS,isEdited:T_}];return TE(t)&&(n=[...n,{id:"escalationName",component:sS,isEdited:H_},{id:"escalationCode",component:cS,isEdited:H_}]),n}function aS(e){const{element:t}=e,n=tx("bpmnFactory"),i=tx("commandStack"),r=tx("translate"),o=DE(t);return xE({element:t,id:"escalationRef",label:r("Global escalation reference"),autoFocusEntry:"escalationName",getValue:()=>{const e=TE(t);return e&&e.get("id")},setValue:e=>{const r=XE(o),a=[];let s;if(e===rS){const i=YE("Escalation_");s=KE("bpmn:Escalation",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||QE(o,"bpmn:Escalation",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{escalationRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:rS,label:r("Create new ...")}];const n=ZE(Tr(t),"bpmn:Escalation");var i;return(i=n,B(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function sS(e){const{element:t}=e,n=tx("commandStack"),i=tx("translate"),r=tx("debounceInput"),o=TE(t);return V_({element:t,id:"escalationName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function cS(e){const{element:t}=e,n=tx("commandStack"),i=tx("translate"),r=tx("debounceInput"),o=TE(t);return V_({element:t,id:"escalationCode",label:i("Code"),getValue:()=>o.get("escalationCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{escalationCode:e}}),debounce:r})}function lS(e){const{element:t}=e;return kr(t,"bpmn:Process")||function(e){return kr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"isExecutable",component:pS,isEdited:M_}]:[]}function pS(e){const{element:t}=e,n=tx("modeling"),i=tx("commandStack"),r=tx("translate");let o,a;if(a=e=>{n.updateProperties(t,{isExecutable:e})},o=e=>e.businessObject.isExecutable,kr(t,"bpmn:Participant")){const e=t.businessObject.get("processRef");a=n=>{i.execute("element.updateModdleProperties",{element:t,moddleElement:e,properties:{isExecutable:n}})},o=()=>e.get("isExecutable")}return P_({element:t,id:"isExecutable",label:r("Executable"),getValue:o,setValue:a})}const uS=/\s/,hS=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,dS=/^[a-z_][\w-.]*$/i;function mS(e,t,n){const i=e.$model.ids.assigned(t);return t?i&&i!==e?n("ID must be unique."):function(e,t){if(n=e,uS.test(n))return t("ID must not contain spaces.");var n;if(!dS.test(e))return hS.test(e)?t("ID must not contain prefix."):t("ID must be a valid QName.")}(t,n):n("ID must not be empty.")}function fS(e){const{element:t}=e,n=tx("modeling"),i=tx("debounceInput"),r=tx("translate");return V_({element:t,id:"id",label:r(kr(t,"bpmn:Participant")?"Participant ID":"ID"),getValue:e=>e.businessObject.id,setValue:e=>{n.updateProperties(t,{id:e})},debounce:i,validate:e=>mS(Tr(t),e,r)})}function vS(e){const{element:t}=e;return function(e){return Dr(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!RE(e)}(t)?[{id:"linkName",component:gS,isEdited:H_}]:[]}function gS(e){const{element:t}=e,n=tx("commandStack"),i=tx("translate"),r=tx("debounceInput"),o=RE(t);return V_({element:t,id:"linkName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}})},debounce:r})}const yS="create-new";function bS(e){const{element:t}=e;if(!function(e){return kr(e,"bpmn:ReceiveTask")||Dr(e,["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent"])&&!!PE(e)}(t))return[];let n=[{id:"messageRef",component:_S,isEdited:T_}];return ME(t)&&(n=[...n,{id:"messageName",component:xS,isEdited:H_}]),n}function _S(e){const{element:t}=e,n=tx("bpmnFactory"),i=tx("commandStack"),r=tx("translate"),o=PE(t),a=Tr(t),s=nx(a,Q_(X_(o,a),"messageRef"));return xE({element:t,id:"messageRef",label:r("Global message reference"),autoFocusEntry:"messageName",getValue:()=>{const e=ME(t);return e?e.get("id"):""},setValue:e=>{const r=XE(o),a=[];let s;if(e===yS){const i=YE("Message_");s=KE("bpmn:Message",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||QE(o,"bpmn:Message",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{messageRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:yS,label:r("Create new ...")}];const n=ZE(Tr(t),"bpmn:Message");var i;return(i=n,B(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e},show:s})}function xS(e){const{element:t}=e,n=tx("commandStack"),i=tx("translate"),r=tx("debounceInput"),o=ME(t),a=Tr(t),s=nx(a,Q_(X_(o,a),"name"));return V_({element:t,id:"messageName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r,show:s})}function wS(e){const{element:t}=e;if(!function(e){const t=MS(e);return!!t&&kr(t,"bpmn:MultiInstanceLoopCharacteristics")}(t))return[];return[{id:"loopCardinality",component:ES,isEdited:H_},{id:"completionCondition",component:SS,isEdited:H_}]}function ES(e){const{element:t}=e,n=tx("bpmnFactory"),i=tx("debounceInput"),r=tx("commandStack"),o=tx("translate");return V_({element:t,id:"loopCardinality",label:o("Loop cardinality"),getValue:()=>function(e){return CS(function(e){return PS(e,"loopCardinality")}(e))}(t),setValue:e=>r.execute("element.updateModdleProperties",RS(t,"loopCardinality",e,n)),debounce:i})}function SS(e){const{element:t}=e,n=tx("bpmnFactory"),i=tx("debounceInput"),r=tx("commandStack"),o=tx("translate");return V_({element:t,id:"completionCondition",label:o("Completion condition"),getValue:()=>function(e){return CS(function(e){return PS(e,"completionCondition")}(e))}(t),setValue:e=>r.execute("element.updateModdleProperties",RS(t,"completionCondition",e,n)),debounce:i})}function CS(e){return e&&e.get("body")}function PS(e,t){const n=MS(e);return n&&n.get(t)}function MS(e){return Tr(e).loopCharacteristics}function RS(e,t,n,i){const r=MS(e),o={};if(!n)return o[t]=void 0,{element:e,moddleElement:r,properties:o};const a=r.get(t);return a?{element:e,moddleElement:a,properties:{body:n}}:(o[t]=function(e,t,n){return KE("bpmn:FormalExpression",{body:t},e,n)}(r,n,i),{element:e,moddleElement:r,properties:o})}function AS(e){const{element:t}=e;return Dr(t,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])?[]:[{id:"name",component:kS,isEdited:H_}]}function kS(e){const{element:t}=e,n=tx("modeling"),i=tx("debounceInput"),r=tx("canvas"),o=tx("bpmnFactory"),a=tx("translate");let s={element:t,id:"name",label:a("Name"),debounce:i,setValue:e=>{n.updateProperties(t,{name:e})},getValue:e=>e.businessObject.name};return kr(t,"bpmn:TextAnnotation")?s={...s,setValue:e=>{n.updateProperties(t,{text:e})},getValue:e=>e.businessObject.text}:kr(t,"bpmn:Group")?s={...s,setValue:e=>{const i=Tr(t);i.categoryValueRef||function(e,t,n){const i=function(e,t){const n=t.create("bpmn:CategoryValue"),i=t.create("bpmn:Category",{categoryValue:[n]});return Dt(e.get("rootElements"),i),Tr(i).$parent=e,Tr(n).$parent=i,n}(Tr(t).$parent,n);e.categoryValueRef=i}(i,r.getRootElement(),o),n.updateLabel(t,e)},getValue:e=>{const t=Tr(e).categoryValueRef;return t&&t.value}}:kr(t,"bpmn:Participant")&&(s.label=a("Participant Name")),V_(s)}function DS(e){const{element:t}=e;return function(e){return kr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"processId",component:zS,isEdited:H_},{id:"processName",component:TS,isEdited:H_}]:[]}function TS(e){const{element:t}=e,n=tx("commandStack"),i=tx("translate"),r=tx("debounceInput"),o=t.businessObject.get("processRef");return V_({element:t,id:"processName",label:i("Process name"),getValue:()=>o.get("name"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}})},debounce:r})}function zS(e){const{element:t}=e,n=tx("commandStack"),i=tx("translate"),r=tx("debounceInput"),o=t.businessObject.get("processRef");return V_({element:t,id:"processId",label:i("Process ID"),getValue:()=>o.get("id"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{id:e}})},debounce:r,validate:e=>mS(o,e,i)})}const OS="create-new";function BS(e){const{element:t}=e;if(!function(e){return kr(e,"bpmn:Event")&&!!AE(e)}(t))return[];let n=[{id:"signalRef",component:jS,isEdited:T_}];return kE(t)&&(n=[...n,{id:"signalName",component:NS,isEdited:H_}]),n}function jS(e){const{element:t}=e,n=tx("bpmnFactory"),i=tx("commandStack"),r=tx("translate"),o=AE(t);return xE({element:t,id:"signalRef",label:r("Global signal reference"),autoFocusEntry:"signalName",getValue:()=>{const e=kE(t);return e?e.get("id"):""},setValue:e=>{const r=XE(o),a=[];let s;if(e===OS){const i=YE("Signal_");s=KE("bpmn:Signal",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||QE(o,"bpmn:Signal",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{signalRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:OS,label:r("Create new ...")}];const n=ZE(Tr(t),"bpmn:Signal");var i;return(i=n,B(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function NS(e){const{element:t}=e,n=tx("commandStack"),i=tx("translate"),r=tx("debounceInput"),o=kE(t);return V_({element:t,id:"signalName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function LS(e){const{element:t,listener:n,idPrefix:i}=e;let{timerEventDefinition:r}=e;if(!r){r=EE(Tr(t))}const o=function(e){if(!e)return;return void 0!==e.get("timeDate")?"timeDate":void 0!==e.get("timeCycle")?"timeCycle":void 0!==e.get("timeDuration")?"timeDuration":void 0}(r);if(!function(e){return Dr(e,["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"])&&!!EE(e)}(t)&&!function(e){return e&&kr(e,"camunda:TaskListener")&&EE(e)}(n))return[];const a=[];return a.push({id:HS(i,"timerEventDefinitionType"),component:IS,isEdited:T_,timerEventDefinition:r,timerEventDefinitionType:o}),o&&a.push({id:HS(i,"timerEventDefinitionValue"),component:FS,isEdited:H_,timerEventDefinition:r,timerEventDefinitionType:o}),a}function IS(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=tx("commandStack"),o=tx("bpmnFactory"),a=tx("translate");return D_({element:t,id:"timerEventDefinitionType",label:a("Type"),getValue:()=>i||"",setValue:e=>{if(e===i)return;const a=o.create("bpmn:FormalExpression",{body:void 0});a.$parent=n;const s={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};""!==e&&(s[e]=a),r.execute("element.updateModdleProperties",{element:t,moddleElement:n,properties:s})},getOptions:e=>[{value:"",label:a("<none>")},{value:"timeDate",label:a("Date")},{value:"timeDuration",label:a("Duration")},{value:"timeCycle",label:a("Cycle")}]})}function FS(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=tx("commandStack"),o=tx("translate"),a=tx("debounceInput"),s=n.get(i);return V_({element:t,id:"timerEventDefinitionValue",label:o("Value"),getValue:()=>s&&s.get("body"),setValue:e=>{r.execute("element.updateModdleProperties",{element:t,moddleElement:s,properties:{body:e}})},debounce:a,description:VS(i,o)})}function VS(e,t){switch(e){case"timeDate":return i_("div",{children:[i_("p",{children:t("A specific point in time defined as ISO 8601 combined date and time representation.")}),i_("ul",{children:[i_("li",{children:[i_("code",{children:"2019-10-01T12:00:00Z"})," - ",t("UTC time")]}),i_("li",{children:[i_("code",{children:"2019-10-02T08:09:40+02:00"})," - ",t("UTC plus 2 hours zone offset")]})]}),i_("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]});case"timeCycle":return i_("div",{children:[i_("p",{children:t("A cycle defined as ISO 8601 repeating intervals format.")}),i_("ul",{children:[i_("li",{children:[i_("code",{children:"R5/PT10S"})," - ",t("every 10 seconds, up to 5 times")]}),i_("li",{children:[i_("code",{children:"R/P1D"})," - ",t("every day, infinitely")]})]}),i_("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]});case"timeDuration":return i_("div",{children:[i_("p",{children:t("A time duration defined as ISO 8601 durations format.")}),i_("ul",{children:[i_("li",{children:[i_("code",{children:"PT15S"})," - ",t("15 seconds")]}),i_("li",{children:[i_("code",{children:"PT1H30M"})," - ",t("1 hour and 30 minutes")]}),i_("li",{children:[i_("code",{children:"P14D"})," - ",t("14 days")]})]}),i_("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]})}}function HS(e,t){return e?e+t:t}function $S(e){return{id:"general",label:"General",entries:[...AS({element:e}),{id:"id",component:fS,isEdited:H_},...DS({element:e}),...lS({element:e})],component:v_}}function GS(e){const t={label:"Compensation",id:"compensation",component:v_,entries:[...OE({element:e})]};return t.entries.length?t:null}function WS(e){return{id:"documentation",label:"Documentation",entries:[...HE({element:e})],component:v_}}function US(e){const t={id:"error",label:"Error",component:v_,entries:[...eS({element:e})]};return t.entries.length?t:null}function qS(e){const t={id:"message",label:"Message",component:v_,entries:[...bS({element:e})]};return t.entries.length?t:null}function KS(e){const t={id:"signal",label:"Signal",component:v_,entries:[...BS({element:e})]};return t.entries.length?t:null}function YS(e){const t={label:"Link",id:"link",component:v_,entries:[...vS({element:e})]};return t.entries.length?t:null}function XS(e){const t={id:"escalation",label:"Escalation",component:v_,entries:[...oS({element:e})]};return t.entries.length?t:null}function ZS(e){const t={label:"Timer",id:"timer",component:v_,entries:[...LS({element:e})]};return t.entries.length?t:null}function QS(e){const t={label:"Multi-instance",id:"multiInstance",component:v_,entries:[...wS({element:e})]};return t.entries.length?t:null}class JS{constructor(e){e.registerProvider(this)}getGroups(e){return t=>t=t.concat(function(e){return[$S(e),WS(e),GS(e),US(e),YS(e),qS(e),QS(e),KS(e),XS(e),ZS(e)].filter((e=>null!==e))}(e))}}JS.$inject=["propertiesPanel"];var eC,tC={__init__:["bpmnPropertiesProvider"],bpmnPropertiesProvider:["type",JS]},nC={};function iC(e,t,n){if(3===e.nodeType){var i="textContent"in e?e.textContent:e.nodeValue||"";if(!1!==iC.options.trim){var r=0===t||t===n.length-1;if((!(i=i.match(/^[\s\n]+$/g)&&"all"!==iC.options.trim?" ":i.replace(/(^[\s\n]+|[\s\n]+$)/g,"all"===iC.options.trim||r?"":" "))||" "===i)&&n.length>1&&r)return null}return i}if(1!==e.nodeType)return null;var o=String(e.nodeName).toLowerCase();if("script"===o&&!iC.options.allowScripts)return null;var a,s,c=iC.h(o,function(e){var t=e&&e.length;if(!t)return null;for(var n={},i=0;i<t;i++){var r=e[i],o=r.name,a=r.value;"on"===o.substring(0,2)&&iC.options.allowEvents&&(a=new Function(a)),n[o]=a}return n}(e.attributes),(s=(a=e.childNodes)&&Array.prototype.map.call(a,iC).filter(oC))&&s.length?s:null);return iC.visitor&&iC.visitor(c),c}var rC,oC=function(e){return e},aC={};function sC(e){var t=(e.type||"").toLowerCase(),n=sC.map;n&&n.hasOwnProperty(t)?(e.type=n[t],e.props=Object.keys(e.props||{}).reduce((function(t,n){var i;return t[(i=n,i.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=e.props[n],t}),{})):e.type=t.replace(/[^a-z0-9-]/i,"")}function cC(e={}){this._injectOriginModule(e),cy.call(this,e)}return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.setReviver=function(e){rC=e},t.prototype.shouldComponentUpdate=function(e){var t=this.props;return e.wrap!==t.wrap||e.type!==t.type||e.markup!==t.markup},t.prototype.setComponents=function(e){if(this.map={},e)for(var t in e)if(e.hasOwnProperty(t)){var n=t.replace(/([A-Z]+)([A-Z][a-z0-9])|([a-z0-9]+)([A-Z])/g,"$1$3-$2$4").toLowerCase();this.map[n]=e[t]}},t.prototype.render=function(e){var t=e.wrap;void 0===t&&(t=!0);var n,i=e.type,r=e.markup,o=e.components,a=e.reviver,s=e.onError,c=e["allow-scripts"],l=e["allow-events"],p=e.trim,u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&-1===t.indexOf(i)&&(n[i]=e[i]);return n}(e,["wrap","type","markup","components","reviver","onError","allow-scripts","allow-events","trim"]),h=a||this.reviver||this.constructor.prototype.reviver||rC||Vy;this.setComponents(o);var d={allowScripts:c,allowEvents:l,trim:p};try{n=function(e,t,n,i,r){var o=function(e,t){var n,i,r,o,a="html"===t?"text/html":"application/xml";"html"===t?(o="body",r="<!DOCTYPE html>\n<html><body>"+e+"</body></html>"):(o="xml",r='<?xml version="1.0" encoding="UTF-8"?>\n<xml>'+e+"</xml>");try{n=(new DOMParser).parseFromString(r,a)}catch(e){i=e}if(n||"html"!==t||((n=eC||(eC=function(){if(document.implementation&&document.implementation.createHTMLDocument)return document.implementation.createHTMLDocument("");var e=document.createElement("iframe");return e.style.cssText="position:absolute; left:0; top:-999em; width:1px; height:1px; overflow:hidden;",e.setAttribute("sandbox","allow-forms"),document.body.appendChild(e),e.contentWindow.document}())).open(),n.write(r),n.close()),n){var s=n.getElementsByTagName(o)[0],c=s.firstChild;return e&&!c&&(s.error="Document parse failed."),c&&"parsererror"===String(c.nodeName).toLowerCase()&&(c.removeChild(c.firstChild),c.removeChild(c.lastChild),s.error=c.textContent||c.nodeValue||i||"Unknown error",s.removeChild(c)),s}}(e,t);if(o&&o.error)throw new Error(o.error);var a=o&&o.body||o;sC.map=i||aC;var s=a&&function(e,t,n,i){return iC.visitor=t,iC.h=n,iC.options=i||nC,iC(e)}(a,sC,n,r);return sC.map=null,s&&s.props&&s.props.children||null}(r,i,h,this.map,d)}catch(e){s?s({error:e}):"undefined"!=typeof console&&console.error&&console.error("preact-markup: "+e)}if(!1===t)return n||null;var m=u.hasOwnProperty("className")?"className":"class",f=u[m];return f?f.splice?f.splice(0,0,"markup"):"string"==typeof f?u[m]+=" markup":"object"==typeof f&&(f.markup=!0):u[m]="markup",h("div",u,n||null)}}(Gy),document.createElement("form"),i(cC,cy),cC.prototype._injectOriginModule=function(e){this._modules=[].concat(this._modules,e&&e.disableAdjustOrigin?Cy:Ry)},cC.prototype._extensionModules=[_y,By,_E,tC],cC.prototype._modules=[].concat(cy.prototype._modules,cC.prototype._extensionModules),cC}));