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$3=0,f$3=[],c$2=[],e$4=l$4.__b,a$3=l$4.__r,v$2=l$4.diffed,l$3=l$4.__c,m$2=l$4.unmount;function d$2(t,u){l$4.__h&&l$4.__h(r$3,t,o$3||u),o$3=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$3=1,y$2(B$3,n)}function y$2(n,u,i){var o=d$2(t$2++,2);if(o.t=n,!o.__c&&(o.__=[B$3(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$4.__s&&z$3(o.__H,i)&&(o.__=u,o.i=i,r$3.__H.__h.push(o));}function s$2(u,i){var o=d$2(t$2++,4);!l$4.__s&&z$3(o.__H,i)&&(o.__=u,o.i=i,r$3.__h.push(o));}function _$2(n){return o$3=5,F$3(function(){return {current:n}},[])}function F$3(n,r){var u=d$2(t$2++,7);return z$3(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$3(n,t){return o$3=8,F$3(function(){return n},t)}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$3),t.__H.__h=[];}catch(r){t.__H.__h=[],l$4.__e(r,t.__v);}}l$4.__b=function(n){r$3=null,e$4&&e$4(n);},l$4.__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$3),i.__h=[])),u$3=r$3;},l$4.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$4.requestAnimationFrame||((i$4=l$4.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$4.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$3),t.__h=t.__h.filter(function(n){return !n.__||w$3(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$4.__e(u,t.__v);}}),l$3&&l$3(t,r);},l$4.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$4.__e(r,u.__v));};var g$3="function"==typeof requestAnimationFrame;function j$3(n){var t,r=function(){clearTimeout(u),g$3&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$3&&(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$3(n){var t=r$3;n.__c=n.__(),r$3=t;}function z$3(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$3(n,t){return "function"==typeof t?t(n):t}
27835
+ var t$2,r$3,u$3,i$5,o$3=0,f$3=[],c$2=[],e$4=l$4.__b,a$3=l$4.__r,v$2=l$4.diffed,l$3=l$4.__c,m$2=l$4.unmount;function d$2(t,u){l$4.__h&&l$4.__h(r$3,t,o$3||u),o$3=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$3=1,y$2(B$3,n)}function y$2(n,u,i){var o=d$2(t$2++,2);if(o.t=n,!o.__c&&(o.__=[B$3(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$4.__s&&z$3(o.__H,i)&&(o.__=u,o.i=i,r$3.__H.__h.push(o));}function s$2(u,i){var o=d$2(t$2++,4);!l$4.__s&&z$3(o.__H,i)&&(o.__=u,o.i=i,r$3.__h.push(o));}function _$2(n){return o$3=5,F$3(function(){return {current:n}},[])}function F$3(n,r){var u=d$2(t$2++,7);return z$3(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$3(n,t){return o$3=8,F$3(function(){return n},t)}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$3),t.__H.__h=[];}catch(r){t.__H.__h=[],l$4.__e(r,t.__v);}}l$4.__b=function(n){r$3=null,e$4&&e$4(n);},l$4.__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$3),i.__h=[])),u$3=r$3;},l$4.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$4.requestAnimationFrame||((i$5=l$4.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$4.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$3),t.__h=t.__h.filter(function(n){return !n.__||w$3(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$4.__e(u,t.__v);}}),l$3&&l$3(t,r);},l$4.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$4.__e(r,u.__v));};var g$3="function"==typeof requestAnimationFrame;function j$3(n){var t,r=function(){clearTimeout(u),g$3&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$3&&(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$3(n){var t=r$3;n.__c=n.__(),r$3=t;}function z$3(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$3(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
 
@@ -66989,9 +66989,9 @@
66989
66989
  ]
66990
66990
  };
66991
66991
 
66992
- var n$1,l$2,u$2,i$3,o$2,r$1,f$2,e$3,c$1={},s$1=[],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$1.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$2.vnode&&l$2.vnode(f),f}function _$1(){return {current:null}}function g$2(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$2(n){(!n.__d&&(n.__d=!0)&&i$3.push(n)&&!x$2.__r++||o$2!==l$2.debounceRendering)&&((o$2=l$2.debounceRendering)||r$1)(x$2);}function x$2(){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$2.vnode&&l$2.vnode(o),L$1(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$2.__r=0;}function C$2(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$1,b=l.length;for(u.__d=e,P$1(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$1(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&z$2(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$1(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$2,{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$1(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$1(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$1(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$2(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$1(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||I$1(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$1:A$2,o)):n.removeEventListener(l,o?D$1: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$2.event?l$2.event(n):n)}function D$1(n){return this.l[n.type+!0](l$2.event?l$2.event(n):n)}function L$1(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$2.__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$2.__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$2(n,h$1(T=null!=a&&a.type===g$2&&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$2.__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$2.diffed)&&a(u);}function M$1(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)z$2(t[i],t[++i],t[++i]);l$2.__c&&l$2.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$2.__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$1.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$2(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$2(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$2(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$2(l,a,g,k[a],!1),a="checked",void 0!==b&&b!==l[a]&&T$2(l,a,b,k[a],!1));}return l}function z$2(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$2.__e(n,t);}}function N$1(n,u,t){var i,o;if(l$2.unmount&&l$2.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z$2(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$2.__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$2.__&&l$2.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],L$1(t,u=(!o&&i||t).__k=y$1(g$2,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n$1.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),M$1(f,u,e);}function B$2(n,l){q$2(n,l,B$2);}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$1.call(arguments,2):t),d$1(l.type,e,i||l.key,o||l.ref,null)}function F$2(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$2(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$1=s$1.slice,l$2={__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$2(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$2(this));},b$1.prototype.render=g$2,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$2.__r=0,e$3=0;
66992
+ var n$1,l$2,u$2,i$4,o$2,r$1,f$2,e$3,c$1={},s$1=[],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$1.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$2.vnode&&l$2.vnode(f),f}function _$1(){return {current:null}}function g$2(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$2(n){(!n.__d&&(n.__d=!0)&&i$4.push(n)&&!x$2.__r++||o$2!==l$2.debounceRendering)&&((o$2=l$2.debounceRendering)||r$1)(x$2);}function x$2(){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$2.vnode&&l$2.vnode(o),L$1(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$2.__r=0;}function C$2(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$1,b=l.length;for(u.__d=e,P$1(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$1(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&z$2(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$1(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$2,{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$1(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$1(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$1(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$2(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$1(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||I$1(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$1:A$2,o)):n.removeEventListener(l,o?D$1: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$2.event?l$2.event(n):n)}function D$1(n){return this.l[n.type+!0](l$2.event?l$2.event(n):n)}function L$1(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$2.__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$2.__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$2(n,h$1(T=null!=a&&a.type===g$2&&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$2.__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$2.diffed)&&a(u);}function M$1(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)z$2(t[i],t[++i],t[++i]);l$2.__c&&l$2.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$2.__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$1.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$2(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$2(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$2(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$2(l,a,g,k[a],!1),a="checked",void 0!==b&&b!==l[a]&&T$2(l,a,b,k[a],!1));}return l}function z$2(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$2.__e(n,t);}}function N$1(n,u,t){var i,o;if(l$2.unmount&&l$2.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z$2(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$2.__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$2.__&&l$2.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],L$1(t,u=(!o&&i||t).__k=y$1(g$2,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n$1.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),M$1(f,u,e);}function B$2(n,l){q$2(n,l,B$2);}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$1.call(arguments,2):t),d$1(l.type,e,i||l.key,o||l.ref,null)}function F$2(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$2(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$1=s$1.slice,l$2={__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$2(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$2(this));},b$1.prototype.render=g$2,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$2.__r=0,e$3=0;
66993
66993
 
66994
- var t$1,r,u$1,i$2,o$1=0,f$1=[],c=[],e$2=l$2.__b,a$1=l$2.__r,v=l$2.diffed,l$1=l$2.__c,m=l$2.unmount;function d(t,u){l$2.__h&&l$2.__h(r,t,o$1||u),o$1=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function h(n){return o$1=1,s(B$1,n)}function s(n,u,i){var o=d(t$1++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$1(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$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function y(u,i){var o=d(t$1++,4);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _(n){return o$1=5,F$1(function(){return {current:n}},[])}function A$1(n,t,r){o$1=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$1(n,r){var u=d(t$1++,7);return z$1(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$1(n,t){return o$1=8,F$1(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$1(t,r){l$2.useDebugValue&&l$2.useDebugValue(r?r(t):t);}function V$1(){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$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l$2.__e(r,t.__v);}}l$2.__b=function(n){r=null,e$2&&e$2(n);},l$2.__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$1),i.__h=[],t$1=0)),u$1=r;},l$2.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$2.requestAnimationFrame||((i$2=l$2.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$2.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$1(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$2.__e(u,t.__v);}}),l$1&&l$1(t,r);},l$2.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$2.__e(r,u.__v));};var g$1="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$1&&(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$1(n){var t=r;n.__c=n.__(),r=t;}function z$1(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$1(n,t){return "function"==typeof t?t(n):t}
66994
+ var t$1,r,u$1,i$3,o$1=0,f$1=[],c=[],e$2=l$2.__b,a$1=l$2.__r,v=l$2.diffed,l$1=l$2.__c,m=l$2.unmount;function d(t,u){l$2.__h&&l$2.__h(r,t,o$1||u),o$1=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function h(n){return o$1=1,s(B$1,n)}function s(n,u,i){var o=d(t$1++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$1(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$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function y(u,i){var o=d(t$1++,4);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _(n){return o$1=5,F$1(function(){return {current:n}},[])}function A$1(n,t,r){o$1=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$1(n,r){var u=d(t$1++,7);return z$1(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$1(n,t){return o$1=8,F$1(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$1(t,r){l$2.useDebugValue&&l$2.useDebugValue(r?r(t):t);}function V$1(){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$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l$2.__e(r,t.__v);}}l$2.__b=function(n){r=null,e$2&&e$2(n);},l$2.__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$1),i.__h=[],t$1=0)),u$1=r;},l$2.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$2.requestAnimationFrame||((i$3=l$2.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$2.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$1(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$2.__e(u,t.__v);}}),l$1&&l$1(t,r);},l$2.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$2.__e(r,u.__v));};var g$1="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$1&&(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$1(n){var t=r;n.__c=n.__(),r=t;}function z$1(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$1(n,t){return "function"==typeof t?t(n):t}
66995
66995
 
66996
66996
  function g(n,t){for(var e in t)n[e]=t[e];return n}function C$1(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(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$1(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$1(this.props,n)||C$1(this.state,t)};var x=l$2.__b;l$2.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n);};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function N(n){function t(t){var e=g({},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$2.__e;l$2.__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=l$2.unmount;function F(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({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return F(n,t,e)})),n}function I(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return I(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(){this.__u=0,this.t=null,this.__b=null;}function U(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function D(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$2.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),T&&T(n);},(L.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(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(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.prototype.componentWillUnmount=function(){this.t=[];},L.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(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&y$1(g$2,null,n.fallback);return i&&(i.__u&=-33),[y$1(g$2,null,e.__a?null:n.children),i]};var V=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(n){return this.getChildContext=function(){return n.context},n.children}function P(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,{context:e.context},n.__v),e.l);}function j(n,e){var r=y$1(P,{__v:n,i:e});return r.containerInfo=e,r}(M.prototype=new b$1).__a=function(n){var t=this,e=U(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),V(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(n,e,t);});};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?: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=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Z=/[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(n,t,e){return B$2(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=l$2.event;function K(){}function Q(){return this.cancelBubble}function X(){return this.defaultPrevented}l$2.event=function(n){return J&&(n=J(n)),n.persist=K,n.isPropagationStopped=Q,n.isDefaultPrevented=X,n.nativeEvent=n};var nn,tn={enumerable:!1,configurable:!0,get:function(){return this.class}},en=l$2.vnode;l$2.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.test(o)?o=l:-1===e.indexOf("-")&&B.test(o)?o=o.replace(Z,"-$&").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)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u;}(n),n.$$typeof=z,en&&en(n);};var rn=l$2.__r;l$2.__r=function(n){rn&&rn(n),nn=n.__c;};var un=l$2.diffed;l$2.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=null;};var on={ReactCurrentDispatcher:{current:{readContext:function(n){return nn.__n[n.__c].props.value}}}};function cn(n){return y$1.bind(null,n)}function fn(n){return !!n&&n.$$typeof===z}function an(n){return fn(n)&&n.type===g$2}function sn(n){return fn(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$2;function yn(n){n();}function _n(n){return n}function bn(){return [!1,yn]}var Sn=y,gn=fn;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$1,useReducer:s,useEffect:p$1,useLayoutEffect:y,useInsertionEffect:Sn,useTransition:bn,useDeferredValue:_n,useSyncExternalStore:Cn,startTransition:yn,useRef:_,useImperativeHandle:A$1,useMemo:F$1,useCallback:T$1,useContext:q$1,useDebugValue:x$1,version:"17.0.2",Children:A,render:q,hydrate:G,unmountComponentAtNode:hn,createPortal:j,createElement:y$1,createContext:F$2,createFactory:cn,cloneElement:sn,createRef:_$1,Fragment:g$2,isValidElement:fn,isElement:gn,isFragment:an,findDOMNode:vn,Component:b$1,PureComponent:E,memo:w,forwardRef:N,flushSync:pn,unstable_batchedUpdates:dn,StrictMode:mn,Suspense:L,SuspenseList:M,lazy:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:on};
66997
66997
 
@@ -77290,15 +77290,15 @@
77290
77290
  var ie$1 = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
77291
77291
 
77292
77292
  // Fill in the digit keys
77293
- for (var i$1 = 0; i$1 < 10; i$1++) base[48 + i$1] = base[96 + i$1] = String(i$1);
77293
+ for (var i$2 = 0; i$2 < 10; i$2++) base[48 + i$2] = base[96 + i$2] = String(i$2);
77294
77294
 
77295
77295
  // The function keys
77296
- for (var i$1 = 1; i$1 <= 24; i$1++) base[i$1 + 111] = "F" + i$1;
77296
+ for (var i$2 = 1; i$2 <= 24; i$2++) base[i$2 + 111] = "F" + i$2;
77297
77297
 
77298
77298
  // And the alphabetic keys
77299
- for (var i$1 = 65; i$1 <= 90; i$1++) {
77300
- base[i$1] = String.fromCharCode(i$1 + 32);
77301
- shift[i$1] = String.fromCharCode(i$1);
77299
+ for (var i$2 = 65; i$2 <= 90; i$2++) {
77300
+ base[i$2] = String.fromCharCode(i$2 + 32);
77301
+ shift[i$2] = String.fromCharCode(i$2);
77302
77302
  }
77303
77303
 
77304
77304
  // For each code that doesn't have a shift-equivalent, copy the base name
@@ -105629,16 +105629,16 @@
105629
105629
  }
105630
105630
 
105631
105631
  function isErrorSupported(element) {
105632
- return isAny$1(element, ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:EndEvent']) && !!getErrorEventDefinition(element);
105632
+ return isAny$1(element, ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:EndEvent']) && !!getErrorEventDefinition$1(element);
105633
105633
  }
105634
- function getErrorEventDefinition(element) {
105634
+ function getErrorEventDefinition$1(element) {
105635
105635
  return getEventDefinition$1$1(element, 'bpmn:ErrorEventDefinition');
105636
105636
  }
105637
105637
  function getTimerEventDefinition$1(element) {
105638
105638
  return getEventDefinition$1$1(element, 'bpmn:TimerEventDefinition');
105639
105639
  }
105640
105640
  function getError(element) {
105641
- const errorEventDefinition = getErrorEventDefinition(element);
105641
+ const errorEventDefinition = getErrorEventDefinition$1(element);
105642
105642
  return errorEventDefinition && errorEventDefinition.get('errorRef');
105643
105643
  }
105644
105644
  function getEventDefinition$1$1(element, eventType) {
@@ -105688,13 +105688,13 @@
105688
105688
  return escalationEventDefinition && escalationEventDefinition.get('escalationRef');
105689
105689
  }
105690
105690
  function isCompensationSupported(element) {
105691
- return isAny$1(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']) && !!getCompensateEventDefinition(element);
105691
+ return isAny$1(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']) && !!getCompensateEventDefinition$1(element);
105692
105692
  }
105693
- function getCompensateEventDefinition(element) {
105693
+ function getCompensateEventDefinition$1(element) {
105694
105694
  return getEventDefinition$1$1(element, 'bpmn:CompensateEventDefinition');
105695
105695
  }
105696
105696
  function getCompensateActivity(element) {
105697
- const compensateEventDefinition = getCompensateEventDefinition(element);
105697
+ const compensateEventDefinition = getCompensateEventDefinition$1(element);
105698
105698
  return compensateEventDefinition && compensateEventDefinition.get('activityRef');
105699
105699
  }
105700
105700
 
@@ -105728,7 +105728,7 @@
105728
105728
  } = props;
105729
105729
  const commandStack = useService('commandStack');
105730
105730
  const translate = useService('translate');
105731
- const compensateEventDefinition = getCompensateEventDefinition(element);
105731
+ const compensateEventDefinition = getCompensateEventDefinition$1(element);
105732
105732
  const getValue = () => {
105733
105733
  return compensateEventDefinition.get('waitForCompletion');
105734
105734
  };
@@ -105756,7 +105756,7 @@
105756
105756
  const commandStack = useService('commandStack');
105757
105757
  const elementRegistry = useService('elementRegistry');
105758
105758
  const translate = useService('translate');
105759
- const compensateEventDefinition = getCompensateEventDefinition(element);
105759
+ const compensateEventDefinition = getCompensateEventDefinition$1(element);
105760
105760
  const getValue = () => {
105761
105761
  const activityRef = getCompensateActivity(element);
105762
105762
  return activityRef && activityRef.get('id');
@@ -105828,7 +105828,7 @@
105828
105828
  const {
105829
105829
  attachedToRef
105830
105830
  } = boundaryEvent;
105831
- const compensateEventDefinition = getCompensateEventDefinition(boundaryEvent);
105831
+ const compensateEventDefinition = getCompensateEventDefinition$1(boundaryEvent);
105832
105832
  return attachedToRef && compensateEventDefinition && attachedToRef.id === activityId;
105833
105833
  });
105834
105834
  }
@@ -106123,7 +106123,7 @@
106123
106123
  const bpmnFactory = useService('bpmnFactory');
106124
106124
  const commandStack = useService('commandStack');
106125
106125
  const translate = useService('translate');
106126
- const errorEventDefinition = getErrorEventDefinition(element);
106126
+ const errorEventDefinition = getErrorEventDefinition$1(element);
106127
106127
  const getValue = () => {
106128
106128
  const error = getError(element);
106129
106129
  if (error) {
@@ -107383,7 +107383,6 @@
107383
107383
  function sortByName$2(elements) {
107384
107384
  return sortBy$1(elements, e => (e.name || '').toLowerCase());
107385
107385
  }
107386
-
107387
107386
  function isTimerSupported(element) {
107388
107387
  return isAny$1(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition$2(element);
107389
107388
  }
@@ -110805,7 +110804,7 @@
110805
110804
  const commandStack = useService('commandStack');
110806
110805
  const translate = useService('translate');
110807
110806
  const debounce = useService('debounceInput');
110808
- const errorEventDefinition = getErrorEventDefinition(element);
110807
+ const errorEventDefinition = getErrorEventDefinition$1(element);
110809
110808
  const getValue = () => {
110810
110809
  return errorEventDefinition.get('camunda:errorCodeVariable');
110811
110810
  };
@@ -110835,7 +110834,7 @@
110835
110834
  const commandStack = useService('commandStack');
110836
110835
  const translate = useService('translate');
110837
110836
  const debounce = useService('debounceInput');
110838
- const errorEventDefinition = getErrorEventDefinition(element);
110837
+ const errorEventDefinition = getErrorEventDefinition$1(element);
110839
110838
  const getValue = () => {
110840
110839
  return errorEventDefinition.get('camunda:errorMessageVariable');
110841
110840
  };
@@ -118044,43 +118043,42 @@
118044
118043
  userTaskGeneratedFormsBehavior: [ 'type', UserTaskFormsBehavior ]
118045
118044
  };
118046
118045
 
118046
+ /**
118047
+ * Convert array of 16 byte values to UUID string format of the form:
118048
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
118049
+ */
118050
+ var byteToHex = [];
118051
+ for (var i$1 = 0; i$1 < 256; ++i$1) {
118052
+ byteToHex.push((i$1 + 0x100).toString(16).slice(1));
118053
+ }
118054
+ function unsafeStringify(arr, offset = 0) {
118055
+ // Note: Be careful editing this code! It's been tuned for performance
118056
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
118057
+ //
118058
+ // Note to future-self: No, you can't remove the `toLowerCase()` call.
118059
+ // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
118060
+ 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();
118061
+ }
118062
+
118047
118063
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
118048
118064
  // require the crypto API and do not support built-in fallback to lower quality random number
118049
118065
  // generators (like Math.random()).
118050
- let getRandomValues;
118051
- const rnds8 = new Uint8Array(16);
118066
+
118067
+ var getRandomValues;
118068
+ var rnds8 = new Uint8Array(16);
118052
118069
  function rng() {
118053
118070
  // lazy load so that environments that need to polyfill have a chance to do so
118054
118071
  if (!getRandomValues) {
118055
118072
  // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
118056
118073
  getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
118057
-
118058
118074
  if (!getRandomValues) {
118059
118075
  throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
118060
118076
  }
118061
118077
  }
118062
-
118063
118078
  return getRandomValues(rnds8);
118064
118079
  }
118065
118080
 
118066
- /**
118067
- * Convert array of 16 byte values to UUID string format of the form:
118068
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
118069
- */
118070
-
118071
- const byteToHex = [];
118072
-
118073
- for (let i = 0; i < 256; ++i) {
118074
- byteToHex.push((i + 0x100).toString(16).slice(1));
118075
- }
118076
-
118077
- function unsafeStringify(arr, offset = 0) {
118078
- // Note: Be careful editing this code! It's been tuned for performance
118079
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
118080
- 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]];
118081
- }
118082
-
118083
- const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
118081
+ var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
118084
118082
  var native = {
118085
118083
  randomUUID
118086
118084
  };
@@ -118089,13 +118087,12 @@
118089
118087
  if (native.randomUUID && !buf && !options) {
118090
118088
  return native.randomUUID();
118091
118089
  }
118092
-
118093
118090
  options = options || {};
118094
- const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
118091
+ var rnds = options.random || (options.rng || rng)();
118095
118092
 
118093
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
118096
118094
  rnds[6] = rnds[6] & 0x0f | 0x40;
118097
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
118098
-
118095
+ rnds[8] = rnds[8] & 0x3f | 0x80;
118099
118096
  return unsafeStringify(rnds);
118100
118097
  }
118101
118098
 
@@ -120676,6 +120673,13 @@
120676
120673
  * corresponding properties on the element.
120677
120674
  */
120678
120675
  class ConditionalBehavior extends CommandInterceptor$1 {
120676
+ /**
120677
+ * @param {import('diagram-js/lib/core/EventBus').default} eventBus
120678
+ * @param {import('../ElementTemplates').default} elementTemplates
120679
+ * @param {import('diagram-js/lib/command/CommandStack').default} commandStack
120680
+ * @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
120681
+ * @param {import('didi').Injector} injector
120682
+ */
120679
120683
  constructor(eventBus, elementTemplates, commandStack, bpmnFactory, injector) {
120680
120684
  super(eventBus);
120681
120685
  this._eventBus = eventBus;
@@ -120709,12 +120713,17 @@
120709
120713
  }
120710
120714
  context.oldTemplateWithConditions = applyConditions(element, template);
120711
120715
  }
120712
- _applyConditions(context) {
120716
+ _applyConditions(context, event) {
120713
120717
  const {
120714
120718
  element,
120715
120719
  newTemplate,
120716
120720
  oldTemplateWithConditions
120717
120721
  } = context;
120722
+
120723
+ // do not apply conditions if we only update meta information
120724
+ if (isMetaUpdate(event, context)) {
120725
+ return;
120726
+ }
120718
120727
  const template = this._elementTemplates.get(element);
120719
120728
 
120720
120729
  // new Template is persisted before applying default values,
@@ -120815,6 +120824,21 @@
120815
120824
  return JSON.stringify(a, normalizeReplacer$1) === JSON.stringify(b, normalizeReplacer$1);
120816
120825
  }
120817
120826
 
120827
+ /**
120828
+ * Checks if the event only updates "meta" properties:
120829
+ *
120830
+ * * `zeebe:modelerTemplate`
120831
+ * * `zeebe:modelerTemplateVersion`
120832
+ *
120833
+ * @param {string} event
120834
+ * @param {any} context
120835
+ *
120836
+ * @return {boolean}
120837
+ */
120838
+ function isMetaUpdate(event, context) {
120839
+ return event === 'element.updateProperties' && Object.keys(context.properties).every(key => ['zeebe:modelerTemplate', 'zeebe:modelerTemplateVersion'].includes(key));
120840
+ }
120841
+
120818
120842
  /**
120819
120843
  * This Behavior checks if the new element's type is in
120820
120844
  * the list of elements the template applies to and unlinks
@@ -121136,7 +121160,12 @@
121136
121160
  }
121137
121161
  ReferencedElementBehavior.$inject = ['eventBus', 'elementTemplates', 'modeling', 'injector', 'moddleCopy', 'bpmnFactory'];
121138
121162
  function canHaveReferencedElement(element) {
121139
- return isAny$1(element, ['bpmn:ReceiveTask', 'bpmn:SendTask', 'bpmn:Event']);
121163
+ // Blank-Events can't have referenced elements
121164
+ if (is$6(element, 'bpmn:Event')) {
121165
+ const bo = getBusinessObject$2(element);
121166
+ return bo.get('eventDefinitions') && bo.get('eventDefinitions')[0];
121167
+ }
121168
+ return isAny$1(element, ['bpmn:ReceiveTask', 'bpmn:SendTask']);
121140
121169
  }
121141
121170
  function isLabel$1(element) {
121142
121171
  return element.type === 'label';
@@ -130861,7 +130890,7 @@
130861
130890
  label: 'Sub-process (expanded)',
130862
130891
  search: 'subprocess',
130863
130892
  actionName: 'expanded-subprocess',
130864
- className: 'bpmn-icon-subprocess-collapsed',
130893
+ className: 'bpmn-icon-subprocess-expanded',
130865
130894
  target: {
130866
130895
  type: 'bpmn:SubProcess',
130867
130896
  isExpanded: true
@@ -131176,102 +131205,102 @@
131176
131205
  return true;
131177
131206
  };
131178
131207
 
131179
- const appendIcon = `<svg width="22" height="22" viewBox="0 0 5.82 5.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
131180
- <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"/>
131181
- </svg>`;
131182
- const createIcon = `<svg width="46" height="46" viewBox="-2 -2 9.82 9.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
131183
- <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"/>
131208
+ const appendIcon = `<svg width="22" height="22" viewBox="0 0 5.82 5.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
131209
+ <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"/>
131210
+ </svg>`;
131211
+ const createIcon = `<svg width="46" height="46" viewBox="-2 -2 9.82 9.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
131212
+ <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"/>
131184
131213
  </svg>`;
131185
131214
 
131186
- /**
131187
- * A provider for append context pad button
131188
- */
131189
- function AppendContextPadProvider(contextPad, popupMenu, translate, canvas, rules) {
131190
-
131191
- this._contextPad = contextPad;
131192
- this._popupMenu = popupMenu;
131193
- this._translate = translate;
131194
- this._canvas = canvas;
131195
- this._rules = rules;
131196
-
131197
- this.register();
131198
- }
131199
-
131200
- AppendContextPadProvider.$inject = [
131201
- 'contextPad',
131202
- 'popupMenu',
131203
- 'translate',
131204
- 'canvas',
131205
- 'rules'
131206
- ];
131207
-
131208
- /**
131209
- * Register append button provider in the context pad
131210
- */
131211
- AppendContextPadProvider.prototype.register = function() {
131212
- this._contextPad.registerProvider(this);
131213
- };
131214
-
131215
- /**
131216
- * Gets the append context pad entry
131217
- *
131218
- * @param {djs.model.Base} element
131219
- * @returns {Object} entries
131220
- */
131221
- AppendContextPadProvider.prototype.getContextPadEntries = function(element) {
131222
- const popupMenu = this._popupMenu;
131223
- const translate = this._translate;
131224
- const rules = this._rules;
131225
- const getAppendMenuPosition = this._getAppendMenuPosition.bind(this);
131226
-
131227
- if (rules.allowed('shape.append', { element })) {
131228
-
131229
- // append menu entry
131230
- return {
131231
- 'append': {
131232
- group: 'model',
131233
- html: `<div class="entry">${appendIcon}</div>`,
131234
- title: translate('Append element'),
131235
- action: {
131236
- click: function(event, element) {
131237
-
131238
- const position = assign(getAppendMenuPosition(element), {
131239
- cursor: { x: event.x, y: event.y }
131240
- });
131241
-
131242
- popupMenu.open(element, 'bpmn-append', position, {
131243
- title: translate('Append element'),
131244
- width: 300,
131245
- search: true
131246
- });
131247
- }
131248
- }
131249
- }
131250
- };
131251
- }
131252
- };
131253
-
131254
- /**
131255
- * Calculates the position for the append menu relatively to the element
131256
- *
131257
- * @param {djs.model.Base} element
131258
- * @returns {Object}
131259
- */
131260
- AppendContextPadProvider.prototype._getAppendMenuPosition = function(element) {
131261
- const contextPad = this._contextPad;
131262
-
131263
- const X_OFFSET = 5;
131264
-
131265
- const pad = contextPad.getPad(element).html;
131266
-
131267
- const padRect = pad.getBoundingClientRect();
131268
-
131269
- const pos = {
131270
- x: padRect.right + X_OFFSET,
131271
- y: padRect.top
131272
- };
131273
-
131274
- return pos;
131215
+ /**
131216
+ * A provider for append context pad button
131217
+ */
131218
+ function AppendContextPadProvider(contextPad, popupMenu, translate, canvas, rules) {
131219
+
131220
+ this._contextPad = contextPad;
131221
+ this._popupMenu = popupMenu;
131222
+ this._translate = translate;
131223
+ this._canvas = canvas;
131224
+ this._rules = rules;
131225
+
131226
+ this.register();
131227
+ }
131228
+
131229
+ AppendContextPadProvider.$inject = [
131230
+ 'contextPad',
131231
+ 'popupMenu',
131232
+ 'translate',
131233
+ 'canvas',
131234
+ 'rules'
131235
+ ];
131236
+
131237
+ /**
131238
+ * Register append button provider in the context pad
131239
+ */
131240
+ AppendContextPadProvider.prototype.register = function() {
131241
+ this._contextPad.registerProvider(this);
131242
+ };
131243
+
131244
+ /**
131245
+ * Gets the append context pad entry
131246
+ *
131247
+ * @param {djs.model.Base} element
131248
+ * @returns {Object} entries
131249
+ */
131250
+ AppendContextPadProvider.prototype.getContextPadEntries = function(element) {
131251
+ const popupMenu = this._popupMenu;
131252
+ const translate = this._translate;
131253
+ const rules = this._rules;
131254
+ const getAppendMenuPosition = this._getAppendMenuPosition.bind(this);
131255
+
131256
+ if (rules.allowed('shape.append', { element })) {
131257
+
131258
+ // append menu entry
131259
+ return {
131260
+ 'append': {
131261
+ group: 'model',
131262
+ html: `<div class="entry">${appendIcon}</div>`,
131263
+ title: translate('Append element'),
131264
+ action: {
131265
+ click: function(event, element) {
131266
+
131267
+ const position = assign(getAppendMenuPosition(element), {
131268
+ cursor: { x: event.x, y: event.y }
131269
+ });
131270
+
131271
+ popupMenu.open(element, 'bpmn-append', position, {
131272
+ title: translate('Append element'),
131273
+ width: 300,
131274
+ search: true
131275
+ });
131276
+ }
131277
+ }
131278
+ }
131279
+ };
131280
+ }
131281
+ };
131282
+
131283
+ /**
131284
+ * Calculates the position for the append menu relatively to the element
131285
+ *
131286
+ * @param {djs.model.Base} element
131287
+ * @returns {Object}
131288
+ */
131289
+ AppendContextPadProvider.prototype._getAppendMenuPosition = function(element) {
131290
+ const contextPad = this._contextPad;
131291
+
131292
+ const X_OFFSET = 5;
131293
+
131294
+ const pad = contextPad.getPad(element).html;
131295
+
131296
+ const padRect = pad.getBoundingClientRect();
131297
+
131298
+ const pos = {
131299
+ x: padRect.right + X_OFFSET,
131300
+ y: padRect.top
131301
+ };
131302
+
131303
+ return pos;
131275
131304
  };
131276
131305
 
131277
131306
  function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}));}
@@ -131884,87 +131913,87 @@
131884
131913
  return el.querySelector(selector);
131885
131914
  }
131886
131915
 
131887
- const LOWER_PRIORITY = 900;
131888
-
131889
- /**
131890
- * A palette provider for the create elements menu.
131891
- */
131892
- function CreatePaletteProvider(palette, translate, popupMenu, canvas, mouse) {
131893
-
131894
- this._palette = palette;
131895
- this._translate = translate;
131896
- this._popupMenu = popupMenu;
131897
- this._canvas = canvas;
131898
- this._mouse = mouse;
131899
-
131900
- this.register();
131901
- }
131902
-
131903
- CreatePaletteProvider.$inject = [
131904
- 'palette',
131905
- 'translate',
131906
- 'popupMenu',
131907
- 'canvas',
131908
- 'mouse'
131909
- ];
131910
-
131911
- /**
131912
- * Register create button provider in the palette
131913
- */
131914
- CreatePaletteProvider.prototype.register = function() {
131915
- this._palette.registerProvider(LOWER_PRIORITY, this);
131916
- };
131917
-
131918
- /**
131919
- * Gets the palette create entry
131920
- *
131921
- * @param {djs.model.Base} element
131922
- * @returns {Object}
131923
- */
131924
- CreatePaletteProvider.prototype.getPaletteEntries = function(element) {
131925
- const translate = this._translate,
131926
- popupMenu = this._popupMenu,
131927
- canvas = this._canvas,
131928
- mouse = this._mouse;
131929
-
131930
- const getPosition = (event) => {
131931
- const X_OFFSET = 35;
131932
- const Y_OFFSET = 10;
131933
-
131934
- if (event instanceof KeyboardEvent) {
131935
- event = mouse.getLastMoveEvent();
131936
- return { x: event.x, y: event.y };
131937
- }
131938
-
131939
- const target = event && event.target || query('.djs-palette [data-action="create"]');
131940
- const targetPosition = target.getBoundingClientRect();
131941
-
131942
- return target && {
131943
- x: targetPosition.left + targetPosition.width / 2 + X_OFFSET,
131944
- y: targetPosition.top + targetPosition.height / 2 + Y_OFFSET
131945
- };
131946
- };
131947
-
131948
- return {
131949
- 'create': {
131950
- group: 'create',
131951
- html: `<div class="entry"> ${createIcon}</div>`,
131952
- title: translate('Create element'),
131953
- action: {
131954
- click: function(event) {
131955
- const position = getPosition(event);
131956
-
131957
- const element = canvas.getRootElement();
131958
-
131959
- popupMenu.open(element, 'bpmn-create', position, {
131960
- title: translate('Create element'),
131961
- width: 300,
131962
- search: true
131963
- });
131964
- }
131965
- }
131966
- }
131967
- };
131916
+ const LOWER_PRIORITY = 900;
131917
+
131918
+ /**
131919
+ * A palette provider for the create elements menu.
131920
+ */
131921
+ function CreatePaletteProvider(palette, translate, popupMenu, canvas, mouse) {
131922
+
131923
+ this._palette = palette;
131924
+ this._translate = translate;
131925
+ this._popupMenu = popupMenu;
131926
+ this._canvas = canvas;
131927
+ this._mouse = mouse;
131928
+
131929
+ this.register();
131930
+ }
131931
+
131932
+ CreatePaletteProvider.$inject = [
131933
+ 'palette',
131934
+ 'translate',
131935
+ 'popupMenu',
131936
+ 'canvas',
131937
+ 'mouse'
131938
+ ];
131939
+
131940
+ /**
131941
+ * Register create button provider in the palette
131942
+ */
131943
+ CreatePaletteProvider.prototype.register = function() {
131944
+ this._palette.registerProvider(LOWER_PRIORITY, this);
131945
+ };
131946
+
131947
+ /**
131948
+ * Gets the palette create entry
131949
+ *
131950
+ * @param {djs.model.Base} element
131951
+ * @returns {Object}
131952
+ */
131953
+ CreatePaletteProvider.prototype.getPaletteEntries = function(element) {
131954
+ const translate = this._translate,
131955
+ popupMenu = this._popupMenu,
131956
+ canvas = this._canvas,
131957
+ mouse = this._mouse;
131958
+
131959
+ const getPosition = (event) => {
131960
+ const X_OFFSET = 35;
131961
+ const Y_OFFSET = 10;
131962
+
131963
+ if (event instanceof KeyboardEvent) {
131964
+ event = mouse.getLastMoveEvent();
131965
+ return { x: event.x, y: event.y };
131966
+ }
131967
+
131968
+ const target = event && event.target || query('.djs-palette [data-action="create"]');
131969
+ const targetPosition = target.getBoundingClientRect();
131970
+
131971
+ return target && {
131972
+ x: targetPosition.left + targetPosition.width / 2 + X_OFFSET,
131973
+ y: targetPosition.top + targetPosition.height / 2 + Y_OFFSET
131974
+ };
131975
+ };
131976
+
131977
+ return {
131978
+ 'create': {
131979
+ group: 'create',
131980
+ html: `<div class="entry"> ${createIcon}</div>`,
131981
+ title: translate('Create element'),
131982
+ action: {
131983
+ click: function(event) {
131984
+ const position = getPosition(event);
131985
+
131986
+ const element = canvas.getRootElement();
131987
+
131988
+ popupMenu.open(element, 'bpmn-create', position, {
131989
+ title: translate('Create element'),
131990
+ width: 300,
131991
+ search: true
131992
+ });
131993
+ }
131994
+ }
131995
+ }
131996
+ };
131968
131997
  };
131969
131998
 
131970
131999
  var CreateMenuModule = {
@@ -133407,185 +133436,185 @@
133407
133436
  return ALL_OPTIONS;
133408
133437
  }
133409
133438
 
133410
- /**
133411
- * A replace menu provider that allows to replace elements with
133412
- * templates applied with the correspondent plain element.
133413
- */
133414
- function RemoveTemplateReplaceProvider(popupMenu, translate, elementTemplates) {
133415
-
133416
- this._popupMenu = popupMenu;
133417
- this._translate = translate;
133418
- this._elementTemplates = elementTemplates;
133419
-
133420
- this.register();
133421
- }
133422
-
133423
- RemoveTemplateReplaceProvider.$inject = [
133424
- 'popupMenu',
133425
- 'translate',
133426
- 'elementTemplates'
133427
- ];
133428
-
133429
- /**
133430
- * Register replace menu provider in the popup menu
133431
- */
133432
- RemoveTemplateReplaceProvider.prototype.register = function() {
133433
- this._popupMenu.registerProvider('bpmn-replace', this);
133434
- };
133435
-
133436
- /**
133437
- * Adds the element templates to the replace menu.
133438
- * @param {djs.model.Base} element
133439
- *
133440
- * @returns {Object}
133441
- */
133442
- RemoveTemplateReplaceProvider.prototype.getPopupMenuEntries = function(element) {
133443
-
133444
- return (entries) => {
133445
-
133446
- // convert our entries into something sortable
133447
- let entrySet = Object.entries(entries);
133448
-
133449
- if (this._elementTemplates && this._elementTemplates.get(element)) {
133450
-
133451
- // add remove template option
133452
- this.addPlainElementEntry(element, entrySet, this._translate, this._elementTemplates);
133453
- }
133454
-
133455
- // convert back to object
133456
- return entrySet.reduce((entries, [ key, value ]) => {
133457
- entries[key] = value;
133458
-
133459
- return entries;
133460
- }, {});
133461
- };
133462
- };
133463
-
133464
-
133465
- /**
133466
- * Adds the option to replace with plain element (remove template).
133467
- *
133468
- * @param {djs.model.Base} element
133469
- * @param {Array<Object>} entries
133470
- */
133471
- RemoveTemplateReplaceProvider.prototype.addPlainElementEntry = function(element, entries, translate, elementTemplates) {
133472
-
133473
- const replaceOption = this.getPlainEntry(element, entries, translate, elementTemplates);
133474
-
133475
- if (!replaceOption) {
133476
- return;
133477
- }
133478
-
133479
- const [
133480
- insertIndex,
133481
- entry
133482
- ] = replaceOption;
133483
-
133484
- // insert remove entry
133485
- entries.splice(insertIndex, 0, [ entry.id, entry ]);
133486
- };
133487
-
133488
- /**
133489
- * Returns the option to replace with plain element and the index where it should be inserted.
133490
- *
133491
- * @param {djs.model.Base} element
133492
- * @param {Array<Object>} entries
133493
- *
133494
- * @returns {Array<Object, number>}
133495
- */
133496
- RemoveTemplateReplaceProvider.prototype.getPlainEntry = function(element, entries, translate, elementTemplates) {
133497
-
133498
- const {
133499
- options,
133500
- option,
133501
- optionIndex
133502
- } = findReplaceOptions(element) || { };
133503
-
133504
- if (!options) {
133505
- return null;
133506
- }
133507
-
133508
- const entry = {
133509
- id: 'replace-remove-element-template',
133510
- action: () => {
133511
- elementTemplates.removeTemplate(element);
133512
- },
133513
- label: translate(option.label),
133514
- className: option.className
133515
- };
133516
-
133517
- // insert after previous option, if it exists
133518
- const previousIndex = getOptionIndex(options, optionIndex - 1, entries);
133519
-
133520
- if (previousIndex) {
133521
- return [
133522
- previousIndex + 1,
133523
- entry
133524
- ];
133525
- }
133526
-
133527
- // insert before next option, if it exists
133528
- const nextIndex = getOptionIndex(options, optionIndex + 1, entries);
133529
-
133530
- if (nextIndex) {
133531
- return [
133532
- nextIndex,
133533
- entry
133534
- ];
133535
- }
133536
-
133537
- // fallback to insert at start
133538
- return [
133539
- 0,
133540
- entry
133541
- ];
133542
- };
133543
-
133544
-
133545
- /**
133546
- * @param {ModdleElement} element
133547
- *
133548
- * @return { { options: Array<any>, option: any, optionIndex: number } | null }
133549
- */
133550
- function findReplaceOptions(element) {
133551
-
133552
- const isSameType = (element, option) => option.target && !isDifferentType(element)(option);
133553
-
133554
- return getReplaceOptionGroups().reduce((result, options) => {
133555
-
133556
- if (result) {
133557
- return result;
133558
- }
133559
-
133560
- const optionIndex = options.findIndex(option => isSameType(element, option));
133561
-
133562
- if (optionIndex === -1) {
133563
- return;
133564
- }
133565
-
133566
- return {
133567
- options,
133568
- option: options[optionIndex],
133569
- optionIndex
133570
- };
133571
- }, null);
133572
- }
133573
-
133574
- function getOptionIndex(options, index, entries) {
133575
- const option = options[index];
133576
-
133577
- if (!option) {
133578
- return false;
133579
- }
133580
-
133581
- return entries.findIndex(
133582
- ([ key ]) => key === option.actionName
133583
- );
133439
+ /**
133440
+ * A replace menu provider that allows to replace elements with
133441
+ * templates applied with the correspondent plain element.
133442
+ */
133443
+ function RemoveTemplateReplaceProvider(popupMenu, translate, elementTemplates) {
133444
+
133445
+ this._popupMenu = popupMenu;
133446
+ this._translate = translate;
133447
+ this._elementTemplates = elementTemplates;
133448
+
133449
+ this.register();
133450
+ }
133451
+
133452
+ RemoveTemplateReplaceProvider.$inject = [
133453
+ 'popupMenu',
133454
+ 'translate',
133455
+ 'elementTemplates'
133456
+ ];
133457
+
133458
+ /**
133459
+ * Register replace menu provider in the popup menu
133460
+ */
133461
+ RemoveTemplateReplaceProvider.prototype.register = function() {
133462
+ this._popupMenu.registerProvider('bpmn-replace', this);
133463
+ };
133464
+
133465
+ /**
133466
+ * Adds the element templates to the replace menu.
133467
+ * @param {djs.model.Base} element
133468
+ *
133469
+ * @returns {Object}
133470
+ */
133471
+ RemoveTemplateReplaceProvider.prototype.getPopupMenuEntries = function(element) {
133472
+
133473
+ return (entries) => {
133474
+
133475
+ // convert our entries into something sortable
133476
+ let entrySet = Object.entries(entries);
133477
+
133478
+ if (this._elementTemplates && this._elementTemplates.get(element)) {
133479
+
133480
+ // add remove template option
133481
+ this.addPlainElementEntry(element, entrySet, this._translate, this._elementTemplates);
133482
+ }
133483
+
133484
+ // convert back to object
133485
+ return entrySet.reduce((entries, [ key, value ]) => {
133486
+ entries[key] = value;
133487
+
133488
+ return entries;
133489
+ }, {});
133490
+ };
133491
+ };
133492
+
133493
+
133494
+ /**
133495
+ * Adds the option to replace with plain element (remove template).
133496
+ *
133497
+ * @param {djs.model.Base} element
133498
+ * @param {Array<Object>} entries
133499
+ */
133500
+ RemoveTemplateReplaceProvider.prototype.addPlainElementEntry = function(element, entries, translate, elementTemplates) {
133501
+
133502
+ const replaceOption = this.getPlainEntry(element, entries, translate, elementTemplates);
133503
+
133504
+ if (!replaceOption) {
133505
+ return;
133506
+ }
133507
+
133508
+ const [
133509
+ insertIndex,
133510
+ entry
133511
+ ] = replaceOption;
133512
+
133513
+ // insert remove entry
133514
+ entries.splice(insertIndex, 0, [ entry.id, entry ]);
133515
+ };
133516
+
133517
+ /**
133518
+ * Returns the option to replace with plain element and the index where it should be inserted.
133519
+ *
133520
+ * @param {djs.model.Base} element
133521
+ * @param {Array<Object>} entries
133522
+ *
133523
+ * @returns {Array<Object, number>}
133524
+ */
133525
+ RemoveTemplateReplaceProvider.prototype.getPlainEntry = function(element, entries, translate, elementTemplates) {
133526
+
133527
+ const {
133528
+ options,
133529
+ option,
133530
+ optionIndex
133531
+ } = findReplaceOptions(element) || { };
133532
+
133533
+ if (!options) {
133534
+ return null;
133535
+ }
133536
+
133537
+ const entry = {
133538
+ id: 'replace-remove-element-template',
133539
+ action: () => {
133540
+ elementTemplates.removeTemplate(element);
133541
+ },
133542
+ label: translate(option.label),
133543
+ className: option.className
133544
+ };
133545
+
133546
+ // insert after previous option, if it exists
133547
+ const previousIndex = getOptionIndex(options, optionIndex - 1, entries);
133548
+
133549
+ if (previousIndex) {
133550
+ return [
133551
+ previousIndex + 1,
133552
+ entry
133553
+ ];
133554
+ }
133555
+
133556
+ // insert before next option, if it exists
133557
+ const nextIndex = getOptionIndex(options, optionIndex + 1, entries);
133558
+
133559
+ if (nextIndex) {
133560
+ return [
133561
+ nextIndex,
133562
+ entry
133563
+ ];
133564
+ }
133565
+
133566
+ // fallback to insert at start
133567
+ return [
133568
+ 0,
133569
+ entry
133570
+ ];
133571
+ };
133572
+
133573
+
133574
+ /**
133575
+ * @param {ModdleElement} element
133576
+ *
133577
+ * @return { { options: Array<any>, option: any, optionIndex: number } | null }
133578
+ */
133579
+ function findReplaceOptions(element) {
133580
+
133581
+ const isSameType = (element, option) => option.target && !isDifferentType(element)(option);
133582
+
133583
+ return getReplaceOptionGroups().reduce((result, options) => {
133584
+
133585
+ if (result) {
133586
+ return result;
133587
+ }
133588
+
133589
+ const optionIndex = options.findIndex(option => isSameType(element, option));
133590
+
133591
+ if (optionIndex === -1) {
133592
+ return;
133593
+ }
133594
+
133595
+ return {
133596
+ options,
133597
+ option: options[optionIndex],
133598
+ optionIndex
133599
+ };
133600
+ }, null);
133601
+ }
133602
+
133603
+ function getOptionIndex(options, index, entries) {
133604
+ const option = options[index];
133605
+
133606
+ if (!option) {
133607
+ return false;
133608
+ }
133609
+
133610
+ return entries.findIndex(
133611
+ ([ key ]) => key === option.actionName
133612
+ );
133584
133613
  }
133585
133614
 
133586
- var RemoveTemplatesModule = {
133587
- __init__: [ 'removeTemplateReplaceProvider' ],
133588
- removeTemplateReplaceProvider: [ 'type', RemoveTemplateReplaceProvider ]
133615
+ var RemoveTemplatesModule = {
133616
+ __init__: [ 'removeTemplateReplaceProvider' ],
133617
+ removeTemplateReplaceProvider: [ 'type', RemoveTemplateReplaceProvider ]
133589
133618
  };
133590
133619
 
133591
133620
  /**