camunda-bpmn-js 4.13.0 → 4.15.0

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.
@@ -27832,7 +27832,7 @@
27832
27832
 
27833
27833
  var m$3=e$5.bind(h$3);
27834
27834
 
27835
- var t$2,r$3,u$3,i$4,o$4=0,f$3=[],c$2=[],e$4=l$5.__b,a$3=l$5.__r,v$2=l$5.diffed,l$4=l$5.__c,m$2=l$5.unmount;function d$2(t,u){l$5.__h&&l$5.__h(r$3,t,o$4||u),o$4=0;var i=r$3.__H||(r$3.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c$2}),i.__[t]}function p$3(n){return o$4=1,y$2(B$4,n)}function y$2(n,u,i){var o=d$2(t$2++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$4(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r$3,!r$3.u)){r$3.u=!0;var f=r$3.shouldComponentUpdate;r$3.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function h$2(u,i){var o=d$2(t$2++,3);!l$5.__s&&z$4(o.__H,i)&&(o.__=u,o.i=i,r$3.__H.__h.push(o));}function s$3(u,i){var o=d$2(t$2++,4);!l$5.__s&&z$4(o.__H,i)&&(o.__=u,o.i=i,r$3.__h.push(o));}function _$3(n){return o$4=5,F$4(function(){return {current:n}},[])}function F$4(n,r){var u=d$2(t$2++,7);return z$4(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$4(n,t){return o$4=8,F$4(function(){return n},t)}function q$3(n){var u=r$3.context[n.__c],i=d$2(t$2++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r$3)),u.props.value):n.__}function b$2(){for(var t;t=f$3.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$3),t.__H.__h.forEach(w$4),t.__H.__h=[];}catch(r){t.__H.__h=[],l$5.__e(r,t.__v);}}l$5.__b=function(n){r$3=null,e$4&&e$4(n);},l$5.__r=function(n){a$3&&a$3(n),t$2=0;var i=(r$3=n.__c).__H;i&&(u$3===r$3?(i.__h=[],r$3.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c$2,n.__N=n.i=void 0;})):(i.__h.forEach(k$3),i.__h.forEach(w$4),i.__h=[])),u$3=r$3;},l$5.diffed=function(t){v$2&&v$2(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f$3.push(o)&&i$4===l$5.requestAnimationFrame||((i$4=l$5.requestAnimationFrame)||j$3)(b$2)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c$2&&(n.__=n.__V),n.i=void 0,n.__V=c$2;})),u$3=r$3=null;},l$5.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$3),t.__h=t.__h.filter(function(n){return !n.__||w$4(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$5.__e(u,t.__v);}}),l$4&&l$4(t,r);},l$5.unmount=function(t){m$2&&m$2(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$3(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$5.__e(r,u.__v));};var g$4="function"==typeof requestAnimationFrame;function j$3(n){var t,r=function(){clearTimeout(u),g$4&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$4&&(t=requestAnimationFrame(r));}function k$3(n){var t=r$3,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r$3=t;}function w$4(n){var t=r$3;n.__c=n.__(),r$3=t;}function z$4(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$4(n,t){return "function"==typeof t?t(n):t}
27835
+ var t$2,r$3,u$3,i$5,o$4=0,f$3=[],c$2=[],e$4=l$5.__b,a$3=l$5.__r,v$2=l$5.diffed,l$4=l$5.__c,m$2=l$5.unmount;function d$2(t,u){l$5.__h&&l$5.__h(r$3,t,o$4||u),o$4=0;var i=r$3.__H||(r$3.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c$2}),i.__[t]}function p$3(n){return o$4=1,y$2(B$4,n)}function y$2(n,u,i){var o=d$2(t$2++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$4(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r$3,!r$3.u)){r$3.u=!0;var f=r$3.shouldComponentUpdate;r$3.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function h$2(u,i){var o=d$2(t$2++,3);!l$5.__s&&z$4(o.__H,i)&&(o.__=u,o.i=i,r$3.__H.__h.push(o));}function s$3(u,i){var o=d$2(t$2++,4);!l$5.__s&&z$4(o.__H,i)&&(o.__=u,o.i=i,r$3.__h.push(o));}function _$3(n){return o$4=5,F$4(function(){return {current:n}},[])}function F$4(n,r){var u=d$2(t$2++,7);return z$4(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$4(n,t){return o$4=8,F$4(function(){return n},t)}function q$3(n){var u=r$3.context[n.__c],i=d$2(t$2++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r$3)),u.props.value):n.__}function b$2(){for(var t;t=f$3.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$3),t.__H.__h.forEach(w$4),t.__H.__h=[];}catch(r){t.__H.__h=[],l$5.__e(r,t.__v);}}l$5.__b=function(n){r$3=null,e$4&&e$4(n);},l$5.__r=function(n){a$3&&a$3(n),t$2=0;var i=(r$3=n.__c).__H;i&&(u$3===r$3?(i.__h=[],r$3.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c$2,n.__N=n.i=void 0;})):(i.__h.forEach(k$3),i.__h.forEach(w$4),i.__h=[])),u$3=r$3;},l$5.diffed=function(t){v$2&&v$2(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f$3.push(o)&&i$5===l$5.requestAnimationFrame||((i$5=l$5.requestAnimationFrame)||j$3)(b$2)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c$2&&(n.__=n.__V),n.i=void 0,n.__V=c$2;})),u$3=r$3=null;},l$5.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$3),t.__h=t.__h.filter(function(n){return !n.__||w$4(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$5.__e(u,t.__v);}}),l$4&&l$4(t,r);},l$5.unmount=function(t){m$2&&m$2(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$3(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$5.__e(r,u.__v));};var g$4="function"==typeof requestAnimationFrame;function j$3(n){var t,r=function(){clearTimeout(u),g$4&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$4&&(t=requestAnimationFrame(r));}function k$3(n){var t=r$3,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r$3=t;}function w$4(n){var t=r$3;n.__c=n.__(),r$3=t;}function z$4(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$4(n,t){return "function"==typeof t?t(n):t}
27836
27836
 
27837
27837
  function r$2(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r$2(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r$2(e))&&(n&&(n+=" "),n+=t);return n}
27838
27838
 
@@ -35104,7 +35104,7 @@
35104
35104
  const source = context.source,
35105
35105
  target = context.target;
35106
35106
 
35107
- if (isCompensationBoundaryEvent(source) && isForCompensation$1(target)) {
35107
+ if (isCompensationBoundaryEvent$1(source) && isForCompensation$1(target)) {
35108
35108
  removeIsForCompensationProperty(target);
35109
35109
  }
35110
35110
  }
@@ -35117,7 +35117,7 @@
35117
35117
  source = context.source,
35118
35118
  target = context.target;
35119
35119
 
35120
- if (isCompensationBoundaryEvent(source) && isForCompensationAllowed(target)) {
35120
+ if (isCompensationBoundaryEvent$1(source) && isForCompensationAllowed(target)) {
35121
35121
  addIsForCompensationProperty(target);
35122
35122
  removeExistingAssociations(source, [ connection ]);
35123
35123
  }
@@ -35138,7 +35138,7 @@
35138
35138
  }
35139
35139
 
35140
35140
  // newTarget perspective
35141
- if (isCompensationBoundaryEvent(source) && isForCompensationAllowed(newTarget)) {
35141
+ if (isCompensationBoundaryEvent$1(source) && isForCompensationAllowed(newTarget)) {
35142
35142
  addIsForCompensationProperty(newTarget);
35143
35143
  }
35144
35144
  }
@@ -35166,7 +35166,7 @@
35166
35166
  } = context;
35167
35167
 
35168
35168
  // from compensate boundary event
35169
- if (isCompensationBoundaryEvent(context.oldShape) &&
35169
+ if (isCompensationBoundaryEvent$1(context.oldShape) &&
35170
35170
  newData.eventDefinitionType !== 'bpmn:CompensateEventDefinition' ||
35171
35171
  newData.type !== 'bpmn:BoundaryEvent'
35172
35172
  ) {
@@ -35181,7 +35181,7 @@
35181
35181
 
35182
35182
  // to compensate boundary event
35183
35183
  else if (
35184
- !isCompensationBoundaryEvent(context.oldShape) &&
35184
+ !isCompensationBoundaryEvent$1(context.oldShape) &&
35185
35185
  newData.eventDefinitionType === 'bpmn:CompensateEventDefinition' &&
35186
35186
  newData.type === 'bpmn:BoundaryEvent'
35187
35187
  ) {
@@ -35250,7 +35250,7 @@
35250
35250
 
35251
35251
  function removeIncomingCompensationAssociations(element) {
35252
35252
  const compensationAssociations = element.incoming.filter(
35253
- connection => isCompensationBoundaryEvent(connection.source)
35253
+ connection => isCompensationBoundaryEvent$1(connection.source)
35254
35254
  );
35255
35255
 
35256
35256
  modeling.removeElements(compensationAssociations);
@@ -35280,7 +35280,7 @@
35280
35280
  return bo && bo.get('isForCompensation');
35281
35281
  }
35282
35282
 
35283
- function isCompensationBoundaryEvent(element) {
35283
+ function isCompensationBoundaryEvent$1(element) {
35284
35284
  return element && is$6(element, 'bpmn:BoundaryEvent') &&
35285
35285
  hasEventDefinition$3(element, 'bpmn:CompensateEventDefinition');
35286
35286
  }
@@ -66989,9 +66989,9 @@
66989
66989
  ]
66990
66990
  };
66991
66991
 
66992
- var n$2,l$3,u$2,i$3,o$3,r$1,f$2,e$3,c$1={},s$2=[],a$2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h$1=Array.isArray;function v$1(n,l){for(var u in l)n[u]=l[u];return n}function p$2(n){var l=n.parentNode;l&&l.removeChild(n);}function y$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$2:r,__i:-1,__u:0};return null==r&&null!=l$3.vnode&&l$3.vnode(f),f}function _$2(){return {current:null}}function g$3(n){return n.children}function b$1(n,l){this.props=n,this.context=l;}function m$1(n,l){if(null==l)return n.__?m$1(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?m$1(n):null}function k$2(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$2(n)}}function w$3(n){(!n.__d&&(n.__d=!0)&&i$3.push(n)&&!x$3.__r++||o$3!==l$3.debounceRendering)&&((o$3=l$3.debounceRendering)||r$1)(x$3);}function x$3(){var n,u,t,o,r,e,c,s,a;for(i$3.sort(f$2);n=i$3.shift();)n.__d&&(u=i$3.length,o=void 0,e=(r=(t=n).__v).__e,s=[],a=[],(c=t.__P)&&((o=v$1({},r)).__v=r.__v+1,l$3.vnode&&l$3.vnode(o),L$2(c,o,r,t.__n,void 0!==c.ownerSVGElement,32&r.__u?[e]:null,s,null==e?m$1(r):e,!!(32&r.__u),a),o.__.__k[o.__i]=o,M$1(s,o,a),o.__e!=e&&k$2(o)),i$3.length>u&&i$3.sort(f$2));x$3.__r=0;}function C$3(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$2,b=l.length;for(u.__d=e,P$2(u,l,g),e=u.__d,v=0;v<b;v++)null!=(y=u.__k[v])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?c$1:g[y.__i]||c$1,y.__i=v,L$2(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&z$3(p.ref,null,y),h.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?e=S(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_;}function P$2(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?d$1(null,i,null,null,i):h$1(i)?d$1(g$3,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?d$1(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=H$2(i,u,r=t+a,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:a=f<r&&f==r-1?f-r:0,f!==t+a&&(i.__u|=65536))):(o=u[t])&&null==o.key&&o.__e&&(o.__e==n.__d&&(n.__d=m$1(o)),N$1(o,o,!1),u[t]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$1(o)),N$1(o,o));}function S(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=S(t[i],l,u));return l}return n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e),l&&l.nextSibling}function $$1(n,l){return l=l||[],null==n||"boolean"==typeof n||(h$1(n)?n.some(function(n){$$1(n,l);}):l.push(n)),l}function H$2(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type)return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function I$2(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$2.test(l)?u:u+"px";}function T$3(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||I$2(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||I$2(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?D$2:A$2,o)):n.removeEventListener(l,o?D$2:A$2,o);else {if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function A$2(n){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$3.event?l$3.event(n):n)}function D$2(n){return this.l[n.type+!0](l$3.event?l$3.event(n):n)}function L$2(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,m,k,w,x,P,S,$,H,I,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$3.__b)&&a(u);n:if("function"==typeof A)try{if(w=u.props,x=(a=A.contextType)&&i[a.__c],P=a?x?x.props.value:a.__:i,t.__c?k=(p=u.__c=t.__c).__=p.__E:("prototype"in A&&A.prototype.render?u.__c=p=new A(w,P):(u.__c=p=new b$1(w,P),p.constructor=A,p.render=O$1),x&&x.sub(p),p.props=w,p.state||(p.state={}),p.context=P,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=v$1({},p.__s)),v$1(p.__s,A.getDerivedStateFromProps(w,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==A.getDerivedStateFromProps&&w!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,P),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,P)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=w,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,P),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,m);});}if(p.context=P,p.props=w,p.__P=n,p.__e=!1,$=l$3.__r,H=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[];}else do{p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=v$1(v$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,_)),C$3(n,h$1(T=null!=a&&a.type===g$3&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__u&=-161,p.__h.length&&f.push(p),k&&(p.__E=p.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$3.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=j$2(t.__e,u,t,i,o,r,f,c,s);(a=l$3.diffed)&&a(u);}function M$1(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)z$3(t[i],t[++i],t[++i]);l$3.__c&&l$3.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$3.__e(n,u.__v);}});}function j$2(l,u,t,i,o,r,f,e,s){var a,v,y,d,_,g,b,k=t.props,w=u.props,x=u.type;if("svg"===x&&(o=!0),null!=r)for(a=0;a<r.length;a++)if((_=r[a])&&"setAttribute"in _==!!x&&(x?_.localName===x:3===_.nodeType)){l=_,r[a]=null;break}if(null==l){if(null===x)return document.createTextNode(w);l=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,w.is&&w),r=null,e=!1;}if(null===x)k===w||e&&l.data===w||(l.data=w);else {if(r=r&&n$2.call(l.childNodes),k=t.props||c$1,!e&&null!=r)for(k={},a=0;a<l.attributes.length;a++)k[(_=l.attributes[a]).name]=_.value;for(a in k)_=k[a],"children"==a||("dangerouslySetInnerHTML"==a?y=_:"key"===a||a in w||T$3(l,a,null,_,o));for(a in w)_=w[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?b=_:"key"===a||e&&"function"!=typeof _||k[a]===_||T$3(l,a,_,k[a],o);if(v)e||y&&(v.__html===y.__html||v.__html===l.innerHTML)||(l.innerHTML=v.__html),u.__k=[];else if(y&&(l.innerHTML=""),C$3(l,h$1(d)?d:[d],u,t,i,o&&"foreignObject"!==x,r,f,r?r[0]:t.__k&&m$1(t,0),e,s),null!=r)for(a=r.length;a--;)null!=r[a]&&p$2(r[a]);e||(a="value",void 0!==g&&(g!==l[a]||"progress"===x&&!g||"option"===x&&g!==k[a])&&T$3(l,a,g,k[a],!1),a="checked",void 0!==b&&b!==l[a]&&T$3(l,a,b,k[a],!1));}return l}function z$3(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$3.__e(n,t);}}function N$1(n,u,t){var i,o;if(l$3.unmount&&l$3.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z$3(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$3.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&N$1(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$2(n.__e),n.__=n.__e=n.__d=void 0;}function O$1(n,l,u){return this.constructor(n,u)}function q$2(u,t,i){var o,r,f,e;l$3.__&&l$3.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],L$2(t,u=(!o&&i||t).__k=y$1(g$3,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n$2.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),M$1(f,u,e);}function B$3(n,l){q$2(n,l,B$3);}function E$1(l,u,t){var i,o,r,f,e=v$1({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?n$2.call(arguments,2):t),d$1(l.type,e,i||l.key,o||l.ref,null)}function F$3(n,l){var u={__c:l="__cC"+e$3++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,w$3(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$2=s$2.slice,l$3={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$2=0,b$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v$1({},this.state),"function"==typeof n&&(n=n(v$1({},u),this.props)),n&&v$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),w$3(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$3(this));},b$1.prototype.render=g$3,i$3=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$2=function(n,l){return n.__v.__b-l.__v.__b},x$3.__r=0,e$3=0;
66992
+ var n$2,l$3,u$2,i$4,o$3,r$1,f$2,e$3,c$1={},s$2=[],a$2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h$1=Array.isArray;function v$1(n,l){for(var u in l)n[u]=l[u];return n}function p$2(n){var l=n.parentNode;l&&l.removeChild(n);}function y$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$2:r,__i:-1,__u:0};return null==r&&null!=l$3.vnode&&l$3.vnode(f),f}function _$2(){return {current:null}}function g$3(n){return n.children}function b$1(n,l){this.props=n,this.context=l;}function m$1(n,l){if(null==l)return n.__?m$1(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?m$1(n):null}function k$2(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$2(n)}}function w$3(n){(!n.__d&&(n.__d=!0)&&i$4.push(n)&&!x$3.__r++||o$3!==l$3.debounceRendering)&&((o$3=l$3.debounceRendering)||r$1)(x$3);}function x$3(){var n,u,t,o,r,e,c,s,a;for(i$4.sort(f$2);n=i$4.shift();)n.__d&&(u=i$4.length,o=void 0,e=(r=(t=n).__v).__e,s=[],a=[],(c=t.__P)&&((o=v$1({},r)).__v=r.__v+1,l$3.vnode&&l$3.vnode(o),L$2(c,o,r,t.__n,void 0!==c.ownerSVGElement,32&r.__u?[e]:null,s,null==e?m$1(r):e,!!(32&r.__u),a),o.__.__k[o.__i]=o,M$1(s,o,a),o.__e!=e&&k$2(o)),i$4.length>u&&i$4.sort(f$2));x$3.__r=0;}function C$3(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$2,b=l.length;for(u.__d=e,P$2(u,l,g),e=u.__d,v=0;v<b;v++)null!=(y=u.__k[v])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?c$1:g[y.__i]||c$1,y.__i=v,L$2(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&z$3(p.ref,null,y),h.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?e=S(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_;}function P$2(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?d$1(null,i,null,null,i):h$1(i)?d$1(g$3,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?d$1(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=H$2(i,u,r=t+a,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:a=f<r&&f==r-1?f-r:0,f!==t+a&&(i.__u|=65536))):(o=u[t])&&null==o.key&&o.__e&&(o.__e==n.__d&&(n.__d=m$1(o)),N$1(o,o,!1),u[t]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$1(o)),N$1(o,o));}function S(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=S(t[i],l,u));return l}return n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e),l&&l.nextSibling}function $$1(n,l){return l=l||[],null==n||"boolean"==typeof n||(h$1(n)?n.some(function(n){$$1(n,l);}):l.push(n)),l}function H$2(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type)return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function I$2(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$2.test(l)?u:u+"px";}function T$3(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||I$2(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||I$2(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?D$2:A$2,o)):n.removeEventListener(l,o?D$2:A$2,o);else {if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function A$2(n){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$3.event?l$3.event(n):n)}function D$2(n){return this.l[n.type+!0](l$3.event?l$3.event(n):n)}function L$2(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,m,k,w,x,P,S,$,H,I,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$3.__b)&&a(u);n:if("function"==typeof A)try{if(w=u.props,x=(a=A.contextType)&&i[a.__c],P=a?x?x.props.value:a.__:i,t.__c?k=(p=u.__c=t.__c).__=p.__E:("prototype"in A&&A.prototype.render?u.__c=p=new A(w,P):(u.__c=p=new b$1(w,P),p.constructor=A,p.render=O$1),x&&x.sub(p),p.props=w,p.state||(p.state={}),p.context=P,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=v$1({},p.__s)),v$1(p.__s,A.getDerivedStateFromProps(w,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==A.getDerivedStateFromProps&&w!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,P),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,P)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=w,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,P),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,m);});}if(p.context=P,p.props=w,p.__P=n,p.__e=!1,$=l$3.__r,H=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[];}else do{p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=v$1(v$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,_)),C$3(n,h$1(T=null!=a&&a.type===g$3&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__u&=-161,p.__h.length&&f.push(p),k&&(p.__E=p.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$3.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=j$2(t.__e,u,t,i,o,r,f,c,s);(a=l$3.diffed)&&a(u);}function M$1(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)z$3(t[i],t[++i],t[++i]);l$3.__c&&l$3.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$3.__e(n,u.__v);}});}function j$2(l,u,t,i,o,r,f,e,s){var a,v,y,d,_,g,b,k=t.props,w=u.props,x=u.type;if("svg"===x&&(o=!0),null!=r)for(a=0;a<r.length;a++)if((_=r[a])&&"setAttribute"in _==!!x&&(x?_.localName===x:3===_.nodeType)){l=_,r[a]=null;break}if(null==l){if(null===x)return document.createTextNode(w);l=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,w.is&&w),r=null,e=!1;}if(null===x)k===w||e&&l.data===w||(l.data=w);else {if(r=r&&n$2.call(l.childNodes),k=t.props||c$1,!e&&null!=r)for(k={},a=0;a<l.attributes.length;a++)k[(_=l.attributes[a]).name]=_.value;for(a in k)_=k[a],"children"==a||("dangerouslySetInnerHTML"==a?y=_:"key"===a||a in w||T$3(l,a,null,_,o));for(a in w)_=w[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?b=_:"key"===a||e&&"function"!=typeof _||k[a]===_||T$3(l,a,_,k[a],o);if(v)e||y&&(v.__html===y.__html||v.__html===l.innerHTML)||(l.innerHTML=v.__html),u.__k=[];else if(y&&(l.innerHTML=""),C$3(l,h$1(d)?d:[d],u,t,i,o&&"foreignObject"!==x,r,f,r?r[0]:t.__k&&m$1(t,0),e,s),null!=r)for(a=r.length;a--;)null!=r[a]&&p$2(r[a]);e||(a="value",void 0!==g&&(g!==l[a]||"progress"===x&&!g||"option"===x&&g!==k[a])&&T$3(l,a,g,k[a],!1),a="checked",void 0!==b&&b!==l[a]&&T$3(l,a,b,k[a],!1));}return l}function z$3(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$3.__e(n,t);}}function N$1(n,u,t){var i,o;if(l$3.unmount&&l$3.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z$3(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$3.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&N$1(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$2(n.__e),n.__=n.__e=n.__d=void 0;}function O$1(n,l,u){return this.constructor(n,u)}function q$2(u,t,i){var o,r,f,e;l$3.__&&l$3.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],L$2(t,u=(!o&&i||t).__k=y$1(g$3,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n$2.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),M$1(f,u,e);}function B$3(n,l){q$2(n,l,B$3);}function E$1(l,u,t){var i,o,r,f,e=v$1({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?n$2.call(arguments,2):t),d$1(l.type,e,i||l.key,o||l.ref,null)}function F$3(n,l){var u={__c:l="__cC"+e$3++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,w$3(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$2=s$2.slice,l$3={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$2=0,b$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v$1({},this.state),"function"==typeof n&&(n=n(v$1({},u),this.props)),n&&v$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),w$3(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$3(this));},b$1.prototype.render=g$3,i$4=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$2=function(n,l){return n.__v.__b-l.__v.__b},x$3.__r=0,e$3=0;
66993
66993
 
66994
- var t$1,r,u$1,i$2,o$2=0,f$1=[],c=[],e$2=l$3.__b,a$1=l$3.__r,v=l$3.diffed,l$2=l$3.__c,m=l$3.unmount;function d(t,u){l$3.__h&&l$3.__h(r,t,o$2||u),o$2=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function h(n){return o$2=1,s$1(B$2,n)}function s$1(n,u,i){var o=d(t$1++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$2(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function p$1(u,i){var o=d(t$1++,3);!l$3.__s&&z$2(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function y(u,i){var o=d(t$1++,4);!l$3.__s&&z$2(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _$1(n){return o$2=5,F$2(function(){return {current:n}},[])}function A$1(n,t,r){o$2=6,y(function(){return "function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n));}function F$2(n,r){var u=d(t$1++,7);return z$2(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$2(n,t){return o$2=8,F$2(function(){return n},t)}function q$1(n){var u=r.context[n.__c],i=d(t$1++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x$2(t,r){l$3.useDebugValue&&l$3.useDebugValue(r?r(t):t);}function V$2(){var n=d(t$1++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++;}return n.__}function b(){for(var t;t=f$1.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$1),t.__H.__h.forEach(w$2),t.__H.__h=[];}catch(r){t.__H.__h=[],l$3.__e(r,t.__v);}}l$3.__b=function(n){r=null,e$2&&e$2(n);},l$3.__r=function(n){a$1&&a$1(n),t$1=0;var i=(r=n.__c).__H;i&&(u$1===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k$1),i.__h.forEach(w$2),i.__h=[],t$1=0)),u$1=r;},l$3.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f$1.push(o)&&i$2===l$3.requestAnimationFrame||((i$2=l$3.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u$1=r=null;},l$3.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$2(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$3.__e(u,t.__v);}}),l$2&&l$2(t,r);},l$3.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$1(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$3.__e(r,u.__v));};var g$2="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$2&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$2&&(t=requestAnimationFrame(r));}function k$1(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$2(n){var t=r;n.__c=n.__(),r=t;}function z$2(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$2(n,t){return "function"==typeof t?t(n):t}
66994
+ var t$1,r,u$1,i$3,o$2=0,f$1=[],c=[],e$2=l$3.__b,a$1=l$3.__r,v=l$3.diffed,l$2=l$3.__c,m=l$3.unmount;function d(t,u){l$3.__h&&l$3.__h(r,t,o$2||u),o$2=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function h(n){return o$2=1,s$1(B$2,n)}function s$1(n,u,i){var o=d(t$1++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$2(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function p$1(u,i){var o=d(t$1++,3);!l$3.__s&&z$2(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function y(u,i){var o=d(t$1++,4);!l$3.__s&&z$2(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _$1(n){return o$2=5,F$2(function(){return {current:n}},[])}function A$1(n,t,r){o$2=6,y(function(){return "function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n));}function F$2(n,r){var u=d(t$1++,7);return z$2(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$2(n,t){return o$2=8,F$2(function(){return n},t)}function q$1(n){var u=r.context[n.__c],i=d(t$1++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x$2(t,r){l$3.useDebugValue&&l$3.useDebugValue(r?r(t):t);}function V$2(){var n=d(t$1++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++;}return n.__}function b(){for(var t;t=f$1.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$1),t.__H.__h.forEach(w$2),t.__H.__h=[];}catch(r){t.__H.__h=[],l$3.__e(r,t.__v);}}l$3.__b=function(n){r=null,e$2&&e$2(n);},l$3.__r=function(n){a$1&&a$1(n),t$1=0;var i=(r=n.__c).__H;i&&(u$1===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k$1),i.__h.forEach(w$2),i.__h=[],t$1=0)),u$1=r;},l$3.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f$1.push(o)&&i$3===l$3.requestAnimationFrame||((i$3=l$3.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u$1=r=null;},l$3.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$2(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$3.__e(u,t.__v);}}),l$2&&l$2(t,r);},l$3.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$1(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$3.__e(r,u.__v));};var g$2="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$2&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$2&&(t=requestAnimationFrame(r));}function k$1(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$2(n){var t=r;n.__c=n.__(),r=t;}function z$2(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$2(n,t){return "function"==typeof t?t(n):t}
66995
66995
 
66996
66996
  function g$1(n,t){for(var e in t)n[e]=t[e];return n}function C$2(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n){this.props=n;}function w$1(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return !r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C$2(this.props,n)}function u(e){return this.shouldComponentUpdate=r,y$1(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(E.prototype=new b$1).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return C$2(this.props,n)||C$2(this.state,t)};var x$1=l$3.__b;l$3.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x$1&&x$1(n);};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function N(n){function t(t){var e=g$1({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var k=function(n,t){return null==n?null:$$1($$1(n).map(t))},A={map:k,forEach:k,count:function(n){return n?$$1(n).length:0},only:function(n){var t=$$1(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:$$1},O=l$3.__e;l$3.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);O(n,t,e,r);};var T$1=l$3.unmount;function F$1(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g$1({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return F$1(n,t,e)})),n}function I$1(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return I$1(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function L$1(){this.__u=0,this.t=null,this.__b=null;}function U$1(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function D$1(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n;},function(n){u=n;}),u)throw u;if(!r)throw e;return y$1(r,o)}return o.displayName="Lazy",o.__f=!0,o}function M(){this.u=null,this.o=null;}l$3.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),T$1&&T$1(n);},(L$1.prototype=new b$1).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=U$1(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=I$1(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},L$1.prototype.componentWillUnmount=function(){this.t=[];},L$1.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=F$1(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&y$1(g$3,null,n.fallback);return i&&(i.__u&=-33),[y$1(g$3,null,e.__a?null:n.children),i]};var V$1=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function W$1(n){return this.getChildContext=function(){return n.context},n.children}function P$1(n){var e=this,r=n.i;e.componentWillUnmount=function(){q$2(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),q$2(y$1(W$1,{context:e.context},n.__v),e.l);}function j(n,e){var r=y$1(P$1,{__v:n,i:e});return r.containerInfo=e,r}(M.prototype=new b$1).__a=function(n){var t=this,e=U$1(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),V$1(t,n,r)):u();};e?e(o):o();}},M.prototype.render=function(n){this.u=null,this.o=new Map;var t=$$1(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},M.prototype.componentDidUpdate=M.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){V$1(n,e,t);});};var z$1="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B$1=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H$1=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Z$1=/[A-Z0-9]/g,Y="undefined"!=typeof document,$=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function q(n,t,e){return null==t.__k&&(t.textContent=""),q$2(n,t),"function"==typeof e&&e(),n?n.__c:null}function G$1(n,t,e){return B$3(n,t),"function"==typeof e&&e(),n?n.__c:null}b$1.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(b$1.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var J$1=l$3.event;function K$1(){}function Q$1(){return this.cancelBubble}function X(){return this.defaultPrevented}l$3.event=function(n){return J$1&&(n=J$1(n)),n.persist=K$1,n.isPropagationStopped=Q$1,n.isDefaultPrevented=X,n.nativeEvent=n};var nn$1,tn$1={enumerable:!1,configurable:!0,get:function(){return this.class}},en$1=l$3.vnode;l$3.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||Y&&"children"===o&&"noscript"===e||"class"===o||"className"===o)){var l=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===l?o="ondblclick":"onchange"!==l||"input"!==e&&"textarea"!==e||$(t.type)?"onfocus"===l?o="onfocusin":"onblur"===l?o="onfocusout":H$1.test(o)?o=l:-1===e.indexOf("-")&&B$1.test(o)?o=o.replace(Z$1,"-$&").toLowerCase():null===i&&(i=void 0):l=o="oninput","oninput"===l&&u[o=l]&&(o="oninputCapture"),u[o]=i;}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=$$1(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==e&&null!=u.defaultValue&&(u.value=$$1(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",tn$1)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u;}(n),n.$$typeof=z$1,en$1&&en$1(n);};var rn=l$3.__r;l$3.__r=function(n){rn&&rn(n),nn$1=n.__c;};var un=l$3.diffed;l$3.diffed=function(n){un&&un(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),nn$1=null;};var on={ReactCurrentDispatcher:{current:{readContext:function(n){return nn$1.__n[n.__c].props.value}}}};function cn(n){return y$1.bind(null,n)}function fn$1(n){return !!n&&n.$$typeof===z$1}function an(n){return fn$1(n)&&n.type===g$3}function sn(n){return fn$1(n)?E$1.apply(null,arguments):n}function hn(n){return !!n.__k&&(q$2(null,n),!0)}function vn(n){return n&&(n.base||1===n.nodeType&&n)||null}var dn=function(n,t){return n(t)},pn=function(n,t){return n(t)},mn=g$3;function yn(n){n();}function _n(n){return n}function bn(){return [!1,yn]}var Sn=y,gn=fn$1;function Cn(n,t){var e=t(),r=h({h:{__:e,v:t}}),u=r[0].h,o=r[1];return y(function(){u.__=e,u.v=t,En(u)&&o({h:u});},[n,e,t]),p$1(function(){return En(u)&&o({h:u}),n(function(){En(u)&&o({h:u});})},[n]),e}function En(n){var t,e,r=n.v,u=n.__;try{var o=r();return !((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return !0}}var wn={useState:h,useId:V$2,useReducer:s$1,useEffect:p$1,useLayoutEffect:y,useInsertionEffect:Sn,useTransition:bn,useDeferredValue:_n,useSyncExternalStore:Cn,startTransition:yn,useRef:_$1,useImperativeHandle:A$1,useMemo:F$2,useCallback:T$2,useContext:q$1,useDebugValue:x$2,version:"17.0.2",Children:A,render:q,hydrate:G$1,unmountComponentAtNode:hn,createPortal:j,createElement:y$1,createContext:F$3,createFactory:cn,cloneElement:sn,createRef:_$2,Fragment:g$3,isValidElement:fn$1,isElement:gn,isFragment:an,findDOMNode:vn,Component:b$1,PureComponent:E,memo:w$1,forwardRef:N,flushSync:pn,unstable_batchedUpdates:dn,StrictMode:mn,Suspense:L$1,SuspenseList:M,lazy:D$1,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:on};
66997
66997
 
@@ -86961,15 +86961,15 @@
86961
86961
  var ie$1 = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
86962
86962
 
86963
86963
  // Fill in the digit keys
86964
- for (var i$1 = 0; i$1 < 10; i$1++) base[48 + i$1] = base[96 + i$1] = String(i$1);
86964
+ for (var i$2 = 0; i$2 < 10; i$2++) base[48 + i$2] = base[96 + i$2] = String(i$2);
86965
86965
 
86966
86966
  // The function keys
86967
- for (var i$1 = 1; i$1 <= 24; i$1++) base[i$1 + 111] = "F" + i$1;
86967
+ for (var i$2 = 1; i$2 <= 24; i$2++) base[i$2 + 111] = "F" + i$2;
86968
86968
 
86969
86969
  // And the alphabetic keys
86970
- for (var i$1 = 65; i$1 <= 90; i$1++) {
86971
- base[i$1] = String.fromCharCode(i$1 + 32);
86972
- shift[i$1] = String.fromCharCode(i$1);
86970
+ for (var i$2 = 65; i$2 <= 90; i$2++) {
86971
+ base[i$2] = String.fromCharCode(i$2 + 32);
86972
+ shift[i$2] = String.fromCharCode(i$2);
86973
86973
  }
86974
86974
 
86975
86975
  // For each code that doesn't have a shift-equivalent, copy the base name
@@ -113745,7 +113745,7 @@
113745
113745
  *
113746
113746
  * @return {Array<ModdleElement>|undefined} collection of event definitions or none
113747
113747
  */
113748
- function getEventDefinitions(element, type) {
113748
+ function getEventDefinitions$1(element, type) {
113749
113749
  var eventDefinitions = element.eventDefinitions;
113750
113750
 
113751
113751
  if (!eventDefinitions || !type) {
@@ -113765,7 +113765,7 @@
113765
113765
  * @return {Array<ModdleElement>} collection of error event definitions
113766
113766
  */
113767
113767
  function getErrorEventDefinitions(element) {
113768
- return getEventDefinitions(element, 'bpmn:ErrorEventDefinition');
113768
+ return getEventDefinitions$1(element, 'bpmn:ErrorEventDefinition');
113769
113769
  }
113770
113770
 
113771
113771
  /**
@@ -113776,7 +113776,7 @@
113776
113776
  * @return {Array<ModdleElement>} collection of escalation event definitions
113777
113777
  */
113778
113778
  function getEscalationEventDefinitions(element) {
113779
- return getEventDefinitions(element, 'bpmn:EscalationEventDefinition');
113779
+ return getEventDefinitions$1(element, 'bpmn:EscalationEventDefinition');
113780
113780
  }
113781
113781
 
113782
113782
 
@@ -115926,13 +115926,13 @@
115926
115926
  return escalationEventDefinition && escalationEventDefinition.get('escalationRef');
115927
115927
  }
115928
115928
  function isCompensationSupported(element) {
115929
- return isAny$1(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']) && !!getCompensateEventDefinition(element);
115929
+ return isAny$1(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']) && !!getCompensateEventDefinition$1(element);
115930
115930
  }
115931
- function getCompensateEventDefinition(element) {
115931
+ function getCompensateEventDefinition$1(element) {
115932
115932
  return getEventDefinition$1(element, 'bpmn:CompensateEventDefinition');
115933
115933
  }
115934
115934
  function getCompensateActivity(element) {
115935
- const compensateEventDefinition = getCompensateEventDefinition(element);
115935
+ const compensateEventDefinition = getCompensateEventDefinition$1(element);
115936
115936
  return compensateEventDefinition && compensateEventDefinition.get('activityRef');
115937
115937
  }
115938
115938
 
@@ -115966,7 +115966,7 @@
115966
115966
  } = props;
115967
115967
  const commandStack = useService$1('commandStack');
115968
115968
  const translate = useService$1('translate');
115969
- const compensateEventDefinition = getCompensateEventDefinition(element);
115969
+ const compensateEventDefinition = getCompensateEventDefinition$1(element);
115970
115970
  const getValue = () => {
115971
115971
  return compensateEventDefinition.get('waitForCompletion');
115972
115972
  };
@@ -115994,7 +115994,7 @@
115994
115994
  const commandStack = useService$1('commandStack');
115995
115995
  const elementRegistry = useService$1('elementRegistry');
115996
115996
  const translate = useService$1('translate');
115997
- const compensateEventDefinition = getCompensateEventDefinition(element);
115997
+ const compensateEventDefinition = getCompensateEventDefinition$1(element);
115998
115998
  const getValue = () => {
115999
115999
  const activityRef = getCompensateActivity(element);
116000
116000
  return activityRef && activityRef.get('id');
@@ -116066,7 +116066,7 @@
116066
116066
  const {
116067
116067
  attachedToRef
116068
116068
  } = boundaryEvent;
116069
- const compensateEventDefinition = getCompensateEventDefinition(boundaryEvent);
116069
+ const compensateEventDefinition = getCompensateEventDefinition$1(boundaryEvent);
116070
116070
  return attachedToRef && compensateEventDefinition && attachedToRef.id === activityId;
116071
116071
  });
116072
116072
  }
@@ -117622,6 +117622,9 @@
117622
117622
  return sortBy$1(elements, e => (e.name || '').toLowerCase());
117623
117623
  }
117624
117624
 
117625
+ function getErrorEventDefinition$2(element) {
117626
+ return getEventDefinition$3(element, 'bpmn:ErrorEventDefinition');
117627
+ }
117625
117628
  function isTimerSupported(element) {
117626
117629
  return isAny$1(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition$1(element);
117627
117630
  }
@@ -117670,6 +117673,9 @@
117670
117673
  const signalEventDefinition = getSignalEventDefinition(element);
117671
117674
  return signalEventDefinition && signalEventDefinition.get('signalRef');
117672
117675
  }
117676
+ function getCompensateEventDefinition(element) {
117677
+ return getEventDefinition$3(element, 'bpmn:CompensateEventDefinition');
117678
+ }
117673
117679
 
117674
117680
  function TimerProps$2(props) {
117675
117681
  const {
@@ -119051,6 +119057,307 @@
119051
119057
  });
119052
119058
  }
119053
119059
 
119060
+ const EVENT_TO_LABEL$1 = {
119061
+ 'start': 'Start',
119062
+ 'end': 'End'
119063
+ };
119064
+ function ExecutionListenerEntries(props) {
119065
+ const {
119066
+ element,
119067
+ idPrefix,
119068
+ listener
119069
+ } = props;
119070
+ const eventTypes = getEventTypes(element);
119071
+ const entries = eventTypes.length > 1 ? [{
119072
+ id: idPrefix + '-eventType',
119073
+ component: EventType$1,
119074
+ idPrefix,
119075
+ listener,
119076
+ eventTypes
119077
+ }] : [];
119078
+ entries.push({
119079
+ id: idPrefix + '-listenerType',
119080
+ component: ListenerType$1,
119081
+ idPrefix,
119082
+ listener
119083
+ }, {
119084
+ id: idPrefix + '-retries',
119085
+ component: Retries,
119086
+ idPrefix,
119087
+ listener
119088
+ });
119089
+ return entries;
119090
+ }
119091
+ function EventType$1(props) {
119092
+ const {
119093
+ idPrefix,
119094
+ element,
119095
+ listener,
119096
+ eventTypes
119097
+ } = props;
119098
+ const modeling = useService$1('modeling');
119099
+ const translate = useService$1('translate');
119100
+ const getOptions = () => {
119101
+ return eventTypes.map(eventType => ({
119102
+ value: eventType,
119103
+ label: translate(EVENT_TO_LABEL$1[eventType])
119104
+ }));
119105
+ };
119106
+ const setValue = value => {
119107
+ modeling.updateModdleProperties(element, listener, {
119108
+ eventType: value
119109
+ });
119110
+ };
119111
+ const getValue = () => {
119112
+ return listener.get('eventType');
119113
+ };
119114
+ return SelectEntry({
119115
+ element,
119116
+ id: idPrefix + '-eventType',
119117
+ label: translate('Event type'),
119118
+ getValue,
119119
+ setValue,
119120
+ getOptions
119121
+ });
119122
+ }
119123
+ function ListenerType$1(props) {
119124
+ const {
119125
+ idPrefix,
119126
+ element,
119127
+ listener
119128
+ } = props;
119129
+ const modeling = useService$1('modeling');
119130
+ const translate = useService$1('translate');
119131
+ const debounce = useService$1('debounceInput');
119132
+ const setValue = value => {
119133
+ modeling.updateModdleProperties(element, listener, {
119134
+ type: value
119135
+ });
119136
+ };
119137
+ const getValue = () => {
119138
+ return listener.get('type');
119139
+ };
119140
+ return FeelEntryWithVariableContext$1({
119141
+ element,
119142
+ id: idPrefix + '-listenerType',
119143
+ label: translate('Listener type'),
119144
+ getValue,
119145
+ setValue,
119146
+ debounce,
119147
+ feel: 'optional'
119148
+ });
119149
+ }
119150
+ function Retries(props) {
119151
+ const {
119152
+ idPrefix,
119153
+ element,
119154
+ listener
119155
+ } = props;
119156
+ const modeling = useService$1('modeling');
119157
+ const translate = useService$1('translate');
119158
+ const debounce = useService$1('debounceInput');
119159
+ const setValue = value => {
119160
+ modeling.updateModdleProperties(element, listener, {
119161
+ retries: value
119162
+ });
119163
+ };
119164
+ const getValue = () => {
119165
+ return listener.get('retries');
119166
+ };
119167
+ return FeelEntryWithVariableContext$1({
119168
+ element,
119169
+ id: idPrefix + '-retries',
119170
+ label: translate('Retries'),
119171
+ getValue,
119172
+ setValue,
119173
+ debounce,
119174
+ feel: 'optional'
119175
+ });
119176
+ }
119177
+ function getEventTypes(element) {
119178
+ if (isAny$1(element, ['bpmn:BoundaryEvent', 'bpmn:StartEvent'])) {
119179
+ return ['end'];
119180
+ }
119181
+ if (is$6(element, 'bpmn:EndEvent') && getErrorEventDefinition$2(element)) {
119182
+ return ['start'];
119183
+ }
119184
+ if (is$6(element, 'bpmn:Gateway')) {
119185
+ return ['start'];
119186
+ }
119187
+ return ['start', 'end'];
119188
+ }
119189
+
119190
+ function ExecutionListenersProps({
119191
+ element,
119192
+ injector
119193
+ }) {
119194
+ let businessObject = getRelevantBusinessObject$1(element);
119195
+
119196
+ // not allowed in empty pools
119197
+ if (!businessObject) {
119198
+ return;
119199
+ }
119200
+ const moddle = injector.get('moddle');
119201
+ if (!canHaveExecutionListeners(businessObject, moddle)) {
119202
+ return;
119203
+ }
119204
+ const listeners = getListenersList(businessObject) || [];
119205
+ const bpmnFactory = injector.get('bpmnFactory'),
119206
+ commandStack = injector.get('commandStack'),
119207
+ modeling = injector.get('modeling'),
119208
+ translate = injector.get('translate');
119209
+ const items = listeners.map((listener, index) => {
119210
+ const id = element.id + '-executionListener-' + index;
119211
+ const type = listener.get('type') || '<no type>';
119212
+ return {
119213
+ id,
119214
+ label: translate(`${EVENT_TO_LABEL$1[listener.get('eventType')]}: {type}`, {
119215
+ type
119216
+ }),
119217
+ entries: ExecutionListenerEntries({
119218
+ idPrefix: id,
119219
+ element,
119220
+ listener
119221
+ }),
119222
+ autoFocusEntry: id + '-eventType',
119223
+ remove: removeFactory$d({
119224
+ modeling,
119225
+ element,
119226
+ listener
119227
+ })
119228
+ };
119229
+ });
119230
+ return {
119231
+ items,
119232
+ add: addFactory$a({
119233
+ bpmnFactory,
119234
+ commandStack,
119235
+ element
119236
+ })
119237
+ };
119238
+ }
119239
+ function removeFactory$d({
119240
+ modeling,
119241
+ element,
119242
+ listener
119243
+ }) {
119244
+ return function (event) {
119245
+ event.stopPropagation();
119246
+ const businessObject = getRelevantBusinessObject$1(element);
119247
+ const container = getExecutionListenersContainer$1(businessObject);
119248
+ if (!container) {
119249
+ return;
119250
+ }
119251
+ const listeners = without$1(container.get('listeners'), listener);
119252
+ modeling.updateModdleProperties(element, container, {
119253
+ listeners
119254
+ });
119255
+ };
119256
+ }
119257
+ function addFactory$a({
119258
+ bpmnFactory,
119259
+ commandStack,
119260
+ element
119261
+ }) {
119262
+ return function (event) {
119263
+ event.stopPropagation();
119264
+ let commands = [];
119265
+ const businessObject = getRelevantBusinessObject$1(element);
119266
+ let extensionElements = businessObject.get('extensionElements');
119267
+
119268
+ // (1) ensure extension elements
119269
+ if (!extensionElements) {
119270
+ extensionElements = createElement$3('bpmn:ExtensionElements', {
119271
+ values: []
119272
+ }, businessObject, bpmnFactory);
119273
+ commands.push({
119274
+ cmd: 'element.updateModdleProperties',
119275
+ context: {
119276
+ element,
119277
+ moddleElement: businessObject,
119278
+ properties: {
119279
+ extensionElements
119280
+ }
119281
+ }
119282
+ });
119283
+ }
119284
+
119285
+ // (2) ensure zeebe:ExecutionListeners
119286
+ let executionListeners = getExecutionListenersContainer$1(businessObject);
119287
+ if (!executionListeners) {
119288
+ const parent = extensionElements;
119289
+ executionListeners = createElement$3('zeebe:ExecutionListeners', {
119290
+ listeners: []
119291
+ }, parent, bpmnFactory);
119292
+ commands.push({
119293
+ cmd: 'element.updateModdleProperties',
119294
+ context: {
119295
+ element,
119296
+ moddleElement: extensionElements,
119297
+ properties: {
119298
+ values: [...extensionElements.get('values'), executionListeners]
119299
+ }
119300
+ }
119301
+ });
119302
+ }
119303
+
119304
+ // (3) create zeebe:ExecutionListener
119305
+ const executionListener = createElement$3('zeebe:ExecutionListener', getDefaultListenerProps(element), executionListeners, bpmnFactory);
119306
+
119307
+ // (4) add executionListener to list
119308
+ commands.push({
119309
+ cmd: 'element.updateModdleProperties',
119310
+ context: {
119311
+ element,
119312
+ moddleElement: executionListeners,
119313
+ properties: {
119314
+ listeners: [...executionListeners.get('listeners'), executionListener]
119315
+ }
119316
+ }
119317
+ });
119318
+
119319
+ // (5) commit all updates
119320
+ commandStack.execute('properties-panel.multi-command-executor', commands);
119321
+ };
119322
+ }
119323
+
119324
+ // helper //////////////////
119325
+
119326
+ function getRelevantBusinessObject$1(element) {
119327
+ let businessObject = getBusinessObject$2(element);
119328
+ if (is$6(element, 'bpmn:Participant')) {
119329
+ return businessObject.get('processRef');
119330
+ }
119331
+ return businessObject;
119332
+ }
119333
+ function getExecutionListenersContainer$1(element) {
119334
+ const executionListeners = getExtensionElementsList$2(element, 'zeebe:ExecutionListeners');
119335
+ return executionListeners && executionListeners[0];
119336
+ }
119337
+ function getListenersList(element) {
119338
+ const executionListeners = getExecutionListenersContainer$1(element);
119339
+ return executionListeners && executionListeners.get('listeners');
119340
+ }
119341
+ function canHaveExecutionListeners(bo, moddle) {
119342
+ const executionListenersDescriptor = moddle.getTypeDescriptor('zeebe:ExecutionListeners');
119343
+ if (!isAny$1(bo, executionListenersDescriptor.meta.allowedIn)) {
119344
+ return false;
119345
+ }
119346
+ if (isCompensationBoundaryEvent(bo)) {
119347
+ return false;
119348
+ }
119349
+ return true;
119350
+ }
119351
+ function isCompensationBoundaryEvent(bo) {
119352
+ return is$6(bo, 'bpmn:BoundaryEvent') && getCompensateEventDefinition(bo);
119353
+ }
119354
+ function getDefaultListenerProps(element) {
119355
+ const eventTypes = getEventTypes(element);
119356
+ return {
119357
+ eventType: eventTypes[0]
119358
+ };
119359
+ }
119360
+
119054
119361
  const FORM_KEY_PREFIX$1 = 'camunda-forms:bpmn:',
119055
119362
  USER_TASK_FORM_ID_PREFIX$1 = 'UserTaskForm_';
119056
119363
  const FORM_TYPES = {
@@ -122317,7 +122624,7 @@
122317
122624
  */
122318
122625
 
122319
122626
  const LOW_PRIORITY$1$1 = 500;
122320
- const ZEEBE_GROUPS = [BusinessRuleImplementationGroup, CalledDecisionGroup, ScriptImplementationGroup, ScriptGroup$1, UserTaskImplementationGroup, TaskDefinitionGroup, AssignmentDefinitionGroup, FormGroup$1, ConditionGroup$1, TargetGroup, InputPropagationGroup, InputGroup$1, OutputPropagationGroup, OutputGroup$1, HeaderGroup, ExtensionPropertiesGroup$1];
122627
+ const ZEEBE_GROUPS = [BusinessRuleImplementationGroup, CalledDecisionGroup, ScriptImplementationGroup, ScriptGroup$1, UserTaskImplementationGroup, TaskDefinitionGroup, AssignmentDefinitionGroup, FormGroup$1, ConditionGroup$1, TargetGroup, InputPropagationGroup, InputGroup$1, OutputPropagationGroup, OutputGroup$1, HeaderGroup, ExecutionListenersGroup, ExtensionPropertiesGroup$1];
122321
122628
  let ZeebePropertiesProvider$1 = class ZeebePropertiesProvider {
122322
122629
  constructor(propertiesPanel, injector) {
122323
122630
  propertiesPanel.registerProvider(LOW_PRIORITY$1$1, this);
@@ -122533,6 +122840,22 @@
122533
122840
  };
122534
122841
  return group.entries.length ? group : null;
122535
122842
  }
122843
+ function ExecutionListenersGroup(element, injector) {
122844
+ const translate = injector.get('translate');
122845
+ const group = {
122846
+ label: translate('Execution listeners'),
122847
+ id: 'Zeebe__ExecutionListeners',
122848
+ component: ListGroup,
122849
+ ...ExecutionListenersProps({
122850
+ element,
122851
+ injector
122852
+ })
122853
+ };
122854
+ if (group.items) {
122855
+ return group;
122856
+ }
122857
+ return null;
122858
+ }
122536
122859
  function ExtensionPropertiesGroup$1(element, injector) {
122537
122860
  const translate = injector.get('translate');
122538
122861
  const group = {
@@ -123204,6 +123527,118 @@
123204
123527
  return find$3(values, value => is$6(value, 'zeebe:IoMapping'));
123205
123528
  }
123206
123529
 
123530
+ const DISALLOWED_START_LISTENER_TYPES = [
123531
+ 'bpmn:StartEvent',
123532
+ 'bpmn:BoundaryEvent'
123533
+ ];
123534
+
123535
+ class CleanUpExecutionListenersBehavior extends CommandInterceptor$1 {
123536
+ constructor(eventBus, modeling) {
123537
+ super(eventBus);
123538
+
123539
+ // remove execution listeners of disallowed type
123540
+ this.postExecuted('shape.replace', function(event) {
123541
+ const element = event.context.newShape;
123542
+
123543
+ const executionListenersContainer = getExecutionListenersContainer(element);
123544
+ if (!executionListenersContainer) {
123545
+ return;
123546
+ }
123547
+
123548
+ const listeners = executionListenersContainer.get('listeners');
123549
+ const newListeners = withoutDisallowedListeners(element, listeners);
123550
+
123551
+ if (newListeners.length !== listeners.length) {
123552
+ modeling.updateModdleProperties(element, executionListenersContainer, { listeners: newListeners });
123553
+ }
123554
+ });
123555
+
123556
+ // remove empty execution listener container
123557
+ this.postExecuted('element.updateModdleProperties', function(event) {
123558
+ const {
123559
+ element,
123560
+ moddleElement
123561
+ } = event.context;
123562
+
123563
+ if (!is$6(moddleElement, 'zeebe:ExecutionListeners')) {
123564
+ return;
123565
+ }
123566
+
123567
+ const listeners = moddleElement.get('listeners');
123568
+ if (listeners.length) {
123569
+ return;
123570
+ }
123571
+
123572
+ const extensionElements = moddleElement.$parent;
123573
+ modeling.updateModdleProperties(element, extensionElements, { values: without$1(extensionElements.get('values'), moddleElement) });
123574
+ });
123575
+ }
123576
+ }
123577
+
123578
+ CleanUpExecutionListenersBehavior.$inject = [
123579
+ 'eventBus',
123580
+ 'modeling'
123581
+ ];
123582
+
123583
+ // helpers //////////
123584
+ function withoutDisallowedListeners(element, listeners) {
123585
+ listeners = withoutDisallowedStartListeners(element, listeners);
123586
+ listeners = withoutDisallowedEndListeners(element, listeners);
123587
+
123588
+ return listeners;
123589
+ }
123590
+
123591
+ function withoutDisallowedStartListeners(element, listeners) {
123592
+ if (isAny$1(element, DISALLOWED_START_LISTENER_TYPES)) {
123593
+ return listeners.filter(listener => listener.eventType !== 'start');
123594
+ }
123595
+
123596
+ return listeners;
123597
+ }
123598
+
123599
+ function withoutDisallowedEndListeners(element, listeners) {
123600
+ if (shouldRemoveEndListeners(element)) {
123601
+ return listeners.filter(listener => listener.eventType !== 'end');
123602
+ }
123603
+
123604
+ return listeners;
123605
+ }
123606
+
123607
+ function shouldRemoveEndListeners(element) {
123608
+ if (
123609
+ is$6(element, 'bpmn:BoundaryEvent') && isCompensationEvent(element) ||
123610
+ is$6(element, 'bpmn:EndEvent') && isErrorEvent(element) ||
123611
+ is$6(element, 'bpmn:Gateway')
123612
+ ) {
123613
+ return true;
123614
+ }
123615
+ }
123616
+
123617
+ function isCompensationEvent(element) {
123618
+ const eventDefinitions = getEventDefinitions(element);
123619
+
123620
+ return find$3(eventDefinitions, function(definition) {
123621
+ return is$6(definition, 'bpmn:CompensateEventDefinition');
123622
+ });
123623
+ }
123624
+
123625
+ function isErrorEvent(element) {
123626
+ const eventDefinitions = getEventDefinitions(element);
123627
+
123628
+ return find$3(eventDefinitions, function(definition) {
123629
+ return is$6(definition, 'bpmn:ErrorEventDefinition');
123630
+ });
123631
+ }
123632
+
123633
+ function getEventDefinitions(element) {
123634
+ const businessObject = getBusinessObject$2(element);
123635
+ return businessObject.get('eventDefinitions') || [];
123636
+ }
123637
+
123638
+ function getExecutionListenersContainer(element) {
123639
+ return getExtensionElementsList$1(element, 'zeebe:ExecutionListeners')[0];
123640
+ }
123641
+
123207
123642
  /**
123208
123643
  * Zeebe BPMN behavior ensuring that zeebe:subscription is removed from bpmn:Message
123209
123644
  * when it has no properties anymore.
@@ -124116,6 +124551,7 @@
124116
124551
  __init__: [
124117
124552
  'cleanUpBusinessRuleTaskBehavior',
124118
124553
  'cleanUpEndEventBehavior',
124554
+ 'cleanUpExecutionListenersBehavior',
124119
124555
  'cleanUpSubscriptionBehavior',
124120
124556
  'cleanUpTimerExpressionBehavior',
124121
124557
  'copyPasteBehavior',
@@ -124127,6 +124563,7 @@
124127
124563
  ],
124128
124564
  cleanUpBusinessRuleTaskBehavior: [ 'type', CleanUpBusinessRuleTaskBehavior ],
124129
124565
  cleanUpEndEventBehavior: [ 'type', CleanUpEndEventBehavior ],
124566
+ cleanUpExecutionListenersBehavior: [ 'type', CleanUpExecutionListenersBehavior ],
124130
124567
  cleanUpSubscriptionBehavior: [ 'type', CleanUpSubscriptionBehavior ],
124131
124568
  cleanUpTimerExpressionBehavior: [ 'type', CleanUpTimerExpressionBehavior ],
124132
124569
  copyPasteBehavior: [ 'type', ZeebeModdleExtension ],
@@ -124137,43 +124574,42 @@
124137
124574
  removeTaskScheduleBehavior: [ 'type', RemoveTaskScheduleBehavior ]
124138
124575
  };
124139
124576
 
124577
+ /**
124578
+ * Convert array of 16 byte values to UUID string format of the form:
124579
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
124580
+ */
124581
+ var byteToHex = [];
124582
+ for (var i$1 = 0; i$1 < 256; ++i$1) {
124583
+ byteToHex.push((i$1 + 0x100).toString(16).slice(1));
124584
+ }
124585
+ function unsafeStringify(arr, offset = 0) {
124586
+ // Note: Be careful editing this code! It's been tuned for performance
124587
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
124588
+ //
124589
+ // Note to future-self: No, you can't remove the `toLowerCase()` call.
124590
+ // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
124591
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
124592
+ }
124593
+
124140
124594
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
124141
124595
  // require the crypto API and do not support built-in fallback to lower quality random number
124142
124596
  // generators (like Math.random()).
124143
- let getRandomValues;
124144
- const rnds8 = new Uint8Array(16);
124597
+
124598
+ var getRandomValues;
124599
+ var rnds8 = new Uint8Array(16);
124145
124600
  function rng() {
124146
124601
  // lazy load so that environments that need to polyfill have a chance to do so
124147
124602
  if (!getRandomValues) {
124148
124603
  // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
124149
124604
  getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
124150
-
124151
124605
  if (!getRandomValues) {
124152
124606
  throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
124153
124607
  }
124154
124608
  }
124155
-
124156
124609
  return getRandomValues(rnds8);
124157
124610
  }
124158
124611
 
124159
- /**
124160
- * Convert array of 16 byte values to UUID string format of the form:
124161
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
124162
- */
124163
-
124164
- const byteToHex = [];
124165
-
124166
- for (let i = 0; i < 256; ++i) {
124167
- byteToHex.push((i + 0x100).toString(16).slice(1));
124168
- }
124169
-
124170
- function unsafeStringify(arr, offset = 0) {
124171
- // Note: Be careful editing this code! It's been tuned for performance
124172
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
124173
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
124174
- }
124175
-
124176
- const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
124612
+ var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
124177
124613
  var native = {
124178
124614
  randomUUID
124179
124615
  };
@@ -124182,13 +124618,12 @@
124182
124618
  if (native.randomUUID && !buf && !options) {
124183
124619
  return native.randomUUID();
124184
124620
  }
124185
-
124186
124621
  options = options || {};
124187
- const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
124622
+ var rnds = options.random || (options.rng || rng)();
124188
124623
 
124624
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
124189
124625
  rnds[6] = rnds[6] & 0x0f | 0x40;
124190
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
124191
-
124626
+ rnds[8] = rnds[8] & 0x3f | 0x80;
124192
124627
  return unsafeStringify(rnds);
124193
124628
  }
124194
124629
 
@@ -126625,7 +127060,13 @@
126625
127060
  if (!newProperties.length && !removedProperties.length) {
126626
127061
  return;
126627
127062
  }
126628
- const message = this._getOrCreateMessage(element, newTemplate);
127063
+ let message = this._getMessage(element);
127064
+
127065
+ // no new properties and no message -> nothing to do
127066
+ if (!newProperties.length && !message) {
127067
+ return;
127068
+ }
127069
+ message = this._getOrCreateMessage(element, newTemplate);
126629
127070
  const messageExtensionElements = this._getOrCreateExtensionElements(element, message);
126630
127071
  const zeebeSubscription = this._getSubscription(element, message);
126631
127072
  const propertiesToSet = newProperties.reduce((properties, newProperty) => {
@@ -126805,13 +127246,8 @@
126805
127246
  return element;
126806
127247
  }
126807
127248
 
126808
- // TODO(nre): handle old event definition
126809
- const oldType = oldTemplate && oldTemplate.elementType || {
126810
- value: element.type
126811
- };
126812
-
126813
127249
  // Do not replace if the element type did not change
126814
- if (oldType && oldType.value === newType.value && oldType.eventDefinition === newType.eventDefinition) {
127250
+ if (!shouldUpdateElementType(element, oldTemplate, newType)) {
126815
127251
  return element;
126816
127252
  }
126817
127253
  const replacement = {
@@ -127065,6 +127501,33 @@
127065
127501
  function hasMessageProperties(template) {
127066
127502
  return template.properties.some(p => MESSAGE_BINDING_TYPES.includes(p.binding.type));
127067
127503
  }
127504
+ function shouldUpdateElementType(element, oldTemplate, newType) {
127505
+ // Never reuse existing eventDefinition when applying a new template
127506
+ if (!oldTemplate && newType.eventDefinition) {
127507
+ return true;
127508
+ }
127509
+ const oldType = oldTemplate && oldTemplate.elementType || {
127510
+ value: element.type,
127511
+ eventDefinition: getEventDefinitionType(element)
127512
+ };
127513
+
127514
+ // Do not update if the element type did not change
127515
+ if (oldType && oldType.value === newType.value && oldType.eventDefinition === newType.eventDefinition) {
127516
+ return false;
127517
+ }
127518
+ return true;
127519
+ }
127520
+ function getEventDefinitionType(element) {
127521
+ const businessObject = getBusinessObject$2(element);
127522
+ if (!businessObject.eventDefinitions) {
127523
+ return;
127524
+ }
127525
+ const eventDefinition = businessObject.eventDefinitions[0];
127526
+ if (!eventDefinition) {
127527
+ return;
127528
+ }
127529
+ return eventDefinition.$type;
127530
+ }
127068
127531
 
127069
127532
  class RemoveElementTemplateHandler {
127070
127533
  constructor(modeling, elementFactory, elementRegistry, canvas, bpmnFactory, replace, commandStack) {
@@ -128269,6 +128732,13 @@
128269
128732
  * corresponding properties on the element.
128270
128733
  */
128271
128734
  class ConditionalBehavior extends CommandInterceptor$1 {
128735
+ /**
128736
+ * @param {import('diagram-js/lib/core/EventBus').default} eventBus
128737
+ * @param {import('../ElementTemplates').default} elementTemplates
128738
+ * @param {import('diagram-js/lib/command/CommandStack').default} commandStack
128739
+ * @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
128740
+ * @param {import('didi').Injector} injector
128741
+ */
128272
128742
  constructor(eventBus, elementTemplates, commandStack, bpmnFactory, injector) {
128273
128743
  super(eventBus);
128274
128744
  this._eventBus = eventBus;
@@ -128302,12 +128772,17 @@
128302
128772
  }
128303
128773
  context.oldTemplateWithConditions = applyConditions(element, template);
128304
128774
  }
128305
- _applyConditions(context) {
128775
+ _applyConditions(context, event) {
128306
128776
  const {
128307
128777
  element,
128308
128778
  newTemplate,
128309
128779
  oldTemplateWithConditions
128310
128780
  } = context;
128781
+
128782
+ // do not apply conditions if we only update meta information
128783
+ if (isMetaUpdate(event, context)) {
128784
+ return;
128785
+ }
128311
128786
  const template = this._elementTemplates.get(element);
128312
128787
 
128313
128788
  // new Template is persisted before applying default values,
@@ -128408,6 +128883,21 @@
128408
128883
  return JSON.stringify(a, normalizeReplacer$1) === JSON.stringify(b, normalizeReplacer$1);
128409
128884
  }
128410
128885
 
128886
+ /**
128887
+ * Checks if the event only updates "meta" properties:
128888
+ *
128889
+ * * `zeebe:modelerTemplate`
128890
+ * * `zeebe:modelerTemplateVersion`
128891
+ *
128892
+ * @param {string} event
128893
+ * @param {any} context
128894
+ *
128895
+ * @return {boolean}
128896
+ */
128897
+ function isMetaUpdate(event, context) {
128898
+ return event === 'element.updateProperties' && Object.keys(context.properties).every(key => ['zeebe:modelerTemplate', 'zeebe:modelerTemplateVersion'].includes(key));
128899
+ }
128900
+
128411
128901
  /**
128412
128902
  * This Behavior checks if the new element's type is in
128413
128903
  * the list of elements the template applies to and unlinks
@@ -128729,7 +129219,12 @@
128729
129219
  }
128730
129220
  ReferencedElementBehavior.$inject = ['eventBus', 'elementTemplates', 'modeling', 'injector', 'moddleCopy', 'bpmnFactory'];
128731
129221
  function canHaveReferencedElement(element) {
128732
- return isAny$1(element, ['bpmn:ReceiveTask', 'bpmn:SendTask', 'bpmn:Event']);
129222
+ // Blank-Events can't have referenced elements
129223
+ if (is$6(element, 'bpmn:Event')) {
129224
+ const bo = getBusinessObject$2(element);
129225
+ return bo.get('eventDefinitions') && bo.get('eventDefinitions')[0];
129226
+ }
129227
+ return isAny$1(element, ['bpmn:ReceiveTask', 'bpmn:SendTask']);
128733
129228
  }
128734
129229
  function isLabel$1(element) {
128735
129230
  return element.type === 'label';
@@ -155393,6 +155888,93 @@
155393
155888
  isAttr: true
155394
155889
  }
155395
155890
  ]
155891
+ },
155892
+ {
155893
+ name: "ExecutionListeners",
155894
+ superClass: [
155895
+ "Element"
155896
+ ],
155897
+ meta: {
155898
+ allowedIn: [
155899
+ "bpmn:Event",
155900
+ "bpmn:Activity",
155901
+ "bpmn:Process",
155902
+ "bpmn:ExclusiveGateway",
155903
+ "bpmn:InclusiveGateway",
155904
+ "bpmn:ParallelGateway",
155905
+ "bpmn:EventBasedGateway"
155906
+ ]
155907
+ },
155908
+ properties: [
155909
+ {
155910
+ name: "listeners",
155911
+ type: "ExecutionListener",
155912
+ isMany: true
155913
+ }
155914
+ ]
155915
+ },
155916
+ {
155917
+ name: "ExecutionListener",
155918
+ superClass: [
155919
+ "Element"
155920
+ ],
155921
+ meta: {
155922
+ allowedIn: [
155923
+ "zeebe:ExecutionListeners"
155924
+ ]
155925
+ },
155926
+ properties: [
155927
+ {
155928
+ name: "eventType",
155929
+ type: "String",
155930
+ isAttr: true
155931
+ },
155932
+ {
155933
+ name: "retries",
155934
+ type: "String",
155935
+ isAttr: true
155936
+ },
155937
+ {
155938
+ name: "type",
155939
+ type: "String",
155940
+ isAttr: true
155941
+ }
155942
+ ]
155943
+ },
155944
+ {
155945
+ name: "VersionTag",
155946
+ superClass: [
155947
+ "Element"
155948
+ ],
155949
+ meta: {
155950
+ allowedIn: [
155951
+ "bpmn:Process"
155952
+ ]
155953
+ },
155954
+ properties: [
155955
+ {
155956
+ name: "value",
155957
+ type: "String",
155958
+ isAttr: true
155959
+ }
155960
+ ]
155961
+ },
155962
+ {
155963
+ name: "BindingTypeSupported",
155964
+ isAbstract: true,
155965
+ "extends": [
155966
+ "zeebe:CalledDecision",
155967
+ "zeebe:CalledElement",
155968
+ "zeebe:FormDefinition"
155969
+ ],
155970
+ properties: [
155971
+ {
155972
+ name: "bindingType",
155973
+ isAttr: true,
155974
+ type: "String",
155975
+ "default": "latest"
155976
+ }
155977
+ ]
155396
155978
  }
155397
155979
  ];
155398
155980
  var zeebeModdle = {
@@ -156123,7 +156705,7 @@
156123
156705
  label: 'Sub-process (expanded)',
156124
156706
  search: 'subprocess',
156125
156707
  actionName: 'expanded-subprocess',
156126
- className: 'bpmn-icon-subprocess-collapsed',
156708
+ className: 'bpmn-icon-subprocess-expanded',
156127
156709
  target: {
156128
156710
  type: 'bpmn:SubProcess',
156129
156711
  isExpanded: true
@@ -156438,102 +157020,102 @@
156438
157020
  return true;
156439
157021
  };
156440
157022
 
156441
- const appendIcon = `<svg width="22" height="22" viewBox="0 0 5.82 5.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
156442
- <path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>
156443
- </svg>`;
156444
- const createIcon = `<svg width="46" height="46" viewBox="-2 -2 9.82 9.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
156445
- <path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>
157023
+ const appendIcon = `<svg width="22" height="22" viewBox="0 0 5.82 5.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
157024
+ <path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>
157025
+ </svg>`;
157026
+ const createIcon = `<svg width="46" height="46" viewBox="-2 -2 9.82 9.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
157027
+ <path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>
156446
157028
  </svg>`;
156447
157029
 
156448
- /**
156449
- * A provider for append context pad button
156450
- */
156451
- function AppendContextPadProvider(contextPad, popupMenu, translate, canvas, rules) {
156452
-
156453
- this._contextPad = contextPad;
156454
- this._popupMenu = popupMenu;
156455
- this._translate = translate;
156456
- this._canvas = canvas;
156457
- this._rules = rules;
156458
-
156459
- this.register();
156460
- }
156461
-
156462
- AppendContextPadProvider.$inject = [
156463
- 'contextPad',
156464
- 'popupMenu',
156465
- 'translate',
156466
- 'canvas',
156467
- 'rules'
156468
- ];
156469
-
156470
- /**
156471
- * Register append button provider in the context pad
156472
- */
156473
- AppendContextPadProvider.prototype.register = function() {
156474
- this._contextPad.registerProvider(this);
156475
- };
156476
-
156477
- /**
156478
- * Gets the append context pad entry
156479
- *
156480
- * @param {djs.model.Base} element
156481
- * @returns {Object} entries
156482
- */
156483
- AppendContextPadProvider.prototype.getContextPadEntries = function(element) {
156484
- const popupMenu = this._popupMenu;
156485
- const translate = this._translate;
156486
- const rules = this._rules;
156487
- const getAppendMenuPosition = this._getAppendMenuPosition.bind(this);
156488
-
156489
- if (rules.allowed('shape.append', { element })) {
156490
-
156491
- // append menu entry
156492
- return {
156493
- 'append': {
156494
- group: 'model',
156495
- html: `<div class="entry">${appendIcon}</div>`,
156496
- title: translate('Append element'),
156497
- action: {
156498
- click: function(event, element) {
156499
-
156500
- const position = assign(getAppendMenuPosition(element), {
156501
- cursor: { x: event.x, y: event.y }
156502
- });
156503
-
156504
- popupMenu.open(element, 'bpmn-append', position, {
156505
- title: translate('Append element'),
156506
- width: 300,
156507
- search: true
156508
- });
156509
- }
156510
- }
156511
- }
156512
- };
156513
- }
156514
- };
156515
-
156516
- /**
156517
- * Calculates the position for the append menu relatively to the element
156518
- *
156519
- * @param {djs.model.Base} element
156520
- * @returns {Object}
156521
- */
156522
- AppendContextPadProvider.prototype._getAppendMenuPosition = function(element) {
156523
- const contextPad = this._contextPad;
156524
-
156525
- const X_OFFSET = 5;
156526
-
156527
- const pad = contextPad.getPad(element).html;
156528
-
156529
- const padRect = pad.getBoundingClientRect();
156530
-
156531
- const pos = {
156532
- x: padRect.right + X_OFFSET,
156533
- y: padRect.top
156534
- };
156535
-
156536
- return pos;
157030
+ /**
157031
+ * A provider for append context pad button
157032
+ */
157033
+ function AppendContextPadProvider(contextPad, popupMenu, translate, canvas, rules) {
157034
+
157035
+ this._contextPad = contextPad;
157036
+ this._popupMenu = popupMenu;
157037
+ this._translate = translate;
157038
+ this._canvas = canvas;
157039
+ this._rules = rules;
157040
+
157041
+ this.register();
157042
+ }
157043
+
157044
+ AppendContextPadProvider.$inject = [
157045
+ 'contextPad',
157046
+ 'popupMenu',
157047
+ 'translate',
157048
+ 'canvas',
157049
+ 'rules'
157050
+ ];
157051
+
157052
+ /**
157053
+ * Register append button provider in the context pad
157054
+ */
157055
+ AppendContextPadProvider.prototype.register = function() {
157056
+ this._contextPad.registerProvider(this);
157057
+ };
157058
+
157059
+ /**
157060
+ * Gets the append context pad entry
157061
+ *
157062
+ * @param {djs.model.Base} element
157063
+ * @returns {Object} entries
157064
+ */
157065
+ AppendContextPadProvider.prototype.getContextPadEntries = function(element) {
157066
+ const popupMenu = this._popupMenu;
157067
+ const translate = this._translate;
157068
+ const rules = this._rules;
157069
+ const getAppendMenuPosition = this._getAppendMenuPosition.bind(this);
157070
+
157071
+ if (rules.allowed('shape.append', { element })) {
157072
+
157073
+ // append menu entry
157074
+ return {
157075
+ 'append': {
157076
+ group: 'model',
157077
+ html: `<div class="entry">${appendIcon}</div>`,
157078
+ title: translate('Append element'),
157079
+ action: {
157080
+ click: function(event, element) {
157081
+
157082
+ const position = assign(getAppendMenuPosition(element), {
157083
+ cursor: { x: event.x, y: event.y }
157084
+ });
157085
+
157086
+ popupMenu.open(element, 'bpmn-append', position, {
157087
+ title: translate('Append element'),
157088
+ width: 300,
157089
+ search: true
157090
+ });
157091
+ }
157092
+ }
157093
+ }
157094
+ };
157095
+ }
157096
+ };
157097
+
157098
+ /**
157099
+ * Calculates the position for the append menu relatively to the element
157100
+ *
157101
+ * @param {djs.model.Base} element
157102
+ * @returns {Object}
157103
+ */
157104
+ AppendContextPadProvider.prototype._getAppendMenuPosition = function(element) {
157105
+ const contextPad = this._contextPad;
157106
+
157107
+ const X_OFFSET = 5;
157108
+
157109
+ const pad = contextPad.getPad(element).html;
157110
+
157111
+ const padRect = pad.getBoundingClientRect();
157112
+
157113
+ const pos = {
157114
+ x: padRect.right + X_OFFSET,
157115
+ y: padRect.top
157116
+ };
157117
+
157118
+ return pos;
156537
157119
  };
156538
157120
 
156539
157121
  function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}));}
@@ -157146,87 +157728,87 @@
157146
157728
  return el.querySelector(selector);
157147
157729
  }
157148
157730
 
157149
- const LOWER_PRIORITY = 900;
157150
-
157151
- /**
157152
- * A palette provider for the create elements menu.
157153
- */
157154
- function CreatePaletteProvider(palette, translate, popupMenu, canvas, mouse) {
157155
-
157156
- this._palette = palette;
157157
- this._translate = translate;
157158
- this._popupMenu = popupMenu;
157159
- this._canvas = canvas;
157160
- this._mouse = mouse;
157161
-
157162
- this.register();
157163
- }
157164
-
157165
- CreatePaletteProvider.$inject = [
157166
- 'palette',
157167
- 'translate',
157168
- 'popupMenu',
157169
- 'canvas',
157170
- 'mouse'
157171
- ];
157172
-
157173
- /**
157174
- * Register create button provider in the palette
157175
- */
157176
- CreatePaletteProvider.prototype.register = function() {
157177
- this._palette.registerProvider(LOWER_PRIORITY, this);
157178
- };
157179
-
157180
- /**
157181
- * Gets the palette create entry
157182
- *
157183
- * @param {djs.model.Base} element
157184
- * @returns {Object}
157185
- */
157186
- CreatePaletteProvider.prototype.getPaletteEntries = function(element) {
157187
- const translate = this._translate,
157188
- popupMenu = this._popupMenu,
157189
- canvas = this._canvas,
157190
- mouse = this._mouse;
157191
-
157192
- const getPosition = (event) => {
157193
- const X_OFFSET = 35;
157194
- const Y_OFFSET = 10;
157195
-
157196
- if (event instanceof KeyboardEvent) {
157197
- event = mouse.getLastMoveEvent();
157198
- return { x: event.x, y: event.y };
157199
- }
157200
-
157201
- const target = event && event.target || query('.djs-palette [data-action="create"]');
157202
- const targetPosition = target.getBoundingClientRect();
157203
-
157204
- return target && {
157205
- x: targetPosition.left + targetPosition.width / 2 + X_OFFSET,
157206
- y: targetPosition.top + targetPosition.height / 2 + Y_OFFSET
157207
- };
157208
- };
157209
-
157210
- return {
157211
- 'create': {
157212
- group: 'create',
157213
- html: `<div class="entry"> ${createIcon}</div>`,
157214
- title: translate('Create element'),
157215
- action: {
157216
- click: function(event) {
157217
- const position = getPosition(event);
157218
-
157219
- const element = canvas.getRootElement();
157220
-
157221
- popupMenu.open(element, 'bpmn-create', position, {
157222
- title: translate('Create element'),
157223
- width: 300,
157224
- search: true
157225
- });
157226
- }
157227
- }
157228
- }
157229
- };
157731
+ const LOWER_PRIORITY = 900;
157732
+
157733
+ /**
157734
+ * A palette provider for the create elements menu.
157735
+ */
157736
+ function CreatePaletteProvider(palette, translate, popupMenu, canvas, mouse) {
157737
+
157738
+ this._palette = palette;
157739
+ this._translate = translate;
157740
+ this._popupMenu = popupMenu;
157741
+ this._canvas = canvas;
157742
+ this._mouse = mouse;
157743
+
157744
+ this.register();
157745
+ }
157746
+
157747
+ CreatePaletteProvider.$inject = [
157748
+ 'palette',
157749
+ 'translate',
157750
+ 'popupMenu',
157751
+ 'canvas',
157752
+ 'mouse'
157753
+ ];
157754
+
157755
+ /**
157756
+ * Register create button provider in the palette
157757
+ */
157758
+ CreatePaletteProvider.prototype.register = function() {
157759
+ this._palette.registerProvider(LOWER_PRIORITY, this);
157760
+ };
157761
+
157762
+ /**
157763
+ * Gets the palette create entry
157764
+ *
157765
+ * @param {djs.model.Base} element
157766
+ * @returns {Object}
157767
+ */
157768
+ CreatePaletteProvider.prototype.getPaletteEntries = function(element) {
157769
+ const translate = this._translate,
157770
+ popupMenu = this._popupMenu,
157771
+ canvas = this._canvas,
157772
+ mouse = this._mouse;
157773
+
157774
+ const getPosition = (event) => {
157775
+ const X_OFFSET = 35;
157776
+ const Y_OFFSET = 10;
157777
+
157778
+ if (event instanceof KeyboardEvent) {
157779
+ event = mouse.getLastMoveEvent();
157780
+ return { x: event.x, y: event.y };
157781
+ }
157782
+
157783
+ const target = event && event.target || query('.djs-palette [data-action="create"]');
157784
+ const targetPosition = target.getBoundingClientRect();
157785
+
157786
+ return target && {
157787
+ x: targetPosition.left + targetPosition.width / 2 + X_OFFSET,
157788
+ y: targetPosition.top + targetPosition.height / 2 + Y_OFFSET
157789
+ };
157790
+ };
157791
+
157792
+ return {
157793
+ 'create': {
157794
+ group: 'create',
157795
+ html: `<div class="entry"> ${createIcon}</div>`,
157796
+ title: translate('Create element'),
157797
+ action: {
157798
+ click: function(event) {
157799
+ const position = getPosition(event);
157800
+
157801
+ const element = canvas.getRootElement();
157802
+
157803
+ popupMenu.open(element, 'bpmn-create', position, {
157804
+ title: translate('Create element'),
157805
+ width: 300,
157806
+ search: true
157807
+ });
157808
+ }
157809
+ }
157810
+ }
157811
+ };
157230
157812
  };
157231
157813
 
157232
157814
  var CreateMenuModule = {
@@ -159072,194 +159654,194 @@
159072
159654
  return ALL_OPTIONS;
159073
159655
  }
159074
159656
 
159075
- /**
159076
- * A replace menu provider that allows to replace elements with
159077
- * templates applied with the correspondent plain element.
159078
- */
159079
- function RemoveTemplateReplaceProvider(popupMenu, translate, elementTemplates) {
159080
-
159081
- this._popupMenu = popupMenu;
159082
- this._translate = translate;
159083
- this._elementTemplates = elementTemplates;
159084
-
159085
- this.register();
159086
- }
159087
-
159088
- RemoveTemplateReplaceProvider.$inject = [
159089
- 'popupMenu',
159090
- 'translate',
159091
- 'elementTemplates'
159092
- ];
159093
-
159094
- /**
159095
- * Register replace menu provider in the popup menu
159096
- */
159097
- RemoveTemplateReplaceProvider.prototype.register = function() {
159098
- this._popupMenu.registerProvider('bpmn-replace', this);
159099
- };
159100
-
159101
- /**
159102
- * Adds the element templates to the replace menu.
159103
- * @param {djs.model.Base} element
159104
- *
159105
- * @returns {Object}
159106
- */
159107
- RemoveTemplateReplaceProvider.prototype.getPopupMenuEntries = function(element) {
159108
-
159109
- return (entries) => {
159110
-
159111
- // convert our entries into something sortable
159112
- let entrySet = Object.entries(entries);
159113
-
159114
- if (this._elementTemplates && this._elementTemplates.get(element)) {
159115
-
159116
- // add remove template option
159117
- this.addPlainElementEntry(element, entrySet, this._translate, this._elementTemplates);
159118
- }
159119
-
159120
- // convert back to object
159121
- return entrySet.reduce((entries, [ key, value ]) => {
159122
- entries[key] = value;
159123
-
159124
- return entries;
159125
- }, {});
159126
- };
159127
- };
159128
-
159129
-
159130
- /**
159131
- * Adds the option to replace with plain element (remove template).
159132
- *
159133
- * @param {djs.model.Base} element
159134
- * @param {Array<Object>} entries
159135
- */
159136
- RemoveTemplateReplaceProvider.prototype.addPlainElementEntry = function(element, entries, translate, elementTemplates) {
159137
-
159138
- const replaceOption = this.getPlainEntry(element, entries, translate, elementTemplates);
159139
-
159140
- if (!replaceOption) {
159141
- return;
159142
- }
159143
-
159144
- const [
159145
- insertIndex,
159146
- entry
159147
- ] = replaceOption;
159148
-
159149
- // insert remove entry
159150
- entries.splice(insertIndex, 0, [ entry.id, entry ]);
159151
- };
159152
-
159153
- /**
159154
- * Returns the option to replace with plain element and the index where it should be inserted.
159155
- *
159156
- * @param {djs.model.Base} element
159157
- * @param {Array<Object>} entries
159158
- *
159159
- * @returns {Array<Object, number>}
159160
- */
159161
- RemoveTemplateReplaceProvider.prototype.getPlainEntry = function(element, entries, translate, elementTemplates) {
159162
-
159163
- const {
159164
- options,
159165
- option,
159166
- optionIndex
159167
- } = findReplaceOptions(element) || { };
159168
-
159169
- if (!options) {
159170
- return null;
159171
- }
159172
-
159173
- const entry = {
159174
- id: 'replace-remove-element-template',
159175
- action: () => {
159176
- elementTemplates.removeTemplate(element);
159177
- },
159178
- label: translate(option.label),
159179
- className: option.className
159180
- };
159181
-
159182
- // insert after previous option, if it exists
159183
- const previousIndex = getOptionIndex(options, optionIndex - 1, entries);
159184
-
159185
- if (previousIndex) {
159186
- return [
159187
- previousIndex + 1,
159188
- entry
159189
- ];
159190
- }
159191
-
159192
- // insert before next option, if it exists
159193
- const nextIndex = getOptionIndex(options, optionIndex + 1, entries);
159194
-
159195
- if (nextIndex) {
159196
- return [
159197
- nextIndex,
159198
- entry
159199
- ];
159200
- }
159201
-
159202
- // fallback to insert at start
159203
- return [
159204
- 0,
159205
- entry
159206
- ];
159207
- };
159208
-
159209
-
159210
- /**
159211
- * @param {ModdleElement} element
159212
- *
159213
- * @return { { options: Array<any>, option: any, optionIndex: number } | null }
159214
- */
159215
- function findReplaceOptions(element) {
159216
-
159217
- const isSameType = (element, option) => option.target && !isDifferentType(element)(option);
159218
-
159219
- return getReplaceOptionGroups().reduce((result, options) => {
159220
-
159221
- if (result) {
159222
- return result;
159223
- }
159224
-
159225
- const optionIndex = options.findIndex(option => isSameType(element, option));
159226
-
159227
- if (optionIndex === -1) {
159228
- return;
159229
- }
159230
-
159231
- return {
159232
- options,
159233
- option: options[optionIndex],
159234
- optionIndex
159235
- };
159236
- }, null);
159237
- }
159238
-
159239
- function getOptionIndex(options, index, entries) {
159240
- const option = options[index];
159241
-
159242
- if (!option) {
159243
- return false;
159244
- }
159245
-
159246
- return entries.findIndex(
159247
- ([ key ]) => key === option.actionName
159248
- );
159657
+ /**
159658
+ * A replace menu provider that allows to replace elements with
159659
+ * templates applied with the correspondent plain element.
159660
+ */
159661
+ function RemoveTemplateReplaceProvider(popupMenu, translate, elementTemplates) {
159662
+
159663
+ this._popupMenu = popupMenu;
159664
+ this._translate = translate;
159665
+ this._elementTemplates = elementTemplates;
159666
+
159667
+ this.register();
159249
159668
  }
159250
159669
 
159251
- var RemoveTemplatesModule = {
159252
- __init__: [ 'removeTemplateReplaceProvider' ],
159253
- removeTemplateReplaceProvider: [ 'type', RemoveTemplateReplaceProvider ]
159670
+ RemoveTemplateReplaceProvider.$inject = [
159671
+ 'popupMenu',
159672
+ 'translate',
159673
+ 'elementTemplates'
159674
+ ];
159675
+
159676
+ /**
159677
+ * Register replace menu provider in the popup menu
159678
+ */
159679
+ RemoveTemplateReplaceProvider.prototype.register = function() {
159680
+ this._popupMenu.registerProvider('bpmn-replace', this);
159254
159681
  };
159255
159682
 
159256
- var index = {
159257
- __depends__: [
159258
- AppendElementTemplatesModule,
159259
- CreateElementTemplatesModule,
159260
- ReplaceElementTemplatesModule,
159261
- RemoveTemplatesModule
159262
- ]
159683
+ /**
159684
+ * Adds the element templates to the replace menu.
159685
+ * @param {djs.model.Base} element
159686
+ *
159687
+ * @returns {Object}
159688
+ */
159689
+ RemoveTemplateReplaceProvider.prototype.getPopupMenuEntries = function(element) {
159690
+
159691
+ return (entries) => {
159692
+
159693
+ // convert our entries into something sortable
159694
+ let entrySet = Object.entries(entries);
159695
+
159696
+ if (this._elementTemplates && this._elementTemplates.get(element)) {
159697
+
159698
+ // add remove template option
159699
+ this.addPlainElementEntry(element, entrySet, this._translate, this._elementTemplates);
159700
+ }
159701
+
159702
+ // convert back to object
159703
+ return entrySet.reduce((entries, [ key, value ]) => {
159704
+ entries[key] = value;
159705
+
159706
+ return entries;
159707
+ }, {});
159708
+ };
159709
+ };
159710
+
159711
+
159712
+ /**
159713
+ * Adds the option to replace with plain element (remove template).
159714
+ *
159715
+ * @param {djs.model.Base} element
159716
+ * @param {Array<Object>} entries
159717
+ */
159718
+ RemoveTemplateReplaceProvider.prototype.addPlainElementEntry = function(element, entries, translate, elementTemplates) {
159719
+
159720
+ const replaceOption = this.getPlainEntry(element, entries, translate, elementTemplates);
159721
+
159722
+ if (!replaceOption) {
159723
+ return;
159724
+ }
159725
+
159726
+ const [
159727
+ insertIndex,
159728
+ entry
159729
+ ] = replaceOption;
159730
+
159731
+ // insert remove entry
159732
+ entries.splice(insertIndex, 0, [ entry.id, entry ]);
159733
+ };
159734
+
159735
+ /**
159736
+ * Returns the option to replace with plain element and the index where it should be inserted.
159737
+ *
159738
+ * @param {djs.model.Base} element
159739
+ * @param {Array<Object>} entries
159740
+ *
159741
+ * @returns {Array<Object, number>}
159742
+ */
159743
+ RemoveTemplateReplaceProvider.prototype.getPlainEntry = function(element, entries, translate, elementTemplates) {
159744
+
159745
+ const {
159746
+ options,
159747
+ option,
159748
+ optionIndex
159749
+ } = findReplaceOptions(element) || { };
159750
+
159751
+ if (!options) {
159752
+ return null;
159753
+ }
159754
+
159755
+ const entry = {
159756
+ id: 'replace-remove-element-template',
159757
+ action: () => {
159758
+ elementTemplates.removeTemplate(element);
159759
+ },
159760
+ label: translate(option.label),
159761
+ className: option.className
159762
+ };
159763
+
159764
+ // insert after previous option, if it exists
159765
+ const previousIndex = getOptionIndex(options, optionIndex - 1, entries);
159766
+
159767
+ if (previousIndex) {
159768
+ return [
159769
+ previousIndex + 1,
159770
+ entry
159771
+ ];
159772
+ }
159773
+
159774
+ // insert before next option, if it exists
159775
+ const nextIndex = getOptionIndex(options, optionIndex + 1, entries);
159776
+
159777
+ if (nextIndex) {
159778
+ return [
159779
+ nextIndex,
159780
+ entry
159781
+ ];
159782
+ }
159783
+
159784
+ // fallback to insert at start
159785
+ return [
159786
+ 0,
159787
+ entry
159788
+ ];
159789
+ };
159790
+
159791
+
159792
+ /**
159793
+ * @param {ModdleElement} element
159794
+ *
159795
+ * @return { { options: Array<any>, option: any, optionIndex: number } | null }
159796
+ */
159797
+ function findReplaceOptions(element) {
159798
+
159799
+ const isSameType = (element, option) => option.target && !isDifferentType(element)(option);
159800
+
159801
+ return getReplaceOptionGroups().reduce((result, options) => {
159802
+
159803
+ if (result) {
159804
+ return result;
159805
+ }
159806
+
159807
+ const optionIndex = options.findIndex(option => isSameType(element, option));
159808
+
159809
+ if (optionIndex === -1) {
159810
+ return;
159811
+ }
159812
+
159813
+ return {
159814
+ options,
159815
+ option: options[optionIndex],
159816
+ optionIndex
159817
+ };
159818
+ }, null);
159819
+ }
159820
+
159821
+ function getOptionIndex(options, index, entries) {
159822
+ const option = options[index];
159823
+
159824
+ if (!option) {
159825
+ return false;
159826
+ }
159827
+
159828
+ return entries.findIndex(
159829
+ ([ key ]) => key === option.actionName
159830
+ );
159831
+ }
159832
+
159833
+ var RemoveTemplatesModule = {
159834
+ __init__: [ 'removeTemplateReplaceProvider' ],
159835
+ removeTemplateReplaceProvider: [ 'type', RemoveTemplateReplaceProvider ]
159836
+ };
159837
+
159838
+ var index = {
159839
+ __depends__: [
159840
+ AppendElementTemplatesModule,
159841
+ CreateElementTemplatesModule,
159842
+ ReplaceElementTemplatesModule,
159843
+ RemoveTemplatesModule
159844
+ ]
159263
159845
  };
159264
159846
 
159265
159847
  /**