@sentropic/h2a 0.98.7 → 0.98.8
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.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +56 -15
- package/dist/cli.js.map +1 -1
- package/dist/hosts/native-artifacts.d.ts +2 -0
- package/dist/hosts/native-artifacts.d.ts.map +1 -1
- package/dist/hosts/native-artifacts.js +19 -5
- package/dist/hosts/native-artifacts.js.map +1 -1
- package/dist/hosts/native-convergence.d.ts +1 -0
- package/dist/hosts/native-convergence.d.ts.map +1 -1
- package/dist/hosts/native-convergence.js +1 -1
- package/dist/hosts/native-convergence.js.map +1 -1
- package/dist/hosts/native-skills.d.ts +6 -0
- package/dist/hosts/native-skills.d.ts.map +1 -1
- package/dist/hosts/native-skills.js +9 -4
- package/dist/hosts/native-skills.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/identity/live.d.ts.map +1 -1
- package/dist/runtime/identity/live.js +27 -4
- package/dist/runtime/identity/live.js.map +1 -1
- package/dist/runtime/identity/worker.js +21 -2
- package/dist/runtime/identity/worker.js.map +1 -1
- package/dist/runtime/local-files/identity-fence.d.ts +1 -0
- package/dist/runtime/local-files/identity-fence.d.ts.map +1 -1
- package/dist/runtime/local-files/identity-fence.js +14 -3
- package/dist/runtime/local-files/identity-fence.js.map +1 -1
- package/dist/runtime/local-files/locks.d.ts +16 -9
- package/dist/runtime/local-files/locks.d.ts.map +1 -1
- package/dist/runtime/local-files/locks.js +238 -42
- package/dist/runtime/local-files/locks.js.map +1 -1
- package/dist/runtime/local-files/succession-lock.d.ts.map +1 -1
- package/dist/runtime/local-files/succession-lock.js +7 -6
- package/dist/runtime/local-files/succession-lock.js.map +1 -1
- package/dist/runtime/mcp/identity-state.d.ts +2 -0
- package/dist/runtime/mcp/identity-state.d.ts.map +1 -1
- package/dist/runtime/mcp/identity-state.js +39 -1
- package/dist/runtime/mcp/identity-state.js.map +1 -1
- package/dist/runtime/mcp/index.d.ts +11 -1
- package/dist/runtime/mcp/index.d.ts.map +1 -1
- package/dist/runtime/mcp/index.js +10 -0
- package/dist/runtime/mcp/index.js.map +1 -1
- package/dist/runtime/mcp/server.d.ts +23 -1
- package/dist/runtime/mcp/server.d.ts.map +1 -1
- package/dist/runtime/mcp/server.js +18 -2
- package/dist/runtime/mcp/server.js.map +1 -1
- package/dist/runtime/mcp/stdio.d.ts.map +1 -1
- package/dist/runtime/mcp/stdio.js +60 -4
- package/dist/runtime/mcp/stdio.js.map +1 -1
- package/dist/runtime/mcp/tools.d.ts +22 -0
- package/dist/runtime/mcp/tools.d.ts.map +1 -1
- package/dist/runtime/mcp/tools.js.map +1 -1
- package/dist/runtime/mcp/ui-render/a2ui-common-types.d.ts +32 -0
- package/dist/runtime/mcp/ui-render/a2ui-common-types.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/a2ui-common-types.js +374 -0
- package/dist/runtime/mcp/ui-render/a2ui-common-types.js.map +1 -0
- package/dist/runtime/mcp/ui-render/assets.d.ts +104 -0
- package/dist/runtime/mcp/ui-render/assets.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/assets.js +217 -0
- package/dist/runtime/mcp/ui-render/assets.js.map +1 -0
- package/dist/runtime/mcp/ui-render/bpmn-port.d.ts +3 -0
- package/dist/runtime/mcp/ui-render/bpmn-port.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/bpmn-port.js +621 -0
- package/dist/runtime/mcp/ui-render/bpmn-port.js.map +1 -0
- package/dist/runtime/mcp/ui-render/fallback.d.ts +35 -0
- package/dist/runtime/mcp/ui-render/fallback.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/fallback.js +245 -0
- package/dist/runtime/mcp/ui-render/fallback.js.map +1 -0
- package/dist/runtime/mcp/ui-render/index.d.ts +51 -0
- package/dist/runtime/mcp/ui-render/index.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/index.js +38 -0
- package/dist/runtime/mcp/ui-render/index.js.map +1 -0
- package/dist/runtime/mcp/ui-render/inline.d.ts +3 -0
- package/dist/runtime/mcp/ui-render/inline.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/inline.js +21 -0
- package/dist/runtime/mcp/ui-render/inline.js.map +1 -0
- package/dist/runtime/mcp/ui-render/negotiation.d.ts +23 -0
- package/dist/runtime/mcp/ui-render/negotiation.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/negotiation.js +45 -0
- package/dist/runtime/mcp/ui-render/negotiation.js.map +1 -0
- package/dist/runtime/mcp/ui-render/registry-entry.d.ts +74 -0
- package/dist/runtime/mcp/ui-render/registry-entry.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/registry-entry.js +207 -0
- package/dist/runtime/mcp/ui-render/registry-entry.js.map +1 -0
- package/dist/runtime/mcp/ui-render/resources.d.ts +35 -0
- package/dist/runtime/mcp/ui-render/resources.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/resources.js +342 -0
- package/dist/runtime/mcp/ui-render/resources.js.map +1 -0
- package/dist/runtime/mcp/ui-render/tools.d.ts +42 -0
- package/dist/runtime/mcp/ui-render/tools.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/tools.js +367 -0
- package/dist/runtime/mcp/ui-render/tools.js.map +1 -0
- package/dist/runtime/mcp/ui-render/types.d.ts +96 -0
- package/dist/runtime/mcp/ui-render/types.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/types.js +22 -0
- package/dist/runtime/mcp/ui-render/types.js.map +1 -0
- package/dist/runtime/mcp/ui-render/validation.d.ts +151 -0
- package/dist/runtime/mcp/ui-render/validation.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/validation.js +460 -0
- package/dist/runtime/mcp/ui-render/validation.js.map +1 -0
- package/dist/runtime/mcp/ui-render/watermark.d.ts +38 -0
- package/dist/runtime/mcp/ui-render/watermark.d.ts.map +1 -0
- package/dist/runtime/mcp/ui-render/watermark.js +52 -0
- package/dist/runtime/mcp/ui-render/watermark.js.map +1 -0
- package/dist/runtime/mcp-central.d.ts.map +1 -1
- package/dist/runtime/mcp-central.js +55 -6
- package/dist/runtime/mcp-central.js.map +1 -1
- package/fixtures/ui-render-ac-l3/offline-measurement.v1.json +105 -0
- package/package.json +7 -4
- package/vendor/design-system-elements/catalog.json +1234 -0
- package/vendor/design-system-elements/dist/browser/assets/bpmn-CZlEAdL6.ttf +0 -0
- package/vendor/design-system-elements/dist/browser/assets/bpmn-DaGVGZ7K.woff +0 -0
- package/vendor/design-system-elements/dist/browser/assets/bpmn-DaJ2be00.woff2 +0 -0
- package/vendor/design-system-elements/dist/browser/chunks/BpmnRenderUtil-WMCgqGDs.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/BpmnUpdater-C-UNbzXl.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/LabelUtil-7QpE43Ed.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/LayoutUtil-hAMJmJFU.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/ModelUtil-CMh7LuN4.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/Modeler-BfAmwsmK.js +389 -0
- package/vendor/design-system-elements/dist/browser/chunks/Viewer-eYLzc3fD.js +4 -0
- package/vendor/design-system-elements/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +2207 -0
- package/vendor/design-system-elements/dist/browser/chunks/colored-CSIQaGsQ.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/dist-Co2MgHWm.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/dist-O6_2ByYB.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/dist-kvAYI1vo.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/entropic-CM5BHERN.js +2173 -0
- package/vendor/design-system-elements/dist/browser/chunks/focus-renderer-C4z8aS9F.js +8 -0
- package/vendor/design-system-elements/dist/browser/chunks/forge-B8hrW4lA.js +2173 -0
- package/vendor/design-system-elements/dist/browser/chunks/layout-q0TR9-aY.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/legend-CXdfCBh6.js +1 -0
- package/vendor/design-system-elements/dist/browser/chunks/textMetrics-BrMS6-sA.js +2 -0
- package/vendor/design-system-elements/dist/browser/chunks/tokens-DFPpCvf1.js +1 -0
- package/vendor/design-system-elements/dist/browser/elements.js +2221 -0
- package/vendor/design-system-elements/dist/browser/sri.json +166 -0
- package/vendor/design-system-elements/envelope.json +43 -0
- package/vendor/design-system-elements/manifest.json +101 -0
- package/vendor/design-system-elements/schemas/BarChart.v1.json +556 -0
- package/vendor/design-system-elements/schemas/BpmnCanvas.v1.json +139 -0
- package/vendor/design-system-elements/schemas/DecisionDossier.v1.json +635 -0
- package/vendor/ui-render-inline/BarChart.js +1 -0
- package/vendor/ui-render-inline/BpmnCanvas.js +1 -0
- package/vendor/ui-render-inline/DecisionDossier.js +1 -0
- package/vendor/ui-render-inline/manifest.json +80 -0
- package/vendor/ui-render-inline/render.js +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r0=Object.freeze,i0=Object.defineProperty;var Tn=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ci=(t,e)=>{for(var n in e)i0(t,n,{get:e[n],enumerable:!0})};var ne=(t,e)=>r0(i0(t,"raw",{value:r0(e||t.slice())}));function sp(t){return Array.prototype.concat.apply([],t)}function ei(t){return t===void 0}function on(t){return t!==void 0}function Ri(t){return t==null}function Ct(t){return wc.call(t)==="[object Array]"}function We(t){return wc.call(t)==="[object Object]"}function Mt(t){return wc.call(t)==="[object Number]"}function Ke(t){let e=wc.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"||e==="[object Proxy]"}function Dn(t){return wc.call(t)==="[object String]"}function qS(t){if(!Ct(t))throw Error("must supply array")}function Pn(t,e){return!Ri(t)&&VS.call(t,e)}function ve(t,e){let n=lp(e),o;return A(t,function(r,i){if(n(r,i))return o=r,!1}),o}function cp(t,e){let n=lp(e),o=Ct(t)?-1:void 0;return A(t,function(r,i){if(n(r,i))return o=i,!1}),o}function Ft(t,e){let n=lp(e),o=[];return A(t,function(r,i){n(r,i)&&o.push(r)}),o}function A(t,e){let n,o;if(ei(t))return;let r=Ct(t)?YS:KS;for(let i in t)if(Pn(t,i)&&(n=t[i],o=e(n,r(i)),o===!1))return n}function a0(t,e){if(ei(t))return[];qS(t);let n=lp(e);return t.filter(function(o,r){return!n(o,r)})}function Zn(t,e,n){return A(t,function(o,r){n=e(n,o,r)}),n}function Ar(t,e){return!!Zn(t,function(n,o,r){return n&&e(o,r)},!0)}function yr(t,e){return!!ve(t,e)}function hn(t,e){let n=[];return A(t,function(o,r){n.push(e(o,r))}),n}function _c(t){return t&&Object.keys(t)||[]}function s0(t){return _c(t).length}function ka(t){return hn(t,e=>e)}function Bi(t,e,n={}){return e=am(e),A(t,function(o){let r=e(o)||"_",i=n[r];i||=n[r]=[],i.push(o)}),n}function im(t,...e){t=am(t);let n={};return A(e,o=>Bi(o,t,n)),hn(n,function(o,r){return o[0]})}function Uo(t,e){e=am(e);let n=[];return A(t,function(o,r){let i=e(o,r),a={d:i,v:o};for(var s=0;s<n.length;s++){let{d:c}=n[s];if(i<c){n.splice(s,0,a);return}}n.push(a)}),hn(n,o=>o.v)}function Ai(t){return function(e){return Ar(t,function(n,o){return e[o]===n})}}function am(t){return Ke(t)?t:e=>e[t]}function lp(t){return Ke(t)?t:e=>e===t}function KS(t){return t}function YS(t){return Number(t)}function cs(t,e){let n,o,r,i;function a(d){let u=Date.now(),m=d?0:i+e-u;if(m>0)return s(m);t.apply(r,o),c()}function s(d){n=setTimeout(a,d)}function c(){n&&clearTimeout(n),n=i=o=r=void 0}function l(){n&&a(!0),c()}function p(...d){i=Date.now(),o=d,r=this,n||s(e)}return p.flush=l,p.cancel=c,p}function jn(t,e){return t.bind(e)}function j(t,...e){return Object.assign(t,...e)}function l0(t,e,n){let o=t;return A(e,function(r,i){if(typeof r!="number"&&typeof r!="string")throw Error("illegal key type: "+typeof r+". Key should be of type number or string.");if(r==="constructor")throw Error("illegal key: constructor");if(r==="__proto__")throw Error("illegal key: __proto__");let a=e[i+1],s=o[r];on(a)&&Ri(s)&&(s=o[r]=isNaN(+a)?{}:[]),ei(a)?ei(n)?delete o[r]:o[r]=n:o=s}),t}function po(t,e){let n={},o=Object(t);return A(e,function(r){r in o&&(n[r]=t[r])}),n}function Vo(t,e){let n={};return A(Object(t),function(o,r){e.indexOf(r)===-1&&(n[r]=o)}),n}var wc,VS,c0,Mr=Tn(()=>{"use strict";wc=Object.prototype.toString,VS=Object.prototype.hasOwnProperty;c0=im});function y(t,e){var n=et(t);return n&&typeof n.$instanceOf=="function"&&n.$instanceOf(e)}function Ht(t,e){return yr(e,function(n){return y(t,n)})}function et(t){return t&&t.businessObject||t}function jt(t){return t&&t.di}var ni=Tn(()=>{"use strict";Mr()});function he(t){return We(t)&&Pn(t,"waypoints")}function Lt(t){return We(t)&&Pn(t,"labelTarget")}function p0(t){return We(t)&&Ri(t.parent)}function br(t){return y(t,"bpmn:Event")||y(t,"bpmn:Gateway")||y(t,"bpmn:DataStoreReference")||y(t,"bpmn:DataObjectReference")||y(t,"bpmn:DataInput")||y(t,"bpmn:DataOutput")||y(t,"bpmn:SequenceFlow")||y(t,"bpmn:MessageFlow")||y(t,"bpmn:Group")}function Ec(t){return Lt(t.label)}function XS(t){var e=t.length/2-1,n=t[Math.floor(e)],o=t[Math.ceil(e+.01)],r=ZS(t),i=Math.atan((o.y-n.y)/(o.x-n.x)),a=r.x,s=r.y;return Math.abs(i)<Math.PI/2?s-=15:a+=15,{x:a,y:s}}function ZS(t){var e=t.length/2-1,n=t[Math.floor(e)],o=t[Math.ceil(e+.01)];return{x:n.x+(o.x-n.x)/2,y:n.y+(o.y-n.y)/2}}function ls(t){return t.waypoints?XS(t.waypoints):y(t,"bpmn:Group")?{x:t.x+t.width/2,y:t.y+oi.height/2}:{x:t.x+t.width/2,y:t.y+t.height+oi.height/2}}function d0(t,e){var n,o,r,i=t.label;return i&&i.bounds?(r=i.bounds,o={width:Math.max(oi.width,r.width),height:r.height},n={x:r.x+r.width/2,y:r.y+r.height/2}):(n=ls(e),o=oi),j({x:n.x-o.width/2,y:n.y-o.height/2},o)}function u0(t){if(y(t,"bpmn:FlowElement")||y(t,"bpmn:Participant")||y(t,"bpmn:Lane")||y(t,"bpmn:SequenceFlow")||y(t,"bpmn:MessageFlow")||y(t,"bpmn:DataInput")||y(t,"bpmn:DataOutput"))return"name";if(y(t,"bpmn:TextAnnotation"))return"text";if(y(t,"bpmn:Group"))return"categoryValueRef"}function JS(t){var e=t.categoryValueRef;return e&&e.value||""}function Jn(t){var e=t.businessObject,n=u0(e);if(n)return n==="categoryValueRef"?JS(e):e[n]||""}function m0(t,e){var n=t.businessObject,o=u0(n);if(o)if(o==="categoryValueRef"){if(!n[o])return t;n[o].value=e}else n[o]=e;return t}function h0(t){return Lt(t)&&br(t.labelTarget)}var oi,ps=Tn(()=>{"use strict";Mr();ni();oi={width:90,height:20}});function ds(t,e){return!t||!e?-1:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function up(t,e,n,o){if(o===void 0&&(o=5),!t||!e||!n)return!1;var r=(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x),i=ds(t,e);return Math.abs(r/i)<=o}function jr(t,e){var n=Array.from(arguments).flat();for(let[o,r]of Object.entries({x:"v",y:"h"}))if(t3(o,n))return r;return!1}function t3(t,e){let n=e[0];return Ar(e,function(o){return Math.abs(n[t]-o[t])<=QS})}function cm(t,e,n){return n||=0,t.x>e.x-n&&t.y>e.y-n&&t.x<e.x+e.width+n&&t.y<e.y+e.height+n}function mp(t,e){return{x:Math.round(t.x+(e.x-t.x)/2),y:Math.round(t.y+(e.y-t.y)/2)}}function i3(t){if(!t)return null;var e={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},n=[];return String(t).replace(n3,function(o,r,i){var a=[],s=r.toLowerCase();for(i.replace(s=="a"?r3:o3,function(){for(var c=1;c<arguments.length-2;c++)arguments[c]&&a.push(+arguments[c])}),s=="m"&&a.length>2&&(n.push([r,...a.splice(0,2)]),s="l",r=r=="m"?"l":"L");a.length>=e[s]&&(n.push([r,...a.splice(0,e[s])]),e[s]););}),n.toString=lm,n}function a3(t){for(var e=0,n=t.length;e<n;e++){var o=t[e][0];if(typeof o=="string"&&o!==o.toUpperCase())return!1}return!0}function s3(t){for(var e=0,n=t.length;e<n;e++){var o=t[e][0];if(o!=="M"&&o!=="C")return!1}return!0}function c3(t,e,n,o){return arguments.length===1&&(e=t.y,n=t.width,o=t.height,t=t.x),{x:t,y:e,width:n,height:o,x2:t+n,y2:e+o}}function lm(){return this.join(",").replace(e3,"$1")}function l3(t){for(var e=Array(t.length),n=0,o=t.length;n<o;n++)for(var r=t[n],i=e[n]=Array(r.length),a=0,s=r.length;a<s;a++)i[a]=r[a];return e.toString=lm,e}function b0(t,e,n,o,r,i,a,s,c){var l=1-c,p=g0(l,3),d=g0(l,2),u=c*c*c,m=p*t+d*3*c*n+l*3*c*c*r+u*a,h=p*e+d*3*c*o+l*3*c*c*i+u*s;return{x:dp(m),y:dp(h)}}function sm(t){var e=h3(...t);return c3(e.x0,e.y0,e.x1-e.x0,e.y1-e.y0)}function Di(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function S0(t,e){return Di(e,t.x,t.y)||Di(e,t.x2,t.y)||Di(e,t.x,t.y2)||Di(e,t.x2,t.y2)||Di(t,e.x,e.y)||Di(t,e.x2,e.y)||Di(t,e.x,e.y2)||Di(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function v0(t,e,n,o,r){return t*(t*(-3*e+9*n-9*o+3*r)+6*e-12*n+6*o)-3*e+3*n}function x0(t,e,n,o,r,i,a,s,c){c??=1,c=c>1?1:c<0?0:c;for(var l=c/2,p=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],m=0,h=0;h<p;h++){var f=l*d[h]+l,g=v0(f,t,n,r,a),v=v0(f,e,o,i,s),k=g*g+v*v;m+=u[h]*vn.sqrt(k)}return l*m}function p3(t,e,n,o,r,i,a,s){if(!(Pr(t,n)<Dr(r,a)||Dr(t,n)>Pr(r,a)||Pr(e,o)<Dr(i,s)||Dr(e,o)>Pr(i,s))){var c=(t*o-e*n)*(r-a)-(t-n)*(r*s-i*a),l=(t*o-e*n)*(i-s)-(e-o)*(r*s-i*a),p=(t-n)*(i-s)-(e-o)*(r-a);if(p){var d=dp(c/p),u=dp(l/p),m=+d.toFixed(2),h=+u.toFixed(2);if(!(m<+Dr(t,n).toFixed(2)||m>+Pr(t,n).toFixed(2)||m<+Dr(r,a).toFixed(2)||m>+Pr(r,a).toFixed(2)||h<+Dr(e,o).toFixed(2)||h>+Pr(e,o).toFixed(2)||h<+Dr(i,s).toFixed(2)||h>+Pr(i,s).toFixed(2)))return{x:d,y:u}}}}function dp(t){return Math.round(t*1e11)/1e11}function d3(t,e,n,o,r){if(o||=sm(t),r||=sm(e),!S0(o,r))return n?0:[];for(var i=x0(...t),a=x0(...e),s=w0(t)?1:~~(i/5)||1,c=w0(e)?1:~~(a/5)||1,l=Array(s+1),p=Array(c+1),d={},u=n?0:[],m=0,h;m<s+1;m++){var f=m/s,g=b0(...t,f);l[m]={x:g.x,y:g.y,t:f}}for(m=0;m<c+1;m++)f=m/c,g=b0(...e,f),p[m]={x:g.x,y:g.y,t:f};for(m=0;m<s;m++)for(h=0;h<c;h++){var v=l[m],k=l[m+1],_=p[h],w=p[h+1],T=Pi(k.x-v.x)<.01?"y":"x",C=Pi(w.x-_.x)<.01?"y":"x",B=p3(v.x,v.y,k.x,k.y,_.x,_.y,w.x,w.y),D;if(B){if(D=B.x.toFixed(9)+"#"+B.y.toFixed(9),d[D])continue;d[D]=!0;var M=v.t+Pi((B[T]-v[T])/(k[T]-v[T]))*(k.t-v.t),N=_.t+Pi((B[C]-_[C])/(w[C]-_[C]))*(w.t-_.t);M>=0&&M<=1&&N>=0&&N<=1&&(n?u++:u.push({x:B.x,y:B.y,t1:M,t2:N}))}}return u}function pm(t,e,n){for(var o=k0(E0(t)),r=k0(E0(e)),i=n?0:[],a=0,s=o.length;a<s;a++)for(var c=o[a],l=0,p=r.length;l<p;l++){var d=r[l];if(S0(c.bbox,d.bbox)){var u=d3(c.bez,d.bez,n,c.bbox,d.bbox);if(n)i+=u;else for(var m=0,h=u.length;m<h;m++)u[m].segment1=c.segment,u[m].segment2=d.segment,u[m].bez1=c.bez,u[m].bez2=d.bez,i.push(u[m])}}return i}function k0(t){for(var e=[],n=0,o=0,r=0,i=0,a=0,s=t.length;a<s;a++){var c=t[a],l;c[0]=="M"?(n=r=c[1],o=i=c[2]):(c[0]=="C"?(l=[n,o,c[1],c[2],c[3],c[4],c[5],c[6]],n=c[5],o=c[6]):(l=[n,o,n,o,r,i,r,i],n=r,o=i),e.push({bez:l,bbox:sm(l),segment:a}))}return e}function u3(t){return y0(t)&&y0(t[0])}function m3(t){if(a3(t))return t;var e=Array(t.length),n=0,o=0,r=0,i=0,a=0,s;t[0][0]=="M"&&(n=+t[0][1],o=+t[0][2],r=n,i=o,a++,e[0]=["M",n,o]);for(var c,l,p=a,d=t.length;p<d;p++){if(l=t[p],s=l[0],e[p]=c=Array(l.length),s!=s.toUpperCase())switch(c[0]=s.toUpperCase(),c[0]){case"A":c[1]=l[1],c[2]=l[2],c[3]=l[3],c[4]=l[4],c[5]=l[5],c[6]=+l[6]+n,c[7]=+l[7]+o;break;case"V":c[1]=+l[1]+o;break;case"H":c[1]=+l[1]+n;break;case"M":r=+l[1]+n,i=+l[2]+o;default:for(var u=1,m=l.length;u<m;u++)c[u]=+l[u]+(u%2?n:o)}else for(var h=0,f=l.length;h<f;h++)c[h]=l[h];switch(s=s.toUpperCase(),c[0]){case"Z":n=+r,o=+i;break;case"H":n=c[1];break;case"V":o=c[1];break;case"M":r=c[c.length-2],i=c[c.length-1];default:n=c[c.length-2],o=c[c.length-1]}}return e.toString=lm,e}function w0(t){return t[0]===t[2]&&t[1]===t[3]&&t[4]===t[6]&&t[5]===t[7]}function pp(t,e,n,o){return[t,e,n,o,n,o]}function _0(t,e,n,o,r,i){var a=.3333333333333333,s=2/3;return[a*t+s*n,a*e+s*o,a*r+s*n,a*i+s*o,r,i]}function T0(t,e,n,o,r,i,a,s,c,l){var p=Mi*120/180,d=Mi/180*(+r||0),u=[],m,h=vn.cos(d),f=vn.sin(d),g=function(b,L){return{x:b*h-L*f,y:b*f+L*h}};if(l)M=l[0],N=l[1],B=l[2],D=l[3];else{m=g(t,-e),t=m.x,e=-m.y,m=g(s,-c),s=m.x,c=-m.y;var v=(t-s)/2,k=(e-c)/2,_=v*v/(n*n)+k*k/(o*o);_>1&&(_=vn.sqrt(_),n=_*n,o=_*o);var w=n*n,T=o*o,C=(i==a?-1:1)*vn.sqrt(Pi((w*T-w*k*k-T*v*v)/(w*k*k+T*v*v))),B=C*n*k/o+(t+s)/2,D=C*-o*v/n+(e+c)/2,M=vn.asin(((e-D)/o).toFixed(9)),N=vn.asin(((c-D)/o).toFixed(9));M=t<B?Mi-M:M,N=s<B?Mi-N:N,M<0&&(M=Mi*2+M),N<0&&(N=Mi*2+N),a&&M>N&&(M-=Mi*2),!a&&N>M&&(N-=Mi*2)}var z=N-M;if(Pi(z)>p){var V=N,gt=s,ht=c;N=M+p*(a&&N>M?1:-1),s=B+n*vn.cos(N),c=D+o*vn.sin(N),u=T0(s,c,n,o,r,0,a,gt,ht,[N,V,B,D])}z=N-M;var Rt=vn.cos(M),Pe=vn.sin(M),Pt=vn.cos(N),Et=vn.sin(N),St=vn.tan(z/4),pt=4/3*n*St,Ot=4/3*o*St,U=[t,e],G=[t+pt*Pe,e-Ot*Rt],nt=[s+pt*Et,c-Ot*Pt],Yt=[s,c];if(G[0]=2*U[0]-G[0],G[1]=2*U[1]-G[1],l)return[G,nt,Yt].concat(u);u=[G,nt,Yt].concat(u).join().split(",");for(var fe=[],R=0,x=u.length;R<x;R++)fe[R]=R%2?g(u[R-1],u[R]).y:g(u[R],u[R+1]).x;return fe}function h3(t,e,n,o,r,i,a,s){for(var c=[],l=[[],[]],p,d,u,m,h,f,g,v,k=0;k<2;++k)if(k==0?(d=6*t-12*n+6*r,p=-3*t+9*n-9*r+3*a,u=3*n-3*t):(d=6*e-12*o+6*i,p=-3*e+9*o-9*i+3*s,u=3*o-3*e),Pi(p)<1e-12){if(Pi(d)<1e-12)continue;m=-u/d,0<m&&m<1&&c.push(m)}else g=d*d-4*u*p,v=vn.sqrt(g),!(g<0)&&(h=(-d+v)/(2*p),0<h&&h<1&&c.push(h),f=(-d-v)/(2*p),0<f&&f<1&&c.push(f));for(var _=c.length,w=_,T;_--;)m=c[_],T=1-m,l[0][_]=T*T*T*t+3*T*T*m*n+3*T*m*m*r+m*m*m*a,l[1][_]=T*T*T*e+3*T*T*m*o+3*T*m*m*i+m*m*m*s;return l[0][w]=t,l[1][w]=e,l[0][w+1]=a,l[1][w+1]=s,l[0].length=l[1].length=w+2,{x0:Dr(...l[0]),y0:Dr(...l[1]),x1:Pr(...l[0]),y1:Pr(...l[1])}}function E0(t){if(u3(t)||(t=i3(t)),s3(t))return t;for(var e=l3(m3(t)),n={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=function(u,m,h){var f,g;if(!u)return["C",m.x,m.y,m.x,m.y,m.x,m.y];switch(!(u[0]in{T:1,Q:1})&&(m.qx=m.qy=null),u[0]){case"M":m.X=u[1],m.Y=u[2];break;case"A":u=["C",...T0(m.x,m.y,...u.slice(1))];break;case"S":h=="C"||h=="S"?(f=m.x*2-m.bx,g=m.y*2-m.by):(f=m.x,g=m.y),u=["C",f,g,...u.slice(1)];break;case"T":h=="Q"||h=="T"?(m.qx=m.x*2-m.qx,m.qy=m.y*2-m.qy):(m.qx=m.x,m.qy=m.y),u=["C",..._0(m.x,m.y,m.qx,m.qy,u[1],u[2])];break;case"Q":m.qx=u[1],m.qy=u[2],u=["C",..._0(m.x,m.y,u[1],u[2],u[3],u[4])];break;case"L":u=["C",...pp(m.x,m.y,u[1],u[2])];break;case"H":u=["C",...pp(m.x,m.y,u[1],m.y)];break;case"V":u=["C",...pp(m.x,m.y,m.x,u[1])];break;case"Z":u=["C",...pp(m.x,m.y,m.X,m.Y)]}return u},r=function(u,m){if(u[m].length>7){u[m].shift();for(var h=u[m];h.length;)i[m]="A",u.splice(m++,0,["C",...h.splice(0,6)]);u.splice(m,1),l=e.length}},i=[],a="",s="",c=0,l=e.length;c<l;c++){e[c]&&(a=e[c][0]),a!="C"&&(i[c]=a,c&&(s=i[c-1])),e[c]=o(e[c],n,s),i[c]!="A"&&a=="C"&&(i[c]="C"),r(e,c);var p=e[c],d=p.length;n.x=p[d-2],n.y=p[d-1],n.bx=f0(p[d-4])||n.x,n.by=f0(p[d-3])||n.y}return e}function dm(t){return{x:Math.round(t.x),y:Math.round(t.y),width:Math.round(t.width),height:Math.round(t.height)}}function ri(t){return{x:Math.round(t.x),y:Math.round(t.y)}}function _t(t){return{top:t.y,right:t.x+(t.width||0),bottom:t.y+(t.height||0),left:t.x}}function us(t){return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}function f3(t){return ri({x:t.x+(t.width||0)/2,y:t.y+(t.height||0)/2})}function g3(t){for(var e=t.waypoints,n=e.reduce(function(s,c,l){var p=e[l-1];if(p){var d=s[s.length-1],u=d&&d.endLength||0,m=b3(p,c);s.push({start:p,end:c,startLength:u,endLength:u+m,length:m})}return s},[]),o=n.reduce(function(s,c){return s+c.length},0)/2,r=0,i=n[r];i.endLength<o;)i=n[++r];var a=(o-i.startLength)/i.length;return{x:i.start.x+(i.end.x-i.start.x)*a,y:i.start.y+(i.end.y-i.start.y)*a}}function Tt(t){return he(t)?g3(t):f3(t)}function Cn(t,e,n){n||=0,We(n)||(n={x:n,y:n});var o=_t(t),r=_t(e),i=o.bottom+n.y<=r.top,a=o.left-n.x>=r.right,s=o.top-n.y>=r.bottom,c=o.right+n.x<=r.left,l=i?"top":s?"bottom":null,p=c?"left":a?"right":null;return p&&l?l+"-"+p:p||l||"intersect"}function ms(t,e,n){var o=y3(t,e);return o.length===1||o.length===2&&ds(o[0],o[1])<1?ri(o[0]):o.length>1?(o=Uo(o,function(r){var i=Math.floor(r.t2*100)||1;return i=100-i,i=(i<10?"0":"")+i,r.segment2+"#"+i}),ri(o[n?0:o.length-1])):null}function y3(t,e){return pm(t,e)}function C0(t){t=t.slice();for(var e=0,n,o,r;t[e];)n=t[e],o=t[e-1],r=t[e+1],ds(n,r)===0||up(o,r,n)?t.splice(e,1):e++;return t}function b3(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}var QS,e3,f0,vn,Mi,Dr,Pr,g0,Pi,n3,o3,Sc,wa,r3,y0,hp=Tn(()=>{"use strict";Mr();ps();QS=2;e3=/,?([a-z]),?/gi,f0=parseFloat,vn=Math,Mi=vn.PI,Dr=vn.min,Pr=vn.max,g0=vn.pow,Pi=vn.abs,n3=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,o3=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi,Sc="-?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][-+]?\\d+)?",wa="[\\s]*,?[\\s]*",r3=RegExp("(?=("+Sc+"))\\1"+wa+"(?=("+Sc+"))\\2"+wa+"(?=("+Sc+"))\\3"+wa+"([01])"+wa+"([01])"+wa+"(?=("+Sc+"))\\6"+wa+"(?=("+Sc+"))\\7"+wa,"g"),y0=Array.isArray||function(t){return t instanceof Array}});function ko(t,e){var n=this;e||=1e3,t.on(["render.shape","render.connection"],e,function(o,r){var i=o.type,a=r.element,s=r.gfx,c=r.attrs;if(n.canRender(a))return i==="render.shape"?n.drawShape(s,a,c):n.drawConnection(s,a,c)}),t.on(["render.getShapePath","render.getConnectionPath"],e,function(o,r){if(n.canRender(r))return o.type==="render.getShapePath"?n.getShapePath(r):n.getConnectionPath(r)})}function v3(t,e){if(t.ownerDocument!==e.ownerDocument)try{return e.ownerDocument.importNode(t,!0)}catch{}return t}function M0(t,e){return e.appendChild(v3(t,e))}function dt(t,e){return M0(e,t),t}function x3(t,e){return D0[e]?t.style[e]:t.getAttributeNS(null,e)}function P0(t,e,n){var o=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=D0[o];r?(r===hm&&typeof n=="number"&&(n=String(n)+"px"),t.style[o]=n):t.setAttributeNS(null,e,n)}function k3(t,e){for(var n=Object.keys(e),o=0,r;r=n[o];o++)P0(t,r,e[r])}function Z(t,e,n){if(typeof e=="string")if(n!==void 0)P0(t,e,n);else return x3(t,e);else k3(t,e);return t}function kt(t){return new ji(t)}function ji(t){if(!t||!t.nodeType)throw Error("A DOM element reference is required");this.el=t,this.list=t.classList}function hs(t){for(var e;e=t.firstChild;)t.removeChild(e);return t}function gm(t){return t.cloneNode(!0)}function j0(t){var e=!1;t.substring(0,4)==="<svg"?t.indexOf(ym.svg)===-1&&(t=R0+t.substring(4)):(t=R0+">"+t+"</svg>",e=!0);var n=_3(t);if(!e)return n;for(var o=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)o.appendChild(r.firstChild);return o}function _3(t){var e=new DOMParser;return e.async=!1,e.parseFromString(t,"text/xml")}function at(t,e){var n;return t=t.trim(),t.charAt(0)==="<"?(n=j0(t).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(ym.svg,t),e&&Z(n,e),n}function fm(){return um===null&&(um=at("svg")),um}function B0(t,e){var n,o,r=Object.keys(e);for(n=0;o=r[n];n++)t[o]=e[o];return t}function $0(t,e,n,o,r,i){var a=fm().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return B0(a,t);case 6:return B0(a,{a:t,b:e,c:n,d:o,e:r,f:i})}}function fs(t){return t?fm().createSVGTransformFromMatrix(t):fm().createSVGTransform()}function mm(t,e){function n(o,r){return S3[r]||r}return t.replace(e,n)}function O0(t,e){var n,o,r,i,a;switch(t.nodeType){case 3:e.push(mm(t.textContent,A0));break;case 1:if(e.push("<",t.tagName),t.hasAttributes())for(r=t.attributes,n=0,o=r.length;n<o;++n)i=r.item(n),e.push(" ",i.name,'="',mm(i.value,E3),'"');if(t.hasChildNodes()){for(e.push(">"),a=t.childNodes,n=0,o=a.length;n<o;++n)O0(a.item(n),e);e.push("</",t.tagName,">")}else e.push("/>");break;case 8:e.push("<!--",mm(t.nodeValue,A0),"-->");break;case 4:e.push("<![CDATA[",t.nodeValue,"]]>");break;default:throw Error("unable to handle node "+t.nodeType)}return e}function T3(t,e){var n=j0(e);if(hs(t),e){R3(n)||(n=n.documentElement);for(var o=B3(n.childNodes),r=0;r<o.length;r++)M0(o[r],t)}}function C3(t){for(var e=t.firstChild,n=[];e;)O0(e,n),e=e.nextSibling;return n.join("")}function R3(t){return t.nodeName==="#document-fragment"}function bm(t,e){if(e!==void 0){try{T3(t,e)}catch(n){throw Error("error parsing SVG: "+n.message)}return t}return C3(t)}function B3(t){return Array.prototype.slice.call(t)}function z0(t,e){return t.querySelector(e)}function gs(t,e){var n=t.querySelectorAll(e);return[].map.call(n,function(o){return o})}function rn(t){var e=t.parentNode;return e&&e.removeChild(t),t}function A3(t,e){return e instanceof SVGMatrix?t.createSVGTransformFromMatrix(e):e}function M3(t,e){var n,o;for(t.clear(),n=0;o=e[n];n++)t.appendItem(A3(t,o))}function ys(t,e){var n=t.transform.baseVal;return e&&(Array.isArray(e)||(e=[e]),M3(n,e)),n.consolidate()}var hm,D0,w3,ym,R0,um,A0,E3,S3,bs=Tn(()=>{"use strict";ko.prototype.canRender=function(t){},ko.prototype.drawShape=function(t,e){},ko.prototype.drawConnection=function(t,e){},ko.prototype.getShapePath=function(t){},ko.prototype.getConnectionPath=function(t){};hm=2,D0={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":hm,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":hm,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};w3=Object.prototype.toString;ji.prototype.add=function(t){return this.list.add(t),this},ji.prototype.remove=function(t){return w3.call(t)=="[object RegExp]"?this.removeMatching(t):(this.list.remove(t),this)},ji.prototype.removeMatching=function(t){let e=this.array();for(let n=0;n<e.length;n++)t.test(e[n])&&this.remove(e[n]);return this},ji.prototype.toggle=function(t,e){return(e===void 0||e!==this.list.toggle(t,e))&&this.list.toggle(t),this},ji.prototype.array=function(){return Array.from(this.list)},ji.prototype.has=ji.prototype.contains=function(t){return this.list.contains(t)};ym={svg:"http://www.w3.org/2000/svg"},R0='<svg xmlns="'+ym.svg+'"';um=null;A0=/([&<>]{1})/g,E3=/([&<>\n\r"]{1})/g,S3={"&":"&","<":"<",">":">",'"':"'"}});function ft(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}function Ne(t,e){if(!t||!e)return-1;var n=t.indexOf(e);return n!==-1&&t.splice(n,1),n}function Ge(t,e,n){if(t&&e){typeof n!="number"&&(n=-1);var o=t.indexOf(e);if(o!==-1){if(o===n)return;if(n!==-1)t.splice(o,1);else return}n===-1?t.push(e):t.splice(n,0,e)}}function gp(t,e){return!t||!e?-1:t.indexOf(e)}function Ut(t,e){return y(t,"bpmn:CallActivity")?!1:y(t,"bpmn:SubProcess")?(e||=jt(t),e&&y(e,"bpmndi:BPMNPlane")?!0:e&&!!e.isExpanded):!y(t,"bpmn:Participant")||!!et(t).processRef}function Ye(t){if(y(t,"bpmn:Participant")||y(t,"bpmn:Lane")){var e=jt(t).isHorizontal;return e===void 0||e}}function L0(t){return t&&et(t).isInterrupting!==!1}function Rn(t){return t&&!!et(t).triggeredByEvent}function _a(t,e){var n=et(t).eventDefinitions;return yr(n,function(o){return y(o,e)})}function N0(t){return _a(t,"bpmn:ErrorEventDefinition")}function I0(t){return _a(t,"bpmn:EscalationEventDefinition")}function H0(t){return _a(t,"bpmn:CompensateEventDefinition")}function km(t){var e=t.id;return D3(e)}function qo(t){var e=t.id;return y(t,"bpmn:SubProcess")?W0(e):e}function $i(t){return W0(t)}function vs(t){var e=jt(t);return y(e,"bpmndi:BPMNPlane")}function W0(t){return t+F0}function D3(t){return t.replace(RegExp(F0+"$"),"")}function J(t){this._eventBus=t}function j3(t,e){return function(n){return t.call(e||null,n.context,n.command,n)}}function ii(t){return function(e,n,o,r,i){(Ke(e)||Mt(e))&&(i=r,r=o,o=n,n=e,e=null),this.on(e,t,n,o,r,i)}}function Oi(t){return t.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function $3(t){return["M",t.x,t.y]}function vm(t){return["L",t.x,t.y]}function O3(t,e,n){return["C",t.x,t.y,e.x,e.y,n.x,n.y]}function z3(t,e){let n=t.length,o=[$3(t[0])];for(let r=1;r<n;r++){let i=t[r-1],a=t[r],s=t[r+1];if(!s||!e){o.push(vm(a));continue}let c=Math.min(e,xm(a.x-i.x,a.y-i.y),xm(s.x-a.x,s.y-a.y));if(!c){o.push(vm(a));continue}let l=fp(a,i,c),p=fp(a,i,c*.5),d=fp(a,s,c),u=fp(a,s,c*.5);o.push(vm(l)),o.push(O3(p,u,d))}return o}function fp(t,e,n){let o=e.x-t.x,r=e.y-t.y,i=n/xm(o,r);return{x:t.x+o*i,y:t.y+r*i}}function xm(t,e){return Math.sqrt(t**2+e**2)}function Ea(t,e,n){Mt(e)&&(n=e,e=null),e||={};let o=at("path",e);return Mt(n)&&(o.dataset.cornerRadius=String(n)),Tc(o,t)}function Tc(t,e){let n=parseInt(t.dataset.cornerRadius,10)||0;return Z(t,{d:Oi(z3(e,n))}),t}function vr(t,e){return yr(t.eventDefinitions,function(n){return n.$type===e})}function G0(t){return t.$type==="bpmn:IntermediateThrowEvent"||t.$type==="bpmn:EndEvent"}function U0(t){var e=t.dataObjectRef;return t.isCollection||e&&e.isCollection}function Wt(t,e,n){var o=jt(t);return n||o.get("color:background-color")||o.get("bioc:fill")||e||"white"}function ut(t,e,n){var o=jt(t);return n||o.get("color:border-color")||o.get("bioc:stroke")||e||"hsl(225, 10%, 15%)"}function $r(t,e,n,o){var r=jt(t).get("label");return o||r&&r.get("color:color")||e||ut(t,n)}function yp(t){var e=t.x+t.width/2,n=t.y+t.height/2,o=t.width/2;return Oi([["M",e,n],["m",0,-o],["a",o,o,0,1,1,0,2*o],["a",o,o,0,1,1,0,-2*o],["z"]])}function Cc(t,e){var n=t.x,o=t.y,r=t.width,i=t.height;return Oi([["M",n+e,o],["l",r-e*2,0],["a",e,e,0,0,1,e,e],["l",0,i-e*2],["a",e,e,0,0,1,-e,e],["l",e*2-r,0],["a",e,e,0,0,1,-e,-e],["l",0,e*2-i],["a",e,e,0,0,1,e,-e],["z"]])}function V0(t){var e=t.width,n=t.height,o=t.x,r=t.y,i=e/2,a=n/2;return Oi([["M",o+i,r],["l",i,a],["l",-i,a],["l",-i,-a],["z"]])}function q0(t){var e=t.x,n=t.y,o=t.width,r=t.height;return Oi([["M",e,n],["l",o,0],["l",0,r],["l",-o,0],["z"]])}function xs(t,e={}){return{width:jo(t,e),height:uo(t,e)}}function jo(t,e={}){return Pn(e,"width")?e.width:t.width}function uo(t,e={}){return Pn(e,"height")?e.height:t.height}var F0,P3,wm,Rc=Tn(()=>{"use strict";Mr();ni();bs();F0="_plane";P3=1e3;J.$inject=["eventBus"];J.prototype.on=function(t,e,n,o,r,i){if((Ke(e)||Mt(e))&&(i=r,r=o,o=n,n=e,e=null),Ke(n)&&(i=r,r=o,o=n,n=P3),We(r)&&(i=r,r=!1),!Ke(o))throw Error("handlerFn must be a function");Ct(t)||(t=[t]);var a=this._eventBus;A(t,function(s){var c=["commandStack",s,e].filter(function(l){return l}).join(".");a.on(c,n,r?j3(o,i):o,i)})},J.prototype.canExecute=ii("canExecute"),J.prototype.preExecute=ii("preExecute"),J.prototype.preExecuted=ii("preExecuted"),J.prototype.execute=ii("execute"),J.prototype.executed=ii("executed"),J.prototype.postExecute=ii("postExecute"),J.prototype.postExecuted=ii("postExecuted"),J.prototype.revert=ii("revert"),J.prototype.reverted=ii("reverted");wm="hsl(225, 10%, 15%)"});function Sa(t,e){for(Dn(e)&&(e=[e]);t=t.parent;)if(Ht(t,e))return t;return null}function _m(t,e){var n=Sa(t,"bpmn:Process");if(n)return!0;var o=["bpmn:Participant","bpmn:Lane"];if(n=Sa(t,o),n)return Ye(n);if(Ht(t,o))return Ye(t);for(var r=et(t);r&&!y(r,"bpmn:Process");r=r.$parent);if(!e)return!0;var i=e.find(function(a){var s=et(a);return s&&s.get("processRef")===r});return!i||Ye(i)}function ks(t){return{x:t.x+t.width/2,y:t.y+t.height/2}}function Ko(t,e){return{x:t.x-e.x,y:t.y-e.y}}function $n(t,e,n){J.call(this,t),this._bpmnFactory=e;var o=this;function r(m){var h=m.context,f=h.hints||{},g;!h.cropped&&f.createElementsBehavior!==!1&&(g=h.connection,g.waypoints=n.getCroppedWaypoints(g),h.cropped=!0)}this.executed(["connection.layout","connection.create"],r),this.reverted(["connection.layout"],function(m){delete m.context.cropped});function i(m){var h=m.context;o.updateParent(h.shape||h.connection,h.oldParent)}function a(m){var h=m.context,f=h.shape||h.connection,g=h.parent||h.newParent;o.updateParent(f,g)}this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],wo(i)),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],wo(a));function s(m){var h=m.context.oldRoot.children;A(h,function(f){y(f,"bpmn:BaseElement")&&o.updateParent(f)})}this.executed(["canvas.updateRoot"],s),this.reverted(["canvas.updateRoot"],s);function c(m){var h=m.context.shape;y(h,"bpmn:BaseElement")&&o.updateBounds(h)}this.executed(["shape.move","shape.create","shape.resize"],wo(function(m){m.context.shape.type!=="label"&&c(m)})),this.reverted(["shape.move","shape.create","shape.resize"],wo(function(m){m.context.shape.type!=="label"&&c(m)})),t.on("shape.changed",function(m){m.element.type==="label"&&c({context:{shape:m.element}})});function l(m){o.updateConnection(m.context)}this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],wo(l)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],wo(l));function p(m){o.updateConnectionWaypoints(m.context.connection)}this.executed(["connection.layout","connection.move","connection.updateWaypoints"],wo(p)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],wo(p)),this.executed("connection.reconnect",wo(function(m){var h=m.context,f=h.connection,g=h.oldSource,v=h.newSource,k=et(f),_=et(g),w=et(v);k.conditionExpression&&!Ht(w,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(h.oldConditionExpression=k.conditionExpression,delete k.conditionExpression),g!==v&&_.default===k&&(h.oldDefault=_.default,delete _.default)})),this.reverted("connection.reconnect",wo(function(m){var h=m.context,f=h.connection,g=h.oldSource,v=h.newSource,k=et(f),_=et(g),w=et(v);h.oldConditionExpression&&(k.conditionExpression=h.oldConditionExpression),h.oldDefault&&(_.default=h.oldDefault,delete w.default)}));function d(m){o.updateAttachment(m.context)}this.executed(["element.updateAttachment"],wo(d)),this.reverted(["element.updateAttachment"],wo(d)),this.executed("element.updateLabel",wo(u)),this.reverted("element.updateLabel",wo(u));function u(m){let{element:h}=m.context,f=Jn(h),g=jt(h),v=g&&g.get("label");br(h)||vs(h)||(f&&!v?g.set("label",e.create("bpmndi:BPMNLabel")):!f&&v&&g.set("label",void 0))}}function L3(t){for(;t&&!y(t,"bpmn:Definitions");)t=t.$parent;return t}function wo(t){return function(e){var n=e.context,o=n.shape||n.connection||n.element;y(o,"bpmn:BaseElement")&&t(e)}}function N3(t){if(y(t,"bpmn:Activity")){var e=jt(t);if(e){var n=e.get("label");if(n)return n.get("bounds")}}}var Em=Tn(()=>{"use strict";Mr();ni();ps();Rc();ft($n,J),$n.$inject=["eventBus","bpmnFactory","connectionDocking"],$n.prototype.updateAttachment=function(t){var e=t.shape,n=e.businessObject,o=e.host;n.attachedToRef=o&&o.businessObject},$n.prototype.updateParent=function(t,e){if(!Lt(t)&&!(y(t,"bpmn:DataStoreReference")&&t.parent&&y(t.parent,"bpmn:Collaboration"))){var n=t.parent,o=t.businessObject,r=jt(t),i=n&&n.businessObject,a=jt(n);y(t,"bpmn:FlowNode")&&this.updateFlowNodeRefs(o,i,e&&e.businessObject),y(t,"bpmn:DataOutputAssociation")&&(i=t.source?t.source.businessObject:null),y(t,"bpmn:DataInputAssociation")&&(i=t.target?t.target.businessObject:null),this.updateSemanticParent(o,i),y(t,"bpmn:DataObjectReference")&&o.dataObjectRef&&this.updateSemanticParent(o.dataObjectRef,i),this.updateDiParent(r,a)}},$n.prototype.updateBounds=function(t){var e=jt(t),n=N3(t);if(n){var o=Ko(n,e.get("bounds"));j(n,{x:t.x+o.x,y:t.y+o.y})}var r=Lt(t)?this._getLabel(e):e,i=r.bounds;i||(i=this._bpmnFactory.createDiBounds(),r.set("bounds",i)),j(i,{x:t.x,y:t.y,width:t.width,height:t.height})},$n.prototype.updateFlowNodeRefs=function(t,e,n){if(n!==e){var o,r;y(n,"bpmn:Lane")&&(o=n.get("flowNodeRef"),Ne(o,t)),y(e,"bpmn:Lane")&&(r=e.get("flowNodeRef"),Ge(r,t))}},$n.prototype.updateDiConnection=function(t,e,n){var o=jt(t),r=jt(e),i=jt(n);o.sourceElement&&o.sourceElement.bpmnElement!==et(e)&&(o.sourceElement=e&&r),o.targetElement&&o.targetElement.bpmnElement!==et(n)&&(o.targetElement=n&&i)},$n.prototype.updateDiParent=function(t,e){if(e&&!y(e,"bpmndi:BPMNPlane")&&(e=e.$parent),t.$parent!==e){var n=(e||t.$parent).get("planeElement");e?(n.push(t),t.$parent=e):(Ne(n,t),t.$parent=null)}};$n.prototype.getLaneSet=function(t){var e,n;return y(t,"bpmn:Lane")?(e=t.childLaneSet,e||(e=this._bpmnFactory.create("bpmn:LaneSet"),t.childLaneSet=e,e.$parent=t),e):(y(t,"bpmn:Participant")&&(t=t.processRef),n=t.get("laneSets"),e=n[0],e||(e=this._bpmnFactory.create("bpmn:LaneSet"),e.$parent=t,n.push(e)),e)},$n.prototype.updateSemanticParent=function(t,e,n){var o;if(t.$parent!==e&&!((y(t,"bpmn:DataInput")||y(t,"bpmn:DataOutput"))&&(y(e,"bpmn:Participant")&&"processRef"in e&&(e=e.processRef),"ioSpecification"in e&&e.ioSpecification===t.$parent))){if(y(t,"bpmn:Lane"))e&&=this.getLaneSet(e),o="lanes";else if(y(t,"bpmn:FlowElement")){if(e){if(y(e,"bpmn:Participant"))e=e.processRef;else if(y(e,"bpmn:Lane"))do e=e.$parent.$parent;while(y(e,"bpmn:Lane"))}o="flowElements"}else if(y(t,"bpmn:Artifact")){for(;e&&!y(e,"bpmn:Process")&&!y(e,"bpmn:SubProcess")&&!y(e,"bpmn:Collaboration");){if(y(e,"bpmn:Participant")){e=e.processRef;break}e=e.$parent}o="artifacts"}else if(y(t,"bpmn:MessageFlow"))o="messageFlows";else if(y(t,"bpmn:Participant")){o="participants";var r=t.processRef,i;r&&(i=L3(t.$parent||e),t.$parent&&(Ne(i.get("rootElements"),r),r.$parent=null),e&&(Ge(i.get("rootElements"),r),r.$parent=i))}else y(t,"bpmn:DataOutputAssociation")?o="dataOutputAssociations":y(t,"bpmn:DataInputAssociation")&&(o="dataInputAssociations");if(!o)throw Error("no parent for <".concat(t.id,"> in <").concat(e.id,">"));var a;if(t.$parent&&(a=t.$parent.get(o),Ne(a,t)),e?(a=e.get(o),a.push(t),t.$parent=e):t.$parent=null,n){var s=n.get(o);Ne(a,t),e&&(s||(s=[],e.set(o,s)),s.push(t))}}},$n.prototype.updateConnectionWaypoints=function(t){jt(t).set("waypoint",this._bpmnFactory.createDiWaypoints(t.waypoints))},$n.prototype.updateConnection=function(t){var e=t.connection,n=et(e),o=e.source,r=et(o),i=e.target,a=et(e.target),s;if(y(n,"bpmn:DataAssociation"))y(n,"bpmn:DataInputAssociation")?(n.get("sourceRef")[0]=r,s=t.parent||t.newParent||a,this.updateSemanticParent(n,a,s)):y(n,"bpmn:DataOutputAssociation")&&(s=t.parent||t.newParent||r,this.updateSemanticParent(n,r,s),n.targetRef=a);else{var c=y(n,"bpmn:SequenceFlow");n.sourceRef!==r&&(c&&(Ne(n.sourceRef&&n.sourceRef.get("outgoing"),n),r&&r.get("outgoing")&&r.get("outgoing").push(n)),n.sourceRef=r),n.targetRef!==a&&(c&&(Ne(n.targetRef&&n.targetRef.get("incoming"),n),a&&a.get("incoming")&&a.get("incoming").push(n)),n.targetRef=a)}this.updateConnectionWaypoints(e),this.updateDiConnection(e,o,i)},$n.prototype._getLabel=function(t){return t.label||=this._bpmnFactory.createDiLabel(),t.label}});function I3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function H3(){if(K0)return Sm.exports;K0=1;var t=Sm.exports=function(e,n){if(n||=16,e===void 0&&(e=128),e<=0)return"0";for(var o=Math.log(2**e)/Math.log(n),r=2;o===1/0;r*=2)o=Math.log(2**(e/r))/Math.log(n)*r;for(var i=o-Math.floor(o),a="",r=0;r<Math.floor(o);r++){var s=Math.floor(Math.random()*n).toString(n);a=s+a}if(i){var c=n**+i,s=Math.floor(Math.random()*c).toString(n);a=s+a}var l=parseInt(a,n);return l!==1/0&&l>=2**e?t(e,n):a};return t.rack=function(e,n,o){var r=function(a){var s=0;do{if(s++>10)if(o)e+=o;else throw Error("too many ID collisions, use more bits");var c=t(e,n)}while(Object.hasOwnProperty.call(i,c));return i[c]=a,c},i=r.hats={};return r.get=function(a){return r.hats[a]},r.set=function(a,s){return r.hats[a]=s,r},r.bits=e||128,r.base=n||16,r},Sm.exports}function xr(t){if(!(this instanceof xr))return new xr(t);t||=[128,36,1],this._seed=t.length?F3.rack(t[0],t[1],t[2]):t}function Ae(t,e=globalThis.document){if(typeof t!="string")throw TypeError("String expected");let n=/^<!--(.*?)-->$/s.exec(t);if(n)return e.createComment(n[1]);let o=/<([\w:]+)/.exec(t)?.[1];if(!o)return e.createTextNode(t);if(t=t.trim(),o==="body"){let l=e.createElement("html");l.innerHTML=t;let{lastChild:p}=l;return p.remove(),p}let[r,i,a]=Object.hasOwn(fn,o)?fn[o]:fn._default,s=e.createElement("div");for(s.innerHTML=i+t+a;r--;)s=s.lastChild;if(s.firstChild===s.lastChild){let{firstChild:l}=s;return l.remove(),l}let c=e.createDocumentFragment();return c.append(...s.childNodes),c}function W3(t,e){return e.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(o){if(o!=="default"&&!(o in t)){var r=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return n[o]}})}})}),Object.freeze(t)}function Fn(t,...e){let n=t.style;return A(e,function(o){o&&A(o,function(r,i){n[i]=r})}),t}function xn(t,e,n){return arguments.length==2?t.getAttribute(e):n===null?t.removeAttribute(e):(t.setAttribute(e,n),t)}function Ie(t){return new zi(t)}function zi(t){if(!t||!t.nodeType)throw Error("A DOM element reference is required");this.el=t,this.list=t.classList}function Dc(t){for(var e;e=t.firstChild;)t.removeChild(e);return t}function Lr(t,e,n){var o=n?t:t.parentNode;return o&&typeof o.closest=="function"&&o.closest(e)||null}function U3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function V3(){if(Y0)return bp;Y0=1;var t,e,n;function o(){t=window.addEventListener?"addEventListener":"attachEvent",e=window.removeEventListener?"removeEventListener":"detachEvent",n=t==="addEventListener"?"":"on"}return bp.bind=function(r,i,a,s){return t||o(),r[t](n+i,a,s||!1),a},bp.unbind=function(r,i,a,s){return e||o(),r[e](n+i,a,s||!1),a},bp}function q3(t,e,n,o,r){return fb.indexOf(n)!==-1&&(r=!0),$t.bind(t,n,function(i){i.delegateTarget=Lr(i.target||i.srcElement,e,!0),i.delegateTarget&&o.call(t,i)},r)}function K3(t,e,n,o){return fb.indexOf(e)!==-1&&(o=!0),$t.unbind(t,e,n,o)}function Dp(t,e){return t&&typeof t.matches=="function"&&t.matches(e)||!1}function xe(t,e){return e||=document,e.querySelector(t)}function Pc(t,e){return e||=document,e.querySelectorAll(t)}function kr(t){t.parentNode&&t.parentNode.removeChild(t)}function X3(t){return Y3.test(t.toString())}function Rm(t){return Array.isArray(t)}function Tm(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Rp(...t){t.length===1&&Rm(t[0])&&(t=t[0]),t=[...t];let e=t.pop();return e.$inject=t,e}function t6(t){if(typeof t!="function")throw Error('Cannot annotate "'.concat(t,'". Expected a function!'));let e=t.toString().match(X3(t)?Z3:J3);if(!e)return[];let n=e[1]||e[2];return n&&n.split(",").map(o=>{let r=o.match(Q3);return(r&&r[1]||o).trim()})||[]}function gb(t,e){let n=e||{get:function(_,w){if(w===!1)return null;throw o.push(_),s('No provider for "'.concat(_,'"!'))}},o=[],r=this._providers=Object.create(n._providers||null),i=this._instances=Object.create(null),a=i.injector=this,s=function(_){let w=o.join(" -> ");return o.length=0,Error(w?"".concat(_," (Resolving: ").concat(w,")"):_)};function c(_,w){if(!r[_]&&_.includes(".")){let T=_.split("."),C=c(T.shift());for(;T.length;)C=C[T.shift()];return C}if(Tm(i,_))return i[_];if(Tm(r,_)){if(o.indexOf(_)!==-1)throw o.push(_),s("Cannot resolve circular dependency!");return o.push(_),i[_]=r[_][0](r[_][1]),o.pop(),i[_]}return n.get(_,w)}function l(_,w){if(w===void 0&&(w={}),typeof _!="function")if(Rm(_))_=Rp(_.slice());else throw s('Cannot invoke "'.concat(_,'". Expected a function!'));let T=(_.$inject||t6(_)).map(C=>Tm(w,C)?w[C]:c(C));return{fn:_,dependencies:T}}function p(_){let{fn:w,dependencies:T}=l(_);return new(Function.prototype.bind.call(w,null,...T))}function d(_,w,T){let{fn:C,dependencies:B}=l(_,T);return C.apply(w,B)}function u(_){return Rp(w=>_.get(w))}function m(_,w){if(w&&w.length){let T=Object.create(null),C=Object.create(null),B=[],D=[],M=[],N,z,V,gt;for(let ht in r)N=r[ht],w.indexOf(ht)!==-1&&(N[2]==="private"?(z=B.indexOf(N[3]),z===-1?(V=N[3].createChild([],w),gt=u(V),B.push(N[3]),D.push(V),M.push(gt),T[ht]=[gt,ht,"private",V]):T[ht]=[M[z],ht,"private",D[z]]):T[ht]=[N[2],N[1]],C[ht]=!0),(N[2]==="factory"||N[2]==="type")&&N[1].$scope&&w.forEach(Rt=>{N[1].$scope.indexOf(Rt)!==-1&&(T[ht]=[N[2],N[1]],C[Rt]=!0)});w.forEach(ht=>{if(!C[ht])throw Error('No provider for "'+ht+'". Cannot use provider from the parent!')}),_.unshift(T)}return new gb(_,a)}let h={factory:d,type:p,value:function(_){return _}};function f(_,w){let T=_.__init__||[];return function(){T.forEach(C=>{typeof C=="string"?w.get(C):w.invoke(C)})}}function g(_){let w=_.__exports__;if(w){let T=_.__modules__,C=Object.keys(_).reduce((N,z)=>(z!=="__exports__"&&z!=="__modules__"&&z!=="__init__"&&z!=="__depends__"&&(N[z]=_[z]),N),Object.create(null)),B=m((T||[]).concat(C)),D=Rp(function(N){return B.get(N)});w.forEach(function(N){r[N]=[D,N,"private",B]});let M=(_.__init__||[]).slice();return M.unshift(function(){B.init()}),_=Object.assign({},_,{__init__:M}),f(_,B)}return Object.keys(_).forEach(function(T){if(T==="__init__"||T==="__depends__")return;let C=_[T];if(C[2]==="private"){r[T]=C;return}let B=C[0],D=C[1];r[T]=[h[B],e6(B,D),B]}),f(_,a)}function v(_,w){return _.indexOf(w)!==-1||(_=(w.__depends__||[]).reduce(v,_),_.indexOf(w)!==-1)?_:_.concat(w)}function k(_){let w=_.reduce(v,[]).map(g),T=!1;return function(){T||(T=!0,w.forEach(C=>C()))}}this.get=c,this.invoke=d,this.instantiate=p,this.createChild=m,this.init=k(t)}function e6(t,e){return t!=="value"&&Rm(e)&&(e=Rp(e.slice())),e}function jc(t){var e=new Set(t);return Ft(t,function(n){for(var o=n.parent;o;){if(e.has(o))return!1;o=o.parent}return!0})}function Hi(t,e,n){n||=0,Ct(t)||(t=[t]),A(t,function(o,r){var i=e(o,r,n);Ct(i)&&i.length&&Hi(i,e,n+1)})}function Pp(t,e,n){var o=new Set,r=new Set;return Hi(t,function(i,a,s){o.add(i);var c=i.children;if((n===-1||s<n)&&c&&!r.has(c))return r.add(c),c}),Array.from(o)}function Ss(t,e){return Pp(t,!0,-1)}function yb(t,e,n){ei(e)&&(e=!0),We(e)&&(n=e,e=!0),n||={};var o=Bc(n.allShapes),r=Bc(n.allConnections),i=Bc(n.enclosedElements),a=Bc(n.enclosedConnections),s=Bc(n.topLevel,e&&Bi(t,function(p){return p.id}));function c(p){s[p.source.id]&&s[p.target.id]&&(s[p.id]=[p]),o[p.source.id]&&o[p.target.id]&&(a[p.id]=i[p.id]=p),r[p.id]=p}function l(p){if(i[p.id]=p,p.waypoints)a[p.id]=r[p.id]=p;else return o[p.id]=p,A(p.incoming,c),A(p.outgoing,c),p.children}return Hi(t,l),{allShapes:o,allConnections:r,topLevel:s,enclosedConnections:a,enclosedElements:i}}function en(t,e){e=!!e,Ct(t)||(t=[t]);var n,o,r,i;return A(t,function(a){var s=a;a.waypoints&&!e&&(s=en(a.waypoints,!0));var c=s.x,l=s.y,p=s.height||0,d=s.width||0;(c<n||n===void 0)&&(n=c),(l<o||o===void 0)&&(o=l),(c+d>r||r===void 0)&&(r=c+d),(l+p>i||i===void 0)&&(i=l+p)}),{x:n,y:o,height:i-o,width:r-n}}function Ra(t,e){var n={};return A(t,function(o){var r=o;r.waypoints&&(r=en(r)),!Mt(e.y)&&r.x>e.x&&(n[o.id]=o),!Mt(e.x)&&r.y>e.y&&(n[o.id]=o),r.x>e.x&&r.y>e.y&&(Mt(e.width)&&Mt(e.height)&&r.width+r.x<e.width+e.x&&r.height+r.y<e.height+e.y||!Mt(e.width)||!Mt(e.height))&&(n[o.id]=o)}),n}function bb(t){return"waypoints"in t?"connection":"x"in t?"shape":"root"}function vb(t){return!!(t&&t.isFrame)}function Bc(t,e){return j({},t||{},e||{})}function Li(t,e){ko.call(this,t,n6),this.CONNECTION_STYLE=e.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=e.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=e.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}function o6(){var t={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},e=this;this.cls=function(n,o,r){var i=this.style(o,r);return j(i,{class:n})},this.style=function(n,o){!Ct(n)&&!o&&(o=n,n=[]);var r=Zn(n,function(i,a){return j(i,t[a]||{})},{});return o?j(r,o):r},this.computeStyle=function(n,o,r){return Ct(o)||(r=o,o=[]),e.style(o||[],j({},r,n||{}))}}function vp(t,e){return Math.round(t*e)/e}function Z0(t){return Mt(t)?t+"px":t}function i6(t){for(;t.parent;)t=t.parent;return t}function a6(t){t=j({},{width:"100%",height:"100%"},t);let e=t.container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container djs-parent bio-theme-parent"),Fn(n,{position:"relative",overflow:"hidden",width:Z0(t.width),height:Z0(t.height)}),e.appendChild(n),n}function J0(t,e,n){let o=at("g");kt(o).add(e);let r=n===void 0?t.childNodes.length-1:n;return t.insertBefore(o,t.childNodes[r]||null),o}function Dt(t,e,n,o){this._eventBus=e,this._elementRegistry=o,this._graphicsFactory=n,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(t||{})}function xb(t,e){let n="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")";t.setAttribute("transform",n)}function $o(t){this._elements={},this._eventBus=t}function p6(t,e,n,o){var r=n.inverse;return Object.defineProperty(t,"remove",{value:function(i){var a=this.indexOf(i);return a!==-1&&(this.splice(a,1),e.unset(i,r,o)),i}}),Object.defineProperty(t,"contains",{value:function(i){return this.indexOf(i)!==-1}}),Object.defineProperty(t,"add",{value:function(i,a){var s=this.indexOf(i);if(a===void 0){if(s!==-1)return;a=this.length}s!==-1&&this.splice(s,1),this.splice(a,0,i),s===-1&&e.set(i,r,o)}}),Object.defineProperty(t,"__refs_collection",{value:!0}),t}function d6(t){return t.__refs_collection===!0}function u6(t,e){return Object.prototype.hasOwnProperty.call(t,e.name||e)}function tb(t,e,n){var o=p6(n[e.name]||[],t,e,n);Object.defineProperty(n,e.name,{enumerable:e.enumerable,value:o}),o.length&&o.forEach(function(r){t.set(r,e.inverse,n)})}function m6(t,e,n){var o=e.inverse,r=n[e.name];Object.defineProperty(n,e.name,{configurable:e.configurable,enumerable:e.enumerable,get:function(){return r},set:function(i){if(i!==r){var a=r;r=null,a&&t.unset(a,o,n),r=i,t.set(r,o,n)}}})}function Yo(t,e){if(!(this instanceof Yo))return new Yo(t,e);t.inverse=e,e.inverse=t,this.props={},this.props[t.name]=t,this.props[e.name]=e}function Ts(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(t){var e=this.label,n=this.labels;!t&&e?n.remove(e):n.add(t,0)}}),Bm.bind(this,"parent"),kb.bind(this,"labels"),wb.bind(this,"outgoing"),_b.bind(this,"incoming")}function $c(){Ts.call(this),Bm.bind(this,"children"),eb.bind(this,"host"),eb.bind(this,"attachers")}function Eb(){Ts.call(this),Bm.bind(this,"children")}function Sb(){$c.call(this),kb.bind(this,"labelTarget")}function Tb(){Ts.call(this),wb.bind(this,"source"),_b.bind(this,"target")}function f6(t,e){var n=h6[t];if(!n)throw Error("unknown type: <"+t+">");return j(new n,e)}function Cb(t){return t instanceof Ts}function zr(){this._uid=12}function _o(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function Ac(){}function y6(t,e){return t.apply(null,e)}function Fi(t){return t.childNodes[0]}function b6(t){return t.parentNode.childNodes[1]}function Mc(t,e,n,o,r){var i=fs();i.setTranslate(e,n);var a=fs();a.setRotate(o||0,0,0);var s=fs();s.setScale(r||1,r||1),ys(t,[i,a,s])}function An(t,e,n){var o=fs();o.setTranslate(e,n),ys(t,o)}function Am(t,e){var n=fs();n.setRotate(e,0,0),ys(t,n)}function Oo(t,e){this._eventBus=t,this._elementRegistry=e}function v6(t,e,n){var o=n||e.firstChild;t!==o&&e.insertBefore(t,o)}function k6(t){var e=new gb(t);return e.init(),e}function w6(t){return t||={},k6([{config:["value",t]},x6].concat(t.modules||[]))}function Ii(t,e){this._injector=e||w6(t),this.get("eventBus").fire("diagram.init")}function Hn(t){return t?"<"+t.$type+(t.id?' id="'+t.id:"")+'" />':"<null>"}function mo(t,e){return t.$instanceOf(e)}function _6(t){return ve(t.rootElements,function(e){return mo(e,"bpmn:Process")||mo(e,"bpmn:Collaboration")})}function E6(t){var e={},n=[],o={};function r(U,G){return function(nt){U(nt,G)}}function i(U){e[U.id]=U}function a(U){return e[U.id]}function s(U,G){if(U.gfx)throw Error("already rendered ".concat(Hn(U)));return t.element(U,o[U.id],G)}function c(U,G){return t.root(U,o[U.id],G)}function l(U,G){try{var nt=o[U.id]&&s(U,G);return i(U),nt}catch(Yt){p(Yt.message,{element:U,error:Yt}),console.error("failed to import ".concat(Hn(U)),Yt)}}function p(U,G){t.error(U,G)}var d=this.registerDi=function(U){var G=U.bpmnElement;G?o[G.id]?p("multiple DI elements defined for ".concat(Hn(G)),{element:G}):o[G.id]=U:p("no bpmnElement referenced in ".concat(Hn(U)),{element:U})};function u(U){m(U.plane)}function m(U){d(U),A(U.planeElement,h)}function h(U){d(U)}this.handleDefinitions=function(U,G){var nt=U.diagrams;if(G&&nt.indexOf(G)===-1)throw Error("diagram not part of <bpmn:Definitions />");if(!G&&nt&&nt.length&&(G=nt[0]),!G)throw Error("no diagram to display");o={},u(G);var Yt=G.plane;if(!Yt)throw Error("no plane for ".concat(Hn(G)));var fe=Yt.bpmnElement;if(!fe)if(fe=_6(U),fe)p("correcting missing bpmnElement on ".concat(Hn(Yt)," to ").concat(Hn(fe))),Yt.bpmnElement=fe,d(Yt);else throw Error("no process or collaboration to display");var R=c(fe,Yt);if(mo(fe,"bpmn:Process")||mo(fe,"bpmn:SubProcess"))g(fe,R);else if(mo(fe,"bpmn:Collaboration"))pt(fe,R),v(U.rootElements,R);else throw Error("unsupported bpmnElement for ".concat(Hn(Yt),": ").concat(Hn(fe)));f(n)};var f=this.handleDeferred=function(){for(var U;n.length;)U=n.shift(),U()};function g(U,G){Pt(U,G),M(U.ioSpecification,G),D(U.artifacts,G),i(U)}function v(U,G){Ft(U,function(nt){return!a(nt)&&mo(nt,"bpmn:Process")&&nt.laneSets}).forEach(r(g,G))}function k(U,G){l(U,G)}function _(U,G){A(U,r(k,G))}function w(U,G){l(U,G)}function T(U,G){l(U,G)}function C(U,G){l(U,G)}function B(U,G){l(U,G)}function D(U,G){A(U,function(nt){mo(nt,"bpmn:Association")?n.push(function(){B(nt,G)}):B(nt,G)})}function M(U,G){U&&(A(U.dataInputs,r(T,G)),A(U.dataOutputs,r(C,G)))}var N=this.handleSubProcess=function(U,G){Pt(U,G),D(U.artifacts,G)};function z(U,G){var nt=l(U,G);mo(U,"bpmn:SubProcess")&&N(U,nt||G),mo(U,"bpmn:Activity")&&M(U.ioSpecification,G),n.push(function(){A(U.dataInputAssociations,r(w,G)),A(U.dataOutputAssociations,r(w,G))})}function V(U,G){l(U,G)}function gt(U,G){l(U,G)}function ht(U,G){n.push(function(){var nt=l(U,G);U.childLaneSet&&Rt(U.childLaneSet,nt||G),Ot(U)})}function Rt(U,G){A(U.lanes,r(ht,G))}function Pe(U,G){A(U,r(Rt,G))}function Pt(U,G){Et(U.flowElements,G),U.laneSets&&Pe(U.laneSets,G)}function Et(U,G){A(U,function(nt){mo(nt,"bpmn:SequenceFlow")?n.push(function(){V(nt,G)}):mo(nt,"bpmn:BoundaryEvent")?n.unshift(function(){z(nt,G)}):mo(nt,"bpmn:FlowNode")?z(nt,G):mo(nt,"bpmn:DataObject")||(mo(nt,"bpmn:DataStoreReference")||mo(nt,"bpmn:DataObjectReference")?gt(nt,G):p("unrecognized flowElement ".concat(Hn(nt)," in context ").concat(Hn(G&&G.businessObject)),{element:nt,context:G}))})}function St(U,G){var nt=l(U,G),Yt=U.processRef;Yt&&g(Yt,nt||G)}function pt(U,G){A(U.participants,r(St,G)),n.push(function(){_(U.messageFlows,G)}),D(U.artifacts,G)}function Ot(U){A(U.flowNodeRef,function(G){var nt=G.get("lanes");nt&&nt.push(U)})}}function S6(t,e,n){var o,r,i,a,s=[];function c(l,p){var d=new E6({root:function(h,f){return o.add(h,f)},element:function(h,f,g){return o.add(h,f,g)},error:function(h,f){s.push({message:h,context:f})}});p||=l.diagrams&&l.diagrams[0];var u=T6(l,p);if(!u)throw Error("no diagram to display");A(u,function(h){d.handleDefinitions(l,h)});var m=p.plane.bpmnElement.id;i.setRootElement(i.findRoot(m+"_plane")||i.findRoot(m))}return new Promise(function(l,p){try{return o=t.get("bpmnImporter"),r=t.get("eventBus"),i=t.get("canvas"),r.fire("import.render.start",{definitions:e}),c(e,n),r.fire("import.render.complete",{error:a,warnings:s}),l({warnings:s})}catch(d){return d.warnings=s,p(d)}})}function T6(t,e){if(e&&e.plane){var n=e.plane.bpmnElement,o=n;!y(n,"bpmn:Process")&&!y(n,"bpmn:Collaboration")&&(o=C6(n));var r=y(o,"bpmn:Collaboration")?o:ve(t.rootElements,function(l){if(y(l,"bpmn:Collaboration"))return ve(l.participants,function(p){return p.processRef===o})}),i=[o];r&&(i=hn(r.participants,function(l){return l.processRef}),i.push(r));var a=Rb(i),s=[e],c=[n];return A(t.diagrams,function(l){if(l.plane){var p=l.plane.bpmnElement;a.indexOf(p)!==-1&&c.indexOf(p)===-1&&(s.push(l),c.push(p))}}),s}}function Rb(t){var e=[];return A(t,function(n){n&&(e.push(n),e=e.concat(Rb(n.flowElements)))}),e}function C6(t){for(var e=t;e;){if(y(e,"bpmn:Process"))return e;e=e.$parent}}function D6(){Or=Ae(M6),Fn(Or,R6),Fn(xe("svg",Or),Ab),Fn(xe(".backdrop",Or),B6),Fn(xe(".notice",Or),A6),Fn(xe(".link",Or),Mb,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function P6(){Or||(D6(),Wn.bind(Or,".backdrop","click",function(t){document.body.removeChild(Or)})),document.body.appendChild(Or)}function Ue(t){t=j({},$6,t),this._moddle=this._createModdle(t),this._container=this._createContainer(t),this._init(this._container,this._moddle,t),z6(this._container)}function wp(t,e){return t.warnings=e,t}function j6(t){let e=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(t.message);return e&&(t.message="unparsable content <"+e[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+e[2]),t}function rb(t){return t+(Mt(t)?"px":"")}function O6(t,e){return e&&ve(t.diagrams,function(n){return n.id===e})||null}function z6(t){let e=Ae('<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+Bb+"</a>");Fn(xe("svg",e),Ab),Fn(e,Mb,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),t.appendChild(e),$t.bind(e,"click",function(n){P6(),n.preventDefault()})}function Mm(t){let e=[];return A(t.incoming,n=>{y(n,"bpmn:Association")&&y(n.source,"bpmn:TextAnnotation")&&e.push({annotation:n.source,association:n})}),A(t.outgoing,n=>{y(n,"bpmn:Association")&&y(n.target,"bpmn:TextAnnotation")&&e.push({annotation:n.target,association:n})}),e}function Cs(t){let e=new Map;return A(Pp(t,!0,-1),n=>{A(Mm(n),o=>{e.has(o.annotation)||e.set(o.annotation,{annotation:o.annotation,associations:[]}),e.get(o.annotation).associations.push(o.association)})}),[...e.values()]}function Ta(t,e,n,o,r,i,a){ko.call(this,e,a);var s=t&&t.defaultFillColor,c=t&&t.defaultStrokeColor,l=t&&t.defaultLabelColor;function p(R){return n.computeStyle(R,{strokeLinecap:"round",strokeLinejoin:"round",stroke:wm,strokeWidth:2,fill:"white"})}function d(R){return n.computeStyle(R,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:wm,strokeWidth:2})}function u(R,x){var{ref:b={x:0,y:0},scale:L=1,element:H,parentGfx:ot=r._svg}=x,bt=at("marker",{id:R,viewBox:"0 0 20 20",refX:b.x,refY:b.y,markerWidth:20*L,markerHeight:20*L,orient:"auto"});dt(bt,H);var vt=xe(":scope > defs",ot);vt||(vt=at("defs"),dt(ot,vt)),dt(vt,bt)}function m(R,x,b,L){var H=L6.nextPrefixed("marker-");return h(R,H,x,b,L),"url(#"+H+")"}function h(R,x,b,L,H){b==="sequenceflow-end"&&u(x,{element:at("path",{d:"M 1 5 L 11 10 L 1 15 Z",...p({fill:H,stroke:H,strokeWidth:1})}),ref:{x:11,y:10},scale:.5,parentGfx:R}),b==="messageflow-start"&&u(x,{element:at("circle",{cx:6,cy:6,r:3.5,...p({fill:L,stroke:H,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:6,y:6},parentGfx:R}),b==="messageflow-end"&&u(x,{element:at("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...p({fill:L,stroke:H,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:8.5,y:5},parentGfx:R}),b==="association-start"&&u(x,{element:at("path",{d:"M 11 5 L 1 10 L 11 15",...d({fill:"none",stroke:H,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:1,y:10},scale:.5,parentGfx:R}),b==="association-end"&&u(x,{element:at("path",{d:"M 1 5 L 11 10 L 1 15",...d({fill:"none",stroke:H,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:11,y:10},scale:.5,parentGfx:R}),b==="conditional-flow-marker"&&u(x,{element:at("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...p({fill:L,stroke:H})}),ref:{x:-1,y:10},scale:.5,parentGfx:R}),b==="conditional-default-flow-marker"&&u(x,{element:at("path",{d:"M 6 4 L 10 16",...p({stroke:H,fill:"none"})}),ref:{x:0,y:10},scale:.5,parentGfx:R})}function f(R,x,b,L,H={}){We(L)&&(H=L,L=0),L||=0,H=p(H);var ot=x/2,bt=b/2,vt=at("circle",{cx:ot,cy:bt,r:Math.round((x+b)/4-L),...H});return dt(R,vt),vt}function g(R,x,b,L,H,ot){We(H)&&(ot=H,H=0),H||=0,ot=p(ot);var bt=at("rect",{x:H,y:H,width:x-H*2,height:b-H*2,rx:L,ry:L,...ot});return dt(R,bt),bt}function v(R,x,b,L){var H=x/2,ot=b/2,bt=[{x:H,y:0},{x,y:ot},{x:H,y:b},{x:0,y:ot}].map(function(de){return de.x+","+de.y}).join(" ");L=p(L);var vt=at("polygon",{...L,points:bt});return dt(R,vt),vt}function k(R,x,b,L){b=d(b);var H=Ea(x,b,L);return dt(R,H),H}function _(R,x,b){return k(R,x,b,5)}function w(R,x,b){b=d(b);var L=at("path",{...b,d:x});return dt(R,L),L}function T(R,x,b,L){return w(x,b,j({"data-marker":R},L))}function C(R){return fe[R]}function B(R){return function(x,b,L){return C(R)(x,b,L)}}var D={"bpmn:MessageEventDefinition":function(R,x,b={},L){return w(R,o.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:b.width||x.width,containerHeight:b.height||x.height,position:{mx:.235,my:.315}}),{fill:L?ut(x,c,b.stroke):Wt(x,s,b.fill),stroke:L?Wt(x,s,b.fill):ut(x,c,b.stroke),strokeWidth:1})},"bpmn:TimerEventDefinition":function(R,x,b={}){var L=b.width||x.width,H=b.height||x.height,ot=b.width?1:2,bt=f(R,L,H,.2*H,{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:ot});w(R,o.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:L,containerHeight:H,position:{mx:.5,my:.5}}),{stroke:ut(x,c,b.stroke),strokeWidth:ot});for(var vt=0;vt<12;vt++){var de=o.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:L,containerHeight:H,position:{mx:.5,my:.5}}),Gt=L/2,Xt=H/2;w(R,de,{strokeWidth:1,stroke:ut(x,c,b.stroke),transform:"rotate("+vt*30+","+Xt+","+Gt+")"})}return bt},"bpmn:EscalationEventDefinition":function(R,x,b={},L){return w(R,o.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:b.width||x.width,containerHeight:b.height||x.height,position:{mx:.5,my:.2}}),{fill:L?ut(x,c,b.stroke):Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(R,x,b={}){return w(R,o.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:b.width||x.width,containerHeight:b.height||x.height,position:{mx:.5,my:.222}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(R,x,b={},L){return w(R,o.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:x.width,containerHeight:x.height,position:{mx:.57,my:.263}}),{fill:L?ut(x,c,b.stroke):Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(R,x,b={},L){return w(R,o.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:b.width||x.width,containerHeight:b.height||x.height,position:{mx:.2,my:.722}}),{fill:L?ut(x,c,b.stroke):Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(R,x,b={},L){var H=w(R,o.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:x.width,containerHeight:x.height,position:{mx:.638,my:-.055}}),{fill:L?ut(x,c,b.stroke):"none",stroke:ut(x,c,b.stroke),strokeWidth:1});return Am(H,45),H},"bpmn:CompensateEventDefinition":function(R,x,b={},L){return w(R,o.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:b.width||x.width,containerHeight:b.height||x.height,position:{mx:.22,my:.5}}),{fill:L?ut(x,c,b.stroke):Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(R,x,b={},L){return w(R,o.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:b.width||x.width,containerHeight:b.height||x.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:L?ut(x,c,b.stroke):Wt(x,s,b.fill),stroke:ut(x,c,b.stroke)})},"bpmn:MultipleEventDefinition":function(R,x,b={},L){return w(R,o.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:b.width||x.width,containerHeight:b.height||x.height,position:{mx:.211,my:.36}}),{fill:L?ut(x,c,b.stroke):Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(R,x,b={}){return w(R,o.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:b.width||x.width,containerHeight:b.height||x.height,position:{mx:.458,my:.194}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(R,x,b={}){return f(R,x.width,x.height,8,{fill:ut(x,c,b.stroke),stroke:ut(x,c,b.stroke),strokeWidth:4})}};function M(R,x,b={},L){var H=et(R),ot=G0(H),bt=L||R;return H.get("eventDefinitions")&&H.get("eventDefinitions").length>1?H.get("parallelMultiple")?D["bpmn:ParallelMultipleEventDefinition"](x,bt,b,ot):D["bpmn:MultipleEventDefinition"](x,bt,b,ot):vr(H,"bpmn:MessageEventDefinition")?D["bpmn:MessageEventDefinition"](x,bt,b,ot):vr(H,"bpmn:TimerEventDefinition")?D["bpmn:TimerEventDefinition"](x,bt,b,ot):vr(H,"bpmn:ConditionalEventDefinition")?D["bpmn:ConditionalEventDefinition"](x,bt,b,ot):vr(H,"bpmn:SignalEventDefinition")?D["bpmn:SignalEventDefinition"](x,bt,b,ot):vr(H,"bpmn:EscalationEventDefinition")?D["bpmn:EscalationEventDefinition"](x,bt,b,ot):vr(H,"bpmn:LinkEventDefinition")?D["bpmn:LinkEventDefinition"](x,bt,b,ot):vr(H,"bpmn:ErrorEventDefinition")?D["bpmn:ErrorEventDefinition"](x,bt,b,ot):vr(H,"bpmn:CancelEventDefinition")?D["bpmn:CancelEventDefinition"](x,bt,b,ot):vr(H,"bpmn:CompensateEventDefinition")?D["bpmn:CompensateEventDefinition"](x,bt,b,ot):vr(H,"bpmn:TerminateEventDefinition")?D["bpmn:TerminateEventDefinition"](x,bt,b,ot):null}var N={ParticipantMultiplicityMarker:function(R,x,b={}){var L=jo(x,b),H=uo(x,b);T("participant-multiplicity",R,o.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:L,containerHeight:H,position:{mx:(L/2-6)/L,my:(H-15)/H}}),{strokeWidth:2,fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke)})},SubProcessMarker:function(R,x,b={}){An(g(R,14,14,0,{strokeWidth:1,fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke)}),x.width/2-7.5,x.height-20),T("sub-process",R,o.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:x.width,containerHeight:x.height,position:{mx:(x.width/2-7.5)/x.width,my:(x.height-20)/x.height}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke)})},ParallelMarker:function(R,x,b){var L=jo(x,b),H=uo(x,b);T("parallel",R,o.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:L,containerHeight:H,position:{mx:(L/2+b.parallel)/L,my:(H-20)/H}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke)})},SequentialMarker:function(R,x,b){T("sequential",R,o.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:x.width,containerHeight:x.height,position:{mx:(x.width/2+b.seq)/x.width,my:(x.height-19)/x.height}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke)})},CompensationMarker:function(R,x,b){T("compensation",R,o.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:x.width,containerHeight:x.height,position:{mx:(x.width/2+b.compensation)/x.width,my:(x.height-13)/x.height}}),{strokeWidth:1,fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke)})},LoopMarker:function(R,x,b){var L=jo(x,b),H=uo(x,b);T("loop",R,o.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:L,containerHeight:H,position:{mx:(L/2+b.loop)/L,my:(H-7)/H}}),{strokeWidth:1.5,fill:"none",stroke:ut(x,c,b.stroke),strokeMiterlimit:.5})},AdhocMarker:function(R,x,b){var L=jo(x,b),H=uo(x,b);T("adhoc",R,o.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:L,containerHeight:H,position:{mx:(L/2+b.adhoc)/L,my:(H-15)/H}}),{strokeWidth:1,fill:ut(x,c,b.stroke),stroke:ut(x,c,b.stroke)})}};function z(R,x,b,L){N[R](x,b,L)}function V(R,x,b=[],L={}){L={fill:L.fill,stroke:L.stroke,width:jo(x,L),height:uo(x,L)};var H=et(x),ot=b.includes("SubProcessMarker");L=ot?{...L,seq:-21,parallel:-22,compensation:-25,loop:-18,adhoc:10}:{...L,seq:-5,parallel:-6,compensation:-7,loop:0,adhoc:-8},H.get("isForCompensation")&&b.push("CompensationMarker"),y(H,"bpmn:AdHocSubProcess")&&(b.push("AdhocMarker"),ot||j(L,{compensation:L.compensation-18}));var bt=H.get("loopCharacteristics"),vt=bt&&bt.get("isSequential");bt&&(j(L,{compensation:L.compensation-18}),b.includes("AdhocMarker")&&j(L,{seq:-23,loop:-18,parallel:-24}),vt===void 0&&b.push("LoopMarker"),vt===!1&&b.push("ParallelMarker"),vt===!0&&b.push("SequentialMarker")),b.includes("CompensationMarker")&&b.length===1&&j(L,{compensation:-8}),A(b,function(de){z(de,R,x,L)})}function gt(R,x,b={}){b=j({size:{width:100}},b);var L=i.createText(x||"",b);return kt(L).add("djs-label"),dt(R,L),L}function ht(R,x,b,L={}){var H=et(x),ot=xs({x:x.x,y:x.y,width:x.width,height:x.height},L);return gt(R,H.name,{align:b,box:ot,padding:7,style:{fill:$r(x,l,c,L.stroke)}})}function Rt(R,x,b={}){var L={width:x.width,height:x.height,x:x.width/2+x.x,y:x.height/2+x.y};return gt(R,Jn(x),{box:L,style:j({},i.getExternalStyle(),{fill:$r(x,l,c,b.stroke)})})}function Pe(R,x,b,L={}){var H=Ye(b),ot=gt(R,x,{box:{height:30,width:H?uo(b,L):jo(b,L)},align:"center-middle",style:{fill:$r(b,l,c,L.stroke)}});H&&Mc(ot,0,-(-1*uo(b,L)),270)}function Pt(R,x,b={}){var{width:L,height:H}=xs(x,b);return g(R,L,H,Bp,{...b,fill:Wt(x,s,b.fill),fillOpacity:_s,stroke:ut(x,c,b.stroke)})}function Et(R,x,b={}){var L=et(x),H=Wt(x,s,b.fill),ot=ut(x,c,b.stroke);return(L.get("associationDirection")==="One"||L.get("associationDirection")==="Both")&&(b.markerEnd=m(R,"association-end",H,ot)),L.get("associationDirection")==="Both"&&(b.markerStart=m(R,"association-start",H,ot)),b=oe(b,["markerStart","markerEnd"]),_(R,x.waypoints,{...b,stroke:ot,strokeDasharray:"0, 5"})}function St(R,x,b={}){var L=Wt(x,s,b.fill),H=ut(x,c,b.stroke),ot=w(R,o.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:x.width,containerHeight:x.height,position:{mx:.474,my:.296}}),{fill:L,fillOpacity:_s,stroke:H}),bt=et(x);return U0(bt)&&w(R,o.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:x.width,containerHeight:x.height,position:{mx:.33,my:(x.height-18)/x.height}}),{strokeWidth:2,fill:L,stroke:H}),ot}function pt(R,x,b={}){return f(R,x.width,x.height,{fillOpacity:_s,...b,fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke)})}function Ot(R,x,b={}){return v(R,x.width,x.height,{fill:Wt(x,s,b.fill),fillOpacity:_s,stroke:ut(x,c,b.stroke)})}function U(R,x,b={}){var L=g(R,jo(x,b),uo(x,b),0,{fill:Wt(x,s,b.fill),fillOpacity:b.fillOpacity||_s,stroke:ut(x,c,b.stroke),strokeWidth:1.5}),H=et(x);return y(H,"bpmn:Lane")&&Pe(R,H.get("name"),x,b),L}function G(R,x,b={}){var L=Pt(R,x,b),H=Ut(x);if(Rn(x)&&(Z(L,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),!H)){var ot=(et(x).flowElements||[]).filter(bt=>y(bt,"bpmn:StartEvent"));ot.length===1&&nt(ot[0],R,b,x)}return ht(R,x,H?"center-top":"center-middle",b),H?V(R,x,void 0,b):V(R,x,["SubProcessMarker"],b),L}function nt(R,x,b,L){var H=22,ot={fill:Wt(L,s,b.fill),stroke:ut(L,c,b.stroke),width:H,height:H},bt=et(R).isInterrupting,vt=bt?0:3,de=bt?1:1.2,Gt=20,Xt=(H-Gt)/2,_e="translate("+Xt+","+Xt+")";f(x,Gt,Gt,{fill:ot.fill,stroke:ot.stroke,strokeWidth:de,strokeDasharray:vt,transform:_e}),M(R,x,ot,L)}function Yt(R,x,b={}){var L=Pt(R,x,b);return ht(R,x,"center-middle",b),V(R,x,void 0,b),L}var fe=this.handlers={"bpmn:AdHocSubProcess":function(R,x,b={}){return b=Ut(x)?oe(b,["fill","stroke","width","height"]):oe(b,["fill","stroke"]),G(R,x,b)},"bpmn:Association":function(R,x,b={}){return b=oe(b,["fill","stroke"]),Et(R,x,b)},"bpmn:BoundaryEvent":function(R,x,b={}){var{renderIcon:L=!0}=b;b=oe(b,["fill","stroke"]);var H=et(x).get("cancelActivity");b={strokeWidth:1.5,fill:Wt(x,s,b.fill),fillOpacity:F6,stroke:ut(x,c,b.stroke)},H||(b.strokeDasharray="6");var ot=pt(R,x,b);return f(R,x.width,x.height,_p,{...b,fill:"none"}),L&&M(x,R,b),ot},"bpmn:BusinessRuleTask":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Yt(R,x,b),H=w(R,o.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}));Z(H,{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1});var ot=w(R,o.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}));return Z(ot,{fill:ut(x,c,b.stroke),stroke:ut(x,c,b.stroke),strokeWidth:1}),L},"bpmn:CallActivity":function(R,x,b={}){return b=oe(b,["fill","stroke"]),G(R,x,{strokeWidth:5,...b})},"bpmn:ComplexGateway":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Ot(R,x,b);return w(R,o.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:x.width,containerHeight:x.height,position:{mx:.46,my:.26}}),{fill:ut(x,c,b.stroke),stroke:ut(x,c,b.stroke),strokeWidth:1}),L},"bpmn:DataInput":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=o.getRawPath("DATA_ARROW"),H=St(R,x,b);return w(R,L,{fill:"none",stroke:ut(x,c,b.stroke),strokeWidth:1}),H},"bpmn:DataInputAssociation":function(R,x,b={}){return b=oe(b,["fill","stroke"]),Et(R,x,{...b,markerEnd:m(R,"association-end",Wt(x,s,b.fill),ut(x,c,b.stroke))})},"bpmn:DataObject":function(R,x,b={}){return b=oe(b,["fill","stroke"]),St(R,x,b)},"bpmn:DataObjectReference":B("bpmn:DataObject"),"bpmn:DataOutput":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=o.getRawPath("DATA_ARROW"),H=St(R,x,b);return w(R,L,{strokeWidth:1,fill:ut(x,c,b.stroke),stroke:ut(x,c,b.stroke)}),H},"bpmn:DataOutputAssociation":function(R,x,b={}){return b=oe(b,["fill","stroke"]),Et(R,x,{...b,markerEnd:m(R,"association-end",Wt(x,s,b.fill),ut(x,c,b.stroke))})},"bpmn:DataStoreReference":function(R,x,b={}){return b=oe(b,["fill","stroke"]),w(R,o.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:x.width,containerHeight:x.height,position:{mx:0,my:.133}}),{fill:Wt(x,s,b.fill),fillOpacity:_s,stroke:ut(x,c,b.stroke),strokeWidth:2})},"bpmn:EndEvent":function(R,x,b={}){var{renderIcon:L=!0}=b;b=oe(b,["fill","stroke"]);var H=pt(R,x,{...b,strokeWidth:4});return L&&M(x,R,b),H},"bpmn:EventBasedGateway":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=et(x),H=Ot(R,x,b);f(R,x.width,x.height,x.height*.2,{fill:Wt(x,"none",b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1});var ot=L.get("eventGatewayType"),bt=!!L.get("instantiate");function vt(){w(R,o.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:x.width,containerHeight:x.height,position:{mx:.36,my:.44}}),{fill:"none",stroke:ut(x,c,b.stroke),strokeWidth:2})}return ot==="Parallel"?w(R,o.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:x.width,containerHeight:x.height,position:{mx:.474,my:.296}}),{fill:"none",stroke:ut(x,c,b.stroke),strokeWidth:1}):ot==="Exclusive"&&(bt||f(R,x.width,x.height,x.height*.26,{fill:"none",stroke:ut(x,c,b.stroke),strokeWidth:1}),vt()),H},"bpmn:ExclusiveGateway":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Ot(R,x,b),H=o.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:x.width,containerHeight:x.height,position:{mx:.32,my:.3}});return jt(x).get("isMarkerVisible")&&w(R,H,{fill:ut(x,c,b.stroke),stroke:ut(x,c,b.stroke),strokeWidth:1}),L},"bpmn:Gateway":function(R,x,b={}){return b=oe(b,["fill","stroke"]),Ot(R,x,b)},"bpmn:Group":function(R,x,b={}){return b=oe(b,["fill","stroke","width","height"]),g(R,x.width,x.height,Bp,{stroke:ut(x,c,b.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:jo(x,b),height:uo(x,b)})},"bpmn:InclusiveGateway":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Ot(R,x,b);return f(R,x.width,x.height,x.height*.24,{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:2.5}),L},"bpmn:IntermediateEvent":function(R,x,b={}){var{renderIcon:L=!0}=b;b=oe(b,["fill","stroke"]);var H=pt(R,x,{...b,strokeWidth:1.5});return f(R,x.width,x.height,_p,{fill:"none",stroke:ut(x,c,b.stroke),strokeWidth:1.5}),L&&M(x,R,b),H},"bpmn:IntermediateCatchEvent":B("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":B("bpmn:IntermediateEvent"),"bpmn:Lane":function(R,x,b={}){return b=oe(b,["fill","stroke","width","height"]),U(R,x,{...b,fillOpacity:W6})},"bpmn:ManualTask":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Yt(R,x,b);return w(R,o.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:.5}),L},"bpmn:MessageFlow":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=et(x),H=jt(x),ot=Wt(x,s,b.fill),bt=ut(x,c,b.stroke),vt=_(R,x.waypoints,{markerEnd:m(R,"messageflow-end",ot,bt),markerStart:m(R,"messageflow-start",ot,bt),stroke:bt,strokeDasharray:"10, 11",strokeWidth:1.5});if(L.get("messageRef")){var de=vt.getPointAtLength(vt.getTotalLength()/2),Gt=o.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:de.x,y:de.y}}),Xt={strokeWidth:1};H.get("messageVisibleKind")==="initiating"?(Xt.fill=ot,Xt.stroke=bt):(Xt.fill=bt,Xt.stroke=ot);var _e=w(R,Gt,Xt),Oe=gt(R,L.get("messageRef").get("name"),{align:"center-top",fitBox:!0,style:{fill:bt}}),q=_e.getBBox(),st=Oe.getBBox();Mc(Oe,de.x-st.width/2,de.y+q.height/2+N6,0)}return vt},"bpmn:ParallelGateway":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Ot(R,x,b);return w(R,o.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:x.width,containerHeight:x.height,position:{mx:.46,my:.2}}),{fill:ut(x,c,b.stroke),stroke:ut(x,c,b.stroke),strokeWidth:1}),L},"bpmn:Participant":function(R,x,b={}){b=oe(b,["fill","stroke","width","height"]);var L=U(R,x,b),H=Ut(x),ot=Ye(x),bt=et(x),vt=bt.get("name");if(H)k(R,ot?[{x:30,y:0},{x:30,y:uo(x,b)}]:[{x:0,y:30},{x:jo(x,b),y:30}],{stroke:ut(x,c,b.stroke),strokeWidth:I6}),Pe(R,vt,x,b);else{var de=xs(x,b);ot||(de.height=jo(x,b),de.width=uo(x,b));var Gt=gt(R,vt,{box:de,align:"center-middle",style:{fill:$r(x,l,c,b.stroke)}});ot||Mc(Gt,0,-(-1*uo(x,b)),270)}return bt.get("participantMultiplicity")&&z("ParticipantMultiplicityMarker",R,x,b),L},"bpmn:ReceiveTask":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=et(x),H=Yt(R,x,b),ot;return L.get("instantiate")?(f(R,28,28,4.4,{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1}),ot=o.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):ot=o.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),w(R,ot,{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1}),H},"bpmn:ScriptTask":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Yt(R,x,b);return w(R,o.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1}),L},"bpmn:SendTask":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Yt(R,x,b);return w(R,o.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{fill:ut(x,c,b.stroke),stroke:Wt(x,s,b.fill),strokeWidth:1}),L},"bpmn:SequenceFlow":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Wt(x,s,b.fill),H=ut(x,c,b.stroke),ot=_(R,x.waypoints,{markerEnd:m(R,"sequenceflow-end",L,H),stroke:H}),bt=et(x),{source:vt}=x;if(vt){var de=et(vt);bt.get("conditionExpression")&&y(de,"bpmn:Activity")&&Z(ot,{markerStart:m(R,"conditional-flow-marker",L,H)}),de.get("default")&&(y(de,"bpmn:Gateway")||y(de,"bpmn:Activity"))&&de.get("default")===bt&&Z(ot,{markerStart:m(R,"conditional-default-flow-marker",L,H)})}return ot},"bpmn:ServiceTask":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Yt(R,x,b);return f(R,10,10,{fill:Wt(x,s,b.fill),stroke:"none",transform:"translate(6, 6)"}),w(R,o.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1}),f(R,10,10,{fill:Wt(x,s,b.fill),stroke:"none",transform:"translate(11, 10)"}),w(R,o.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:1}),L},"bpmn:StartEvent":function(R,x,b={}){var{renderIcon:L=!0}=b;b=oe(b,["fill","stroke"]),et(x).get("isInterrupting")||(b={...b,strokeDasharray:"6"});var H=pt(R,x,b);return L&&M(x,R,b),H},"bpmn:SubProcess":function(R,x,b={}){return b=Ut(x)?oe(b,["fill","stroke","width","height"]):oe(b,["fill","stroke"]),G(R,x,b)},"bpmn:Task":function(R,x,b={}){return b=oe(b,["fill","stroke"]),Yt(R,x,b)},"bpmn:TextAnnotation":function(R,x,b={}){b=oe(b,["fill","stroke"]);var{width:L,height:H}=xs(x,b),ot=g(R,L,H,0,0,{fill:"none",stroke:"none"});return w(R,o.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:L,containerHeight:H,position:{mx:0,my:0}}),{stroke:ut(x,c,b.stroke)}),gt(R,et(x).get("text")||"",{align:"left-top",box:xs(x,b),padding:7,style:{fill:$r(x,l,c,b.stroke)}}),ot},"bpmn:Transaction":function(R,x,b={}){b=Ut(x)?oe(b,["fill","stroke","width","height"]):oe(b,["fill","stroke"]);var L=G(R,x,{strokeWidth:1.5,...b}),H=n.style(["no-fill","no-events"],{stroke:ut(x,c,b.stroke),strokeWidth:1.5});return Ut(x)||(b={}),g(R,jo(x,b),uo(x,b),Bp-_p,_p,H),L},"bpmn:UserTask":function(R,x,b={}){b=oe(b,["fill","stroke"]);var L=Yt(R,x,b),H=15,ot=12;return w(R,o.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:H,y:ot}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:.5}),w(R,o.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:H,y:ot}}),{fill:Wt(x,s,b.fill),stroke:ut(x,c,b.stroke),strokeWidth:.5}),w(R,o.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:H,y:ot}}),{fill:ut(x,c,b.stroke),stroke:ut(x,c,b.stroke),strokeWidth:.5}),L},label:function(R,x,b={}){return Rt(R,x,b)}};this._drawPath=w,this._renderer=C}function oe(t,e=[]){return e.reduce((n,o)=>(t[o]&&(n[o]=t[o]),n),{})}function V6(t){var e=t.split("-");return{horizontal:e[0]||"center",vertical:e[1]||"top"}}function q6(t){return We(t)?j({top:0,left:0,right:0,bottom:0},t):{top:t,left:t,right:t,bottom:t}}function K6(){return ib||=document.createElement("canvas").getContext("2d"),ib}function Y6(t){var e=[];return t.fontStyle&&e.push(t.fontStyle),t.fontVariant&&e.push(t.fontVariant),t.fontWeight&&e.push(t.fontWeight),t.fontStretch&&e.push(t.fontStretch),e.push(Db(t.fontSize)||"12px"),e.push(t.fontFamily||"sans-serif"),e.join(" ")}function Db(t){if(t!=null)return typeof t=="number"||/^-?\d+(\.\d+)?$/.test(t)?t+"px":t}function X6(t,e){var n=K6();if(!n)return{width:0,height:0};n.font=Y6(e),"letterSpacing"in n&&(n.letterSpacing=Db(e.letterSpacing)||"0px");var o=t==="",r=o?"dummy":t.replace(/\s+$/,""),i=n.measureText(r);return{width:o?0:i.width,height:"fontBoundingBoxAscent"in i?i.fontBoundingBoxAscent+i.fontBoundingBoxDescent:i.actualBoundingBoxAscent+i.actualBoundingBoxDescent}}function Z6(t,e,n){for(var o=t.shift(),r=o,i;;){if(i=X6(r,n),i.width=r?i.width:0,r===" "||r===""||i.width<=e||r.length<2)return J6(t,r,o,i);r=t4(r,i.width,e)}}function J6(t,e,n,o){if(e.length<n.length){var r=n.slice(e.length).trim();t.unshift(r)}return{width:o.width,height:o.height,text:e}}function Q6(t,e){var n=t.split(/(\s|-|\u00AD)/g),o,r=[],i=0;if(n.length>1)for(;o=n.shift();)if(o.length+i<e)r.push(o),i+=o.length;else{(o==="-"||o===ab)&&r.pop();break}var a=r[r.length-1];return a&&a===ab&&(r[r.length-1]="-"),r.join("")}function t4(t,e,n){var o=Math.max(t.length*(n/e),1),r=Q6(t,o);return r||=t.slice(0,Math.max(Math.round(o-1),1)),r}function Ap(t){this._config=j({},{size:U6,padding:G6,style:{},align:"center-top"},t||{})}function e4(t){if("fontSize"in t&&"lineHeight"in t)return t.lineHeight*parseInt(t.fontSize,10)}function Pb(t){var e=j({fontFamily:"Arial, sans-serif",fontSize:n4,fontWeight:"normal",lineHeight:o4},t&&t.defaultStyle||{}),n=parseInt(e.fontSize,10)-1,o=j({},e,{fontSize:n},t&&t.externalStyle||{}),r=new Ap({style:e});this.getExternalLabelBounds=function(a,s){var c=i(s,{width:Math.max(a.width,oi.width),height:30},{style:o});return{x:Math.round(a.x+a.width/2-c.width/2),y:a.y,width:Math.ceil(c.width),height:Math.ceil(c.height)}},this.getTextAnnotationBounds=function(a,s){var c=i(s,a,{style:e,align:"left-top",padding:7});return{x:a.x,y:a.y,width:a.width,height:Math.max(r4,Math.round(c.height))}},this.getDimensions=function(a,s){return r.getDimensions(a,s||{})};function i(a,s,c){return r.getDimensions(a,j({box:s},c))}this.createText=function(a,s){return r.createText(a,s||{})},this.getDefaultStyle=function(){return e},this.getExternalStyle=function(){return o}}function i4(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(t){return this.pathMap[t].d},this.getScaledPath=function(t,e){var n=this.pathMap[t],o,r;e.abspos?(o=e.abspos.x,r=e.abspos.y):(o=e.containerWidth*e.position.mx,r=e.containerHeight*e.position.my);var i={};if(e.position){for(var a=e.containerHeight/n.height*e.yScaleFactor,s=e.containerWidth/n.width*e.xScaleFactor,c=0;c<n.heightElements.length;c++)i["y"+c]=n.heightElements[c]*a;for(var l=0;l<n.widthElements.length;l++)i["x"+l]=n.widthElements[l]*s}return l4(n.d,{mx:o,my:r,e:i})}}function c4(t,e,n){var o=n;return e.replace(s4,function(r,i,a,s,c){i||=s,o&&(i in o&&(o=o[i]),typeof o=="function"&&c&&(o=o()))}),o=(o==null||o==n?t:o)+"",o}function l4(t,e){return String(t).replace(a4,function(n,o){return c4(n,o,e)})}function d4(t,e){return e||={},t.replace(/{([^}]+)}/g,function(n,o){return e[o]||"{"+o+"}"})}function Ep(t,e,n){return j({id:t.id,type:t.$type,businessObject:t,di:e},n)}function u4(t,e,n){var o=t.waypoint;return!o||o.length<2?[Tt(e),Tt(n)]:o.map(function(r){return{x:r.x,y:r.y}})}function sb(t,e,n){return Error("element ".concat(Hn(e)," referenced by ").concat(Hn(t),"#").concat(n," not yet drawn"))}function ai(t,e,n,o,r){this._eventBus=t,this._canvas=e,this._elementFactory=n,this._elementRegistry=o,this._textRenderer=r}function m4(t,e){var n=e.x,o=e.y;return n>=t.x&&n<=t.x+t.width&&o>=t.y&&o<=t.y+t.height}function h4(t){return y(t,"bpmn:Group")}function Ba(t){this._counter=0,this._prefix=(t?t+"-":"")+Math.floor(Math.random()*1e9)+"-"}function Bn(t,e,n,o){this._eventBus=e,this._canvas=n,this._elementRegistry=o,this._ids=g4,this._overlayDefaults=j({show:null,scale:!0},t&&t.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=b4(n.getContainer()),this._init()}function b4(t){var e=Ae('<div class="djs-overlay-container" />');return Fn(e,{position:"absolute",width:0,height:0}),t.insertBefore(e,t.firstChild),e}function cb(t,e,n){Fn(t,{left:e+"px",top:n+"px"})}function Sp(t,e){t.style.display=e===!1?"none":""}function lb(t,e){t.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(n){t.style[n+"transform"]=e})}function jb(t,e,n,o){t.on("element.changed",function(r){var i=r.element;(i.parent||i===e.getRootElement())&&(r.gfx=n.getGraphics(i)),r.gfx&&t.fire(bb(i)+".changed",r)}),t.on("elements.changed",function(r){var i=r.elements;i.forEach(function(a){t.fire("element.changed",{element:a})}),o.updateContainments(i)}),t.on("shape.changed",function(r){o.update("shape",r.element,r.gfx)}),t.on("connection.changed",function(r){o.update("connection",r.element,r.gfx)})}function Cm(t,e){e.invoke(J,this),this.executed(function(n){var o=n.context;o.rootElement?t.setRootElement(o.rootElement):o.rootElement=t.getRootElement()}),this.revert(function(n){var o=n.context;o.rootElement&&t.setRootElement(o.rootElement)})}function Rs(t){return CSS.escape(t)}function Mp(t){return t=""+t,t&&t.replace(/[&<>"']/g,function(e){return x4[e]})}function $b(t,e,n){var o=Ae('<ul class="bjs-breadcrumbs"></ul>'),r=n.getContainer(),i=Ie(r);r.appendChild(o);var a=[];t.on("element.changed",function(c){var l=c.element,p=et(l);ve(a,function(d){return d===p})&&s()});function s(c){c&&(a=w4(c));var l=a.flatMap(function(d){var u=n.findRoot(qo(d))||n.findRoot(d.id);if(!u&&y(d,"bpmn:Process")){var m=e.find(function(h){var f=et(h);return f&&f.get("processRef")===d});u=m&&n.findRoot(m.id)}return u?[{parent:d,parentPlane:u}]:[]});o.innerHTML="";var p=l.length>1;i.toggle(k4,p),l.forEach(function(d,u){var m=d.parent,h=d.parentPlane,f=Mp(m.name||m.id),g=u===l.length-1,v;g?v=Ae('<li><span class="bjs-crumb" title="'+f+'">'+f+"</span></li>"):(v=Ae('<li><a class="bjs-crumb" href="'+("#"+Mp(m.id))+'" title="'+f+'">'+f+"</a></li>"),v.addEventListener("click",function(k){k.preventDefault(),n.setRootElement(h)})),o.appendChild(v)})}t.on("root.set",function(c){s(c.element)})}function w4(t){for(var e=et(t),n=[],o=e;o;o=o.$parent)(y(o,"bpmn:SubProcess")||y(o,"bpmn:Process"))&&n.push(o);return n.reverse()}function Ob(t,e){var n=null,o=new _4;t.on("root.set",function(r){var i=r.element,a=e.viewbox(),s=o.get(i);if(o.set(n,{x:a.x,y:a.y,zoom:a.scale}),n=i,y(i,"bpmn:SubProcess")||s){s||={x:0,y:0,zoom:1};var c=(a.x-s.x)*a.scale,l=(a.y-s.y)*a.scale;(c!==0||l!==0)&&e.scroll({dx:c,dy:l}),s.zoom!==a.scale&&e.zoom(s.zoom,{x:0,y:0})}}),t.on("diagram.clear",function(){o.clear(),n=null})}function _4(){this._entries=[],this.set=function(t,e){var n=!1;for(var o in this._entries)if(this._entries[o][0]===t){this._entries[o][1]=e,n=!0;break}n||this._entries.push([t,e])},this.get=function(t){for(var e in this._entries)if(this._entries[e][0]===t)return this._entries[e][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(t){var e=-1;for(var n in this._entries)if(this._entries[n][0]===t){e=n;break}e!==-1&&this._entries.splice(e,1)}}function Ca(t,e){this._eventBus=t,this._moddle=e;var n=this;t.on("import.render.start",1500,function(o,r){n._handleImport(r.definitions)})}function zb(t){return y(t,"bpmndi:BPMNDiagram")?t:zb(t.$parent)}function E4(t){var e={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return t.planeElement.forEach(function(n){if(n.bounds){var o=_t(n.bounds);e.top=Math.min(o.top,e.top),e.left=Math.min(o.left,e.left)}}),us(e)}function S4(t,e){var n=t.$parent;return!(!y(n,"bpmn:SubProcess")||n===e.bpmnElement||Ht(t,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}function Ni(t,e,n,o,r){J.call(this,e),this._canvas=t,this._eventBus=e,this._elementRegistry=n,this._overlays=o,this._translate=r;var i=this;this.executed("shape.toggleCollapse",Tp,function(a){var s=a.shape;i._canDrillDown(s)?i._addOverlay(s):i._removeOverlay(s)},!0),this.reverted("shape.toggleCollapse",Tp,function(a){var s=a.shape;i._canDrillDown(s)?i._addOverlay(s):i._removeOverlay(s)},!0),this.executed(["shape.create","shape.move","shape.delete"],Tp,function(a){var s=a.oldParent,c=a.newParent||a.parent,l=a.shape;i._canDrillDown(l)&&i._addOverlay(l),i._updateDrilldownOverlay(s),i._updateDrilldownOverlay(c),i._updateDrilldownOverlay(l)},!0),this.reverted(["shape.create","shape.move","shape.delete"],Tp,function(a){var s=a.oldParent,c=a.newParent||a.parent,l=a.shape;i._canDrillDown(l)&&i._addOverlay(l),i._updateDrilldownOverlay(s),i._updateDrilldownOverlay(c),i._updateDrilldownOverlay(l)},!0),e.on("import.render.complete",function(){n.filter(function(a){return i._canDrillDown(a)}).map(function(a){i._addOverlay(a)})})}function db(t){t&&typeof t.stopPropagation=="function"&&t.stopPropagation()}function Aa(t){return t.originalEvent||t.srcEvent}function $p(t){db(t),db(Aa(t))}function Wi(t){return t.pointers&&t.pointers.length&&(t=t.pointers[0]),t.touches&&t.touches.length&&(t=t.touches[0]),t?{x:t.clientX,y:t.clientY}:null}function Dm(){return/mac/i.test(navigator.platform)}function Lb(t,e){return(Aa(t)||t).button===e}function ci(t){return Lb(t,0)}function B4(t){return Lb(t,1)}function Bs(t){var e=Aa(t)||t;return ci(t)?Dm()?e.metaKey:e.ctrlKey:!1}function Lc(t){var e=Aa(t)||t;return ci(t)&&e.shiftKey}function A4(t){return!0}function Cp(t){return ci(t)||B4(t)}function Nb(t,e,n){var o=this;function r(C,B,D){if(!s(C,B)){var M,N,z;D?N=e.getGraphics(D):(M=B.delegateTarget||B.target,M&&(N=M,D=e.get(N))),N&&D&&(z=t.fire(C,{element:D,gfx:N,originalEvent:B}),z===!1&&(B.stopPropagation(),B.preventDefault()))}}var i={};function a(C){return i[C]}function s(C,B){return!(l[C]||ci)(B)}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},l={"element.contextmenu":A4,"element.mousedown":Cp,"element.mouseup":Cp,"element.click":Cp,"element.dblclick":Cp};function p(C,B,D){var M=c[C];if(!M)throw Error("unmapped DOM event name <"+C+">");return r(M,B,D)}var d="svg, .djs-element";function u(C,B,D,M){var N=i[D]=function(z){r(D,z)};M&&(l[D]=M),N.$delegate=Wn.bind(C,d,B,N)}function m(C,B,D){var M=a(D);M&&Wn.unbind(C,B,M.$delegate)}function h(C){A(c,function(B,D){u(C,D,B)})}function f(C){A(c,function(B,D){m(C,D,B)})}t.on("canvas.destroy",function(C){f(C.svg)}),t.on("canvas.init",function(C){h(C.svg)}),t.on(["shape.added","connection.added"],function(C){var B=C.element,D=C.gfx;t.fire("interactionEvents.createHit",{element:B,gfx:D})}),t.on(["shape.changed","connection.changed"],ub,function(C){var B=C.element,D=C.gfx;t.fire("interactionEvents.updateHit",{element:B,gfx:D})}),t.on("interactionEvents.createHit",ub,function(C){var B=C.element,D=C.gfx;o.createDefaultHit(B,D)}),t.on("interactionEvents.updateHit",function(C){var B=C.element,D=C.gfx;o.updateDefaultHit(B,D)});var g=_("djs-hit djs-hit-stroke"),v=_("djs-hit djs-hit-click-stroke"),k={all:_("djs-hit djs-hit-all"),"click-stroke":v,stroke:g,"no-move":_("djs-hit djs-hit-no-move")};function _(C,B){return B=j({stroke:"white",strokeWidth:15},B||{}),n.cls(C,["no-fill","no-border"],B)}function w(C,B){var D=k[B];if(!D)throw Error("invalid hit type <"+B+">");return Z(C,D),C}function T(C,B){dt(C,B)}this.removeHits=function(C){var B=Pc(".djs-hit",C);A(B,rn)},this.createDefaultHit=function(C,B){var D=C.waypoints,M=C.isFrame,N;return D?this.createWaypointsHit(B,D):(N=M?"stroke":"all",this.createBoxHit(B,N,{width:C.width,height:C.height}))},this.createWaypointsHit=function(C,B){var D=Ea(B);return w(D,"stroke"),T(C,D),D},this.createBoxHit=function(C,B,D){D=j({x:0,y:0},D);var M=at("rect");return w(M,B),Z(M,D),T(C,M),M},this.updateDefaultHit=function(C,B){var D=xe(".djs-hit",B);if(D)return C.waypoints?Tc(D,C.waypoints):Z(D,{width:C.width,height:C.height}),D},this.fire=r,this.triggerMouseEvent=p,this.mouseHandler=a,this.registerEvent=u,this.unregisterEvent=m}function Es(t,e){this._eventBus=t,this._canvas=e,this._selectedElements=new Set;var n=this;t.on(["shape.remove","connection.remove"],function(o){var r=o.element;n.deselect(r)}),t.on(["diagram.clear","root.set"],function(o){n.select(null)})}function Ib(t,e){this._canvas=t;function n(r,i){t.addMarker(r,i)}function o(r,i){t.removeMarker(r,i)}e.on("element.hover",function(r){n(r.element,mb)}),e.on("element.out",function(r){o(r.element,mb)}),e.on("selection.changed",function(r){function i(l){o(l,hb)}function a(l){n(l,hb)}var s=new Set(r.oldSelection),c=new Set(r.newSelection);for(let l of s)c.has(l)||i(l);for(let l of c)s.has(l)||a(l)})}function Hb(t,e,n,o){t.on("create.end",500,function(r){var i=r.context,a=i.canExecute,s=i.elements,c=(i.hints||{}).autoSelect;if(a){if(c===!1)return;Ct(c)?e.select(c):e.select(s.filter(M4))}}),t.on("connect.end",500,function(r){var i=r.context.connection;i&&e.select(i)}),t.on("shape.move.end",500,function(r){var i=r.previousSelection||[],a=o.get(r.context.shape.id);ve(i,function(s){return a.id===s.id})||e.select(a)}),t.on("element.click",function(r){if(ci(r)){var i=r.element;i===n.getRootElement()&&(i=null);var a=e.isSelected(i),s=e.get().length>1,c=Lc(r);if(a&&s)return c?e.deselect(i):e.select(i);a?e.deselect(i):e.select(i,c)}})}function M4(t){return!t.hidden}function si(t){Ue.call(this,t)}var Sm,K0,F3,fn,G3,bp,Y0,X0,$t,fb,Wn,Y3,Z3,J3,Q3,n6,r6,s6,Q0,c6,l6,ws,Bm,kb,eb,wb,_b,h6,xp,nb,g6,x6,Bb,Ab,Mb,R6,B6,A6,M6,Or,kp,ob,$6,L6,N6,_p,I6,Bp,H6,_s,F6,W6,G6,U6,ib,ab,n4,o4,r4,a4,s4,p4,Oc,f4,g4,y4,zc,jp,v4,x4,k4,pb,Tp,T4,C4,R4,ub,Nc,mb,hb,Eo,Fb=Tn(()=>{"use strict";Mr();ni();ps();hp();bs();Rc();As();Sm={exports:{}};F3=I3(H3());xr.prototype.next=function(t){return this._seed(t||!0)},xr.prototype.nextPrefixed=function(t,e){var n;do n=t+this.next(!0);while(this.assigned(n));return this.claim(n,e),n},xr.prototype.claim=function(t,e){this._seed.set(t,e||!0)},xr.prototype.assigned=function(t){return this._seed.get(t)||!1},xr.prototype.unclaim=function(t){delete this._seed.hats[t]},xr.prototype.clear=function(){var t=this._seed.hats,e;for(e in t)this.unclaim(e)};fn={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:[0,"",""]};fn.td=fn.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],fn.option=fn.optgroup=[1,'<select multiple="multiple">',"</select>"],fn.thead=fn.tbody=fn.colgroup=fn.caption=fn.tfoot=[1,"<table>","</table>"],fn.polyline=fn.ellipse=fn.polygon=fn.circle=fn.text=fn.line=fn.path=fn.rect=fn.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];G3=Object.prototype.toString;zi.prototype.add=function(t){return this.list.add(t),this},zi.prototype.remove=function(t){return G3.call(t)=="[object RegExp]"?this.removeMatching(t):(this.list.remove(t),this)},zi.prototype.removeMatching=function(t){let e=this.array();for(let n=0;n<e.length;n++)t.test(e[n])&&this.remove(e[n]);return this},zi.prototype.toggle=function(t,e){return(e===void 0||e!==this.list.toggle(t,e))&&this.list.toggle(t),this},zi.prototype.array=function(){return Array.from(this.list)},zi.prototype.has=zi.prototype.contains=function(t){return this.list.contains(t)};bp={};X0=V3(),$t=W3({__proto__:null,default:U3(X0)},[X0]),fb=["focus","blur"];Wn={bind:q3,unbind:K3};Y3=/^class[ {]/;Z3=/constructor\s*[^(]*\(\s*([^)]*)\)/m,J3=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,Q3=/\/\*([^*]*)\*\//m;n6=1;ft(Li,ko),Li.prototype.canRender=function(){return!0},Li.prototype.drawShape=function(t,e,n){var o=at("rect");return Z(o,{x:0,y:0,width:e.width||0,height:e.height||0}),vb(e)?Z(o,j({},this.FRAME_STYLE,n||{})):Z(o,j({},this.SHAPE_STYLE,n||{})),dt(t,o),o},Li.prototype.drawConnection=function(t,e,n){var o=Ea(e.waypoints,j({},this.CONNECTION_STYLE,n||{}));return dt(t,o),o},Li.prototype.getShapePath=function(t){var e=t.x,n=t.y,o=t.width,r=t.height,i=[["M",e,n],["l",o,0],["l",0,r],["l",-o,0],["z"]];return Oi(i)},Li.prototype.getConnectionPath=function(t){var e=t.waypoints,n,o,r=[];for(n=0;o=e[n];n++)o=o.original||o,r.push([n===0?"M":"L",o.x,o.y]);return Oi(r)},Li.$inject=["eventBus","styles"];r6={__init__:["defaultRenderer"],defaultRenderer:["type",Li],styles:["type",o6]};s6="base",Q0=0,c6=1,l6={shape:["x","y","width","height"],connection:["waypoints"]};Dt.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],Dt.prototype._init=function(t){let e=this._eventBus,n=this._container=a6(t),o=this._svg=at("svg");Z(o,{width:"100%",height:"100%"}),xn(o,"tabindex",0),t.autoFocus&&e.on("element.hover",()=>{this.restoreFocus()}),e.on("element.mousedown",500,i=>{this.focus()}),o.addEventListener("focusin",()=>{this._setFocused(!0)}),o.addEventListener("focusout",()=>{this._setFocused(!1)}),o.addEventListener("mouseover",()=>{this._eventBus.fire("canvas.mouseover")}),o.addEventListener("mouseout",()=>{this._eventBus.fire("canvas.mouseout")}),dt(n,o);let r=this._viewport=J0(o,"viewport");t.deferUpdate&&(this._viewboxChanged=cs(this._viewboxChanged,300)),this._restoreFocus=cs(this._restoreFocus,0),e.on("diagram.init",()=>{e.fire("canvas.init",{svg:o,viewport:r})}),e.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),e.on("diagram.destroy",500,this._destroy,this),e.on("diagram.clear",500,this._clear,this)},Dt.prototype._destroy=function(){this._restoreFocus.cancel(),this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});let t=this._container.parentNode;t&&t.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},Dt.prototype._setFocused=function(t){t!=this._focused&&(this._focused=t,this._eventBus.fire("canvas.focus.changed",{focused:t}))},Dt.prototype._clear=function(){this._elementRegistry.getAll().forEach(t=>{let e=bb(t);e==="root"?this.removeRootElement(t):this._removeElement(t,e)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},Dt.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)},Dt.prototype.restoreFocus=function(){this._restoreFocus()},Dt.prototype._restoreFocus=function(){document.activeElement===document.body&&this.focus()},Dt.prototype.isFocused=function(){return this._focused},Dt.prototype.getDefaultLayer=function(){return this.getLayer(s6,Q0)},Dt.prototype.getLayer=function(t,e){if(!t)throw Error("must specify a name");let n=this._layers[t];if(n||=this._layers[t]=this._createLayer(t,e),e!==void 0&&n.index!==e)throw Error("layer <"+t+"> already created at index <"+e+">");return n.group},Dt.prototype._getChildIndex=function(t){return Zn(this._layers,function(e,n){return n.visible&&t>=n.index&&e++,e},0)},Dt.prototype._createLayer=function(t,e){e===void 0&&(e=c6);let n=this._getChildIndex(e);return{group:J0(this._viewport,"layer-"+t,n),index:e,visible:!0}},Dt.prototype.showLayer=function(t){if(!t)throw Error("must specify a name");let e=this._layers[t];if(!e)throw Error("layer <"+t+"> does not exist");let n=this._viewport,o=e.group,r=e.index;if(e.visible)return o;let i=this._getChildIndex(r);return n.insertBefore(o,n.childNodes[i]||null),e.visible=!0,o},Dt.prototype.hideLayer=function(t){if(!t)throw Error("must specify a name");let e=this._layers[t];if(!e)throw Error("layer <"+t+"> does not exist");let n=e.group;return e.visible&&=(rn(n),!1),n},Dt.prototype._removeLayer=function(t){let e=this._layers[t];e&&(delete this._layers[t],rn(e.group))},Dt.prototype.getActiveLayer=function(){let t=this._findPlaneForRoot(this.getRootElement());return t?t.layer:null},Dt.prototype.findRoot=function(t){let e=this._resolveElements(t),n;for(let o of e){let r=this._findPlaneForRoot(i6(o));if(!r||n&&r.rootElement!==n)return;n=r.rootElement}return n},Dt.prototype.getRootElements=function(){return this._planes.map(function(t){return t.rootElement})},Dt.prototype._findPlaneForRoot=function(t){return ve(this._planes,function(e){return e.rootElement===t})},Dt.prototype._resolveElement=function(t){return typeof t=="string"?this._elementRegistry.get(t):t},Dt.prototype._resolveElements=function(t){return Ct(t)||(t=[t]),t.map(e=>this._resolveElement(e)).filter(Boolean)},Dt.prototype.getContainer=function(){return this._container},Dt.prototype._updateMarker=function(t,e,n){let o;t=this._resolveElement(t),t.markers=t.markers||new Set,o=this._elementRegistry._elements[t.id],o&&(A([o.gfx,o.secondaryGfx],function(r){r&&(n?(t.markers.add(e),kt(r).add(e)):(t.markers.delete(e),kt(r).remove(e)))}),this._eventBus.fire("element.marker.update",{element:t,gfx:o.gfx,marker:e,add:!!n}))},Dt.prototype.addMarker=function(t,e){this._updateMarker(t,e,!0)},Dt.prototype.removeMarker=function(t,e){this._updateMarker(t,e,!1)},Dt.prototype.hasMarker=function(t,e){return t=this._resolveElement(t),t.markers?t.markers.has(e):!1},Dt.prototype.toggleMarker=function(t,e){this.hasMarker(t,e)?this.removeMarker(t,e):this.addMarker(t,e)},Dt.prototype.getRootElement=function(){let t=this._rootElement;return t||this._planes.length?t:this.setRootElement(this.addRootElement(null))},Dt.prototype.addRootElement=function(t){let e=this._rootsIdx++;t||={id:"__implicitroot_"+e,children:[],isImplicit:!0};let n=t.layer="root-"+e;this._ensureValid("root",t);let o=this.getLayer(n,Q0);return this.hideLayer(n),this._addRoot(t,o),this._planes.push({rootElement:t,layer:o}),t},Dt.prototype.removeRootElement=function(t){if(t=this._resolveElement(t),this._findPlaneForRoot(t))return this._removeRoot(t),this._removeLayer(t.layer),this._planes=this._planes.filter(function(e){return e.rootElement!==t}),this._rootElement===t&&(this._rootElement=null),t},Dt.prototype.setRootElement=function(t){if(t===this._rootElement)return t;let e;if(!t)throw Error("rootElement required");return e=this._findPlaneForRoot(t),e||(t=this.addRootElement(t)),this._setRoot(t),t},Dt.prototype._removeRoot=function(t){let e=this._elementRegistry,n=this._eventBus;n.fire("root.remove",{element:t}),n.fire("root.removed",{element:t}),e.remove(t)},Dt.prototype._addRoot=function(t,e){let n=this._elementRegistry,o=this._eventBus;o.fire("root.add",{element:t}),n.add(t,e),o.fire("root.added",{element:t,gfx:e})},Dt.prototype._setRoot=function(t,e){let n=this._rootElement;n&&(this._elementRegistry.updateGraphics(n,null,!0),this.hideLayer(n.layer)),t&&(e||=this._findPlaneForRoot(t).layer,this._elementRegistry.updateGraphics(t,this._svg,!0),this.showLayer(t.layer)),this._rootElement=t,this._eventBus.fire("root.set",{element:t})},Dt.prototype._ensureValid=function(t,e){if(!e.id)throw Error("element must have an id");if(this._elementRegistry.get(e.id))throw Error("element <"+e.id+"> already exists");let n=l6[t];if(!Ar(n,function(o){return e[o]!==void 0}))throw Error("must supply { "+n.join(", ")+" } with "+t)},Dt.prototype._setParent=function(t,e,n){Ge(e.children,t,n),t.parent=e},Dt.prototype._addElement=function(t,e,n,o){n||=this.getRootElement();let r=this._eventBus,i=this._graphicsFactory;this._ensureValid(t,e),r.fire(t+".add",{element:e,parent:n}),this._setParent(e,n,o);let a=i.create(t,e,o);return this._elementRegistry.add(e,a),i.update(t,e,a),r.fire(t+".added",{element:e,gfx:a}),e},Dt.prototype.addShape=function(t,e,n){return this._addElement("shape",t,e,n)},Dt.prototype.addConnection=function(t,e,n){return this._addElement("connection",t,e,n)},Dt.prototype._removeElement=function(t,e){let n=this._elementRegistry,o=this._graphicsFactory,r=this._eventBus;if(t=n.get(t.id||t),t)return r.fire(e+".remove",{element:t}),o.remove(t),Ne(t.parent&&t.parent.children,t),t.parent=null,r.fire(e+".removed",{element:t}),n.remove(t),t},Dt.prototype.removeShape=function(t){return this._removeElement(t,"shape")},Dt.prototype.removeConnection=function(t){return this._removeElement(t,"connection")},Dt.prototype.getGraphics=function(t,e){return this._elementRegistry.getGraphics(t,e)},Dt.prototype._changeViewbox=function(t){this._eventBus.fire("canvas.viewbox.changing"),t.apply(this),this._cachedViewbox=null,this._viewboxChanged()},Dt.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},Dt.prototype.viewbox=function(t){if(t===void 0&&this._cachedViewbox)return structuredClone(this._cachedViewbox);let e=this._viewport,n=this.getSize(),o,r,i,a,s,c,l;if(t)this._changeViewbox(function(){s=Math.min(n.width/t.width,n.height/t.height);let p=this._svg.createSVGMatrix().scale(s).translate(-t.x,-t.y);ys(e,p)});else return i=this._rootElement?this.getActiveLayer():null,o=i&&i.getBBox()||{},a=ys(e),r=a?a.matrix:$0(),s=vp(r.a,1e3),c=vp(-r.e||0,1e3),l=vp(-r.f||0,1e3),t=this._cachedViewbox={x:c?c/s:0,y:l?l/s:0,width:n.width/s,height:n.height/s,scale:s,inner:{width:o.width||0,height:o.height||0,x:o.x||0,y:o.y||0},outer:n},t;return t},Dt.prototype.scroll=function(t){let e=this._viewport,n=e.getCTM();return t&&this._changeViewbox(function(){t=j({dx:0,dy:0},t||{}),n=this._svg.createSVGMatrix().translate(t.dx,t.dy).multiply(n),xb(e,n)}),{x:n.e,y:n.f}},Dt.prototype.scrollToElement=function(t,e){let n=100,o=this._resolveElements(t);if(!o.length)return;let r=this.findRoot(o);if(!r)return;r!==this.getRootElement()&&this.setRootElement(r);let i=o.filter(m=>m!=r);if(!i.length)return;e||={},typeof e=="number"&&(n=e),e={top:e.top||n,right:e.right||n,bottom:e.bottom||n,left:e.left||n};let a=en(i),s=_t(a),c=this.viewbox(),l=this.zoom(),p,d;c.y+=e.top/l,c.x+=e.left/l,c.width-=(e.right+e.left)/l,c.height-=(e.bottom+e.top)/l;let u=_t(c);if(!(a.width<c.width&&a.height<c.height))p=a.x-c.x,d=a.y-c.y;else{let m=Math.max(0,s.right-u.right),h=Math.min(0,s.left-u.left),f=Math.max(0,s.bottom-u.bottom),g=Math.min(0,s.top-u.top);p=m||h,d=f||g}this.scroll({dx:-p*l,dy:-d*l})},Dt.prototype.zoom=function(t,e){if(!t)return this.viewbox(t).scale;if(t==="fit-viewport")return this._fitViewport(e);let n,o;return this._changeViewbox(function(){typeof e!="object"&&(n=this.viewbox().outer,e={x:n.width/2,y:n.height/2}),o=this._setZoom(t,e)}),vp(o.a,1e3)};Dt.prototype._fitViewport=function(t){let e=this.viewbox(),n=e.outer,o=e.inner,r,i;return o.x>=0&&o.y>=0&&o.x+o.width<=n.width&&o.y+o.height<=n.height&&!t?i={x:0,y:0,width:Math.max(o.width+o.x,n.width),height:Math.max(o.height+o.y,n.height)}:(r=Math.min(1,n.width/o.width,n.height/o.height),i={x:o.x+(t?o.width/2-n.width/r/2:0),y:o.y+(t?o.height/2-n.height/r/2:0),width:n.width/r,height:n.height/r}),this.viewbox(i),this.viewbox(!1).scale},Dt.prototype._setZoom=function(t,e){let n=this._svg,o=this._viewport,r=n.createSVGMatrix(),i=n.createSVGPoint(),a,s,c,l,p;c=o.getCTM();let d=c.a;return e?(a=j(i,e),s=a.matrixTransform(c.inverse()),l=r.translate(s.x,s.y).scale(1/d*t).translate(-s.x,-s.y),p=c.multiply(l)):p=r.scale(t),xb(this._viewport,p),p},Dt.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},Dt.prototype.getAbsoluteBBox=function(t){let e=this.viewbox(),n;return n=t.waypoints?this.getGraphics(t).getBBox():t,{x:n.x*e.scale-e.x*e.scale,y:n.y*e.scale-e.y*e.scale,width:n.width*e.scale,height:n.height*e.scale}},Dt.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};ws="data-element-id";$o.$inject=["eventBus"],$o.prototype.add=function(t,e,n){var o=t.id;this._validateId(o),Z(e,ws,o),n&&Z(n,ws,o),this._elements[o]={element:t,gfx:e,secondaryGfx:n}},$o.prototype.remove=function(t){var e=this._elements,n=t.id||t,o=n&&e[n];o&&(Z(o.gfx,ws,""),o.secondaryGfx&&Z(o.secondaryGfx,ws,""),delete e[n])},$o.prototype.updateId=function(t,e){this._validateId(e),typeof t=="string"&&(t=this.get(t)),this._eventBus.fire("element.updateId",{element:t,newId:e});var n=this.getGraphics(t),o=this.getGraphics(t,!0);this.remove(t),t.id=e,this.add(t,n,o)},$o.prototype.updateGraphics=function(t,e,n){var o=t.id||t,r=this._elements[o];return n?r.secondaryGfx=e:r.gfx=e,e&&Z(e,ws,o),e},$o.prototype.get=function(t){var e=typeof t=="string"?t:t&&Z(t,ws),n=this._elements[e];return n&&n.element},$o.prototype.filter=function(t){var e=[];return this.forEach(function(n,o){t(n,o)&&e.push(n)}),e},$o.prototype.find=function(t){for(var e=this._elements,n=Object.keys(e),o=0;o<n.length;o++){var r=e[n[o]],i=r.element,a=r.gfx;if(t(i,a))return i}},$o.prototype.getAll=function(){return this.filter(function(t){return t})},$o.prototype.forEach=function(t){var e=this._elements;Object.keys(e).forEach(function(n){var o=e[n],r=o.element,i=o.gfx;return t(r,i)})},$o.prototype.getGraphics=function(t,e){var n=t.id||t,o=this._elements[n];return o&&(e?o.secondaryGfx:o.gfx)},$o.prototype._validateId=function(t){if(!t)throw Error("element must have an id");if(this._elements[t])throw Error("element with id "+t+" already added")};Yo.prototype.bind=function(t,e){if(typeof e=="string"){if(!this.props[e])throw Error("no property <"+e+"> in ref");e=this.props[e]}e.collection?tb(this,e,t):m6(this,e,t)},Yo.prototype.ensureRefsCollection=function(t,e){var n=t[e.name];return d6(n)||tb(this,e,t),n},Yo.prototype.ensureBound=function(t,e){u6(t,e)||this.bind(t,e)},Yo.prototype.unset=function(t,e,n){t&&(this.ensureBound(t,e),e.collection?this.ensureRefsCollection(t,e).remove(n):t[e.name]=void 0)},Yo.prototype.set=function(t,e,n){t&&(this.ensureBound(t,e),e.collection?this.ensureRefsCollection(t,e).add(n):t[e.name]=n)};Bm=new Yo({name:"children",enumerable:!0,collection:!0},{name:"parent"}),kb=new Yo({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),eb=new Yo({name:"attachers",collection:!0},{name:"host"}),wb=new Yo({name:"outgoing",collection:!0},{name:"source"}),_b=new Yo({name:"incoming",collection:!0},{name:"target"});ft($c,Ts);ft(Eb,$c);ft(Sb,$c);ft(Tb,Ts);h6={connection:Tb,shape:$c,label:Sb,root:Eb};zr.prototype.createRoot=function(t){return this.create("root",t)},zr.prototype.createLabel=function(t){return this.create("label",t)},zr.prototype.createShape=function(t){return this.create("shape",t)},zr.prototype.createConnection=function(t){return this.create("connection",t)},zr.prototype.create=function(t,e){return e=j({},e||{}),e.id||(e.id=t+"_"+this._uid++),f6(t,e)};xp="__fn",nb=1e3,g6=Array.prototype.slice;_o.prototype.on=function(t,e,n,o){if(t=Ct(t)?t:[t],Ke(e)&&(o=n,n=e,e=nb),!Mt(e))throw Error("priority must be a number");var r=n;o&&(r=jn(n,o),r[xp]=n[xp]||n);var i=this;t.forEach(function(a){i._addListener(a,{priority:e,callback:r,next:null})})},_o.prototype.once=function(t,e,n,o){var r=this;if(Ke(e)&&(o=n,n=e,e=nb),!Mt(e))throw Error("priority must be a number");function i(){i.__isTomb=!0;var a=n.apply(o,arguments);return r.off(t,i),a}i[xp]=n,this.on(t,e,i)},_o.prototype.off=function(t,e){t=Ct(t)?t:[t];var n=this;t.forEach(function(o){n._removeListener(o,e)})},_o.prototype.createEvent=function(t){var e=new Ac;return e.init(t),e},_o.prototype.fire=function(t,e){var n,o,r,i=g6.call(arguments);if(typeof t=="object"&&(e=t,t=e.type),!t)throw Error("no event type specified");if(o=this._listeners[t],o){n=e instanceof Ac?e:this.createEvent(e),i[0]=n;var a=n.type;t!==a&&(n.type=t);try{r=this._invokeListeners(n,i,o)}finally{t!==a&&(n.type=a)}return r===void 0&&n.defaultPrevented&&(r=!1),r}},_o.prototype.handleError=function(t){return this.fire("error",{error:t})===!1},_o.prototype._destroy=function(){this._listeners={}},_o.prototype._invokeListeners=function(t,e,n){for(var o;n&&!t.cancelBubble;)o=this._invokeListener(t,e,n),n=n.next;return o},_o.prototype._invokeListener=function(t,e,n){var o;if(n.callback.__isTomb)return o;try{o=y6(n.callback,e),o!==void 0&&(t.returnValue=o,t.stopPropagation()),o===!1&&t.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return o},_o.prototype._addListener=function(t,e){var n=this._getListeners(t),o;if(!n)this._setListeners(t,e);else{for(;n;){if(n.priority<e.priority){e.next=n,o?o.next=e:this._setListeners(t,e);return}o=n,n=n.next}o.next=e}},_o.prototype._getListeners=function(t){return this._listeners[t]},_o.prototype._setListeners=function(t,e){this._listeners[t]=e},_o.prototype._removeListener=function(t,e){var n=this._getListeners(t),o,r,i;if(!e)this._setListeners(t,null);else for(;n;)o=n.next,i=n.callback,(i===e||i[xp]===e)&&(r?r.next=o:this._setListeners(t,o)),r=n,n=o};Ac.prototype.stopPropagation=function(){this.cancelBubble=!0},Ac.prototype.preventDefault=function(){this.defaultPrevented=!0},Ac.prototype.init=function(t){j(this,t||{})};Oo.$inject=["eventBus","elementRegistry"],Oo.prototype._getChildrenContainer=function(t){var e=this._elementRegistry.getGraphics(t),n;return t.parent?(n=b6(e),n||(n=at("g"),kt(n).add("djs-children"),dt(e.parentNode,n))):n=e,n},Oo.prototype._clear=function(t){var e=Fi(t);return Dc(e),e},Oo.prototype._createContainer=function(t,e,n,o){var r=at("g");kt(r).add("djs-group"),n===void 0?dt(e,r):v6(r,e,e.childNodes[n]);var i=at("g");kt(i).add("djs-element"),kt(i).add("djs-"+t),o&&kt(i).add("djs-frame"),dt(r,i);var a=at("g");return kt(a).add("djs-visual"),dt(i,a),i},Oo.prototype.create=function(t,e,n){var o=this._getChildrenContainer(e.parent);return this._createContainer(t,o,n,vb(e))},Oo.prototype.updateContainments=function(t){var e=this,n=this._elementRegistry,o=Zn(t,function(r,i){return i.parent&&(r[i.parent.id]=i.parent),r},{});A(o,function(r){var i=r.children;if(i){var a=e._getChildrenContainer(r),s=a.firstChild;A(i,function(c){var l=n.getGraphics(c).parentNode;l===s?s=s.nextSibling:a.insertBefore(l,s)})}})},Oo.prototype.drawShape=function(t,e,n={}){return this._eventBus.fire("render.shape",{gfx:t,element:e,attrs:n})},Oo.prototype.getShapePath=function(t){return this._eventBus.fire("render.getShapePath",t)},Oo.prototype.drawConnection=function(t,e,n={}){return this._eventBus.fire("render.connection",{gfx:t,element:e,attrs:n})},Oo.prototype.getConnectionPath=function(t){return this._eventBus.fire("render.getConnectionPath",t)},Oo.prototype.update=function(t,e,n){if(e.parent){var o=this._clear(n);if(t==="shape")this.drawShape(o,e),An(n,e.x,e.y);else if(t==="connection")this.drawConnection(o,e);else throw Error("unknown type: "+t);e.hidden?Z(n,"display","none"):Z(n,"display","block")}},Oo.prototype.remove=function(t){var e=this._elementRegistry.getGraphics(t);rn(e.parentNode)};x6={__depends__:[r6],__init__:["canvas"],canvas:["type",Dt],elementRegistry:["type",$o],elementFactory:["type",zr],eventBus:["type",_o],graphicsFactory:["type",Oo]};Ii.prototype.get=function(t,e){return this._injector.get(t,e)},Ii.prototype.invoke=function(t,e,n){return this._injector.invoke(t,e,n)},Ii.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},Ii.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};Bb='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',Ab={verticalAlign:"middle"},Mb={color:"#404040"},R6={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},B6={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},A6={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},M6='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+Bb+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>';kp=5,ob="djs-outline-hidden";ft(Ue,Ii),Ue.prototype.importXML=async function(t,e){let n=this;function o(i){return n.get("eventBus").createEvent(i)}let r=[];try{t=this._emit("import.parse.start",{xml:t})||t;let i;try{i=await this._moddle.fromXML(t,"bpmn:Definitions")}catch(d){throw this._emit("import.parse.complete",{error:d}),d}let a=i.rootElement,s=i.references,c=i.warnings,l=i.elementsById;r=r.concat(c),a=this._emit("import.parse.complete",o({error:null,definitions:a,elementsById:l,references:s,warnings:r}))||a;let p=await this.importDefinitions(a,e);return r=r.concat(p.warnings),this._emit("import.done",{error:null,warnings:r}),{warnings:r}}catch(i){let a=i;throw r=r.concat(a.warnings||[]),wp(a,r),a=j6(a),this._emit("import.done",{error:a,warnings:a.warnings}),a}},Ue.prototype.importDefinitions=async function(t,e){return this._setDefinitions(t),{warnings:(await this.open(e)).warnings}},Ue.prototype.open=async function(t){let e=this._definitions,n=t;if(!e){let r=Error("no XML imported");throw wp(r,[]),r}if(typeof t=="string"&&(n=O6(e,t),!n)){let r=Error("BPMNDiagram <"+t+"> not found");throw wp(r,[]),r}try{this.clear()}catch(r){throw wp(r,[]),r}let{warnings:o}=await S6(this,e,n);return{warnings:o}},Ue.prototype.saveXML=async function(t){t||={};let e=this._definitions,n,o;try{if(!e)throw Error("no definitions loaded");e=this._emit("saveXML.start",{definitions:e})||e,o=(await this._moddle.toXML(e,t)).xml,o=this._emit("saveXML.serialized",{xml:o})||o}catch(i){n=i}let r=n?{error:n}:{xml:o};if(this._emit("saveXML.done",r),n)throw n;return r},Ue.prototype.saveSVG=async function(){this._emit("saveSVG.start");let t,e;try{let n=this.get("canvas"),o=n.getActiveLayer(),r=xe(":scope > defs",n._svg),i=bm(o),a=r?"<defs>"+bm(r)+"</defs>":"",s=n.getContainer();Ie(s).add(ob);let c;try{c=o.getBBox()}finally{Ie(s).remove(ob)}let l=c.x-kp,p=c.y-kp,d=c.width+kp*2,u=c.height+kp*2;t='<?xml version="1.0" encoding="utf-8"?>\n<!-- created with bpmn-js / http://bpmn.io -->\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+d+'" height="'+u+'" viewBox="'+l+" "+p+" "+d+" "+u+'" version="1.1">'+a+i+"</svg>"}catch(n){e=n}if(this._emit("saveSVG.done",{error:e,svg:t}),e)throw e;return{svg:t}},Ue.prototype._setDefinitions=function(t){this._definitions=t},Ue.prototype.getModules=function(){return this._modules},Ue.prototype.clear=function(){this.getDefinitions()&&Ii.prototype.clear.call(this)},Ue.prototype.destroy=function(){Ii.prototype.destroy.call(this),kr(this._container)},Ue.prototype.on=function(t,e,n,o){return this.get("eventBus").on(t,e,n,o)},Ue.prototype.off=function(t,e){this.get("eventBus").off(t,e)},Ue.prototype.attachTo=function(t){if(!t)throw Error("parentNode required");this.detach(),t.get&&t.constructor.prototype.jquery&&(t=t.get(0)),typeof t=="string"&&(t=xe(t)),t.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},Ue.prototype.getDefinitions=function(){return this._definitions},Ue.prototype.detach=function(){let t=this._container,e=t.parentNode;e&&(this._emit("detach",{}),e.removeChild(t))},Ue.prototype._init=function(t,e,n){let o=n.modules||this.getModules(n),r=n.additionalModules||[],i=[{bpmnjs:["value",this],moddle:["value",e]}],a=[].concat(i,o,r),s=j(Vo(n,["additionalModules"]),{canvas:j({},n.canvas,{container:t}),modules:a});Ii.call(this,s),n&&n.container&&this.attachTo(n.container)},Ue.prototype._emit=function(t,e){return this.get("eventBus").fire(t,e)},Ue.prototype._createContainer=function(t){let e=Ae('<div class="bjs-container bio-theme-parent"></div>');return Fn(e,{width:rb(t.width),height:rb(t.height),position:t.position}),e},Ue.prototype._createModdle=function(t){let e=j({},this._moddleExtensions,t.moddleExtensions);return new Ma(e)},Ue.prototype._modules=[];$6={width:"100%",height:"100%",position:"relative"};L6=new xr,N6=10,_p=3,I6=1.5,Bp=10,H6=4,_s=.95,F6=1,W6=.25;ft(Ta,ko),Ta.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],Ta.prototype.canRender=function(t){return y(t,"bpmn:BaseElement")},Ta.prototype.drawShape=function(t,e,n={}){var{type:o}=e;return this._renderer(o)(t,e,n)},Ta.prototype.drawConnection=function(t,e,n={}){var{type:o}=e;return this._renderer(o)(t,e,n)},Ta.prototype.getShapePath=function(t){return Lt(t)?Cc(t,H6):y(t,"bpmn:Event")?yp(t):y(t,"bpmn:Activity")?Cc(t,Bp):y(t,"bpmn:Gateway")?V0(t):q0(t)};G6=0,U6={width:150,height:50};ib=null;ab="\xAD";Ap.prototype.createText=function(t,e){return this.layoutText(t,e).element},Ap.prototype.getDimensions=function(t,e){return this.layoutText(t,e).dimensions},Ap.prototype.layoutText=function(t,e){for(var n=j({},this._config.size,e.box),o=j({},this._config.style,e.style),r=V6(e.align||this._config.align),i=q6(e.padding===void 0?this._config.padding:e.padding),a=e.fitBox||!1,s=e4(o),c=t.split(/\u00AD?\r?\n/),l=[],p=n.width-i.left-i.right;c.length;)l.push(Z6(c,p,o));r.vertical==="middle"&&(i.top=i.bottom=0);var d=Zn(l,function(f,g,v){return f+(s||g.height)},0)+i.top+i.bottom,u=Zn(l,function(f,g,v){return g.width>f?g.width:f},0),m=i.top;r.vertical==="middle"&&(m+=(n.height-d)/2),m-=(s||l[0].height)/4;var h=at("text");return Z(h,o),A(l,function(f){var g;switch(m+=s||f.height,r.horizontal){case"left":g=i.left;break;case"right":g=(a?u:p)-i.right-f.width;break;default:g=Math.max(((a?u:p)-f.width)/2+i.left,0)}var v=at("tspan");Z(v,{x:g,y:m}),v.textContent=f.text,dt(h,v)}),{dimensions:{width:u,height:d},element:h}};n4=12,o4=1.2,r4=40;Pb.$inject=["config.textRenderer"];a4=/\{([^{}]+)\}/g,s4=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;p4={__init__:["bpmnRenderer"],bpmnRenderer:["type",Ta],textRenderer:["type",Pb],pathMap:["type",i4]};Oc={translate:["value",d4]};ai.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],ai.prototype.add=function(t,e,n){var o,r,i;if(y(e,"bpmndi:BPMNPlane")){var a=y(t,"bpmn:SubProcess")?{id:t.id+"_plane"}:{};o=this._elementFactory.createRoot(Ep(t,e,a)),this._canvas.addRootElement(o)}else if(y(e,"bpmndi:BPMNShape")){var s=!Ut(t,e),c=h4(t);r=n&&(n.hidden||n.collapsed);var l=e.bounds;o=this._elementFactory.createShape(Ep(t,e,{collapsed:s,hidden:r,x:Math.round(l.x),y:Math.round(l.y),width:Math.round(l.width),height:Math.round(l.height),isFrame:c})),y(t,"bpmn:BoundaryEvent")&&this._attachBoundary(t,o),y(t,"bpmn:Lane")&&(i=0),y(t,"bpmn:DataStoreReference")&&(m4(n,Tt(l))||(n=this._canvas.findRoot(n))),this._canvas.addShape(o,n,i)}else if(y(e,"bpmndi:BPMNEdge")){var p=this._getSource(t),d=this._getTarget(t);r=n&&(n.hidden||n.collapsed),o=this._elementFactory.createConnection(Ep(t,e,{hidden:r,source:p,target:d,waypoints:u4(e,p,d)})),y(t,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(o,n,i)}else throw Error("unknown di ".concat(Hn(e)," for element ").concat(Hn(t)));return br(t)&&Jn(o)&&this.addLabel(t,e,o),this._eventBus.fire("bpmnElement.added",{element:o}),o},ai.prototype._attachBoundary=function(t,e){var n=t.attachedToRef;if(!n)throw Error("missing ".concat(Hn(t),"#attachedToRef"));var o=this._elementRegistry.get(n.id),r=o&&o.attachers;if(!o)throw sb(t,n,"attachedToRef");e.host=o,r||(o.attachers=r=[]),r.indexOf(e)===-1&&r.push(e)},ai.prototype.addLabel=function(t,e,n){var o=d0(e,n),r=Jn(n),i;return r&&(o=this._textRenderer.getExternalLabelBounds(o,r)),i=this._elementFactory.createLabel(Ep(t,e,{id:t.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!Jn(n),x:Math.round(o.x),y:Math.round(o.y),width:Math.round(o.width),height:Math.round(o.height)})),this._canvas.addShape(i,n.parent)},ai.prototype._getConnectedElement=function(t,e){var n,o,r=t.$type;if(o=t[e+"Ref"],e==="source"&&r==="bpmn:DataInputAssociation"&&(o&&=o[0]),(e==="source"&&r==="bpmn:DataOutputAssociation"||e==="target"&&r==="bpmn:DataInputAssociation")&&(o=t.$parent),n=o&&this._getElement(o),n)return n;throw o?sb(t,o,e+"Ref"):Error("".concat(Hn(t),"#").concat(e," Ref not specified"))},ai.prototype._getSource=function(t){return this._getConnectedElement(t,"source")},ai.prototype._getTarget=function(t){return this._getConnectedElement(t,"target")},ai.prototype._getElement=function(t){return this._elementRegistry.get(t.id)};f4={__depends__:[p4,{__depends__:[Oc],bpmnImporter:["type",ai]}]};Ba.prototype.next=function(){return this._prefix+ ++this._counter};g4=new Ba("ov"),y4=500;Bn.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Bn.prototype.get=function(t){if(Dn(t)&&(t={id:t}),Dn(t.element)&&(t.element=this._elementRegistry.get(t.element)),t.element){var e=this._getOverlayContainer(t.element,!0);return e?t.type?Ft(e.overlays,Ai({type:t.type})):e.overlays.slice():[]}return t.type?Ft(this._overlays,Ai({type:t.type})):t.id?this._overlays[t.id]:null},Bn.prototype.add=function(t,e,n){if(We(e)&&(n=e,e=null),t.id||(t=this._elementRegistry.get(t)),!n.position)throw Error("must specifiy overlay position");if(!n.html)throw Error("must specifiy overlay html");if(!t)throw Error("invalid element specified");var o=this._ids.next();return n=j({},this._overlayDefaults,n,{id:o,type:e,element:t,html:n.html}),this._addOverlay(n),o},Bn.prototype.remove=function(t){var e=this.get(t)||[];Ct(e)||(e=[e]);var n=this;A(e,function(o){var r=n._getOverlayContainer(o.element,!0);if(o&&(kr(o.html),kr(o.htmlContainer),delete o.htmlContainer,delete o.element,delete n._overlays[o.id]),r){var i=r.overlays.indexOf(o);i!==-1&&r.overlays.splice(i,1)}})},Bn.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},Bn.prototype.show=function(){Sp(this._overlayRoot)},Bn.prototype.hide=function(){Sp(this._overlayRoot,!1)},Bn.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Dc(this._overlayRoot)},Bn.prototype._updateOverlayContainer=function(t){var e=t.element,n=t.html,o=e.x,r=e.y;if(e.waypoints){var i=en(e);o=i.x,r=i.y}cb(n,o,r),xn(t.html,"data-container-id",e.id)},Bn.prototype._updateOverlay=function(t){var e=t.position,n=t.htmlContainer,o=t.element,r=e.left,i=e.top;if(e.right!==void 0){var a=o.waypoints?en(o).width:o.width;r=e.right*-1+a}if(e.bottom!==void 0){var s=o.waypoints?en(o).height:o.height;i=e.bottom*-1+s}cb(n,r||0,i||0),this._updateOverlayVisibilty(t,this._canvas.viewbox())},Bn.prototype._createOverlayContainer=function(t){var e=Ae('<div class="djs-overlays" />');Fn(e,{position:"absolute"}),this._overlayRoot.appendChild(e);var n={html:e,element:t,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},Bn.prototype._updateRoot=function(t){var e=t.scale||1,n="matrix("+[e,0,0,e,-1*t.x*e,-1*t.y*e].join(",")+")";lb(this._overlayRoot,n)},Bn.prototype._getOverlayContainer=function(t,e){var n=ve(this._overlayContainers,function(o){return o.element===t});return!n&&!e?this._createOverlayContainer(t):n},Bn.prototype._addOverlay=function(t){var e=t.id,n=t.element,o=t.html,r,i;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),Dn(o)&&(o=Ae(o)),i=this._getOverlayContainer(n),r=Ae('<div class="djs-overlay" data-overlay-id="'+e+'">'),Fn(r,{position:"absolute"}),r.appendChild(o),t.type&&Ie(r).add("djs-overlay-"+t.type);var a=this._canvas.findRoot(n),s=this._canvas.getRootElement();Sp(r,a===s),t.htmlContainer=r,i.overlays.push(t),i.html.appendChild(r),this._overlays[e]=t,this._updateOverlay(t),this._updateOverlayVisibilty(t,this._canvas.viewbox())},Bn.prototype._updateOverlayVisibilty=function(t,e){var n=t.show,o=this._canvas.findRoot(t.element),r=n&&n.minZoom,i=n&&n.maxZoom,a=t.htmlContainer,s=this._canvas.getRootElement(),c=!0;o===s?n&&(on(r)&&r>e.scale||on(i)&&i<e.scale)&&(c=!1):c=!1,Sp(a,c),this._updateOverlayScale(t,e)},Bn.prototype._updateOverlayScale=function(t,e){var n=t.scale,o,r,i=t.htmlContainer,a,s="";n!==!0&&(n===!1?(o=1,r=1):(o=n.min,r=n.max),on(o)&&e.scale<o&&(a=(1/e.scale||1)*o),on(r)&&e.scale>r&&(a=(1/e.scale||1)*r)),on(a)&&(s="scale("+a+","+a+")"),lb(i,s)},Bn.prototype._updateOverlaysVisibilty=function(t){var e=this;A(this._overlays,function(n){e._updateOverlayVisibilty(n,t)})},Bn.prototype._init=function(){var t=this._eventBus,e=this;function n(o){e._updateRoot(o),e._updateOverlaysVisibilty(o),e.show()}t.on("canvas.viewbox.changing",function(o){e.hide()}),t.on("canvas.viewbox.changed",function(o){n(o.viewbox)}),t.on(["shape.remove","connection.remove"],function(o){var r=o.element,i=e.get({element:r});A(i,function(c){e.remove(c.id)});var a=e._getOverlayContainer(r);if(a){kr(a.html);var s=e._overlayContainers.indexOf(a);s!==-1&&e._overlayContainers.splice(s,1)}}),t.on("element.changed",y4,function(o){var r=o.element,i=e._getOverlayContainer(r,!0);i&&(A(i.overlays,function(a){e._updateOverlay(a)}),e._updateOverlayContainer(i))}),t.on("element.marker.update",function(o){var r=e._getOverlayContainer(o.element,!0);r&&Ie(r.html)[o.add?"add":"remove"](o.marker)}),t.on("root.set",function(){e._updateOverlaysVisibilty(e._canvas.viewbox())}),t.on("diagram.clear",this.clear,this)};zc={__init__:["overlays"],overlays:["type",Bn]};jb.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];jp={__init__:["changeSupport"],changeSupport:["type",jb]};ft(Cm,J),Cm.$inject=["canvas","injector"];v4={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Cm]};x4={"&":"&","<":"<",">":">",'"':""","'":"'"};k4="bjs-breadcrumbs-shown";$b.$inject=["eventBus","elementRegistry","canvas"];Ob.$inject=["eventBus","canvas"];pb={x:180,y:160};Ca.prototype._handleImport=function(t){if(t.diagrams){var e=this;this._definitions=t,this._processToDiagramMap={},t.diagrams.forEach(function(n){n.plane&&n.plane.bpmnElement&&(e._processToDiagramMap[n.plane.bpmnElement.id]=n)}),t.diagrams.filter(n=>n.plane).flatMap(n=>e._createNewDiagrams(n.plane)).forEach(function(n){e._movePlaneElementsToOrigin(n.plane)})}},Ca.prototype._createNewDiagrams=function(t){var e=this,n=[],o=[];t.get("planeElement").forEach(function(i){var a=i.bpmnElement;if(a){var s=a.$parent;y(a,"bpmn:SubProcess")&&!i.isExpanded&&n.push(a),S4(a,t)&&o.push({diElement:i,parent:s})}});var r=[];return n.forEach(function(i){if(!e._processToDiagramMap[i.id]){var a=e._createDiagram(i);e._processToDiagramMap[i.id]=a,r.push(a)}}),o.forEach(function(i){for(var a=i.diElement,s=i.parent;s&&n.indexOf(s)===-1;)s=s.$parent;if(s){var c=e._processToDiagramMap[s.id];e._moveToDiPlane(a,c.plane)}}),r},Ca.prototype._movePlaneElementsToOrigin=function(t){var e=t.get("planeElement"),n=E4(t),o={x:n.x-pb.x,y:n.y-pb.y};e.forEach(function(r){r.waypoint?r.waypoint.forEach(function(i){i.x-=o.x,i.y-=o.y}):r.bounds&&(r.bounds.x=r.bounds.x-o.x,r.bounds.y=r.bounds.y-o.y)})},Ca.prototype._moveToDiPlane=function(t,e){var n=zb(t).plane.get("planeElement");n.splice(n.indexOf(t),1),e.get("planeElement").push(t)},Ca.prototype._createDiagram=function(t){var e=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:t}),n=this._moddle.create("bpmndi:BPMNDiagram",{plane:e});return e.$parent=n,e.bpmnElement=t,n.$parent=this._definitions,this._definitions.diagrams.push(n),n},Ca.$inject=["eventBus","moddle"];Tp=250,T4='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',C4="bjs-drilldown-empty";ft(Ni,J),Ni.prototype._updateDrilldownOverlay=function(t){var e=this._canvas;if(t){var n=e.findRoot(t);n&&this._updateOverlayVisibility(n)}},Ni.prototype._canDrillDown=function(t){var e=this._canvas;return y(t,"bpmn:SubProcess")&&e.findRoot(qo(t))},Ni.prototype._updateOverlayVisibility=function(t){var e=this._overlays,n=et(t),o=e.get({element:n.id,type:"drilldown"})[0];if(o){var r=n&&n.get("flowElements")&&n.get("flowElements").length;Ie(o.html).toggle(C4,!r)}},Ni.prototype._addOverlay=function(t){var e=this._canvas,n=this._overlays,o=et(t);n.get({element:t,type:"drilldown"}).length&&this._removeOverlay(t);var r=Ae('<button type="button" class="bjs-drilldown">'+T4+"</button>"),i=o.get("name")||o.get("id"),a=this._translate("Open {element}",{element:i});r.setAttribute("title",a),r.addEventListener("click",function(){e.setRootElement(e.findRoot(qo(t)))}),n.add(t,"drilldown",{position:{bottom:-7,right:-8},html:r}),this._updateOverlayVisibility(t)},Ni.prototype._removeOverlay=function(t){this._overlays.remove({element:t,type:"drilldown"})},Ni.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];R4={__depends__:[zc,jp,v4],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",$b],drilldownCentering:["type",Ob],drilldownOverlayBehavior:["type",Ni],subprocessCompatibility:["type",Ca]};ub=500;Nb.$inject=["eventBus","elementRegistry","styles"];Nc={__init__:["interactionEvents"],interactionEvents:["type",Nb]};Es.$inject=["eventBus","canvas"],Es.prototype.deselect=function(t){if(this._selectedElements.has(t)){var e=this.get();this._selectedElements.delete(t),this._eventBus.fire("selection.changed",{oldSelection:e,newSelection:this.get()})}},Es.prototype.get=function(){return Array.from(this._selectedElements)},Es.prototype.isSelected=function(t){return this._selectedElements.has(t)},Es.prototype.select=function(t,e){var n=this.get();Ct(t)||(t=t?[t]:[]);var o=this._canvas,r=o.getRootElement();t=t.filter(function(i){return r===o.findRoot(i)}),e?A(t,i=>{this._selectedElements.add(i)}):this._selectedElements=new Set(t),this._eventBus.fire("selection.changed",{oldSelection:n,newSelection:this.get()})};mb="hover",hb="selected";Ib.$inject=["canvas","eventBus"];Hb.$inject=["eventBus","selection","canvas","elementRegistry"];Eo={__init__:["selectionVisuals","selectionBehavior"],__depends__:[Nc],selection:["type",Es],selectionVisuals:["type",Ib],selectionBehavior:["type",Hb]};ft(si,Ue),si.prototype._modules=[f4,R4,zc,Eo,Oc],si.prototype._moddleExtensions={}});var a5={};Ci(a5,{default:()=>Hr});function gl(t){Ue.call(this,t),this.on("import.parse.complete",function(e){e.error||this._collectIds(e.definitions,e.elementsById)},this),this.on("diagram.destroy",function(){this.get("moddle").ids.clear()},this)}function M2(t,e,n){this._selectionWasVisible=!1;let o=cs(()=>{this._selectionWasVisible=r()},D4);t.on("canvas.viewbox.changed",o),t.on("selection.changed",o),t.on("diagram.destroy",()=>{o.cancel()}),t.on("canvas.resized",()=>{var i=n.get();if(i.length&&this._selectionWasVisible&&!r()){var a=e.getRootElement();e.scrollToElement(i.concat(a))}});function r(){var i=n.get();if(!i.length)return!1;var a=en(i),s=e.viewbox(),c=_t(a),l=_t(s);return c.left>=l.left&&c.right<=l.right&&c.top>=l.top&&c.bottom<=l.bottom}this._flush=o.flush}function Qn(t,e){var n=this;this._config=t||={},this._eventBus=e,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),e.on("diagram.destroy",function(){n._fire("destroy"),n.unbind()}),t.bindTo&&console.error("unsupported configuration <keyboard.bindTo>",Error(P2));var o=t&&t.bind!==!1;e.on("canvas.init",function(r){n._target=r.svg,o&&n.bind(),n._fire("init")})}function Vs(t,e){var n=this;t.on("editorActions.init",$4,function(o){var r=o.editorActions;n.registerBindings(e,r)})}function j2(t,e,n){var o=this;this._config=j({},O4,t||{}),e.addListener(r);function r(i){var a=i.keyEvent,s=o._config;if(e.isCmd(a)&&e.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],a)){var c=e.isShift(a)?s.moveSpeedAccelerated:s.moveSpeed,l;switch(a.key){case"ArrowLeft":case"Left":l="left";break;case"ArrowUp":case"Up":l="up";break;case"ArrowRight":case"Right":l="right";break;case"ArrowDown":case"Down":l="down"}return o.moveCanvas({speed:c,direction:l}),!0}}this.moveCanvas=function(i){var a=0,s=0,c=i.speed/Math.min(Math.sqrt(n.viewbox().scale),1);switch(i.direction){case"left":a=c;break;case"up":s=c;break;case"right":a=-c;break;case"down":s=-c}n.scroll({dx:a,dy:s})}}function Qd(t){var e=Ie(document.body);e.removeMatching(z4),t&&e.add("djs-cursor-"+t)}function O2(){Qd(null)}function z2(t,e){e||="element.click";function n(){return!1}return t.once(e,L4,n),function(){t.off(e,n)}}function L2(t,e){var n;function o(s){return a(s.originalEvent)}t.on("canvas.focus.changed",function(s){s.focused?t.on("element.mousedown",500,o):t.off("element.mousedown",o)}),t.on("diagram.destroy",function(){n&&i()});function r(s){var c=n.start,l=n.button,p=Wi(s),d=Ko(p,c);if(!n.dragging&&I4(d)>N4&&(n.dragging=!0,l===0&&z2(t),Qd("grab")),n.dragging){var u=n.last||n.start;d=Ko(p,u),e.scroll({dx:d.x,dy:d.y}),n.last=p}s.preventDefault()}function i(s){$t.unbind(document,"mousemove",r),$t.unbind(document,"mouseup",i),n=null,O2()}function a(s){if(!Lr(s.target,".djs-draggable")){var c=s.button;if(!(c>=2||s.ctrlKey||s.shiftKey||s.altKey))return n={button:c,start:Wi(s)},$t.bind(document,"mousemove",r),$t.bind(document,"mouseup",i),!0}}this.isActive=function(){return!!n}}function I4(t){return Math.sqrt(t.x**2+t.y**2)}function rh(t){return Math.log(t)/Math.log(10)}function Wb(t,e){var n=rh(t.min),o=rh(t.max);return(Math.abs(n)+Math.abs(o))/e}function H4(t,e){return Math.max(t.min,Math.min(t.max,e))}function Nr(t,e,n){t||={},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=jn(this._handleWheel,this),this._totalDelta=0,this._scale=t.scale||G4;var o=this;e.on("canvas.mouseover",function(){o._init(t.enabled!==!1)}),e.on("canvas.mouseout",function(){o._init(!1)})}function Yc(t){si.call(this,t)}function jm(t){return t&&t[t.length-1]}function Ub(t){return t.y}function Vb(t){return t.x}function Ns(t,e){this._modeling=t,this._rules=e}function Is(t){this._scheduled={},t.on("diagram.destroy",()=>{Object.keys(this._scheduled).forEach(e=>{this.cancel(e)})})}function K4(){let t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}function pn(t,e,n,o){this._canvas=t,this._elementRegistry=e,this._eventBus=n,this._scheduler=o,this._current=null,this._init()}function Q4(t,e){var n=Ie(t);e=Ct(e)?e:e.split(/\s+/g),e.forEach(function(o){n.add(o)})}function tT(t){return t.waypoints[t.waypoints.length-1]}function eT(t,e){return t=Ct(t)?t:[t],e=Ct(e)?e:[e],t.length===e.length&&Ar(t,function(n){return e.includes(n)})}function gi(t,e){for(var n in e)t[n]=e[n];return t}function Ef(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function V2(t,e,n){var o,r,i,a={};for(i in e)i=="key"?o=e[i]:i=="ref"?r=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?tu.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)a[i]===void 0&&(a[i]=t.defaultProps[i]);return ad(t,a,o,r,null)}function ad(t,e,n,o,r){var i={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++F2,__i:-1,__u:0};return r==null&&Je.vnode!=null&&Je.vnode(i),i}function nu(t){return t.children}function sd(t,e){this.props=t,this.context=e}function Ia(t,e){if(e==null)return t.__?Ia(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?Ia(t):null}function oT(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,o=[],r=[],i=gi({},e);i.__v=e.__v+1,Je.vnode&&Je.vnode(i),Sf(t.__P,i,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,o,n??Ia(e),!!(32&e.__u),r),i.__v=e.__v,i.__.__k[i.__i]=i,Z2(o,i,r),e.__e=e.__=null,i.__e!=n&&q2(i)}}function q2(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),q2(t)}function Yb(t){(!t.__d&&(t.__d=!0)&&na.push(t)&&!Hd.__r++||Kb!=Je.debounceRendering)&&((Kb=Je.debounceRendering)||W2)(Hd)}function Hd(){try{for(var t,e=1;na.length;)na.length>e&&na.sort(G2),t=na.shift(),e=na.length,oT(t)}finally{na.length=Hd.__r=0}}function K2(t,e,n,o,r,i,a,s,c,l,p){var d,u,m,h,f,g,v=o&&o.__k||Id,k=e.length;for(c=rT(n,e,v,c,k),d=0;d<k;d++)(m=n.__k[d])!=null&&(u=m.__i!=-1&&v[m.__i]||Nd,m.__i=d,g=Sf(t,m,u,r,i,a,s,c,l,p),h=m.__e,m.ref&&u.ref!=m.ref&&(u.ref&&Tf(u.ref,null,m),p.push(m.ref,m.__c||h,m)),f==null&&h!=null&&(f=h),4&m.__u?(c=Y2(m,c,t),u.__e&&(u.__e=null)):typeof m.type=="function"&&g!==void 0?c=g:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=f,c}function rT(t,e,n,o,r){var i,a,s,c,l,p=n.length,d=p,u=0;for(t.__k=Array(r),i=0;i<r;i++)(a=e[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=t.__k[i]=ad(null,a,null,null,null):eu(a)?a=t.__k[i]=ad(nu,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=t.__k[i]=ad(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):t.__k[i]=a,c=i+u,a.__=t,a.__b=t.__b+1,s=null,(l=a.__i=iT(a,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(r>p?u--:r<p&&u++),typeof a.type!="function"&&(a.__u|=4)):l!=c&&(l==c-1?u--:l==c+1?u++:(l>c?u--:u++,a.__u|=4))):t.__k[i]=null;if(d)for(i=0;i<p;i++)(s=n[i])!=null&&!(2&s.__u)&&(s.__e==o&&(o=Ia(s)),Q2(s,s));return o}function Y2(t,e,n){var o,r;if(typeof t.type=="function"){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=Y2(o[r],e,n));return e}t.__e!=e&&(e&&t.type&&!e.parentNode&&(e=Ia(t)),e=n.insertBefore(t.__e,e||null));do e&&=e.nextSibling;while(e!=null&&e.nodeType==8);return e}function iT(t,e,n,o){var r,i,a,s=t.key,c=t.type,l=e[n],p=l!=null&&!(2&l.__u);if(l===null&&s==null||p&&s==l.key&&c==l.type)return n;if(o>+!!p){for(r=n-1,i=n+1;r>=0||i<e.length;)if((l=e[a=r>=0?r--:i++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return a}return-1}function Xb(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||nT.test(e)?n:n+"px"}function Lp(t,e,n,o,r){var i,a;t:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof o=="string"&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||Xb(t.style,e,"");if(n)for(e in n)o&&n[e]==o[e]||Xb(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")i=e!=(e=e.replace(U2,"$1")),a=e.toLowerCase(),e=a in t||e=="onFocusOut"||e=="onFocusIn"?a.slice(2):e.slice(2),t.l||={},t.l[e+i]=n,n?o?n[yl]=o[yl]:(n[yl]=_f,t.addEventListener(e,i?ah:ih,i)):t.removeEventListener(e,i?ah:ih,i);else{if(r=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function Zb(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e[id]==null)e[id]=_f++;else if(e[id]<n[yl])return;return n(Je.event?Je.event(e):e)}}}function Sf(t,e,n,o,r,i,a,s,c,l){var p,d,u,m,h,f,g,v,k,_,w,T,C,B,D,M,N=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[s=e.__e=n.__e]),(p=Je.__b)&&p(e);t:if(typeof N=="function"){d=a.length;try{if(k=e.props,_=N.prototype&&N.prototype.render,w=(p=N.contextType)&&o[p.__c],T=p?w?w.props.value:p.__:o,n.__c?v=(u=e.__c=n.__c).__=u.__E:(_?e.__c=u=new N(k,T):(e.__c=u=new sd(k,T),u.constructor=N,u.render=sT),w&&w.sub(u),u.state||(u.state={}),u.__n=o,m=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&N.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=gi({},u.__s)),gi(u.__s,N.getDerivedStateFromProps(k,u.__s))),h=u.props,f=u.state,u.__v=e,m)_&&N.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&N.getDerivedStateFromProps==null&&k!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(k,T),e.__v==n.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(k,u.__s,T)===!1){e.__v!=n.__v&&(u.props=k,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(z){z&&(z.__=e)}),Id.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&a.push(u),s=Ia(n);break t}u.componentWillUpdate!=null&&u.componentWillUpdate(k,u.__s,T),_&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,f,g)})}if(u.context=T,u.props=k,u.__P=t,u.__e=!1,C=Je.__r,B=0,_)u.state=u.__s,u.__d=!1,C&&C(e),p=u.render(u.props,u.state,u.context),Id.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,C&&C(e),p=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++B<25);u.state=u.__s,u.getChildContext!=null&&(o=gi(gi({},o),u.getChildContext())),_&&!m&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(h,f)),D=p!=null&&p.type===nu&&p.key==null?J2(p.props.children):p,s=K2(t,eu(D)?D:[D],e,n,o,r,i,a,s,c,l),u.base=e.__e,e.__u&=-161,u.__h.length&&a.push(u),v&&(u.__E=u.__=null)}catch(z){if(a.length=d,e.__v=null,c||i!=null){if(z.then){for(e.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i!=null&&(i[i.indexOf(s)]=null),e.__e=s}else if(i!=null)for(M=i.length;M--;)Ef(i[M])}else e.__e=n.__e;e.__k??=n.__k||[],z.then||X2(e),Je.__e(z,e,n)}}else i==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):s=e.__e=aT(n.__e,e,n,o,r,i,a,c,l);return(p=Je.diffed)&&p(e),128&e.__u?void 0:s}function X2(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(X2))}function Z2(t,e,n){for(var o=0;o<n.length;o++)Tf(n[o],n[++o],n[++o]);Je.__c&&Je.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(i){i.call(r)})}catch(i){Je.__e(i,r.__v)}})}function J2(t){return typeof t!="object"||!t||t.__b>0?t:eu(t)?t.map(J2):t.constructor===void 0?gi({},t):null}function aT(t,e,n,o,r,i,a,s,c){var l,p,d,u,m,h,f,g=n.props||Nd,v=e.props,k=e.type;if(k=="svg"?r="http://www.w3.org/2000/svg":k=="math"?r="http://www.w3.org/1998/Math/MathML":r||="http://www.w3.org/1999/xhtml",i!=null){for(l=0;l<i.length;l++)if((m=i[l])&&"setAttribute"in m==!!k&&(k?m.localName==k:m.nodeType==3)){t=m,i[l]=null;break}}if(t==null){if(k==null)return document.createTextNode(v);t=document.createElementNS(r,k,v.is&&v),s&&=(Je.__m&&Je.__m(e,i),!1),i=null}if(k==null)g===v||s&&t.data==v||(t.data=v);else{if(i=k=="textarea"&&v.defaultValue!=null?null:i&&tu.call(t.childNodes),!s&&i!=null)for(g={},l=0;l<t.attributes.length;l++)g[(m=t.attributes[l]).name]=m.value;for(l in g)m=g[l],l=="dangerouslySetInnerHTML"?d=m:l=="children"||l in v||l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v||Lp(t,l,null,m,r);for(l in v)m=v[l],l=="children"?u=m:l=="dangerouslySetInnerHTML"?p=m:l=="value"?h=m:l=="checked"?f=m:s&&typeof m!="function"||g[l]===m||Lp(t,l,m,g[l],r);if(p)s||d&&(p.__html==d.__html||p.__html==t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(d&&(t.innerHTML=""),K2(e.type=="template"?t.content:t,eu(u)?u:[u],e,n,o,k=="foreignObject"?"http://www.w3.org/1999/xhtml":r,i,a,i?i[0]:n.__k&&Ia(n,0),s,c),i!=null)for(l=i.length;l--;)Ef(i[l]);s&&k!="textarea"||(l="value",k=="progress"&&h==null?t.removeAttribute("value"):h!=null&&(h!==t[l]||k=="progress"&&!h||k=="option"&&h!=g[l])&&Lp(t,l,h,g[l],r),l="checked",f!=null&&f!=t[l]&&Lp(t,l,f,g[l],r))}return t}function Tf(t,e,n){try{if(typeof t=="function"){var o=typeof t.__u=="function";o&&t.__u(),o&&e==null||(t.__u=t(e))}else t.current=e}catch(r){Je.__e(r,n)}}function Q2(t,e,n){var o,r;if(Je.unmount&&Je.unmount(t),(o=t.ref)&&(o.current&&o.current!=t.__e||Tf(o,null,e)),(o=t.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(i){Je.__e(i,e)}o.base=o.__P=o.__n=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&Q2(o[r],e,n||typeof t.type!="function");n||Ef(t.__e),t.__c=t.__=t.__e=void 0}function sT(t,e,n){return this.constructor(t,n)}function Fd(t,e,n){var o,r,i,a;e==document&&(e=document.documentElement),Je.__&&Je.__(t,e),r=(o=typeof n=="function")?null:n&&n.__k||e.__k,i=[],a=[],Sf(e,t=(!o&&n||e).__k=V2(nu,null,[t]),r||Nd,Nd,e.namespaceURI,!o&&n?[n]:r?null:e.firstChild?tu.call(e.childNodes):null,i,!o&&n?n:r?r.__e:e.firstChild,o,a),Z2(i,t,a),t.props.children=null}function cT(t){var e=Jb.get(this);return e||(e=new Map,Jb.set(this,e)),(e=tk(this,e.get(t)||(e.set(t,e=(function(n){for(var o,r,i=1,a="",s="",c=[0],l=function(u){i===1&&(u||(a=a.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?c.push(0,u,a):i===3&&(u||a)?(c.push(3,u,a),i=2):i===2&&a==="..."&&u?c.push(4,u,0):i===2&&a&&!u?c.push(5,0,!0,a):i>=5&&((a||!u&&i===5)&&(c.push(i,0,a,r),i=6),u&&(c.push(i,u,0,r),i=6)),a=""},p=0;p<n.length;p++){p&&(i===1&&l(),l(p));for(var d=0;d<n[p].length;d++)o=n[p][d],i===1?o==="<"?(l(),c=[c],i=3):a+=o:i===4?a==="--"&&o===">"?(i=1,a=""):a=o+a[0]:s?o===s?s="":a+=o:o==='"'||o==="'"?s=o:o===">"?(l(),i=1):i&&(o==="="?(i=5,r=a,a=""):o==="/"&&(i<5||n[p][d+1]===">")?(l(),i===3&&(c=c[0]),i=c,(c=c[0]).push(2,0,i),i=0):o===" "||o===" "||o==="\n"||o==="\r"?(l(),i=2):a+=o),i===3&&a==="!--"&&(i=4,c=c[0])}return l(),c})(t)),e),arguments,[])).length>1?e:e[0]}function ou(t,e){gn.__h&&gn.__h(un,t,kl||e),kl=0;var n=un.__H||(un.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Ms(t){return kl=1,lT(nk,t)}function lT(t,e,n){var o=ou(qs++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):nk(void 0,e),function(s){var c=o.__N?o.__N[0]:o.__[0],l=o.t(c,s);c!==l&&(o.__N=[l,o.__[1]],o.__c.setState({}))}],o.__c=un,!un.__f)){var r=function(s,c,l){if(!o.__c.__H)return!0;var p=!1,d=o.__c.props!==s;if(o.__c.__H.__.some(function(m){if(m.__N){p=!0;var h=m.__[0];m.__=m.__N,m.__N=void 0,h!==m.__[0]&&(d=!0)}}),i){var u=i.call(this,s,c,l);return p?u||d:u}return!p||d};un.__f=!0;var i=un.shouldComponentUpdate,a=un.componentWillUpdate;un.componentWillUpdate=function(s,c,l){if(this.__e){var p=i;i=void 0,r(s,c,l),i=p}a&&a.call(this,s,c,l)},un.shouldComponentUpdate=r}return o.__N||o.__}function cd(t,e){var n=ou(qs++,3);!gn.__s&&Cf(n.__H,e)&&(n.__=t,n.u=e,un.__H.__h.push(n))}function wl(t,e){var n=ou(qs++,4);!gn.__s&&Cf(n.__H,e)&&(n.__=t,n.u=e,un.__h.push(n))}function bl(t){return kl=5,Fr(function(){return{current:t}},[])}function Fr(t,e){var n=ou(qs++,7);return Cf(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function zo(t,e){return kl=8,Fr(function(){return t},e)}function pT(){for(var t;t=ek.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(ld),e.__h.some(sh),e.__h=[]}catch(n){e.__h=[],gn.__e(n,t.__v)}}}function dT(t){var e,n=function(){clearTimeout(o),av&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,35);av&&(e=requestAnimationFrame(n))}function ld(t){var e=un,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),un=e}function sh(t){var e=un;t.__c=t.__(),un=e}function Cf(t,e){return!t||t.length!==e.length||e.some(function(n,o){return n!==t[o]})}function nk(t,e){return typeof e=="function"?e(t):e}function uT(t){let{navigationStack:e,setNavigationStack:n}=t,o=Fr(()=>e.length<=1?[]:e.slice(0,-1).map((a,s)=>({label:a.label,onClick:()=>n(c=>c.slice(0,s+1))})),[e,n]),r=e.length>0?()=>n([]):null,i=e.length>0?e[e.length-1].label:null;return re(Yx||(Yx=ne(['\n <div class="djs-popup-breadcrumbs">\n ',"\n ","\n ","\n </div>\n "])),r&&re(Vx||(Vx=ne(['\n <button\n type="button"\n class="djs-popup-breadcrumbs-item djs-popup-breadcrumbs-item--back"\n title="Back"\n aria-label="Back"\n onClick=','\n >\n <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8.03033 1.46967C8.32322 1.76256 8.32322 2.23744 8.03033 2.53033L4.56066 6L8.03033 9.46967C8.32322 9.76256 8.32322 10.2374 8.03033 10.5303C7.73744 10.8232 7.26256 10.8232 6.96967 10.5303L2.96967 6.53033C2.67678 6.23744 2.67678 5.76256 2.96967 5.46967L6.96967 1.46967C7.26256 1.17678 7.73744 1.17678 8.03033 1.46967Z" fill="currentColor"/>\n </svg>\n </button>\n '])),r),o.map((a,s)=>re(qx||(qx=ne(["\n <button\n key=",'\n type="button"\n class="djs-popup-breadcrumbs-item"\n onClick=',"\n title=","\n >\n ",'\n </button>\n <span class="djs-popup-breadcrumbs-item--separator" aria-hidden="true"></span>\n '])),s,a.onClick,a.label,a.label)),i&&re(Kx||(Kx=ne(['\n <span class="djs-popup-breadcrumbs-item djs-popup-breadcrumbs-item--current" title=',">\n ","\n </span>\n "])),i,i))}function mT(t){let{headerEntries:e,onSelect:n,selectedEntry:o,setSelectedEntry:r,title:i}=t,a=Fr(()=>hT(e),[e]),s=l=>l.action&&!l.disabled,c=(l,p)=>{if(s(p))return n(l,p)};return re(e2||(e2=ne(['\n <div class="djs-popup-header">\n <h3 class="djs-popup-title" title=',">","</h3>\n ","\n </div>\n "])),i,i,a.map(l=>re(t2||(t2=ne(["\n <ul key=",' class="djs-popup-header-group" data-header-group=',">\n\n ","\n </ul>\n "])),l.id,l.id,l.entries.map(p=>re(Qx||(Qx=ne(["\n <li key=",">\n <","\n class=","\n onClick=","\n title=","\n data-id=","\n aria-disabled=","\n onMouseEnter=","\n onMouseLeave=","\n onFocus=","\n onBlur=","\n >\n ","\n ","\n </",">\n </li>\n "])),p.id,s(p)?"button":"span",fT(p,p===o),d=>c(d,p),p.title||p.label,p.id,p.disabled||void 0,()=>s(p)&&r(p),()=>s(p)&&r(null),()=>s(p)&&r(p),()=>s(p)&&r(null),p.imageUrl&&re(Xx||(Xx=ne(['<img class="djs-popup-entry-icon" src=',' alt="" />'])),p.imageUrl)||p.imageHtml&&re(Zx||(Zx=ne(['<div class="djs-popup-entry-icon" dangerouslySetInnerHTML='," />"])),{__html:p.imageHtml}),p.label?re(Jx||(Jx=ne(['\n <span class="djs-popup-label">',"</span>\n "])),p.label):null,p.action?"button":"span")))))}function hT(t){return t.reduce((e,n)=>{let o=n.group||"default",r=e.find(i=>i.id===o);return r?r.entries.push(n):e.push({id:o,entries:[n]}),e},[])}function fT(t,e){return Qs("entry",t.className,t.active?"active":"",t.disabled?"disabled":"",e?"selected":"")}function ok(t,e){return"".concat(t,"-entry-").concat(e.id)}function gT(t){let{idPrefix:e,entry:n,selected:o,onMouseEnter:r,onMouseMove:i,onMouseLeave:a,onAction:s}=t,c=(p,d)=>{if(!n.disabled)return s(p,n,d)},l=!n.entries;return re(l2||(l2=ne(["\n <li\n class=","\n data-id=","\n id=",'\n role="option"\n aria-selected=',"\n aria-haspopup=","\n title=","\n aria-disabled=","\n onClick=","\n onMouseEnter=","\n onMouseMove=","\n onMouseLeave=","\n onDragStart=","\n draggable=",'\n >\n <div class="djs-popup-entry-content">\n <span\n class=',"\n >\n ","\n\n ","\n </span>\n ","\n </div>\n ","\n </li>\n "])),Qs("entry",{selected:o,disabled:n.disabled}),n.id,ok(e,n),o||void 0,n.entries?"true":void 0,n.title,n.disabled||void 0,c,r,i,a,p=>l&&c(p,"dragstart"),l,Qs("djs-popup-entry-name",n.className),n.imageUrl&&re(n2||(n2=ne(['<img class="djs-popup-entry-icon" src=',' alt="" />'])),n.imageUrl)||n.imageHtml&&re(o2||(o2=ne(['<div class="djs-popup-entry-icon" dangerouslySetInnerHTML='," />"])),{__html:n.imageHtml}),n.label?re(r2||(r2=ne(['\n <span class="djs-popup-label">\n ',"\n </span>\n "])),n.label):null,n.description&&re(i2||(i2=ne(['\n <span\n class="djs-popup-entry-description"\n >\n ',"\n </span>\n "])),n.description),(n.documentationRef||n.entries)&&re(c2||(c2=ne(['\n <div class="djs-popup-entry-actions">\n ',"\n ","\n </div>\n "])),n.documentationRef&&re(a2||(a2=ne(['\n <a\n class="djs-popup-entry-docs"\n href=',"\n onClick=",'\n title="Open entry documentation"\n tabIndex="-1"\n aria-hidden="true"\n target="_blank"\n rel="noopener"\n >\n <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6368 10.6375V5.91761H11.9995V10.6382C11.9995 10.9973 11.8623 11.3141 11.5878 11.5885C11.3134 11.863 10.9966 12.0002 10.6375 12.0002H1.36266C0.982345 12.0002 0.660159 11.8681 0.396102 11.6041C0.132044 11.34 1.52588e-05 11.0178 1.52588e-05 10.6375V1.36267C1.52588e-05 0.98236 0.132044 0.660173 0.396102 0.396116C0.660159 0.132058 0.982345 2.95639e-05 1.36266 2.95639e-05H5.91624V1.36267H1.36266V10.6375H10.6368ZM12 0H7.2794L7.27873 1.36197H9.68701L3.06507 7.98391L4.01541 8.93425L10.6373 2.31231V4.72059H12V0Z" fill="currentColor"/>\n </svg>\n </a>\n '])),n.documentationRef,p=>p.stopPropagation()),n.entries&&re(s2||(s2=ne(['\n <div class="djs-popup-entry-chevron" aria-hidden="true">\n <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.96967 1.46967C4.26256 1.17678 4.73744 1.17678 5.03033 1.46967L9.03033 5.46967C9.32322 5.76256 9.32322 6.23744 9.03033 6.53033L5.03033 10.5303C4.73744 10.8232 4.26256 10.8232 3.96967 10.5303C3.67678 10.2374 3.67678 9.76256 3.96967 9.46967L7.43934 6L3.96967 2.53033C3.67678 2.23744 3.67678 1.76256 3.96967 1.46967Z" fill="currentColor"/>\n </svg>\n </div>\n '])))))}function yT(t){let{selectedEntry:e,setSelectedEntry:n,groupedEntries:o,keyboardSelection:r,onPointerInteraction:i,idPrefix:a,id:s,ariaLabel:c,tabIndex:l,ariaActivedescendant:p,...d}=t,u=bl();wl(()=>{if(!r||!r.current)return;let v=u.current;if(!v)return;let k=v.querySelector(".selected");k&&bT(k)},[e]);let m=()=>{r.current=!1,i()},h=v=>{v!==e&&n(v)},f=v=>{r.current||n(v)},g=()=>{r.current||n(null)};return re(m2||(m2=ne(['\n <div\n class="djs-popup-results"\n ref=',"\n id=",'\n role="listbox"\n aria-label=',"\n tabIndex=","\n aria-activedescendant=","\n onMouseMove=","\n >\n ","\n </div>\n "])),u,s,c,l,p,m,o.map(v=>re(u2||(u2=ne(["\n ",'\n <ul\n class="djs-popup-group"\n data-group=','\n role="group"\n aria-labelledby=',"\n >\n ","\n </ul>\n "])),v.name&&re(p2||(p2=ne(["\n <div key="," id=",' class="entry-header" title=',">\n ","\n </div>\n "])),v.id,sv(a,v),v.name,v.name),v.id,v.name?sv(a,v):void 0,v.entries.map(k=>re(d2||(d2=ne(["\n <","\n key=","\n idPrefix=","\n entry=","\n selected=","\n onMouseEnter=","\n onMouseMove=","\n onMouseLeave=","\n ...","\n />\n "])),gT,k.id,a,k,k===e,()=>f(k),()=>h(k),g,d)))))}function sv(t,e){return"".concat(t,"-group-").concat(e.id)}function bT(t){typeof t.scrollIntoViewIfNeeded=="function"?t.scrollIntoViewIfNeeded():t.scrollIntoView({scrollMode:"if-needed",block:"nearest"})}function xT(t){let{onClose:e,onSelect:n,className:o,headerEntries:r,position:i,title:a,width:s,scale:c,search:l,emptyPlaceholder:p,searchFn:d,entries:u,onOpened:m,onClosed:h,defaultTab:f}=t,[g,v]=Ms([]);cd(()=>{v([]),w(null)},[u]);let k=Fr(()=>{let q=[],st=new Set,wt=!1;return u.forEach(({tab:se})=>{se?st.has(se.id)||(st.add(se.id),q.push(se)):wt=!0}),!q.length||wt&&!f?[]:wt?[f,...q.filter(se=>se.id!==f.id)]:q},[u,f]),[_,w]=Ms(null),T=k.some(q=>q.id===_)?_:k.length?k[0].id:null,C=bl();wl(()=>{let q=C.current;if(!q)return;let st=q.querySelector('[aria-selected="true"]');st&&cv(st)},[T]);let[B,D]=Ms({start:!1,end:!1}),M=zo(()=>{let{scrollLeft:q,scrollWidth:st,clientWidth:wt}=C.current;D({start:q>0,end:st-wt-q>1})},[]),N=zo(q=>{let st=C.current,wt=Math.abs(q.deltaX)>Math.abs(q.deltaY)?q.deltaX:q.deltaY;if(!wt)return;let{scrollLeft:se,scrollWidth:ze,clientWidth:ce}=st;ze-ce<1||(q.preventDefault(),st.scrollLeft=se+wt,M())},[M]);wl(()=>{let q=C.current;if(q)return M(),q.addEventListener("scroll",M),q.addEventListener("wheel",N,{passive:!1}),()=>{q.removeEventListener("scroll",M),q.removeEventListener("wheel",N)}},[k,T,M,N]);let z=zo(q=>{let st=C.current,wt=q>0?[...st.children]:[...st.children].reverse(),se=st.getBoundingClientRect(),ze=wt.find(ce=>{let Re=ce.getBoundingClientRect();return q>0?Re.right>se.right+1:Re.left<se.left-1});ze&&(cv(ze),M())},[M]),V=zo(q=>q.tab&&q.tab.id||f&&f.id,[f]),[gt,ht]=Ms(""),Rt=gt.trim().length>0,Pe=Fr(()=>_T(u),[u]),Pt=Fr(()=>on(l)?Pe.length>5:!1,[l,Pe]),Et=Fr(()=>{let q=g.length?g[g.length-1].entries:k.length>1?u.filter(st=>V(st)===T):u;return Pt?Rt?d(Pe.filter(({searchable:st})=>st!==!1),gt,{keys:["label","search","description"]}).map(({item:st})=>st):q.filter(({rank:st=0})=>st>=0):q},[Pt,Rt,Pe,gt,d,g,u,k,T,V]),St=Fr(()=>Rt?Et.length?[{id:"default",entries:Et}]:[]:ET(Et),[Et,Rt]),[pt,Ot]=Ms(Et[0]),U=bl(null),G=bl(!1),[nt,Yt]=Ms("keyboard"),fe=zo(()=>{Yt("keyboard")},[]),R=zo(()=>{Yt("pointer")},[]),x=Fr(()=>vT.next(),[]),b="".concat(x,"-results"),L=pt&&ok(x,pt);cd(()=>{let q=U.current;q&&Et.includes(q)?Ot(q):Ot(Et[0]),U.current=null},[Et]);let H=zo(q=>{let st=wT(St),wt=st.indexOf(pt)+q;wt<0&&(wt=st.length-1),wt>=st.length&&(wt=0),G.current=!0,Ot(st[wt])},[St,pt]),ot=zo(q=>{q>0&&pt&&pt.entries&&(G.current=!0,v(st=>[...st,pt])),q<0&&g.length>0&&(G.current=!0,U.current=g[g.length+q],v(st=>st.slice(0,q)))},[pt,g]),bt=zo((q,st,wt)=>{if(st&&!st.disabled)return st.entries?(q.preventDefault(),ot(1)):n(q,st,wt)},[n,ot]),vt=zo(q=>{if(q.key==="Enter"&&pt){let st=q.target;return Lr(st,"a, button",!0)||pt.disabled?void 0:bt(q,pt)}if(q.key==="Backspace"){let st=q.target;if(!(Dp(st,"input")&&st.value!==""))return ot(-1),q.preventDefault()}if(q.key==="ArrowUp")return H(-1),q.preventDefault();if(q.key==="ArrowDown")return H(1),q.preventDefault();if(q.key==="ArrowRight")return ot(1),q.preventDefault();if(q.key==="ArrowLeft")return ot(-1),q.preventDefault()},[pt,H,ot,bt]),de=zo((q,st)=>{if(w(st),!q.detail)return;let wt=Lr(q.currentTarget,".djs-popup",!0),se=wt&&wt.querySelector("input");se&&se.focus()},[]),Gt=zo(q=>{if(q.key==="Enter"||q.key===" "){q.stopPropagation();return}if(q.key==="ArrowDown"||q.key==="ArrowUp"){let ce=Lr(q.currentTarget,".djs-popup",!0),Re=ce.querySelector("input")||ce.querySelector('[role="listbox"]');Re&&Re.focus();return}let st=k.findIndex(ce=>ce.id===T),wt;if(q.key==="ArrowLeft")wt=(st-1+k.length)%k.length;else if(q.key==="ArrowRight")wt=(st+1)%k.length;else if(q.key==="Home")wt=0;else if(q.key==="End")wt=k.length-1;else return;q.preventDefault(),q.stopPropagation(),w(k[wt].id);let se=q.currentTarget.parentNode,ze=se&&se.children[wt];ze&&ze.focus()},[k,T]),Xt=zo(q=>{Dp(q.target,"input")&&ht(()=>q.target.value)},[ht]);cd(()=>(m(),()=>{h()}),[]);let _e=!Rt&&g.length>0,Oe=k.length>1&&!Rt&&g.length===0;return re(E2||(E2=ne(["\n <","\n onClose=","\n onKeyup=","\n onKeydown=","\n className=","\n position=","\n width=","\n scale=","\n navigationStack=","\n interactionMode=","\n onKeyboardInteraction=","\n >\n ","\n ","\n ","\n ","\n </",">\n "])),lv,e,Xt,vt,o,i,s,c,g,nt,fe,(a||r.length>0)&&!_e&&re(h2||(h2=ne(["\n <","\n headerEntries=","\n onSelect=","\n selectedEntry=","\n setSelectedEntry=","\n title=","\n />\n "])),mT,r,n,pt,Ot,a),_e&&re(f2||(f2=ne(["\n <","\n navigationStack=","\n setNavigationStack=","\n />\n "])),uT,g,v),u.length>0&&re(w2||(w2=ne(['\n <div class="djs-popup-body">\n\n ',"\n\n ","\n\n ","\n\n <","\n groupedEntries=","\n selectedEntry=","\n setSelectedEntry=","\n keyboardSelection=","\n onPointerInteraction=","\n onAction=","\n idPrefix=","\n id=","\n ariaLabel=","\n tabIndex=","\n ariaActivedescendant=","\n />\n\n ","\n </div>\n "])),Pt&&re(g2||(g2=ne(['\n <div class="djs-popup-search">\n <svg class="djs-popup-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>\n </svg>\n <input\n type="text"\n spellcheck=','\n role="combobox"\n aria-label="','"\n aria-expanded="true"\n aria-controls=',"\n aria-activedescendant=",'\n aria-autocomplete="list"\n />\n </div>\n '])),!1,a||"Search",b,L||void 0),Oe&&re(v2||(v2=ne(['\n <div class="djs-popup-tabs-container">\n <div class="djs-popup-tabs" ref=',' role="tablist">\n ',"\n </div>\n\n ","\n ","\n </div>\n "])),C,k.map(q=>re(y2||(y2=ne(['\n <button\n type="button"\n class="djs-popup-tab"\n role="tab"\n title=',"\n aria-controls=","\n aria-selected=","\n tabIndex=","\n onClick=","\n onKeydown=","\n >","</button>\n "])),q.title||void 0,b,q.id===T,q.id===T?0:-1,st=>de(st,q.id),Gt,q.label)),"",[-1,1].map(q=>(q<0?B.start:B.end)&&re(b2||(b2=ne(['\n <button\n type="button"\n class=','\n aria-hidden="true"\n tabIndex="-1"\n onMousedown=',"\n onClick=",'\n >\n <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.96967 1.46967C4.26256 1.17678 4.73744 1.17678 5.03033 1.46967L9.03033 5.46967C9.32322 5.76256 9.32322 6.23744 9.03033 6.53033L5.03033 10.5303C4.73744 10.8232 4.26256 10.8232 3.96967 10.5303C3.67678 10.2374 3.67678 9.76256 3.96967 9.46967L7.43934 6L3.96967 2.53033C3.67678 2.23744 3.67678 1.76256 3.96967 1.46967Z" fill="currentColor"/>\n </svg>\n </button>\n '])),"djs-popup-tabs-scroll djs-popup-tabs-scroll-".concat(q<0?"start":"end"),st=>st.preventDefault(),()=>z(q)))),Rt&&re(x2||(x2=ne(['\n <div class="djs-popup-search-count" aria-live="polite">\n '," "," found\n </div>\n "])),Et.length,Et.length===1?"result":"results"),yT,St,pt,Ot,G,R,bt,x,b,a||"Results",Pt?-1:0,Pt?void 0:L||void 0,pt&&pt.documentationRef&&re(k2||(k2=ne(['\n <div class="djs-popup-footer">\n <a\n class="djs-popup-footer-docs"\n href=',"\n onClick=","\n aria-label=",'\n target="_blank"\n rel="noopener"\n >\n Open entry documentation\n\n <svg aria-hidden="true" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6368 10.6375V5.91761H11.9995V10.6382C11.9995 10.9973 11.8623 11.3141 11.5878 11.5885C11.3134 11.863 10.9966 12.0002 10.6375 12.0002H1.36266C0.982345 12.0002 0.660159 11.8681 0.396102 11.6041C0.132044 11.34 1.52588e-05 11.0178 1.52588e-05 10.6375V1.36267C1.52588e-05 0.98236 0.132044 0.660173 0.396102 0.396116C0.660159 0.132058 0.982345 2.95639e-05 1.36266 2.95639e-05H5.91624V1.36267H1.36266V10.6375H10.6368ZM12 0H7.2794L7.27873 1.36197H9.68701L3.06507 7.98391L4.01541 8.93425L10.6373 2.31231V4.72059H12V0Z" fill="#818798"/>\n </svg>\n </a>\n </div>\n '])),pt.documentationRef,q=>q.stopPropagation(),pt.label?"Open entry documentation for ".concat(pt.label):"Open entry documentation")),p&&Et.length===0&&re(_2||(_2=ne(['\n <div class="djs-popup-no-results">',"</div>\n "])),Ke(p)?p(gt):p),lv)}function cv(t){typeof t.scrollIntoViewIfNeeded=="function"?t.scrollIntoViewIfNeeded():t.scrollIntoView({scrollMode:"if-needed",block:"nearest",inline:"nearest"})}function lv(t){let{onClose:e,onKeydown:n,onKeyup:o,onKeyboardInteraction:r,className:i,children:a,navigationStack:s,interactionMode:c,position:l}=t,p=bl();return wl(()=>{if(typeof l!="function")return;let d=p.current,u=l(d);d.style.left="".concat(u.x,"px"),d.style.top="".concat(u.y,"px")},[p.current,l]),wl(()=>{let d=p.current;d&&(d.querySelector("input")||d.querySelector('[role="listbox"]')||d).focus()},[s]),cd(()=>{let d=m=>{if(m.key==="Escape")return m.preventDefault(),e()},u=m=>{if(!Lr(m.target,".djs-popup",!0))return e()};return document.documentElement.addEventListener("keydown",d),document.body.addEventListener("click",u,!0),()=>{document.documentElement.removeEventListener("keydown",d),document.body.removeEventListener("click",u,!0)}},[]),re(S2||(S2=ne(["\n <div\n class=","\n style=","\n onKeydownCapture=","\n onKeydown=","\n onKeyup=","\n ref=",'\n tabIndex="-1"\n >\n ',"\n </div>\n "])),Qs("djs-popup",i,{"djs-popup--pointer":c==="pointer"}),kT(t),r,n,o,p,a)}function kT(t){let{width:e}=t,n=typeof e=="number"?"".concat(e,"px"):e;return{transform:"scale(".concat(t.scale,")"),width:on(e)?n:void 0,maxWidth:on(e)?"unset":void 0,"transform-origin":"top left"}}function wT(t){let e=[];return t.forEach(n=>{n.entries.forEach(o=>{e.push(o)})}),e}function _T(t){let e=[];function n(o){o.forEach(r=>{r.entries?n(r.entries):e.push(r)})}return n(t),e}function ET(t){let e=[],n=i=>e.find(a=>i.id===a.id),o=i=>!!n(i),r=i=>typeof i=="string"?{id:i}:i;return t.forEach(i=>{let a=i.group?r(i.group):{id:"default"};o(a)?n(a).entries.push(i):e.push({...a,entries:[i]})}),e}function Xe(t,e,n,o){this._eventBus=e,this._canvas=n,this._search=o,this._current=null;var r=on(t&&t.scale)?t.scale:{min:1,max:1};this._config={scale:r,defaultTab:t&&t.defaultTab},e.on("diagram.destroy",()=>{this.close()}),e.on("element.changed",i=>{let a=this.isOpen()&&this._current.target;i.element===a&&this.refresh()})}function rk(t,e=[]){return Object.entries(t).map(([n,o])=>{let r={id:n,...o};return r.entries?r.entries=rk(r.entries,[...e,...dv(r.search)]):e.length&&(r.search=[...e,...dv(r.search)]),r})}function dv(t){return t?Ct(t)?t:[t]:[]}function CT(t,e,n){let{keys:o}=n;if(e=e.trim().toLowerCase(),!e)throw Error("<pattern> must not be empty");let r=e.trim().toLowerCase().split(/\s+/);return t.flatMap(i=>{let a=RT(i,r,o);return a?{item:i,tokens:a}:[]}).sort(BT(o))}function RT(t,e,n){let{matchedWords:o,tokens:r}=n.reduce((i,a)=>{let s=t[a],{tokens:c,matchedWords:l}=Ct(s)?s.reduce((p,d)=>{let{tokens:u,matchedWords:m}=fv(d,e);return{tokens:[...p.tokens,u],matchedWords:{...p.matchedWords,...m}}},{matchedWords:{},tokens:[]}):fv(s,e);return{tokens:{...i.tokens,[a]:c},matchedWords:{...i.matchedWords,...l}}},{matchedWords:{},tokens:{}});return Object.keys(o).length===e.length?r:null}function BT(t){return(e,n)=>{let o=0,r=1;for(let i of t){let a=AT(e.tokens[i],n.tokens[i]);if(a!==0){o+=a*r,r*=uv;continue}let s=MT(e.item[i],n.item[i]);s!==0&&(o+=s*r,r*=uv)}return o}}function AT(t,e){return mv(e)-mv(t)}function mv(t){let e=t.reduce((i,a)=>i+ik(a),0),n=t.flat(),o=n.reduce((i,a)=>i+a.value.length,0),r=n.reduce((i,a)=>i+(a.match?a.value.length:0),0);return e*(1+(o?r/o:0))}function ik(t){if(Ct(t))return Math.max(...t.map(ik));let e=Math.log(t.value.length);return t.match?(t.start?t.end?Ds.FULL:t.wordEnd?Ds.START_FULL_WORD:Ds.START_WORD_PART:t.wordStart?Ds.WORD_START:Ds.WORD_PART)*e:Ds.NO_MATCH*e}function hv(t=""){return Ct(t)?t.join(", "):t}function MT(t,e){return hv(t).localeCompare(hv(e))}function fv(t,e){if(!t)return{tokens:[],matchedWords:{}};let n=[],o={},r=e.map(DT),i=["(?<all>".concat(r.join("\\s+"),")"),...r].join("|"),a=new RegExp(i,"ig"),s,c=0;for(;s=a.exec(t);){let[l]=s,p=s.index,d=s.index+l.length,u=p===0,m=d===t.length,h=!!s.groups?.all,f=u||/\s/.test(t.charAt(p-1)),g=m||/\s/.test(t.charAt(d));s.index>c&&n.push({value:t.slice(c,s.index),index:c}),n.push({value:l,index:s.index,match:!0,wordStart:f,wordEnd:g,start:u,end:m,all:h});let v=h?e:[l];for(let k of v)o[k.toLowerCase()]=!0;c=s.index+l.length}return c<t.length&&n.push({value:t.slice(c),index:c}),{tokens:n,matchedWords:o}}function DT(t){return t.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")}function Hs(t,e,n,o){t.registerProvider(PT,this),this._contextPad=t,this._popupMenu=e,this._translate=n,this._canvas=o}function Xc(t,e,n,o){this._alignElements=e,this._translate=n,this._popupMenu=t,this._rules=o,t.registerProvider("align-elements",this)}function or(t){J.call(this,t),this.init()}function pd(t){or.call(this,t)}function Bf(t,e,n,o){for(var r;r=LT(t,n,e);)n=o(e,n,r);return n}function Af(t){return function(e,n,o){var r={x:n.x,y:n.y};return["x","y"].forEach(function(i){var a=t[i];if(a){var s=i==="x"?"width":"height",c=a.margin,l=a.minDistance;r[i]=c<0?Math.min(o[i]+c-e[s]/2,n[i]-l+c):Math.max(o[i]+o[s]+c+e[s]/2,n[i]+l+c)}}),r}}function LT(t,e,n){var o={x:e.x-n.width/2,y:e.y-n.height/2,width:n.width,height:n.height},r=IT(t);return ve(r,function(i){return i!==n&&Cn(i,o,OT)==="intersect"})}function NT(t,e){e||={};function n(m){return m.source===t?1:-1}var o=e.defaultDistance||50,r=e.direction||"e",i=e.filter,a=e.getWeight||n,s=e.maxDistance||zT,c=e.reference||"start";i||=WT;function l(m,h){return r==="n"?c==="start"?_t(m).top-_t(h).bottom:c==="center"?_t(m).top-Tt(h).y:_t(m).top-_t(h).top:r==="w"?c==="start"?_t(m).left-_t(h).right:c==="center"?_t(m).left-Tt(h).x:_t(m).left-_t(h).left:r==="s"?c==="start"?_t(h).top-_t(m).bottom:c==="center"?Tt(h).y-_t(m).bottom:_t(h).bottom-_t(m).bottom:c==="start"?_t(h).left-_t(m).right:c==="center"?Tt(h).x-_t(m).right:_t(h).right-_t(m).right}var p=t.incoming.filter(i).map(function(m){var h=a(m),f=h<0?l(m.source,t):l(t,m.source);return{id:m.source.id,distance:f,weight:h}}),d=t.outgoing.filter(i).map(function(m){var h=a(m),f=h>0?l(t,m.target):l(m.target,t);return{id:m.target.id,distance:f,weight:h}}),u=p.concat(d).reduce(function(m,h){return m[h.id+"__weight_"+h.weight]=h,m},{});return Zn(u,function(m,h){var f=h.distance,g=h.weight;return f<0||f>s||(m[String(f)]||(m[String(f)]=0),m[String(f)]+=1*g,(!m.distance||m[m.distance]<m[String(f)])&&(m.distance=f)),m},{}).distance||o}function IT(t){var e=zm(t);return t.host&&(e=e.concat(zm(t.host))),t.attachers&&(e=e.concat(t.attachers.reduce(function(n,o){return n.concat(zm(o))},[]))),e}function zm(t){return FT(t).concat(HT(t))}function HT(t){return t.incoming.map(function(e){return e.source})}function FT(t){return t.outgoing.map(function(e){return e.target})}function WT(){return!0}function ck(t,e,n){t.on("autoPlace",GT,function(o){var r=o.shape,i=o.source;return UT(i,r)}),t.on("autoPlace.end",function(o){n.scrollToElement(o.shape)}),this.append=function(o,r,i){t.fire("autoPlace.start",{source:o,shape:r});var a=t.fire("autoPlace",{source:o,shape:r}),s=e.appendShape(o,r,a,o.parent,i);return t.fire("autoPlace.end",{source:o,shape:s}),s}}function UT(t,e,n){n||={};var o=n.defaultDistance||50,r=Tt(t);return{x:_t(t).right+o+e.width/2,y:r.y}}function lk(t,e){t.on("autoPlace.end",500,function(n){e.select(n.shape)})}function pk(t,e,n){var o=_m(t,n);if(y(e,"bpmn:TextAnnotation"))return KT(t,e,o);if(Ht(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"]))return YT(t,e,o);if(y(e,"bpmn:FlowNode"))return qT(t,e,o)}function qT(t,e,n){var o=_t(t),r=Tt(t),i=n?{directionHint:"e",minDistance:80,baseOrientation:"left",boundaryOrientation:"top",start:"top",end:"bottom"}:{directionHint:"s",minDistance:90,baseOrientation:"top",boundaryOrientation:"left",start:"left",end:"right"},a=NT(t,{filter:function(u){return y(u,"bpmn:SequenceFlow")},direction:i.directionHint}),s=30,c=i.minDistance,l=i.baseOrientation;y(t,"bpmn:BoundaryEvent")&&(l=Cn(t,t.host,-25),l.indexOf(i.boundaryOrientation)!==-1&&(s*=-1));var p=n?{x:o.right+a+e.width/2,y:r.y+gv(l,c,i)}:{x:r.x+gv(l,c,i),y:o.bottom+a+e.height/2},d={margin:s,minDistance:c};return Bf(t,e,p,Af(n?{y:d}:{x:d}))}function gv(t,e,n){return t.includes(n.start)?-1*e:t.includes(n.end)?e:0}function KT(t,e,n){var o=_t(t),r=n?{x:o.right+e.width/2,y:o.top-50-e.height/2}:{x:o.right+50+e.width/2,y:o.bottom+e.height/2};he(t)&&(r=Tt(t),n?(r.x+=100,r.y-=50):(r.x+=100,r.y+=50));var i={margin:n?-30:30,minDistance:20};return Bf(t,e,r,Af(n?{y:i}:{x:i}))}function YT(t,e,n){var o=_t(t),r=n?{x:o.right-10+e.width/2,y:o.bottom+40+e.width/2}:{x:o.left-40-e.width/2,y:o.bottom-10+e.height/2},i={margin:30,minDistance:30};return Bf(t,e,r,Af(n?{x:i}:{y:i}))}function dk(t,e){t.on("autoPlace",function(n){var o=n.shape,r=n.source;return pk(r,o,e)})}function hi(t,e,n,o){J.call(this,t),this._elementRegistry=e,this._modeling=n,this._rules=o;var r=this;this.postExecuted(["shape.create"],function(i){var a=i.context,s=a.hints||{},c=a.shape,l=a.parent||a.newParent;s.autoResize!==!1&&r._expand([c],l)}),this.postExecuted(["elements.move"],function(i){var a=i.context,s=sp(ka(a.closure.topLevel)),c=a.hints,l=!c||c.autoResize;if(l!==!1){var p=Bi(s,function(d){return d.parent.id});A(p,function(d,u){Ct(l)&&(d=d.filter(function(m){return ve(l,Ai({id:m.id}))})),r._expand(d,u)})}}),this.postExecuted(["shape.toggleCollapse"],function(i){var a=i.context,s=a.hints,c=a.shape;s&&s.autoResize===!1||c.collapsed||r._expand(c.children||[],c)}),this.postExecuted(["shape.resize"],function(i){var a=i.context,s=a.hints,c=a.shape,l=c.parent;s&&s.autoResize===!1||l&&r._expand([c],l)})}function XT(t,e){return t.x!==e.x||t.y!==e.y||t.width!==e.width||t.height!==e.height}function ZT(t,e){var n="";return t=_t(t),e=_t(e),t.top>e.top&&(n=n.concat("n")),t.right<e.right&&(n=n.concat("w")),t.bottom<e.bottom&&(n=n.concat("s")),t.left>e.left&&(n=n.concat("e")),n}function dd(t){t.invoke(hi,this)}function vl(t){or.call(this,t);var e=this;this.addRule("element.autoResize",function(n){return e.canResize(n.elements,n.target)})}function ud(t,e){vl.call(this,t),this._modeling=e}function uk(t,e,n){var o=this,r=n.get("dragging",!1);function i(a){if(!a.hover){var s=a.originalEvent,c=o._findTargetGfx(s),l=c&&t.get(c);c&&l&&(a.stopPropagation(),r.hover({element:l,gfx:c}),r.move(s))}}r&&e.on("drag.start",function(a){e.once("drag.move",yv,function(s){i(s)})}),(function(){var a,s;e.on("element.hover",function(c){a=c.gfx,s=c.element}),e.on("element.hover",yv,function(c){s&&e.fire("element.out",{element:s,gfx:a})}),e.on("element.out",function(){a=null,s=null})})(),this._findTargetGfx=function(a){var s,c;if(a instanceof MouseEvent)return s=Wi(a),c=document.elementFromPoint(s.x,s.y),QT(c)}}function QT(t){return Lr(t,"svg, .djs-element",!0)}function Da(t){t.preventDefault()}function e8(t){return typeof TouchEvent<"u"&&t instanceof TouchEvent}function n8(t){return Math.sqrt(t.x**2+t.y**2)}function mk(t,e,n,o){var r={threshold:5,trapClick:!0},i;function a(_){var w=e.viewbox(),T=e._container.getBoundingClientRect();return{x:w.x+(_.x-T.left)/w.scale,y:w.y+(_.y-T.top)/w.scale}}function s(_,w){w||=i;var T=t.createEvent(j({},w.payload,w.data,{isTouch:w.isTouch}));return t.fire("drag."+_,T)!==!1&&t.fire(w.prefix+"."+_,T)}function c(_){var w=_.filter(function(T){return o.get(T.id)});w.length&&n.select(w)}function l(_,w){var T=i.payload,C=i.displacement,B=i.globalStart,D=Wi(_),M=Ko(D,B),N=i.localStart,z=a(D),V=Ko(z,N);if(!i.active&&(w||n8(M)>i.threshold)){if(j(T,{x:Ps(N.x+C.x),y:Ps(N.y+C.y),dx:0,dy:0},{originalEvent:_}),s("start")===!1)return g();i.active=!0,i.keepSelection||(T.previousSelection=n.get(),n.select(null)),i.cursor&&Qd(i.cursor),e.addMarker(e.getRootElement(),bv)}$p(_),i.active&&(j(T,{x:Ps(z.x+C.x),y:Ps(z.y+C.y),dx:Ps(V.x),dy:Ps(V.y)},{originalEvent:_}),s("move"))}function p(_){var w,T=!0;i.active&&(_&&(i.payload.originalEvent=_,$p(_)),T=s("end")),T===!1&&s("rejected"),w=v(T!==!0),s("ended",w)}function d(_){an("Escape",_)&&(Da(_),g())}function u(_){var w;i.active&&(w=z2(t),setTimeout(w,400),Da(_)),p(_)}function m(_){l(_)}function h(_){var w=i.payload;w.hoverGfx=_.gfx,w.hover=_.element,s("hover")}function f(_){s("out");var w=i.payload;w.hoverGfx=null,w.hover=null}function g(_){var w;if(i){var T=i.active;T&&s("cancel"),w=v(_),T&&s("canceled",w)}}function v(_){var w,T;s("cleanup"),O2(),T=i.trapClick?u:p,$t.unbind(document,"mousemove",l),$t.unbind(document,"dragstart",Da),$t.unbind(document,"selectstart",Da),$t.unbind(document,"mousedown",T,!0),$t.unbind(document,"mouseup",T,!0),$t.unbind(document,"keyup",d),$t.unbind(document,"touchstart",m,!0),$t.unbind(document,"touchcancel",g,!0),$t.unbind(document,"touchmove",l,!0),$t.unbind(document,"touchend",p,!0),t.off("element.hover",h),t.off("element.out",f),e.removeMarker(e.getRootElement(),bv);var C=i.payload.previousSelection;return _!==!1&&C&&!n.get().length&&c(C),w=i,i=null,w}function k(_,w,T,C){i&&g(!1),typeof w=="string"&&(C=T,T=w,w=null),C=j({},r,C||{});var B=C.data||{},D,M,N,z=C.trapClick?u:p,V;if(_?(D=Aa(_)||_,M=Wi(_),$p(_),D.type==="dragstart"&&Da(D)):(D=null,M={x:0,y:0}),N=a(M),w||=N,V=e8(D),i=j({prefix:T,data:B,payload:{},globalStart:M,displacement:Ko(w,N),localStart:N,isTouch:V},C),C.manual||(V?($t.bind(document,"touchstart",m,!0),$t.bind(document,"touchcancel",g,!0),$t.bind(document,"touchmove",l,!0),$t.bind(document,"touchend",p,!0)):($t.bind(document,"mousemove",l),$t.bind(document,"dragstart",Da),$t.bind(document,"selectstart",Da),$t.bind(document,"mousedown",z,!0),$t.bind(document,"mouseup",z,!0)),$t.bind(document,"keyup",d),t.on("element.hover",h),t.on("element.out",f)),s("init")===!1)return g(),!1;C.autoActivate&&l(_,!0)}t.on("diagram.destroy",g),this.init=k,this.move=l,this.hover=h,this.out=f,this.end=p,this.cancel=g,this.context=function(){return i},this.setOptions=function(_){j(r,_)}}function Us(t,e,n){this._canvas=n,this._opts=j({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},t);var o=this;e.on("drag.move",function(r){var i=o._toBorderPoint(r);o.startScroll(i)}),e.on(["drag.cleanup"],function(){o.stopScroll()})}function o8(t,e,n){return e<t&&t<n}function ch(t){this._commandStack=t.get("commandStack",!1)}function a8(t,e){return[["M",t.x,t.y],["m",0,-e],["a",e,e,0,1,1,0,2*e],["a",e,e,0,1,1,0,-2*e],["z"]]}function s8(t){var e=[];return t.forEach(function(n,o){e.push([o===0?"M":"L",n.x,n.y])}),e}function c8(t,e){for(var n=0,o;o=t[n];n++)if(ds(o,e)<=hk)return{point:t[n],bendpoint:!0,index:n};return null}function l8(t,e){var n=pm(a8(e,hk),s8(t)),o=n[0],r=n[n.length-1],i;return o?o===r?{point:{x:Np(o.x),y:Np(o.y)},index:o.segment2}:o.segment2===r.segment2?{point:{x:Np(o.x+r.x)/2,y:Np(o.y+r.y)/2},index:o.segment2}:(i=i8(o.segment2,r.segment2)-1,{point:t[i],bendpoint:!0,index:i}):null}function lh(t,e){return c8(t,e)||l8(t,e)}function fk(t){return Math.sqrt(t.x**2+t.y**2)}function vv(t){return Math.atan((t[1].y-t[0].y)/(t[1].x-t[0].x))}function p8(t,e){return e?{x:Math.cos(e)*t.x-Math.sin(e)*t.y,y:Math.sin(e)*t.x+Math.cos(e)*t.y}:t}function d8(t,e,n){var o=[{n:t[0]-n[0],lambda:e[0]},{n:t[1]-n[1],lambda:e[1]}],r=o[0].n*e[0]+o[1].n*e[1],i=o[0].lambda*e[0]+o[1].lambda*e[1];return-r/i}function gk(t,e){var n=e[0],o=e[1],r={x:o.x-n.x,y:o.y-n.y},i=d8([n.x,n.y],[r.x,r.y],[t.x,t.y]);return{x:n.x+i*r.x,y:n.y+i*r.y}}function u8(t,e){var n=gk(t,e);return fk({x:n.x-t.x,y:n.y-t.y})}function Ks(t,e){return fk({x:t.x-e.x,y:t.y-e.y})}function m8(t,e){var n=Wi(e),o=t._container.getBoundingClientRect(),r={x:o.left,y:o.top},i=t.viewbox();return{x:i.x+(n.x-r.x)/i.scale,y:i.y+(n.y-r.y)/i.scale}}function ph(t,e,n){return lh(e,m8(t,n))}function dh(t,e){var n=at("g");kt(n).add(yk),dt(t,n);var o=at("circle");Z(o,{cx:0,cy:0,r:4}),kt(o).add("djs-visual"),dt(n,o);var r=at("circle");return Z(r,{cx:0,cy:0,r:10}),kt(r).add("djs-hit"),dt(n,r),e&&kt(n).add(e),n}function h8(t,e,n,o){var r=at("g");dt(t,r);var i=18,a=6,s=11,c=g8(e,n,o),l=a+s,p=at("rect");Z(p,{x:-i/2,y:-a/2,rx:3,width:i,height:a}),kt(p).add("djs-visual"),dt(r,p);var d=at("rect");return Z(d,{x:-c/2,y:-l/2,width:c,height:l}),kt(d).add("djs-hit"),dt(r,d),Am(r,o==="v"?90:0,0,0),r}function vk(t,e,n){var o=at("g"),r=mp(e,n),i=jr(e,n);return dt(t,o),h8(o,e,n,i),kt(o).add(bk),kt(o).add(i==="h"?"horizontal":"vertical"),An(o,r.x,r.y),o}function xk(t){return Math.abs(Math.round(t*2/3))}function f8(t,e){return gk(t,y8(t,e))}function g8(t,e,n){var o=e.x-t.x,r=e.y-t.y;return xk(n==="h"?o:r)}function y8(t,e){for(var n=e.waypoints,o=1/0,r,i=0;i<n.length-1;i++){var a=n[i],s=n[i+1],c=u8(t,[a,s]);c<o&&(o=c,r=i)}return[n[r],n[r+1]]}function kk(t,e,n,o,r){function i(_,w,T){var C=_.index,B=_.point,D,M,N,z,V,gt;return C<=0||_.bendpoint?!1:(D=w[C-1],M=w[C],N=mp(D,M),z=jr(D,M),V=Math.abs(B.x-N.x),gt=Math.abs(B.y-N.y),z&&V<=T&><=T)}function a(_,w){var T=_.waypoints,C,B,D,M;return w.index<=0||w.bendpoint||(C={start:T[w.index-1],end:T[w.index]},B=jr(C.start,C.end),!B)?null:(D=B==="h"?C.end.x-C.start.x:C.end.y-C.start.y,M=xk(D)/2,M)}function s(_,w){var T=w.waypoints,C=ph(e,T,_),B;if(C&&(B=a(w,C),(i(C,T,B)?r.start(_,w,C.index):o.start(_,w,C.index,!C.bendpoint))!==!1))return!0}function c(_,w,T){$t.bind(_,w,function(C){n.triggerMouseEvent(w,C,T),C.stopPropagation()})}function l(_,w){var T=e.getLayer("overlays"),C=xe('.djs-bendpoints[data-element-id="'+Rs(_.id)+'"]',T);return!C&&w&&(C=at("g"),Z(C,{"data-element-id":_.id}),kt(C).add("djs-bendpoints"),dt(T,C),c(C,"mousedown",_),c(C,"click",_),c(C,"dblclick",_)),C}function p(_,w){return xe('.djs-segment-dragger[data-segment-idx="'+_+'"]',w)}function d(_,w){w.waypoints.forEach(function(T,C){var B=dh(_);dt(_,B),An(B,T.x,T.y)}),dh(_,"floating")}function u(_,w){for(var T=w.waypoints,C,B,D,M=1;M<T.length;M++)C=T[M-1],B=T[M],jr(C,B)&&(D=vk(_,C,B),Z(D,{"data-segment-idx":M}),c(D,"mousemove",w))}function m(_){A(Pc("."+yk,_),function(w){rn(w)})}function h(_){A(Pc("."+bk,_),function(w){rn(w)})}function f(_){var w=l(_);return w||(w=l(_,!0),d(w,_),u(w,_)),w}function g(_){var w=l(_);w&&(h(w),m(w),u(w,_),d(w,_))}function v(_,w){var T=xe(".floating",_),C=w.point;T&&(An(T,C.x,C.y),kt(T).add("positioned"))}function k(_,w,T){var C=p(w.index,_),B=T[w.index-1],D=T[w.index],M=w.point,N=mp(B,D),z=jr(B,D),V,gt;C&&(V=b8(C),gt={x:M.x-N.x,y:M.y-N.y},z==="v"&&(gt={x:gt.y,y:gt.x}),An(V,gt.x,gt.y))}t.on("connection.changed",function(_){g(_.element)}),t.on("connection.remove",function(_){var w=l(_.element);w&&rn(w)}),t.on("element.marker.update",function(_){var w=_.element,T;w.waypoints&&(T=f(w),_.add?kt(T).add(_.marker):kt(T).remove(_.marker))}),t.on("element.mousemove",function(_){var w=_.element,T=w.waypoints,C,B;if(T){if(C=l(w,!0),B=ph(e,T,_.originalEvent),!B)return;v(C,B),B.bendpoint||k(C,B,T)}}),t.on("element.mousedown",function(_){if(ci(_)){var w=_.originalEvent,T=_.element;if(T.waypoints)return s(w,T)}}),t.on("selection.changed",function(_){var w=_.newSelection[0];w&&w.waypoints&&f(w)}),t.on("element.hover",function(_){var w=_.element;w.waypoints&&f(w)}),t.on("element.out",function(_){var w=_.element;if(w.waypoints){var T=l(w);if(T){var C=xe(".floating",T);C&&kt(C).remove("positioned")}}}),t.on("element.updateId",function(_){var w=_.element,T=_.newId;if(w.waypoints){var C=l(w);C&&Z(C,{"data-element-id":T})}}),this.addHandles=f,this.updateHandles=g,this.getBendpointsContainer=l,this.getSegmentDragger=p}function b8(t){return xe(".djs-visual",t)}function uh(t,e,n,o,r,i){this._injector=t,this.start=function(a,s,c,l){var p=n.getGraphics(s),d=s.source,u=s.target,m=s.waypoints,h=!l&&c===0?Pa:!l&&c===m.length-1?ja:Ic,f=h===Ic?"connection.updateWaypoints":"connection.reconnect",g=r.allowed(f,{connection:s,source:d,target:u});if(g===!1&&(g=r.allowed(f,{connection:s,source:u,target:d})),g!==!1)return o.init(a,"bendpoint.move",{data:{connection:s,connectionGfx:p,context:{allowed:g,bendpointIndex:c,connection:s,source:d,target:u,insert:l,type:h}}})},e.on("bendpoint.move.hover",function(a){var s=a.context,c=s.connection,l=c.source,p=c.target,d=a.hover,u=s.type;s.hover=d;var m;if(d){var h=u===Ic?"connection.updateWaypoints":"connection.reconnect";m=s.allowed=r.allowed(h,{connection:c,source:u===Pa?d:l,target:u===ja?d:p}),m?(s.source=u===Pa?d:l,s.target=u===ja?d:p):(m===!1&&(m=s.allowed=r.allowed(h,{connection:c,source:u===ja?d:p,target:u===Pa?d:l})),m&&(s.source=u===ja?d:p,s.target=u===Pa?d:l))}}),e.on(["bendpoint.move.out","bendpoint.move.cleanup"],function(a){var s=a.context,c=s.type;s.hover=null,s.source=null,s.target=null,c!==Ic&&(s.allowed=!1)}),e.on("bendpoint.move.end",function(a){var s=a.context,c=s.allowed,l=s.bendpointIndex,p=s.connection,d=s.insert,u=p.waypoints.slice(),m=s.source,h=s.target,f=s.type,g=s.hints||{},v={x:xv(a.x),y:xv(a.y)};if(!c)return!1;f===Ic?(d?u.splice(l,0,v):u[l]=v,g.bendpointMove={insert:d,bendpointIndex:l},u=this.cropWaypoints(p,u),i.updateWaypoints(p,C0(u),g)):(f===Pa?(g.docking="source",Wd(s)&&(g.docking="target",g.newWaypoints=u.reverse())):f===ja&&(g.docking="target",Wd(s)&&(g.docking="source",g.newWaypoints=u.reverse())),i.reconnect(p,m,h,v,g))},this)}function Wd(t){var e=t.hover,n=t.source,o=t.target,r=t.type;if(r===Pa)return e&&o&&e===o&&n!==o;if(r===ja)return e&&n&&e===n&&n!==o}function wk(t,e,n,o){this._injector=e;var r=e.get("connectionPreview",!1);n.on("bendpoint.move.start",function(i){var a=i.context,s=a.bendpointIndex,c=a.connection,l=a.insert,p=c.waypoints,d=p.slice();a.waypoints=p,l&&d.splice(s,0,{x:i.x,y:i.y}),c.waypoints=d;var u=a.draggerGfx=dh(o.getLayer("overlays"));kt(u).add("djs-dragging"),o.addMarker(c,Ev),o.addMarker(c,_v)}),n.on("bendpoint.move.hover",function(i){var a=i.context,s=a.allowed,c=a.hover,l=a.type;if(c){if(o.addMarker(c,wv),l===kv)return;s?(o.removeMarker(c,Ip),o.addMarker(c,Hc)):s===!1&&(o.removeMarker(c,Hc),o.addMarker(c,Ip))}}),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],Sv,function(i){var a=i.context,s=a.hover,c=a.target;s&&(o.removeMarker(s,wv),o.removeMarker(s,c?Hc:Ip))}),n.on("bendpoint.move.move",function(i){var a=i.context,s=a.allowed,c=a.bendpointIndex,l=a.draggerGfx,p=a.hover,d=a.type,u=a.connection,m=u.source,h=u.target,f=u.waypoints.slice(),g={x:i.x,y:i.y},v=a.hints||{},k={};r&&(v.connectionStart&&(k.connectionStart=v.connectionStart),v.connectionEnd&&(k.connectionEnd=v.connectionEnd),d===v8?Wd(a)?(k.connectionEnd=k.connectionEnd||g,k.source=h,k.target=p||m,f=f.reverse()):(k.connectionStart=k.connectionStart||g,k.source=p||m,k.target=h):d===x8?Wd(a)?(k.connectionStart=k.connectionStart||g,k.source=p||h,k.target=m,f=f.reverse()):(k.connectionEnd=k.connectionEnd||g,k.source=m,k.target=p||h):(k.noCropping=!0,k.noLayout=!0,f[c]=g),d===kv&&(f=t.cropWaypoints(u,f)),k.waypoints=f,r.drawPreview(a,s,k)),An(l,i.x,i.y)},this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],Sv,function(i){var a=i.context,s=a.connection,c=a.draggerGfx,l=a.hover,p=a.target;s.waypoints=a.waypoints,rn(c),o.removeMarker(s,_v),o.removeMarker(s,Ev),l&&(o.removeMarker(l,Hc),o.removeMarker(l,p?Hc:Ip)),r&&r.cleanUp(a)})}function Rv(t,e,n){return Df(t,e,t[e]+n)}function Df(t,e,n){return{x:e==="x"?n:t.x,y:e==="y"?n:t.y}}function k8(t,e,n,o){var r=Math.max(e[o],n[o]),i=Math.min(e[o],n[o]),a=20;return Df(e,o,Math.min(Math.max(i+a,t[o]),r-a))}function _k(t){return t==="x"?"y":"x"}function Bv(t,e,n){var o,r;return t.original?t.original:(o=Tt(e),r=_k(n),Df(t,r,o[r]))}function Ek(t,e,n,o,r,i){var a=t.get("connectionDocking",!1);this.start=function(d,u,m){var h,f=n.getGraphics(u),g=m-1,v=m,k=u.waypoints,_=k[g],w=k[v],T=ph(n,k,d),C=jr(_,w),B,D;if(C)return B=C==="v"?"x":"y",g===0&&(_=Bv(_,u.source,B)),v===k.length-1&&(w=Bv(w,u.target,B)),D=T?T.point:{x:(_.x+w.x)/2,y:(_.y+w.y)/2},h={connection:u,segmentStartIndex:g,segmentEndIndex:v,segmentStart:_,segmentEnd:w,axis:B,dragPosition:D},o.init(d,D,"connectionSegment.move",{cursor:B==="x"?"resize-ew":"resize-ns",data:{connection:u,connectionGfx:f,context:h}})};function s(d,u){if(!a)return u;var m=d.waypoints,h;return d.waypoints=u,h=a.getCroppedWaypoints(d),d.waypoints=m,h}function c(d){r.update("connection",d.connection,d.connectionGfx)}function l(d,u,m){var h=d.newWaypoints,f=h[d.segmentStartIndex+u],g=h[d.segmentEndIndex+u],v=k8(m,f,g,_k(d.axis));An(d.draggerGfx,v.x,v.y)}function p(d,u){var m=0;return{waypoints:d.filter(function(h,f){return!up(d[f-1],d[f+1],h)||(m=f<=u?m-1:m,!1)}),segmentOffset:m}}e.on("connectionSegment.move.start",function(d){var u=d.context,m=d.connection,h=n.getLayer("overlays");u.originalWaypoints=m.waypoints.slice(),u.draggerGfx=vk(h,u.segmentStart,u.segmentEnd),kt(u.draggerGfx).add("djs-dragging"),n.addMarker(m,Cv)}),e.on("connectionSegment.move.move",function(d){var u=d.context,m=u.connection,h=u.segmentStartIndex,f=u.segmentEndIndex,g=u.segmentStart,v=u.segmentEnd,k=u.axis,_=u.originalWaypoints.slice(),w=Rv(g,k,d["d"+k]),T=Rv(v,k,d["d"+k]),C=_.length,B=0;_[h]=w,_[f]=T;var D,M;h<2&&(D=Cn(m.source,w),h===1?D==="intersect"&&(_.shift(),_[0]=w,B--):D!=="intersect"&&(_.unshift(g),B++)),f>C-3&&(M=Cn(m.target,T),f===C-2?M==="intersect"&&(_.pop(),_[_.length-1]=T):M!=="intersect"&&_.push(v)),u.newWaypoints=m.waypoints=s(m,_),l(u,B,d),u.newSegmentStartIndex=h+B,c(d)}),e.on("connectionSegment.move.hover",function(d){d.context.hover=d.hover,n.addMarker(d.hover,Tv)}),e.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],function(d){var u=d.context.hover;u&&n.removeMarker(u,Tv)}),e.on("connectionSegment.move.cleanup",function(d){var u=d.context,m=u.connection;u.draggerGfx&&rn(u.draggerGfx),n.removeMarker(m,Cv)}),e.on(["connectionSegment.move.cancel","connectionSegment.move.end"],function(d){var u=d.context,m=u.connection;m.waypoints=u.originalWaypoints,c(d)}),e.on("connectionSegment.move.end",function(d){var u=d.context,m=u.connection,h=u.newWaypoints,f=u.newSegmentStartIndex;h=h.map(function(T){return{original:T.original,x:Math.round(T.x),y:Math.round(T.y)}});var g=p(h,f),v=g.waypoints,k=s(m,v),_=g.segmentOffset,w={segmentMove:{segmentStartIndex:u.segmentStartIndex,newSegmentStartIndex:f+_}};i.updateWaypoints(m,k,w)})}function _8(t,e,n){n=n===void 0?10:n;for(var o=0,r;o<e.length;o++)if(r=e[o],w8(r-t)<=n)return r}function Sk(t){return{x:t.x,y:t.y}}function Tk(t){return{x:t.x+t.width,y:t.y+t.height}}function er(t,e){return!t||isNaN(t.x)||isNaN(t.y)?e:{x:Av(t.x+t.width/2),y:Av(t.y+t.height/2)}}function Ys(t,e){var n=t.snapped;return n?typeof e=="string"?n[e]:n.x&&n.y:!1}function mn(t,e,n){if(typeof e!="string")throw Error("axis must be in [x, y]");if(typeof n!="number"&&n!==!1)throw Error("value must be Number or false");var o,r=t[e],i=t.snapped=t.snapped||{};return n===!1?i[e]=!1:(i[e]=!0,o=n-r,t[e]+=o,t["d"+e]+=o),r}function Ck(t){return t.children||[]}function Rk(t){function e(i,a){if(Ct(i)){for(var s=i.length;s--;)if(E8(i[s]-a)<=Lm)return i[s]}else{i=+i;var c=a%i;if(c<Lm)return a-c;if(c>i-Lm)return a-c+i}return a}function n(i,a){if(i.waypoints)return f8(a,i);if(i.width)return{x:Mv(i.width/2+i.x),y:Mv(i.height/2+i.y)}}function o(i){var a=i.context,s=a.snapPoints,c=a.connection,l=c.waypoints,p=a.segmentStart,d=a.segmentStartIndex,u=a.segmentEnd,m=a.segmentEndIndex,h=a.axis;if(s)return s;var f=[l[d-1],p,u,l[m+1]];return d<2&&f.unshift(n(c.source,i)),m>l.length-3&&f.unshift(n(c.target,i)),a.snapPoints=s={horizontal:[],vertical:[]},A(f,function(g){g&&(g=g.original||g,h==="y"&&s.horizontal.push(g.y),h==="x"&&s.vertical.push(g.x))}),s}t.on("connectionSegment.move.move",1500,function(i){var a=o(i),s=i.x,c=i.y,l,p;if(a){l=e(a.vertical,s),p=e(a.horizontal,c);var d=s-l,u=c-p;j(i,{dx:i.dx-d,dy:i.dy-u,x:l,y:p}),(d||a.vertical.indexOf(s)!==-1)&&mn(i,"x",l),(u||a.horizontal.indexOf(c)!==-1)&&mn(i,"y",p)}});function r(i){var a=i.snapPoints,s=i.connection.waypoints,c=i.bendpointIndex;if(a)return a;var l=[s[c-1],s[c+1]];return i.snapPoints=a={horizontal:[],vertical:[]},A(l,function(p){p&&(p=p.original||p,a.horizontal.push(p.y),a.vertical.push(p.x))}),a}t.on(["connect.hover","connect.move","connect.end"],1500,function(i){var a=i.context.hover,s=a&&n(a,i);he(a)&&s&&s.x&&s.y&&(mn(i,"x",s.x),mn(i,"y",s.y))}),t.on(["bendpoint.move.move","bendpoint.move.end"],1500,function(i){var a=i.context,s=r(a),c=a.hover,l=c&&n(c,i),p=i.x,d=i.y,u,m;if(s){u=e(l?s.vertical.concat([l.x]):s.vertical,p),m=e(l?s.horizontal.concat([l.y]):s.horizontal,d);var h=p-u,f=d-m;j(i,{dx:i.dx-h,dy:i.dy-f,x:i.x-h,y:i.y-f}),(h||s.vertical.indexOf(p)!==-1)&&mn(i,"x",u),(f||s.horizontal.indexOf(d)!==-1)&&mn(i,"y",m)}})}function Bk(t,e,n,o){function r(a,s){return o.allowed("connection.create",{source:a,target:s})}function i(a,s){return r(s,a)}t.on("connect.hover",function(a){var s=a.context,c=s.start,l=a.hover,p;s.hover=l,p=s.canExecute=r(c,l),!Ri(p)&&(p===!1?(p=s.canExecute=i(c,l),!Ri(p)&&p!==!1&&(s.source=l,s.target=c)):(s.source=c,s.target=l))}),t.on(["connect.out","connect.cleanup"],function(a){var s=a.context;s.hover=null,s.source=null,s.target=null,s.canExecute=!1}),t.on("connect.end",function(a){var s=a.context,c=s.canExecute,l=s.connectionStart,p={x:a.x,y:a.y},d=s.source,u=s.target;if(!c)return!1;var m=null,h={connectionStart:mh(s)?p:l,connectionEnd:mh(s)?l:p};We(c)&&(m=c),s.connection=n.connect(d,u,m,h)}),this.start=function(a,s,c,l){We(c)||(l=c,c=Tt(s)),e.init(a,"connect",{autoActivate:l,data:{shape:s,context:{start:s,connectionStart:c}}})}}function mh(t){var e=t.hover,n=t.source,o=t.target;return e&&n&&e===n&&n!==o}function Ak(t,e,n){var o=t.get("connectionPreview",!1);o&&e.on("connect.move",function(r){var i=r.context,a=i.canExecute,s=i.hover,c=i.source,l=i.start,p=i.startPosition,d=i.target,u=i.connectionStart||p,m=i.connectionEnd||{x:r.x,y:r.y},h=u,f=m;mh(i)&&(h=m,f=u),o.drawPreview(i,a,{source:c||l,target:d||s,connectionStart:h,connectionEnd:f})}),e.on("connect.hover",C8,function(r){var i=r.context,a=r.hover,s=i.canExecute;s!==null&&n.addMarker(a,s?Dv:Pv)}),e.on(["connect.out","connect.cleanup"],T8,function(r){var i=r.hover;i&&(n.removeMarker(i,Dv),n.removeMarker(i,Pv))}),o&&e.on("connect.cleanup",function(r){o.cleanUp(r.context)})}function li(t,e,n,o){this._canvas=e,this._graphicsFactory=n,this._elementFactory=o,this._connectionDocking=t.get("connectionDocking",!1),this._layouter=t.get("layouter",!1)}function B8(t){var e={};return function(n){var o=JSON.stringify(n),r=e[o];return r||=e[o]=t.apply(null,arguments),r}}function A8(t){return We(t)?t:{}}function Ki(t,e,n,o){this._elementRegistry=t,this._canvas=n,this._styles=o}function $8(t,e,n){var o=O8(Z(t,e));return xe("marker#"+o,n||document)}function O8(t){return t.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]}function z8(t){return"url(#"+t+")"}function L8(t){return j8.indexOf(t.nodeName)!==-1}function N8(t){return t.hidden}function hh(t,e){J.call(this,t),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],function(r){var i=r.context,a=i.connection,s=a.source,c=a.target;(i.hints||{}).createElementsBehavior!==!1&&(n(s),n(c))}),this.postExecuted(["label.create"],function(r){var i=r.context,a=i.shape;(i.hints||{}).createElementsBehavior!==!1&&n(a.labelTarget)}),this.postExecuted(["elements.create"],function(r){var i=r.context,a=i.elements;(i.hints||{}).createElementsBehavior!==!1&&a.forEach(function(s){n(s)})});function n(r){if(Ec(r)&&!he(r)&&!y(r,"bpmn:Group")){var i=W8(r);i&&o(r,i)}}function o(r,i){var a=Tt(r),s=r.label,c=Tt(s);if(s.parent){var l=_t(r),p;switch(i){case"top":p={x:a.x,y:l.top-Fp-s.height/2};break;case"left":p={x:l.left-Fp-s.width/2,y:a.y};break;case"bottom":p={x:a.x,y:l.bottom+Fp+s.height/2};break;case"right":p={x:l.right+Fp+s.width/2,y:a.y}}var d=Ko(p,c);e.moveShape(s,d)}}}function H8(t){var e=t.host,n=Tt(t),o=Cn(n,e),r=o.indexOf("-")>=0?o.split("-"):[o];return jf.filter(function(i){return r.indexOf(i)===-1})}function F8(t){var e=Tt(t);return[].concat(t.incoming.map(function(n){return n.waypoints[n.waypoints.length-2]}),t.outgoing.map(function(n){return n.waypoints[1]})).map(function(n){return Dk(e,n)})}function W8(t){var e=Tt(t.label),n=Dk(Tt(t),e);if(G8(n)){var o=F8(t);if(t.host){var r=H8(t);o=o.concat(r)}var i=jf.filter(function(a){return o.indexOf(a)===-1});return i.indexOf(n)===-1?i[0]:Cn(t.label,t)==="intersect"?n:void 0}}function Dk(t,e){return Cn(e,t,5)}function G8(t){return jf.indexOf(t)!==-1}function fh(t){J.call(this,t),this.preExecute("shape.append",function(e){var n=e.source,o=e.shape;e.position||=y(o,"bpmn:TextAnnotation")?{x:n.x+n.width/2+75,y:n.y-50-o.height/2}:{x:n.x+n.width+80+o.width/2,y:n.y+n.height/2}},!0)}function gh(t,e,n){t.invoke(J,this),this.preExecute("elements.delete",U8,function(r){var i=r.context,a=i.elements,s=o(a);s.length&&(i.elements=a.concat(s))}),e.on("shape.move.start",function(r){var i=r.context.shapes,a=o(i);a.length&&(r.context.shapes=i.concat(a))});function o(r){var i=Ft(r,l=>y(l,"bpmn:Participant")||y(l,"bpmn:SubProcess"));if(!i.length)return[];var a=n.getRootElement(),s=new Set(a.children.filter(l=>y(l,"bpmn:Artifact"))),c=new Set;return A(i,l=>{let p=new Set(ka(Ra(Array.from(s),en(l))));c=c.union(p),s=s.difference(p)}),Array.from(c)}}function yh(t,e){t.invoke(J,this),this.postExecute("shape.move",function(n){var o=n.newParent,r=n.shape,i=Ft(r.incoming.concat(r.outgoing),function(a){return y(a,"bpmn:Association")});A(i,function(a){e.moveConnection(a,{x:0,y:0},o)})},!0)}function md(t,e){e.invoke(J,this),this._bpmnReplace=t;var n=this;this.postExecuted("elements.create",jv,function(o){var r=o.elements;r=r.filter(function(i){var a=i.host;return $v(i,a)}),r.length===1&&r.map(function(i){return r.indexOf(i)}).forEach(function(i){var a=r[i];o.elements[i]=n._replaceShape(r[i],a)})},!0),this.preExecute("elements.move",jv,function(o){var r=o.shapes,i=o.newHost;if(r.length===1){var a=r[0];$v(a,i)&&(o.shapes=[n._replaceShape(a,i)])}},!0)}function V8(t){var e=et(t).eventDefinitions;return e&&e[0]}function $v(t,e){return!Lt(t)&&Ht(t,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!e}function bh(t,e){J.call(this,t);function n(o){return Ft(o.attachers,function(r){return y(r,"bpmn:BoundaryEvent")})}this.postExecute("connection.create",function(o){var r=o.context.source,i=o.context.target,a=n(i);y(r,"bpmn:EventBasedGateway")&&y(i,"bpmn:ReceiveTask")&&a.length>0&&e.removeElements(a)}),this.postExecute("connection.reconnect",function(o){var r=o.context.oldSource,i=o.context.newSource;y(r,"bpmn:Gateway")&&y(i,"bpmn:EventBasedGateway")&&A(i.outgoing,function(a){var s=a.target,c=n(s);y(s,"bpmn:ReceiveTask")&&c.length>0&&e.removeElements(c)})})}function Pk(t){return t.create("bpmn:Category")}function q8(t){return t.create("bpmn:CategoryValue")}function jk(t,e){var n=e.get("categoryValueRef");return n||=e.categoryValueRef=q8(t),n.$parent||(n.$parent=Pk(t)),n}function K8(t,e,n){return Ge(e.get("categoryValue"),t),t.$parent=e,Ge(n.get("rootElements"),e),e.$parent=n,t}function Y8(t){var e=t.$parent;return e&&(Ne(e.get("categoryValue"),t),t.$parent=null),t}function X8(t){var e=t.$parent;return e&&(Ne(e.get("rootElements"),t),t.$parent=null),t}function vh(t,e,n){n.invoke(J,this);function o(c){return e.filter(function(l){return y(l,"bpmn:Group")&&!l.labelTarget}).map(et).filter(function(l){return l!==c})}function r(c,l){return o(l).some(function(p){return p.get("categoryValueRef")===c})}function i(c,l){return o(l).some(function(p){var d=p.get("categoryValueRef");return d&&d.$parent===c})}function a(c,l){c&&l&&K8(c,l,t.getDefinitions())}function s(c,l,p){l&&!i(l,p)&&X8(l),c&&!r(c,p)&&Y8(c)}this.executed(["shape.create","label.create"],function(c){var l=c.labelTarget||c.shape;y(l,"bpmn:Group")&&!l.labelTarget&&a(c.categoryValue,c.category)},!0),this.reverted(["shape.create","label.create"],function(c){var l=c.labelTarget||c.shape;y(l,"bpmn:Group")&&!l.labelTarget&&s(c.categoryValue,c.category,et(l))},!0),this.executed(["shape.move","shape.resize"],Z8,function(c){a(c.categoryValue,c.category)},!0),this.reverted(["shape.move","shape.resize"],function(c){var l=c.shape;c.categoryValue&&s(c.categoryValue,c.category,et(l))},!0),this.executed("group.updateRefs",function(c){Ov(c).forEach(function(l){a(l.categoryValue,l.category)})},!0),this.reverted("group.updateRefs",function(c){Ov(c).forEach(function(l){s(l.categoryValue,l.category,et(l.groupShape))})},!0),this.executed("shape.delete",function(c){var l=c.shape;y(l,"bpmn:Group")&&!l.labelTarget&&s(c.categoryValue,c.category,et(l))},!0),this.reverted("shape.delete",function(c){var l=c.shape;y(l,"bpmn:Group")&&!l.labelTarget&&a(c.categoryValue,c.category)},!0)}function Ov(t){return t.updates?.groups||[]}function xh(t,e,n){J.call(this,t),this.preExecute("shape.replace",s,!0),this.postExecuted("shape.replace",c,!0),this.preExecute("connection.create",r,!0),this.postExecuted("connection.delete",o,!0),this.postExecuted("connection.reconnect",i,!0),this.postExecuted("element.updateProperties",a,!0);function o(g){let v=g.source,k=g.target;js(v)&&Fc(k)&&p(k)}function r(g){let v=g.connection,k=g.source,_=g.target;js(k)&&Wp(_)&&(l(_),u(k,[v]))}function i(g){let v=g.newTarget,k=g.oldSource,_=g.oldTarget;if(_!==v){let w=k;Fc(_)&&p(_),js(w)&&Wp(v)&&l(v)}}function a(g){let{element:v}=g;Fc(v)?(d(v),m(v)):Wp(v)&&h(v)}function s(g){let{newData:v,oldShape:k}=g;if(js(g.oldShape)&&v.eventDefinitionType!=="bpmn:CompensateEventDefinition"||v.type!=="bpmn:BoundaryEvent"){let _=k.outgoing.find(({target:w})=>Fc(w));_&&_.target&&(g._connectionTarget=_.target)}else if(!js(g.oldShape)&&v.eventDefinitionType==="bpmn:CompensateEventDefinition"&&v.type==="bpmn:BoundaryEvent"){let _=k.outgoing.find(({target:w})=>Wp(w));_&&_.target&&(g._connectionTarget=_.target),f(k)}}function c(g){let{_connectionTarget:v,newShape:k}=g;v&&e.connect(k,v)}function l(g){e.updateProperties(g,{isForCompensation:!0})}function p(g){e.updateProperties(g,{isForCompensation:void 0})}function d(g){for(let v of g.incoming)n.canConnect(v.source,g)||e.removeConnection(v);for(let v of g.outgoing)n.canConnect(g,v.target)||e.removeConnection(v)}function u(g,v){g.outgoing.filter(k=>y(k,"bpmn:Association")).filter(k=>Fc(k.target)&&!v.includes(k)).forEach(k=>e.removeConnection(k))}function m(g){let v=g.attachers.slice();v.length&&e.removeElements(v)}function h(g){let v=g.incoming.filter(k=>js(k.source));e.removeElements(v)}function f(g){let v=g.outgoing.filter(k=>y(k,"bpmn:SequenceFlow"));e.removeElements(v)}}function Fc(t){let e=et(t);return e&&e.get("isForCompensation")}function js(t){return t&&y(t,"bpmn:BoundaryEvent")&&_a(t,"bpmn:CompensateEventDefinition")}function Wp(t){return t&&y(t,"bpmn:Activity")&&!Rn(t)}function kh(t){t.invoke(J,this),this.preExecute("shape.create",1500,function(e){var n=e.context,o=n.parent,r=n.shape;y(o,"bpmn:Lane")&&!y(r,"bpmn:Lane")&&(n.parent=Sa(o,"bpmn:Participant"))})}function wh(t,e){J.call(this,t),this.preExecute("shape.create",function(n){var o=n.context.shape;if(y(o,"bpmn:DataObjectReference")&&o.type!=="label"){var r=e.create("bpmn:DataObject");r.isCollection=o.businessObject.dataObjectRef?.isCollection||!1,o.businessObject.dataObjectRef=r}})}function Sh(t,e,n){J.call(this,e),e.on(["create.start","shape.move.start"],Gp,function(r){var i=r.context,a=i.shape,s=t.getRootElement();if(y(a,"bpmn:Participant")&&y(s,"bpmn:Process")&&s.children.length){var c=s.children.filter(function(d){return!y(d,"bpmn:Group")&&!Lt(d)&&!he(d)});if(c.length){var l=en(c),p=J8(a,l);j(a,p),i.createConstraints=Q8(a,l)}}}),e.on("create.start",Gp,function(r){var i=r.context.shape,a=t.getRootElement(),s=t.getGraphics(a);function c(l){l.element=a,l.gfx=s}y(i,"bpmn:Participant")&&y(a,"bpmn:Process")&&(e.on("element.hover",Gp,c),e.once("create.cleanup",function(){e.off("element.hover",c)}))});function o(){var r=t.getRootElement();return y(r,"bpmn:Collaboration")?r:n.makeCollaboration()}this.preExecute("elements.create",Gp,function(r){var i=r.elements,a=r.parent,s=t7(i),c;s&&y(a,"bpmn:Process")&&(r.parent=o(),c=r.hints=r.hints||{},c.participant=s,c.process=a,c.processRef=et(s).get("processRef"))},!0),this.preExecute("shape.create",function(r){var i=r.parent,a=r.shape;y(a,"bpmn:Participant")&&y(i,"bpmn:Process")&&(r.parent=o(),r.process=i,r.processRef=et(a).get("processRef"))},!0),this.execute("shape.create",function(r){var i=r.hints||{},a=r.process||i.process,s=r.shape,c=i.participant;a&&(!c||s===c)&&et(s).set("processRef",et(a))},!0),this.revert("shape.create",function(r){var i=r.hints||{},a=r.process||i.process,s=r.processRef||i.processRef,c=r.shape,l=i.participant;a&&(!l||c===l)&&et(c).set("processRef",s)},!0),this.postExecute("shape.create",function(r){var i=r.hints||{},a=r.process||r.hints.process,s=r.shape,c=i.participant;if(a){var l=a.children.slice();c?s===c&&n.moveElements(l,{x:0,y:0},c):n.moveElements(l,{x:0,y:0},s)}},!0)}function J8(t,e){e={width:e.width+_h*2+30,height:e.height+Eh*2};var n=Math.max(t.width,e.width),o=Math.max(t.height,e.height);return{x:-n/2,y:-o/2,width:n,height:o}}function Q8(t,e){return e=_t(e),{bottom:e.top+t.height/2-Eh,left:e.right-t.width/2+_h,top:e.bottom-t.height/2+Eh,right:e.left+t.width/2-_h-30}}function t7(t){return ve(t,function(e){return y(e,"bpmn:Participant")})}function Th(t,e){J.call(this,t),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],Lv(i)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],Lv(i));function n(a,s,c){var l=a.get("dataInputAssociations");return ve(l,function(p){return p!==c&&p.targetRef===s})}function o(a,s){var c=a.get("properties"),l=ve(c,function(p){return p.name===zv});return!l&&s&&(l=e.create("bpmn:Property",{name:zv}),Ge(c,l)),l}function r(a,s){var c=o(a);c&&(n(a,c,s)||Ne(a.get("properties"),c))}function i(a){var s=a.context,c=s.connection,l=c.businessObject,p=c.target,d=p&&p.businessObject,u=s.newTarget,m=u&&u.businessObject,h=s.oldTarget||s.target,f=h&&h.businessObject,g=c.businessObject,v;f&&f!==d&&r(f,l),m&&m!==d&&r(m,l),d?(v=o(d,!0),g.targetRef=v):g.targetRef=null}}function Lv(t){return function(e){var n=e.context.connection;if(y(n,"bpmn:DataInputAssociation"))return t(e)}}function hd(t){this._bpmnUpdater=t}function Ch(t,e,n,o){J.call(this,o),e.registerHandler("dataStore.updateContainment",hd);function r(){return n.filter(function(s){return y(s,"bpmn:Participant")&&et(s).processRef})[0]}function i(s){return s.children.filter(function(c){return y(c,"bpmn:DataStoreReference")&&!c.labelTarget})}function a(s,c){var l=s.businessObject||s;if(c||=r(),c){var p=c.businessObject||c;e.execute("dataStore.updateContainment",{dataStoreBo:l,dataStoreDi:jt(s),newSemanticParent:p.processRef||p,newDiParent:jt(c)})}}this.preExecute("shape.create",function(s){var c=s.context,l=c.shape;y(l,"bpmn:DataStoreReference")&&l.type!=="label"&&(c.hints||={},c.hints.autoResize=!1)}),this.preExecute("elements.move",function(s){var c=s.context,l=c.shapes;l.filter(function(p){return y(p,"bpmn:DataStoreReference")}).length&&(c.hints||={},c.hints.autoResize=l.filter(function(p){return!y(p,"bpmn:DataStoreReference")}))}),this.postExecute("shape.create",function(s){var c=s.context.shape,l=c.parent;y(c,"bpmn:DataStoreReference")&&c.type!=="label"&&y(l,"bpmn:Collaboration")&&a(c)}),this.postExecute("shape.move",function(s){var c=s.context,l=c.shape,p=c.oldParent,d=l.parent;y(p,"bpmn:Collaboration")||y(l,"bpmn:DataStoreReference")&&l.type!=="label"&&y(d,"bpmn:Collaboration")&&a(l,y(p,"bpmn:Participant")?p:n7(p,"bpmn:Participant"))}),this.postExecute("shape.delete",function(s){var c=s.context.shape,l=t.getRootElement();Ht(c,["bpmn:Participant","bpmn:SubProcess"])&&y(l,"bpmn:Collaboration")&&i(l).filter(function(p){return e7(p,c)}).forEach(function(p){a(p)})}),this.postExecute("canvas.updateRoot",function(s){var c=s.context,l=c.oldRoot,p=c.newRoot;i(l).forEach(function(d){y(p,"bpmn:Process")&&a(d,p)})})}function e7(t,e){for(var n=t.businessObject||t,o=e.businessObject||e;n.$parent;){if(n.$parent===o.processRef||o)return!0;n=n.$parent}return!1}function n7(t,e){for(;t.parent;){if(y(t.parent,e))return t.parent;t=t.parent}}function $k(t,e){return{top:t.top-e.top,right:t.right-e.right,bottom:t.bottom-e.bottom,left:t.left-e.left}}function r7(t,e,n){var o=n.x,r=n.y,i={x:t.x,y:t.y,width:t.width,height:t.height};return e.indexOf("n")===-1?e.indexOf("s")!==-1&&(i.height=t.height+r):(i.y=t.y+r,i.height=t.height-r),e.indexOf("e")===-1?e.indexOf("w")!==-1&&(i.x=t.x+o,i.width=t.width-o):i.width=t.width+o,i}function i7(t,e){return{x:t.x+(e.left||0),y:t.y+(e.top||0),width:t.width-(e.left||0)+(e.right||0),height:t.height-(e.top||0)+(e.bottom||0)}}function Up(t,e,n){var o=e[t],r=n.min&&n.min[t],i=n.max&&n.max[t];return Mt(r)&&(o=(/top|left/.test(t)?Ud:Gd)(o,r)),Mt(i)&&(o=(/top|left/.test(t)?Gd:Ud)(o,i)),o}function a7(t,e){if(!e)return t;var n=_t(t);return us({top:Up("top",n,e),right:Up("right",n,e),bottom:Up("bottom",n,e),left:Up("left",n,e)})}function s7(t,e,n,o){var r=_t(e),i={top:/n/.test(t)?r.bottom-n.height:r.top,left:/w/.test(t)?r.right-n.width:r.left,bottom:/s/.test(t)?r.top+n.height:r.bottom,right:/e/.test(t)?r.left+n.width:r.right},a=o?_t(o):i,s={top:Ud(i.top,a.top),left:Ud(i.left,a.left),bottom:Gd(i.bottom,a.bottom),right:Gd(i.right,a.right)};return us(s)}function Wc(t,e){return t===void 0?o7:t}function c7(t,e){var n,o,r,i;return typeof e=="object"?(n=Wc(e.left),o=Wc(e.right),r=Wc(e.top),i=Wc(e.bottom)):n=o=r=i=Wc(e),{x:t.x-n,y:t.y-r,width:t.width+n+o,height:t.height+r+i}}function l7(t){return!(t.waypoints||t.type==="label")}function Ok(t,e){var n=t.length===void 0?Ft(t.children,l7):t;if(n.length)return c7(en(n),e)}function p7(t,e){return $k(_t(e),_t(t))}function ru(t,e){return e||=[],t.children.filter(function(n){y(n,"bpmn:Lane")&&(ru(n,e),e.push(n))}),e}function aa(t){return t.children.filter(function(e){return y(e,"bpmn:Lane")})}function nr(t){return Sa(t,d7)||t}function u7(t,e){var n=nr(t),o=ru(n,y(n,"bpmn:Process")?[]:[n]),r=_t(t),i=_t(e),a=p7(t,e),s=[],c=Ye(t);return o.forEach(function(l){if(l!==t){var p=c?0:a.top,d=c?a.right:0,u=c?0:a.bottom,m=c?a.left:0,h=_t(l);a.top&&(Gi(h.bottom-r.top)<10&&(u=i.top-h.bottom),Gi(h.top-r.top)<5&&(p=i.top-h.top)),a.left&&(Gi(h.right-r.left)<10&&(d=i.left-h.right),Gi(h.left-r.left)<5&&(m=i.left-h.left)),a.bottom&&(Gi(h.top-r.bottom)<10&&(p=i.bottom-h.top),Gi(h.bottom-r.bottom)<5&&(u=i.bottom-h.bottom)),a.right&&(Gi(h.left-r.right)<10&&(m=i.right-h.left),Gi(h.right-r.right)<5&&(d=i.right-h.right)),(p||d||u||m)&&s.push({shape:l,newBounds:i7(l,{top:p,right:d,bottom:u,left:m})})}}),s}function Rh(t,e){J.call(this,t);function n(o,r){var i=Ye(o),a=aa(r),s=[],c=[],l=[],p=[];if(Hi(a,function(g){return i?g.y>o.y?c.push(g):s.push(g):g.x>o.x?p.push(g):l.push(g),g.children}),a.length){var d=i?c.length&&s.length?o.height/2:o.height:p.length&&l.length?o.width/2:o.width,u,m,h,f;s.length&&(u=e.calculateAdjustments(s,"y",d,o.y-10),e.makeSpace(u.movingShapes,u.resizingShapes,{x:0,y:d},"s")),c.length&&(m=e.calculateAdjustments(c,"y",-d,o.y+o.height+10),e.makeSpace(m.movingShapes,m.resizingShapes,{x:0,y:-d},"n")),l.length&&(h=e.calculateAdjustments(l,"x",d,o.x-10),e.makeSpace(h.movingShapes,h.resizingShapes,{x:d,y:0},"e")),p.length&&(f=e.calculateAdjustments(p,"x",-d,o.x+o.width+10),e.makeSpace(f.movingShapes,f.resizingShapes,{x:-d,y:0},"w"))}}this.postExecuted("shape.delete",m7,function(o){var r=o.context,i=r.hints,a=r.shape,s=r.oldParent;y(a,"bpmn:Lane")&&(i&&i.nested||n(a,s))})}function fd(t,e){e.invoke(J,this),this._bpmnReplace=t;var n=this;this.postExecuted("elements.create",Nv,function(o){var r=o.elements;r.filter(function(i){var a=i.host;return Iv(i,a)}).map(function(i){return r.indexOf(i)}).forEach(function(i){o.elements[i]=n._replaceShape(r[i])})},!0),this.preExecute("elements.move",Nv,function(o){var r=o.shapes,i=o.newHost;r.forEach(function(a,s){var c=a.host;Iv(a,f7(r,c)?c:i)&&(r[s]=n._replaceShape(a))})},!0)}function h7(t){var e=et(t).eventDefinitions;return e&&e[0]}function Iv(t,e){return!Lt(t)&&y(t,"bpmn:BoundaryEvent")&&!e}function f7(t,e){return t.indexOf(e)!==-1}function Bh(t,e,n){J.call(this,t);function o(r,i,a){var s=i.waypoints,c,l,p,d,u,m,h,f=r.outgoing.slice(),g=r.incoming.slice(),v=Mt(a.width)?Tt(a):a,k=lh(s,v);if(k){if(c=s.slice(0,k.index),l=s.slice(k.index+ +!!k.bendpoint),!c.length||!l.length)return;p=k.bendpoint?s[k.index]:v,(c.length===1||!Hv(r,c[c.length-1]))&&c.push(Fv(p)),(l.length===1||!Hv(r,l[0]))&&l.unshift(Fv(p))}d=i.source,u=i.target,e.canConnect(d,r,i)&&(n.reconnectEnd(i,r,c||v),m=i),e.canConnect(r,u,i)&&(m?h=n.connect(r,u,{type:i.type,waypoints:l}):(n.reconnectStart(i,r,l||v),h=i));var _=[].concat(m&&Ft(g,function(w){return w.source===m.source})||[],h&&Ft(f,function(w){return w.target===h.target})||[]);_.length&&n.removeElements(_)}this.preExecute("elements.move",function(r){var i=r.newParent,a=r.shapes,s=r.delta,c=a[0];if(c&&i){i&&i.waypoints&&(r.newParent=i=i.parent);var l=Tt(c),p={x:l.x+s.x,y:l.y+s.y},d=ve(i.children,function(u){return e.canInsert(a,u)&&lh(u.waypoints,p)});d&&(r.targetFlow=d,r.position=p)}},!0),this.postExecuted("elements.move",function(r){var i=r.shapes,a=r.targetFlow,s=r.position;a&&o(i[0],a,s)},!0),this.preExecute("shape.create",function(r){var i=r.parent,a=r.shape;e.canInsert(a,i)&&(r.targetFlow=i,r.parent=i.parent)},!0),this.postExecuted("shape.create",function(r){var i=r.shape,a=r.targetFlow,s=r.position;a&&o(i,a,s)},!0)}function Hv(t,e){var n=e.x,o=e.y;return n>=t.x&&n<=t.x+t.width&&o>=t.y&&o<=t.y+t.height}function Fv(t){return j({},t)}function Ah(t,e){J.call(this,t),this.preExecuted("connection.create",function(n){var o=n.context,r=o.connection,i=o.source,a=o.target,s=o.hints;if(!(s&&s.createElementsBehavior===!1)&&$s(r)){var c=[];c=y(i,"bpmn:EventBasedGateway")?a.incoming.filter(l=>l!==r&&$s(l)):a.incoming.filter(l=>l!==r&&$s(l)&&y(l.source,"bpmn:EventBasedGateway")),c.forEach(function(l){e.removeConnection(l)})}}),this.preExecuted("shape.replace",function(n){var o=n.context.newShape;y(o,"bpmn:EventBasedGateway")&&o.outgoing.filter($s).reduce(function(r,i){return r.includes(i.target)?r:r.concat(i.target)},[]).forEach(function(r){r.incoming.filter($s).forEach(function(i){let a=r.incoming.filter($s).filter(function(s){return s.source===o});(i.source!==o||a.length>1)&&e.removeConnection(i)})})})}function $s(t){return y(t,"bpmn:SequenceFlow")}function zk(t,e,n){e.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],Vp,function(o){var r=o.context.shape||o.shape,i=o.hover;y(i,"bpmn:Lane")&&!Ht(r,["bpmn:Lane","bpmn:Participant"])&&(o.hover=nr(i),o.hoverGfx=t.getGraphics(o.hover));var a=n.getRootElement();i&&i!==a&&(r.labelTarget||Ht(r,["bpmn:Group","bpmn:TextAnnotation"]))&&(o.hover=a,o.hoverGfx=t.getGraphics(o.hover))}),e.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],Vp,function(o){var r=o.hover;y(r,"bpmn:Lane")&&(o.hover=nr(r)||r,o.hoverGfx=t.getGraphics(o.hover))}),e.on(["bendpoint.move.hover"],Vp,function(o){var r=o.context,i=o.hover,a=r.type;y(i,"bpmn:Lane")&&/reconnect/.test(a)&&(o.hover=nr(i)||i,o.hoverGfx=t.getGraphics(o.hover))}),e.on(["connect.start"],Vp,function(o){var r=o.context,i=r.start;y(i,"bpmn:Lane")&&(r.start=nr(i)||i)}),e.on("shape.move.start",Wv,function(o){var r=o.shape;y(r,"bpmn:Lane")&&(o.shape=nr(r)||r)}),e.on("spaceTool.move",Wv,function(o){var r=o.hover;r&&y(r,"bpmn:Lane")&&(o.hover=nr(r))})}function Mh(t,e,n,o){n.invoke(J,this);function r(s,c){var l=et(s),p=c.categoryValue||l.categoryValueRef;p||=jk(t,l);var d=c.category||p.$parent||Pk(t);l.categoryValueRef=p,p.$parent=d,c.categoryValue=p,c.category=d}function i(s,c){var l=et(s),p=c.categoryValue||l.categoryValueRef,d=c.category||p&&p.$parent;p&&(c.categoryValue=p,c.category=d,l.categoryValueRef=null)}this.execute("label.create",function(s){var c=s.context,l=c.labelTarget;y(l,"bpmn:Group")&&r(l,c)}),this.revert("label.create",function(s){var c=s.context,l=c.labelTarget;y(l,"bpmn:Group")&&i(l,c)}),this.execute("shape.delete",function(s){var c=s.context,l=c.shape,p=et(l);if(y(l,"bpmn:Group")&&!l.labelTarget){var d=c.categoryValue=p.categoryValueRef;d&&(c.category=d.$parent,p.categoryValueRef=null)}}),this.reverted("shape.delete",function(s){var c=s.context,l=c.shape;if(y(l,"bpmn:Group")&&!l.labelTarget){var p=c.category,d=c.categoryValue,u=et(l);d&&(u.categoryValueRef=d,d.$parent=p)}}),this.execute("shape.create",function(s){var c=s.context,l=c.shape,p=c.hints||{};y(l,"bpmn:Group")&&!l.labelTarget&&(p.createElementsBehavior!==!1||et(l).categoryValueRef||c.categoryValue)&&r(l,c)}),this.reverted("shape.create",function(s){var c=s.context,l=c.shape,p=c.hints||{};y(l,"bpmn:Group")&&!l.labelTarget&&(p.createElementsBehavior!==!1||et(l).categoryValueRef||c.categoryValue)&&i(l,c)}),this.executed(["shape.move","shape.resize"],function(s){var c=s.context,l=c.shape;!y(l,"bpmn:Group")||l.labelTarget||et(l).categoryValueRef||r(l,c)}),this.reverted(["shape.move","shape.resize"],function(s){var c=s.context,l=c.shape;y(l,"bpmn:Group")&&!l.labelTarget&&c.categoryValue&&i(l,c)});function a(s,c){var l=t.create(s.$type);return o.copyElement(s,l,null,c)}e.on("copyPaste.copyElement",Gv,function(s){var c=s.descriptor,l=s.element;if(y(l,"bpmn:Group")&&!l.labelTarget){var p=et(l);if(p.categoryValueRef){var d=p.categoryValueRef;c.categoryValue=a(d,!0),d.$parent&&(c.category=a(d.$parent,!0))}}}),e.on("copyPaste.pasteElement",Gv,function(s){var c=s.descriptor,l=c.businessObject,p=c.categoryValue,d=c.category;p&&=l.categoryValueRef=a(p),d&&(p.$parent=a(d)),delete c.category,delete c.categoryValue})}function Dh(t,e,n,o){var r=(o.y-n.y)*(e.x-t.x)-(o.x-n.x)*(e.y-t.y),i,a,s,c;return r==0?null:(i=t.y-n.y,a=t.x-n.x,c=(o.x-n.x)*i-(o.y-n.y)*a,s=c/r,{x:Math.round(t.x+s*(e.x-t.x)),y:Math.round(t.y+s*(e.y-t.y))})}function Lk(t){function e(o,r,i){var a={x:i.x,y:i.y-50},s={x:i.x-50,y:i.y},c=Dh(o,r,i,a),l=Dh(o,r,i,s);o.original=c&&l?Uv(c,i)>Uv(l,i)?l:c:c||l}function n(o){var r=o.waypoints;e(r[0],r[1],Tt(o.source)),e(r[r.length-1],r[r.length-2],Tt(o.target))}t.on("bpmnElement.added",function(o){var r=o.element;r.waypoints&&n(r)})}function Uv(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function Ph(t){J.call(this,t);var e=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],function(n){var o=n.context.shape,r=et(o),i=jt(o);if(Ht(r,e)){var a=i.get("isHorizontal");a===void 0&&(a=!0),i.set("isHorizontal",a)}})}function qv(t){return t**2}function Gc(t,e){return Nk(qv(t.x-e.x)+qv(t.y-e.y))}function y7(t,e){var n=0,o,r,i,a,s,c,l,p,d,u,m;for(n=0;n<e.length-1;n++){if(o=e[n],r=e[n+1],Yv(o,r)?l=[o]:(i=Gc(t,o),a=Gc(t,r),c=Ik(i,a),l=b7(o,r,t,c)),l.length<1)throw Error("expected between [1, 2] circle -> line intersections");l.length===1&&(p={type:"bendpoint",position:l[0],segmentIndex:n,bendpointIndex:Yv(o,l[0])?n:n+1}),l.length===2&&(s=x7(l[0],l[1]),p={type:"segment",position:s,segmentIndex:n,relativeLocation:Gc(o,s)/Gc(o,r)}),d=Gc(p.position,t),(!m||u>d)&&(m=p,u=d)}return m}function b7(t,e,n,o){var r=e.x-t.x,i=e.y-t.y,a=n.x-t.x,s=n.y-t.y,c=r*r+i*i,l=r*a+i*s,p=a*a+s*s-o*o,d=l/c,u=p/c,m=d*d-u;if(m<0&&m>-1e-6&&(m=0),m<0)return[];var h=Nk(m),f=-d+h,g=-d-h,v={x:t.x-r*f,y:t.y-i*f};return m===0?[v]:[v,{x:t.x-r*g,y:t.y-i*g}].filter(function(k){return v7(k,t,e)})}function v7(t,e,n){return Kv(t.x,e.x,n.x)&&Kv(t.y,e.y,n.y)}function Kv(t,e,n){return t>=Ik(e,n)-Vd&&t<=g7(e,n)+Vd}function x7(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Yv(t,e){return Vv(t.x-e.x)<=Vd&&Vv(t.y-e.y)<=Vd}function k7(t,e,n,o){var r=n.segmentIndex,i=e.length-t.length;if(o.segmentMove){var a=o.segmentMove.segmentStartIndex,s=o.segmentMove.newSegmentStartIndex;return r===a?s:r>=s?r+i<s?s:r+i:r}if(o.bendpointMove){var c=o.bendpointMove.insert,l=o.bendpointMove.bendpointIndex,p;return i===0?r:(r>=l&&(p=c?r+1:r-1),r<l&&(p=r,c&&n.type!=="bendpoint"&&l-1===r&&Fk(e,l)<n.relativeLocation&&p++),p)}return i===0?r:o.connectionStart&&r===0?0:o.connectionEnd&&r===t.length-2?e.length-2:Math.floor((e.length-2)/2)}function Hk(t,e,n,o){var r=0,i=0,a={point:t,delta:{x:0,y:0}},s=y7(t,n),c=s.segmentIndex,l=k7(n,e,s,o);if(l<0||l>e.length-2||l===null)return a;var p=Xv(n,c),d=Xv(e,l),u=s.position,m=_7(p,u),h=w7(p,d);if(s.type==="bendpoint"){var f=e.length-n.length,g=s.bendpointIndex,v=n[g];if(e.indexOf(v)!==-1)return a;if(f===0){var k=e[g];return r=k.x-s.position.x,i=k.y-s.position.y,{delta:{x:r,y:i},point:{x:t.x+r,y:t.y+i}}}f<0&&g!==0&&g<n.length-1&&(m=Fk(n,g))}var _={x:(d[1].x-d[0].x)*m+d[0].x,y:(d[1].y-d[0].y)*m+d[0].y},w=p8({x:t.x-u.x,y:t.y-u.y},h);return r=_.x+w.x-t.x,i=_.y+w.y-t.y,{point:ri(_),delta:ri({x:r,y:i})}}function Fk(t,e){var n=Ks(t[e-1],t[e]);return n/(n+Ks(t[e],t[e+1]))}function w7(t,e){var n=vv(t);return vv(e)-n}function Xv(t,e){return[t[e],t[e+1]]}function _7(t,e){var n=Ks(t[0],t[1]),o=Ks(t[0],e);return n===0?0:o/n}function E7(t,e,n,o){return Hk(Tt(t),e,n,o).delta}function Sl(t,e,n){var o=ks(e),r=ks(n),i=Ko(t,o),a={x:i.x*(n.width/e.width),y:i.y*(n.height/e.height)};return ri({x:r.x+a.x,y:r.y+a.y})}function Zv(t,e,n){var o=ks(t),r=ks(e),i=ks(n),a=Ko(t,o),s=Ko(o,r),c=S7(o,e,n);if(c)return c;var l={x:s.x*(n.width/e.width),y:s.y*(n.height/e.height)},p={x:i.x+l.x,y:i.y+l.y};return ri({x:p.x+a.x-t.x,y:p.y+a.y-t.y})}function S7(t,e,n){var o=_t(e),r=_t(n);if(T7(o,r))return null;var i=Cn(e,t),a,s,c;if(i==="top")a={x:0,y:r.bottom-o.bottom};else if(i==="bottom")a={x:0,y:r.top-o.top};else if(i==="right")a={x:r.left-o.left,y:0};else if(i==="left")a={x:r.right-o.right,y:0};else return null;return s={x:t.x+a.x,y:t.y+a.y},c=Cn(n,s),c===i?a:null}function T7(t,e){return C7(t,e)||R7(t,e)}function C7(t,e){return t.right!==e.right&&t.left!==e.left}function R7(t,e){return t.top!==e.top&&t.bottom!==e.bottom}function Wk(t,e){if(e.length)return Gk(t,M7(t,e))}function B7(t){return[[{x:t.x,y:t.y},{x:t.x+(t.width||0),y:t.y}],[{x:t.x+(t.width||0),y:t.y},{x:t.x+(t.width||0),y:t.y+(t.height||0)}],[{x:t.x,y:t.y+(t.height||0)},{x:t.x+(t.width||0),y:t.y+(t.height||0)}],[{x:t.x,y:t.y},{x:t.x,y:t.y+(t.height||0)}]]}function A7(t){for(var e=[],n=0;n<t.length-1;n++)e.push([t[n],t[n+1]]);return e}function M7(t,e){var n=e.map(function(o){return{line:o,distance:Ks(t,Gk(t,o))}});return Uo(n,"distance")[0].line}function Gk(t,e){var n=e[0],o=e[1],r=o.x-n.x,i=o.y-n.y,a=r*r+i*i;if(a===0)return{x:n.x,y:n.y};var s=((t.x-n.x)*r+(t.y-n.y)*i)/a;return s=Math.max(0,Math.min(1,s)),{x:n.x+s*r,y:n.y+s*i}}function jh(t,e,n,o){J.call(this,t),this.postExecute("element.updateProperties",r),this.postExecute("element.updateModdleProperties",a=>{et(a.context.element)===a.context.moddleElement&&r(a)});function r(a){var s=a.context,c=s.element,l=s.properties;if(Jv in l&&e.updateLabel(c,l[Jv]),Qv in l&&y(c,"bpmn:TextAnnotation")){var p=o.getTextAnnotationBounds({x:c.x,y:c.y,width:c.width,height:c.height},l[Qv]||"");e.updateLabel(c,l.text,p)}}this.postExecute(["shape.create","connection.create"],function(a){var s=a.context;if((s.hints||{}).createElementsBehavior!==!1){var c=s.shape||s.connection;!Lt(c)&&br(c)&&Jn(c)&&e.updateLabel(c,Jn(c))}}),this.postExecute("shape.delete",function(a){var s=a.context,c=s.labelTarget,l=s.hints||{};c&&l.unsetLabel!==!1&&e.updateLabel(c,null,null,{removeShape:!1})});function i(a){var s=a.context,c=s.connection,l=c.label,p=j({},s.hints),d=s.newWaypoints||c.waypoints,u=s.oldWaypoints;return p.startChanged===void 0&&(p.startChanged=!!p.connectionStart),p.endChanged===void 0&&(p.endChanged=!!p.connectionEnd),E7(l,d,u,p)}this.postExecute(["connection.layout","connection.updateWaypoints"],function(a){var s=a.context;if((s.hints||{}).labelBehavior!==!1){var c=s.connection.label,l;c&&c.parent&&(l=i(a),e.moveShape(c,l))}}),this.postExecute(["shape.replace"],function(a){var s=a.context,c=s.newShape,l=s.oldShape,p=et(c);p&&br(p)&&l.label&&c.label&&(c.label.x=l.label.x,c.label.y=l.label.y)}),this.preExecute("shape.resize",function(a){var s=a.context,c=s.shape,l=s.hints||{};if(Lt(c)&&!l.autoResize){var p=s.newBounds,d=o.getDimensions(Jn(c)||"",{box:p,style:o.getExternalStyle()}),u=Math.ceil(d.height),m=p.y!==c.y,h=c.y+c.height;s.newBounds={width:p.width,height:u,x:p.x,y:m?h-u:p.y}}}),this.postExecute("shape.resize",function(a){var s=a.context,c=s.shape,l=s.newBounds,p=s.oldBounds;if(Ec(c)){var d=c.label,u=D7(Wk(Tt(d),B7(p)),p,l);e.moveShape(d,u)}})}function D7(t,e,n){var o=Sl(t,e,n);return ri(Ko(o,t))}function P7(t,e,n,o){return Hk(t,e,n,o).point}function $h(t,e){J.call(this,t);function n(o,r){var i=o.context,a=i.connection,s=j({},i.hints),c=i.newWaypoints||a.waypoints,l=i.oldWaypoints;return s.startChanged===void 0&&(s.startChanged=!!s.connectionStart),s.endChanged===void 0&&(s.endChanged=!!s.connectionEnd),P7(r,c,l,s)}this.postExecute(["connection.layout","connection.updateWaypoints"],function(o){var r=o.context.connection,i=r.outgoing;r.incoming.forEach(function(a){var s=a.waypoints[a.waypoints.length-1],c=n(o,s),l=[].concat(a.waypoints.slice(0,-1),[c]);e.updateWaypoints(a,l)}),i.forEach(function(a){var s=a.waypoints[0],c=[n(o,s)].concat(a.waypoints.slice(1));e.updateWaypoints(a,c)})}),this.postExecute(["connection.move"],function(o){var r=o.context,i=r.connection,a=i.outgoing,s=i.incoming,c=r.delta;s.forEach(function(l){var p=l.waypoints[l.waypoints.length-1],d={x:p.x+c.x,y:p.y+c.y},u=[].concat(l.waypoints.slice(0,-1),[d]);e.updateWaypoints(l,u)}),a.forEach(function(l){var p=l.waypoints[0],d=[{x:p.x+c.x,y:p.y+c.y}].concat(l.waypoints.slice(1));e.updateWaypoints(l,d)})})}function iu(t,e,n){var o=su(t),r=Vk(o,e),i=o[0];return r.length?r[r.length-1]:Sl(i.original||i,n,e)}function au(t,e,n){var o=su(t),r=Vk(o,e),i=o[o.length-1];return r.length?r[0]:Sl(i.original||i,n,e)}function $f(t,e,n){var o=su(t),r=Uk(e,n),i=o[0];return Sl(i.original||i,r,e)}function Of(t,e,n){var o=su(t),r=Uk(e,n),i=o[o.length-1];return Sl(i.original||i,r,e)}function Uk(t,e){return{x:t.x-e.x,y:t.y-e.y,width:t.width,height:t.height}}function su(t){var e=t.waypoints;if(!e.length)throw Error("connection#"+t.id+": no waypoints");return e}function Vk(t,e){var n=hn(t,$7);return Ft(n,function(o){return j7(o,e)})}function j7(t,e){return Cn(e,t,1)==="intersect"}function $7(t){return t.original||t}function Oh(t,e){J.call(this,t),this.postExecute("shape.replace",function(n){var o=n.oldShape,r=n.newShape;if(O7(o,r)){var i=z7(o);i.incoming.forEach(function(a){var s=au(a,r,o);e.reconnectEnd(a,r,s)}),i.outgoing.forEach(function(a){var s=iu(a,r,o);e.reconnectStart(a,r,s)})}},!0)}function O7(t,e){return y(t,"bpmn:Participant")&&Ut(t)&&y(e,"bpmn:Participant")&&!Ut(e)}function z7(t){var e=Ss([t],!1),n=[],o=[];return e.forEach(function(r){r!==t&&(r.incoming.forEach(function(i){y(i,"bpmn:MessageFlow")&&n.push(i)}),r.outgoing.forEach(function(i){y(i,"bpmn:MessageFlow")&&o.push(i)}))},[]),{incoming:n,outgoing:o}}function qk(t){let e=et(t);if(!y(e,"bpmn:BoundaryEvent")&&!(y(e,"bpmn:StartEvent")&&Rn(e.$parent)))return!1;let n=e.get("eventDefinitions");return!n||!n.length?!1:L7.some(o=>y(n[0],o))}function Kk(t){return y(t,"bpmn:BoundaryEvent")?"cancelActivity":"isInterrupting"}function zh(t,e){t.invoke(J,this),this.postExecuted("shape.replace",function(n){let o=n.context.oldShape,r=n.context.newShape,i=n.context.hints;if(!qk(r))return;let a=Kk(r);if(i.targetElement&&i.targetElement[a]!==void 0)return;let s=et(o).get(a);s!==et(r).get(a)&&e.updateProperties(r,{[a]:s})})}function Lh(t,e){J.call(this,t),this.preExecute("shape.resize",function(n){var o=n.shape,r=jt(o),i=r&&r.get("label");i&&i.get("bounds")&&e.updateModdleProperties(o,i,{bounds:void 0})},!0)}function Nh(t,e,n){J.call(this,t),this.preExecute("shape.delete",function(o){var r=o.context.shape;if(r.incoming.length===1&&r.outgoing.length===1){var i=r.incoming[0],a=r.outgoing[0];if(y(i,"bpmn:SequenceFlow")&&y(a,"bpmn:SequenceFlow")&&e.canConnect(i.source,a.target,i)){var s=N7(i.waypoints,a.waypoints);n.reconnectEnd(i,a.target,s)}}})}function Os(t){return t.original||t}function N7(t,e){var n=Dh(Os(t[t.length-2]),Os(t[t.length-1]),Os(e[1]),Os(e[0]));return n?[].concat(t.slice(0,t.length-1),[n],e.slice(1)):[Os(t[0]),Os(e[e.length-1])]}function Ih(t,e){J.call(this,t),this.preExecute("shape.delete",function(n){var o=n.shape,r=o.parent;y(o,"bpmn:Participant")&&(n.collaborationRoot=r)},!0),this.postExecute("shape.delete",function(n){var o=n.collaborationRoot;if(o&&!o.businessObject.participants.length){var r=e.makeProcess(),i=o.children.slice();e.moveElements(i,{x:0,y:0},r)}},!0)}function Hh(t,e,n,o){J.call(this,t);var r=o.get("dragging",!1);function i(c){var l=c.source,p=c.target;if(c.parent){var d,u;y(c,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(l,p)||(u=!0),n.canConnectMessageFlow(l,p)&&(d="bpmn:MessageFlow")),y(c,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(l,p)||(u=!0),n.canConnectSequenceFlow(l,p)&&(d="bpmn:SequenceFlow")),u&&e.removeConnection(c),d&&e.connect(l,p,{type:d,waypoints:c.waypoints.slice()})}}function a(c){var l=c.context,p=l.connection,d=l.newSource||p.source,u=l.newTarget||p.target,m=n.canConnect(d,u),h;m&&m.type!==p.type&&(h=e.connect(d,u,{type:m.type,associationDirection:m.associationDirection,waypoints:p.waypoints.slice()}),p.parent&&e.removeConnection(p),l.connection=h,r&&s(p,h))}function s(c,l){var p=r.context(),d=p&&p.payload.previousSelection,u;d&&d.length&&(u=d.indexOf(c),u!==-1&&d.splice(u,1,l))}this.postExecuted("elements.move",function(c){var l=c.closure.allConnections;A(l,i)},!0),this.preExecute("connection.reconnect",a),this.postExecuted("element.updateProperties",function(c){var l=c.context,p=l.properties,d=l.element,u=d.businessObject,m;p.default&&(m=ve(d.outgoing,Ai({id:d.businessObject.default.id})),m&&e.updateProperties(m,{conditionExpression:void 0})),p.conditionExpression&&u.sourceRef.default===u&&e.updateProperties(d.source,{default:void 0})})}function gd(t,e,n,o,r,i){o.invoke(J,this),this._bpmnReplace=t,this._elementRegistry=n,this._selection=i,this.postExecuted(["elements.create"],500,function(a){var s=a.context,c=s.parent,l=s.elements,p=Zn(l,function(d,u){var m=e.canReplace([u],u.host||u.parent||c);return m?d.concat(m.replacements):d},[]);p.length&&this._replaceElements(l,p)},this),this.postExecuted(["elements.move"],500,function(a){var s=a.context,c=s.newParent,l=s.newHost,p=[];A(s.closure.topLevel,function(u){p=Rn(u)?p.concat(u.children):p.concat(u)}),p.length===1&&l&&(c=l);var d=e.canReplace(p,c);d&&this._replaceElements(p,d.replacements,l)},this),this.postExecute(["shape.replace"],1500,function(a){var s=a.context,c=s.oldShape,l=s.newShape,p=c.attachers,d;p&&p.length&&(d=e.canReplace(p,l),this._replaceElements(p,d.replacements))},this),this.postExecuted(["shape.replace"],1500,function(a){var s=a.context,c=s.oldShape,l=s.newShape;r.unclaimId(c.businessObject.id,c.businessObject),r.updateProperties(l,{id:c.id})})}function Zk(t){t.on("resize.start",I7,function(e){var n=e.context,o=n.shape,r=n.direction,i=n.balanced;(y(o,"bpmn:Lane")||y(o,"bpmn:Participant"))&&(n.resizeConstraints=V7(o,r,i)),y(o,"bpmn:SubProcess")&&Ut(o)&&(n.minDimensions=Yk),y(o,"bpmn:TextAnnotation")&&(n.minDimensions=Xk)})}function Jk(t,e,n,o){var r=t[e];t[e]=r===void 0?n:o(n,r)}function zs(t,e,n){return Jk(t,e,n,F7)}function Ls(t,e,n){return Jk(t,e,n,W7)}function V7(t,e,n){var o=nr(t),r=!0,i=!0,a=ru(o,[o]),s=_t(t),c={},l={},p=Ye(t),d=p?zf:Lf;/n/.test(e)?l.top=s.bottom-d.height:/e/.test(e)?l.right=s.left+d.width:/s/.test(e)?l.bottom=s.top+d.height:/w/.test(e)&&(l.left=s.right-d.width),a.forEach(function(h){var f=_t(h);p?(f.top<s.top-10&&(r=!1),f.bottom>s.bottom+10&&(i=!1)):(f.left<s.left-10&&(r=!1),f.right>s.right+10&&(i=!1)),/n/.test(e)&&(n&&Ui(s.top-f.bottom)<10&&Ls(c,"top",f.top+d.height),Ui(s.top-f.top)<5&&zs(l,"top",f.bottom-d.height)),/e/.test(e)&&(n&&Ui(s.right-f.left)<10&&zs(c,"right",f.right-d.width),Ui(s.right-f.right)<5&&Ls(l,"right",f.left+d.width)),/s/.test(e)&&(n&&Ui(s.bottom-f.top)<10&&zs(c,"bottom",f.bottom-d.height),Ui(s.bottom-f.bottom)<5&&Ls(l,"bottom",f.top+d.height)),/w/.test(e)&&(n&&Ui(s.left-f.right)<10&&Ls(c,"left",f.left+d.width),Ui(s.left-f.left)<5&&zs(l,"left",f.right-d.width))});var u=o.children.filter(function(h){return!h.hidden&&!h.waypoints&&(y(h,"bpmn:FlowElement")||y(h,"bpmn:Artifact"))}),m=p?G7:U7;return u.forEach(function(h){var f=_t(h);/n/.test(e)&&(!p||r)&&zs(l,"top",f.top-m.top),/e/.test(e)&&(p||i)&&Ls(l,"right",f.right+m.right),/s/.test(e)&&(!p||i)&&Ls(l,"bottom",f.bottom+m.bottom),/w/.test(e)&&(p||r)&&zs(l,"left",f.left-m.left)}),{min:l,max:c}}function Qk(t,e){t.on("resize.start",t1+500,function(n){var o=n.context,r=o.shape;(y(r,"bpmn:Lane")||y(r,"bpmn:Participant"))&&(o.balanced=!Bs(n))}),t.on("resize.end",t1,function(n){var o=n.context,r=o.shape,i=o.canExecute,a=o.newBounds;if(y(r,"bpmn:Lane")||y(r,"bpmn:Participant"))return i&&(a=dm(a),e.resizeLane(r,a,o.balanced)),!1})}function Fh(t,e,n,o,r){n.invoke(J,this);function i(p){return Ht(p,["bpmn:ReceiveTask","bpmn:SendTask"])||K7(p,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function a(p){var d=t.getDefinitions().get("rootElements");return!!ve(d,Ai({id:p.id}))}function s(p){if(y(p,"bpmn:ErrorEventDefinition"))return"errorRef";if(y(p,"bpmn:EscalationEventDefinition"))return"escalationRef";if(y(p,"bpmn:MessageEventDefinition"))return"messageRef";if(y(p,"bpmn:SignalEventDefinition"))return"signalRef"}function c(p){if(Ht(p,["bpmn:ReceiveTask","bpmn:SendTask"]))return p.get("messageRef");var d=p.get("eventDefinitions")[0];return d.get(s(d))}function l(p,d){if(Ht(p,["bpmn:ReceiveTask","bpmn:SendTask"]))return p.set("messageRef",d);var u=p.get("eventDefinitions")[0];return u.set(s(u),d)}this.executed(["shape.create","element.updateProperties","element.updateModdleProperties"],function(p){var d=p.shape||p.element;if(i(d)){var u=c(et(d)),m;u&&!a(u)&&(m=t.getDefinitions().get("rootElements"),Ge(m,u),p.addedRootElement=u)}},!0),this.reverted(["shape.create","element.updateProperties","element.updateModdleProperties"],function(p){var d=p.addedRootElement;if(d){var u=t.getDefinitions().get("rootElements");Ne(u,d)}},!0),e.on("copyPaste.copyElement",function(p){var d=p.descriptor,u=p.element;if(!u.labelTarget&&i(u)){var m=c(et(u));m&&(d.referencedRootElement=m)}}),e.on("copyPaste.pasteElement",q7,function(p){var d=p.descriptor,u=d.businessObject,m=d.referencedRootElement;m&&(a(m)||(m=o.copyElement(m,r.create(m.$type))),l(u,m),delete d.referencedRootElement)})}function K7(t,e){return Ct(e)||(e=[e]),yr(e,function(n){return _a(t,n)})}function ew(t){t.on("spaceTool.getMinDimensions",function(e){var n=e.shapes,o=e.axis,r=e.start,i={};return A(n,function(a){var s=a.id;y(a,"bpmn:Participant")&&(i[s]=X7(a,o,r)),y(a,"bpmn:Lane")&&(i[s]=Ye(a)?zf:Lf),y(a,"bpmn:SubProcess")&&Ut(a)&&(i[s]=Yk),y(a,"bpmn:TextAnnotation")&&(i[s]=Xk),y(a,"bpmn:Group")&&(i[s]=H7)}),i})}function Y7(t){return t==="x"}function X7(t,e,n){var o=Ye(t);if(!Q7(t))return o?yd:bd;var r=Y7(e),i={};return i=r?o?yd:{width:J7(t,n,r),height:bd.height}:o?{width:yd.width,height:Z7(t,n,r)}:bd,i}function Z7(t,e,n){var o=tC(t,e,n);return tw(yd.height,o)}function J7(t,e,n){var o=eC(t,e,n);return tw(bd.width,o)}function Q7(t){return!!aa(t).length}function tC(t,e,n){var o=Nf(aa(t),e,n);return t.height-o.height+zf.height}function eC(t,e,n){var o=Nf(aa(t),e,n);return t.width-o.width+Lf.width}function Nf(t,e,n){for(var o=0,r,i;o<t.length;o++)if(r=t[o],!n&&e>=r.y&&e<=r.y+r.height||n&&e>=r.x&&e<=r.x+r.width)return i=aa(r),i.length?Nf(i,e,n):r}function pi(t,e,n,o,r,i,a){J.call(this,e),this._canvas=t,this._eventBus=e,this._modeling=n,this._elementFactory=o,this._bpmnFactory=r,this._bpmnjs=i,this._elementRegistry=a;var s=this;function c(d){return y(d,"bpmn:SubProcess")&&!Ut(d)}function l(d){var u=d.shape,m=d.newRootElement,h=et(u);m=s._addDiagram(m||h),d.newRootElement=t.addRootElement(m)}function p(d){var u=d.shape,m=et(u);s._removeDiagram(m);var h=d.newRootElement=a.get(qo(m));t.removeRootElement(h)}this.executed("shape.create",function(d){var u=d.shape;c(u)&&l(d)},!0),this.postExecuted("elements.create",function(d){var u=d.elements;A(u,function(m){if(c(m)){var h=a.get(qo(m));if(h&&m.children&&m.children.length){var f=o1(m);s._showRecursively(f),s._moveChildrenToShape(f,h)}}})},!0),this.reverted("shape.create",function(d){var u=d.shape;c(u)&&p(d)},!0),this.preExecute("shape.delete",function(d){var u=d.shape;y(u,"bpmn:SubProcess")&&Ut(u)&&A(Cs([u]),m=>{n.removeShape(m.annotation)})},!0),this.preExecuted("shape.delete",function(d){var u=d.shape;if(c(u)){var m=a.get(qo(u));m&&n.removeElements(m.children.slice())}},!0),this.executed("shape.delete",function(d){var u=d.shape;c(u)&&p(d)},!0),this.reverted("shape.delete",function(d){var u=d.shape;c(u)&&l(d)},!0),this.preExecuted("shape.replace",function(d){var u=d.oldShape,m=d.newShape;c(u)&&c(m)&&(d.oldRoot=t.removeRootElement(qo(u)))},!0),this.postExecuted("shape.replace",function(d){var u=d.newShape,m=d.oldRoot,h=t.findRoot(qo(u));if(m&&h){var f=m.children;n.moveElements(f,{x:0,y:0},h)}},!0),this.executed("element.updateProperties",function(d){var u=d.element;if(y(u,"bpmn:SubProcess")){var m=d.properties,h=d.oldProperties.id,f=m.id;h!==f&&(vs(u)?(a.updateId(u,$i(f)),a.updateId(h,f)):a.get($i(h))&&a.updateId($i(h),$i(f)))}},!0),this.reverted("element.updateProperties",function(d){var u=d.element;if(y(u,"bpmn:SubProcess")){var m=d.properties,h=d.oldProperties.id,f=m.id;if(h!==f)if(vs(u))a.updateId(u,$i(h)),a.updateId(f,h);else{var g=a.get($i(f));g&&a.updateId(g,$i(h))}}},!0),e.on("element.changed",function(d){var u=d.element;if(vs(u)){var m=u,h=a.get(km(m));h&&h!==m&&e.fire("element.changed",{element:h})}}),this.executed("shape.toggleCollapse",e1,function(d){var u=d.shape;y(u,"bpmn:SubProcess")&&(Ut(u)?p(d):(l(d),s._showRecursively(u.children)))},!0),this.reverted("shape.toggleCollapse",e1,function(d){var u=d.shape;y(u,"bpmn:SubProcess")&&(Ut(u)?p(d):(l(d),s._showRecursively(u.children)))},!0),this.postExecuted("shape.toggleCollapse",nC,function(d){var u=d.shape;if(y(u,"bpmn:SubProcess")){var m=d.newRootElement;if(m)if(Ut(u))s._moveChildrenToShape(m.children.slice(),u),A(Cs(u.children),f=>{n.moveShape(f.annotation,{x:0,y:0},u.parent),A(f.associations,g=>{n.moveConnection(g,{x:0,y:0},u.parent)})});else{s._disconnectSharedAnnotations(u);var h=o1(u);s._moveChildrenToShape(h,m)}}},!0),e.on("copyPaste.createTree",function(d){var u=d.element,m=d.children;if(c(u)){var h=qo(u),f=a.get(h);f&&m.push.apply(m,f.children)}}),e.on("copyPaste.copyElement",function(d){var u=d.descriptor,m=d.element,h=d.elements,f=m.parent;if(y(jt(f),"bpmndi:BPMNPlane")){var g=km(f),v=ve(h,function(k){return k.id===g});v&&(u.parent=v.id)}}),e.on("copyPaste.pasteElement",function(d){var u=d.descriptor;u.parent&&(c(u.parent)||u.parent.hidden)&&(u.hidden=!0)})}function oC(t){var e=[];return A(Cs(t),n=>{e.push(n.annotation),e.push.apply(e,n.associations)}),e}function o1(t){return t.children.slice().concat(oC(t.children)).concat(rC(t))}function rC(t){return Pp(t.children||[],!0,-1).reduce(function(e,n){return n.label&&n.label.parent!==t&&e.push(n.label),e},[])}function Wh(t,e){t.invoke(J,this),this.postExecuted("shape.replace",function(n){var o=n.context.oldShape,r=n.context.newShape;if(y(r,"bpmn:SubProcess")&&!y(r,"bpmn:AdHocSubProcess")&&(y(o,"bpmn:Task")||y(o,"bpmn:CallActivity"))&&Ut(r)){var i=iC(r);e.createShape({type:"bpmn:StartEvent"},i,r)}})}function iC(t){return{x:t.x+t.width/6,y:t.y+t.height/2}}function Gh(t,e){J.call(this,t),this.preExecute("connection.create",function(n){let{target:o}=n;y(o,"bpmn:TextAnnotation")&&(n.parent=o.parent)},!0),this.preExecute(["shape.create","shape.resize","elements.move"],function(n){let o=n.shapes||[n.shape];o.length===1&&y(o[0],"bpmn:TextAnnotation")&&(n.hints=n.hints||{},n.hints.autoResize=!1)},!0),this.preExecute("shape.resize",function(n){var o=n.context,r=o.shape,i=o.hints||{};if(y(r,"bpmn:TextAnnotation")&&!i.autoResize){var a=o.newBounds,s=e.getTextAnnotationBounds(a,Jn(r)||""),c=a.y!==r.y&&Math.abs(a.y+a.height-(r.y+r.height))<=1,l=r.y+r.height;o.newBounds={width:a.width,height:s.height,x:a.x,y:c?l-s.height:a.y}}})}function Uh(t,e){J.call(this,t),this.postExecuted("shape.toggleCollapse",1500,function(n){var o=n.shape;if(Ut(o))return;var r=Ss(o);r.forEach(function(a){var s=a.incoming.slice(),c=a.outgoing.slice();A(s,function(l){i(l,!0)}),A(c,function(l){i(l,!1)})});function i(a,s){(r.indexOf(a.source)===-1||r.indexOf(a.target)===-1)&&(y(a,"bpmn:Association")&&(y(a.source,"bpmn:TextAnnotation")||y(a.target,"bpmn:TextAnnotation"))||(s?e.reconnectEnd(a,o,Tt(o)):e.reconnectStart(a,o,Tt(o))))}},!0)}function Vh(t,e,n){J.call(this,t);function o(a){a.length&&a.forEach(function(s){s.type==="label"&&!s.businessObject.name&&(s.hidden=!0)})}function r(a,s){var c=a.children,l=s,p=Ok(aC(c).concat([a]));return p?(l.width=Math.max(p.width,l.width),l.height=Math.max(p.height,l.height),l.x=p.x+(p.width-l.width)/2,l.y=p.y+(p.height-l.height)/2):(l.x=a.x+(a.width-l.width)/2,l.y=a.y+(a.height-l.height)/2),l}function i(a,s){return{x:a.x+(a.width-s.width)/2,y:a.y+(a.height-s.height)/2,width:s.width,height:s.height}}this.executed(["shape.toggleCollapse"],Nm,function(a){var s=a.context.shape;y(s,"bpmn:SubProcess")&&(s.collapsed?jt(s).isExpanded=!1:(o(s.children),jt(s).isExpanded=!0))}),this.reverted(["shape.toggleCollapse"],Nm,function(a){var s=a.context.shape;s.collapsed?jt(s).isExpanded=!1:jt(s).isExpanded=!0}),this.postExecuted(["shape.toggleCollapse"],Nm,function(a){var s=a.context.shape,c=e.getDefaultSize(s),l=s.collapsed?i(s,c):r(s,c);n.resizeShape(s,l,null,{autoResize:!s.collapsed&&"nwse"})})}function aC(t){return t.filter(function(e){return!e.hidden})}function qh(t,e,n,o){e.invoke(J,this),this.preExecute("shape.delete",function(r){var i=r.context.shape,a=i.businessObject;Lt(i)||(y(i,"bpmn:Participant")&&Ut(i)&&n.ids.unclaim(a.processRef.id),o.unclaimId(a.id,a))}),this.preExecute("connection.delete",function(r){var i=r.context.connection.businessObject;o.unclaimId(i.id,i)}),this.preExecute("canvas.updateRoot",function(){var r=t.getRootElement(),i=r.businessObject;y(r,"bpmn:Collaboration")&&n.ids.unclaim(i.id)})}function Kh(t,e){J.call(this,t),this.preExecute("connection.delete",function(n){var o=n.context.connection,r=o.source;sC(o,r)&&e.updateProperties(r,{default:null})})}function sC(t,e){if(!y(t,"bpmn:SequenceFlow"))return!1;var n=et(e),o=et(t);return n.get("default")===o}function Yh(t,e){J.call(this,t);var n;function o(){return n||=new pC,n.enter(),n}function r(){if(!n)throw Error("out of bounds release");return n}function i(){if(!n)throw Error("out of bounds release");var a=n.leave();return a&&(e.updateLaneRefs(n.flowNodes,n.lanes),n=null),a}this.preExecute(r1,lC,function(){o()}),this.postExecuted(r1,cC,function(){i()}),this.preExecute(nw,function(a){var s=a.context.shape,c=r();s&&!s.labelTarget&&(y(s,"bpmn:Lane")&&c.addLane(s),y(s,"bpmn:FlowNode")&&c.addFlowNode(s))})}function pC(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(t){this.lanes.push(t)},this.addFlowNode=function(t){this.flowNodes.push(t)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}function Xh(t,e){J.call(this,t);var n;function o(){return n||=new mC,n.enter(),n}function r(){if(!n)throw Error("out of bounds release");return n}function i(){if(!n)throw Error("out of bounds release");var a=n.leave();return a&&(e.updateCategoryValueRefs(Array.from(n.affectedFlowElements),Array.from(n.affectedGroupEntries.values())),n=null),a}this.preExecute(i1,uC,function(){o()}),this.postExecuted(i1,dC,function(){i()}),this.preExecute(ow,function(a){var s=a.context.connection||a.context.shape,c=r();s&&!s.labelTarget&&(y(s,"bpmn:FlowElement")&&c.addFlowElement(s),y(s,"bpmn:Group")&&c.addGroup(s))}),this.preExecute("label.create",function(a){var s=a.context.labelTarget;y(s,"bpmn:Group")&&r().addGroup(s)})}function mC(){this.affectedFlowElements=new Set,this.affectedGroupEntries=new Map,this.counter=0,this.addFlowElement=function(t){this.affectedFlowElements.add(t)},this.addGroup=function(t){this.affectedGroupEntries.has(t)||this.affectedGroupEntries.set(t,{categoryValue:t.businessObject.categoryValueRef,groupShape:t})},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}function Zh(t,e){J.call(this,t),this.postExecuted("elements.create",function(n){let o=n.context.elements;for(let r of o)hC(r)&&!gC(r)&&e.updateProperties(r,{isForCompensation:void 0})})}function hC(t){let e=et(t);return e&&e.isForCompensation}function fC(t){return t&&y(t,"bpmn:BoundaryEvent")&&_a(t,"bpmn:CompensateEventDefinition")}function gC(t){return t.incoming.filter(e=>fC(e.source)).length>0}function rw(t,e){var n=Cn(t,e,-15);return n==="intersect"?null:n}function On(t){or.call(this,t)}function bC(t){return Jh(t)?null:Ht(t,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}function Jh(t){return!t||Lt(t)}function a1(t){do{if(y(t,"bpmn:Process"))return et(t);if(y(t,"bpmn:Participant"))return et(t).processRef||et(t)}while(t=t.parent)}function Qh(t){return y(t,"bpmn:TextAnnotation")}function If(t){return y(t,"bpmn:Group")&&!t.labelTarget}function iw(t){return y(t,"bpmn:BoundaryEvent")&&Wr(t,"bpmn:CompensateEventDefinition")}function cu(t){return et(t).isForCompensation}function vC(t,e){return a1(t)===a1(e)}function xC(t){return y(t,"bpmn:InteractionNode")&&!y(t,"bpmn:BoundaryEvent")&&(!y(t,"bpmn:Event")||y(t,"bpmn:ThrowEvent")&&sw(t,"bpmn:MessageEventDefinition"))}function kC(t){return y(t,"bpmn:InteractionNode")&&!cu(t)&&(!y(t,"bpmn:Event")||y(t,"bpmn:CatchEvent")&&sw(t,"bpmn:MessageEventDefinition"))&&!(y(t,"bpmn:BoundaryEvent")&&!Wr(t,"bpmn:MessageEventDefinition"))}function s1(t){for(var e=t;e=e.parent;){if(y(e,"bpmn:FlowElementsContainer"))return et(e);if(y(e,"bpmn:Participant"))return et(e).processRef}return null}function aw(t,e){return s1(t)===s1(e)}function Wr(t,e){var n=et(t);return!!ve(n.eventDefinitions||[],function(o){return y(o,e)})}function sw(t,e){return(et(t).eventDefinitions||[]).every(function(n){return y(n,e)})}function wC(t){return y(t,"bpmn:FlowNode")&&!y(t,"bpmn:EndEvent")&&!Rn(t)&&!(y(t,"bpmn:IntermediateThrowEvent")&&Wr(t,"bpmn:LinkEventDefinition"))&&!iw(t)&&!cu(t)}function _C(t){return y(t,"bpmn:FlowNode")&&!y(t,"bpmn:StartEvent")&&!y(t,"bpmn:BoundaryEvent")&&!Rn(t)&&!(y(t,"bpmn:IntermediateCatchEvent")&&Wr(t,"bpmn:LinkEventDefinition"))&&!cu(t)}function EC(t){return y(t,"bpmn:ReceiveTask")||y(t,"bpmn:IntermediateCatchEvent")&&(Wr(t,"bpmn:MessageEventDefinition")||Wr(t,"bpmn:TimerEventDefinition")||Wr(t,"bpmn:ConditionalEventDefinition")||Wr(t,"bpmn:SignalEventDefinition"))}function SC(t){for(var e=[];t;)t=t.parent,t&&e.push(t);return e}function c1(t,e){return SC(e).indexOf(t)!==-1}function qp(t,e,n){if(Jh(t)||Jh(e))return null;if(!y(n,"bpmn:DataAssociation")){if(hw(t,e))return{type:"bpmn:MessageFlow"};if(fw(t,e))return{type:"bpmn:SequenceFlow"}}return Hf(t,e)||(mw(t,e)?{type:"bpmn:Association",associationDirection:"One"}:uw(t,e)?{type:"bpmn:Association",associationDirection:"None"}:!1)}function Xs(t,e){return Lt(t)||If(t)?!0:y(e,"bpmn:Participant")&&!Ut(e)?!1:y(t,"bpmn:Participant")?y(e,"bpmn:Process")||y(e,"bpmn:Collaboration"):Ht(t,["bpmn:DataInput","bpmn:DataOutput"])&&t.parent?e===t.parent:y(t,"bpmn:Lane")?y(e,"bpmn:Participant")||y(e,"bpmn:Lane"):y(t,"bpmn:BoundaryEvent")&&!TC(t)?!1:y(t,"bpmn:FlowElement")&&!y(t,"bpmn:DataStoreReference")?y(e,"bpmn:FlowElementsContainer")?Ut(e):Ht(e,["bpmn:Participant","bpmn:Lane"]):y(t,"bpmn:DataStoreReference")&&y(e,"bpmn:Collaboration")?yr(et(e).get("participants"),function(n){return!!n.get("processRef")}):Ht(t,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?Ht(e,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):y(t,"bpmn:MessageFlow")?y(e,"bpmn:Collaboration")||t.source.parent==e||t.target.parent==e:!1}function TC(t){return et(t).cancelActivity&&(lw(t)||pw(t))}function cw(t){return!Lt(t)&&y(t,"bpmn:BoundaryEvent")}function CC(t){return y(t,"bpmn:Lane")}function RC(t){return cw(t)||y(t,"bpmn:IntermediateThrowEvent")&&lw(t)?!0:y(t,"bpmn:IntermediateCatchEvent")&&pw(t)}function lw(t){var e=et(t);return e&&!(e.eventDefinitions&&e.eventDefinitions.length)}function pw(t){return dw(t,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function dw(t,e){return e.some(function(n){return Wr(t,n)})}function BC(t){return y(t,"bpmn:ReceiveTask")&&ve(t.incoming,function(e){return y(e.source,"bpmn:EventBasedGateway")})}function Zc(t,e,n,o){if(Array.isArray(t)||(t=[t]),t.length!==1)return!1;var r=t[0];return Lt(r)||!RC(r)||Rn(e)||!y(e,"bpmn:Activity")||cu(e)||o&&!rw(o,e)||BC(e)?!1:"attach"}function l1(t,e,n){if(!e)return!1;var o={replacements:[]};return A(t,function(r){Rn(e)||y(r,"bpmn:StartEvent")&&r.type!=="label"&&Xs(r,e)&&(L0(r)||o.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"}),(N0(r)||I0(r)||H0(r))&&o.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"}),dw(r,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&y(e,"bpmn:SubProcess")&&o.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"})),y(e,"bpmn:Transaction")||Wr(r,"bpmn:CancelEventDefinition")&&r.type!=="label"&&(y(r,"bpmn:EndEvent")&&Xs(r,e)&&o.replacements.push({oldElementId:r.id,newElementType:"bpmn:EndEvent"}),y(r,"bpmn:BoundaryEvent")&&Zc(r,e,null,n)&&o.replacements.push({oldElementId:r.id,newElementType:"bpmn:BoundaryEvent"}))}),o.replacements.length?o:!1}function p1(t,e){return yr(t,CC)?!1:e===void 0||e!==null&&t.every(function(n){return Xs(n,e)})}function Im(t,e,n,o){return e?Lt(t)||If(t)?!0:Xs(t,e,o)||vd(t,e,o):!1}function d1(t,e,n){return y(t,"bpmn:SubProcess")?Ut(t)&&(!e||e.width>=100&&e.height>=80):y(t,"bpmn:Lane")||y(t,"bpmn:Participant")?!0:Qh(t)?!n||n==="e"||n==="w":If(t)?!0:Lt(t)?!n||n==="e"||n==="w":!1}function AC(t,e){var n=Qh(t),o=Qh(e);return(n||o)&&n!==o}function uw(t,e){return c1(e,t)||c1(t,e)?!1:AC(t,e)?!0:!!Hf(t,e)}function mw(t,e){return aw(t,e)&&iw(t)&&y(e,"bpmn:Activity")&&!DC(e,t)&&!Rn(e)}function hw(t,e){return h1(t)&&!h1(e)?!1:xC(t)&&kC(e)&&!vC(t,e)}function fw(t,e){return wC(t)&&_C(e)&&aw(t,e)&&!(y(t,"bpmn:EventBasedGateway")&&!EC(e))}function Hf(t,e){return Ht(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Ht(e,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:Ht(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Ht(t,["bpmn:Activity","bpmn:CatchEvent"])?{type:"bpmn:DataOutputAssociation"}:!1}function vd(t,e,n){if(!e)return!1;if(Array.isArray(t)){if(t.length!==1)return!1;t=t[0]}return e.source===t||e.target===t?!1:Ht(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!Lt(e)&&y(t,"bpmn:FlowNode")&&!y(t,"bpmn:BoundaryEvent")&&Xs(t,e.parent,n)}function tf(t,e){return t&&e&&t.indexOf(e)!==-1}function u1(t,e){return Lt(e)?!0:!(y(e,"bpmn:Lane")&&!tf(t,e.parent)||y(e,"bpmn:MessageFlow")&&!MC(t,e))}function MC(t,e){var n=m1(e.source),o=m1(e.target);return tf(t,n)&&tf(t,o)}function m1(t){for(;t;t=t.parent)if(y(t,"bpmn:Participant"))return t;return null}function h1(t){return Sa(t,"bpmn:Process")||Sa(t,"bpmn:Collaboration")}function DC(t,e){return t.attachers.includes(e)}function gw(t,e){t.on("saveXML.start",jC,n);function n(){var o=e.getRootElements();A(o,function(r){var i=jt(r),a=Ss([r],!1),s;a=Ft(a,function(c){return c!==r&&!c.labelTarget}),s=hn(a,jt),i.set("planeElement",s)})}}function qd(t){J.call(this,t);var e=this;this.preExecute(["shape.create","connection.create"],function(n){var o=n.context,r=o.shape||o.connection,i=o.parent,a=e.getOrdering(r,i);a&&(a.parent!==void 0&&(o.parent=a.parent),o.parentIndex=a.index)}),this.preExecute(["shape.move","connection.move"],function(n){var o=n.context,r=o.shape||o.connection,i=o.newParent||r.parent,a=e.getOrdering(r,i);a&&(a.parent!==void 0&&(o.newParent=a.parent),o.newParentIndex=a.index)})}function ef(t,e){qd.call(this,t);var n=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:9,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:TextAnnotation",order:{level:9}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function o(a){if(a.labelTarget)return{level:10};var s=ve(n,function(c){return Ht(a,[c.type])});return s&&s.order||{level:1}}function r(a){var s=a.order;if(s||(a.order=s=o(a)),!s)throw Error("no order for <".concat(a.id,">"));return s}function i(a,s,c){for(var l=s;l&&!Ht(l,c);)l=l.parent;if(!l)throw Error("no parent for <".concat(a.id,"> in <").concat(s&&s.id,">"));return l}this.getOrdering=function(a,s){if(a.labelTarget||y(a,"bpmn:TextAnnotation"))return{parent:e.findRoot(s)||e.getRootElement(),index:-1};var c=r(a);c.containers&&(s=i(a,s,c.containers));var l=s.children.indexOf(a),p=cp(s.children,function(d){return!a.labelTarget&&d.labelTarget?!1:c.level<r(d).level});return p!==-1&&l!==-1&&l<p&&--p,{index:p,parent:s}}}function Jc(){}function yw(t,e,n,o,r){function i(c,l,p,d,u){if(!l)return!1;c=Ft(c,function(k){var _=k.labelTarget;return!k.parent&&!(Lt(k)&&c.indexOf(_)!==-1)});var m=ve(c,function(k){return!he(k)}),h=!1,f=!1,g=!1;x1(c)&&(h=r.allowed("shape.attach",{position:p,shape:m,target:l})),h||(g=x1(c)?r.allowed("shape.create",{position:p,shape:m,source:d,target:l}):r.allowed("elements.create",{elements:c,position:p,target:l}));var v=u.connectionTarget;return g||h?(m&&d&&(f=r.allowed("connection.create",{source:v===d?m:d,target:v===d?d:m,hints:{targetParent:l,targetAttach:h}})),{attach:h,connect:f}):g===null||h===null?null:!1}function a(c,l){[g1,LC,f1,y1].forEach(function(p){p===l?t.addMarker(c,p):t.removeMarker(c,p)})}n.on(["create.move","create.hover"],function(c){var l=c.context,p=l.elements,d=c.hover,u=l.source,m=l.hints||{};if(!d)l.canExecute=!1,l.target=null;else{v1(c);var h={x:c.x,y:c.y},f=l.canExecute=d&&i(p,d,h,u,m);d&&f!==null&&(l.target=d,f&&f.attach?a(d,g1):a(d,f?y1:f1))}}),n.on(["create.end","create.out","create.cleanup"],function(c){var l=c.hover;l&&a(l,null)}),n.on("create.end",function(c){var l=c.context,p=l.source,d=l.shape,u=l.elements,m=l.target,h=l.canExecute,f=h&&h.attach,g=h&&h.connect,v=l.hints||{};if(h===!1||!m)return!1;v1(c);var k={x:c.x,y:c.y};g?d=o.appendShape(p,d,k,m,{attach:f,connection:g===!0?{}:g,connectionTarget:v.connectionTarget}):(u=o.createElements(u,k,m,j({},v,{attach:f})),d=ve(u,function(_){return!he(_)})),j(l,{elements:u,shape:d}),j(c,{elements:u,shape:d})});function s(){var c=e.context();c&&c.prefix===b1&&e.cancel()}n.on("create.init",function(){n.on("elements.changed",s),n.once(["create.cancel","create.end"],NC,function(){n.off("elements.changed",s)})}),this.start=function(c,l,p){Ct(l)||(l=[l]);var d=ve(l,function(h){return!he(h)});if(d){p=j({elements:l,hints:{},shape:d},p||{}),A(l,function(h){Mt(h.x)||(h.x=0),Mt(h.y)||(h.y=0)});var u=Ft(l,function(h){return!h.hidden}),m=en(u);A(l,function(h){he(h)&&(h.waypoints=hn(h.waypoints,function(f){return{x:f.x-m.x-m.width/2,y:f.y-m.y-m.height/2}})),j(h,{x:h.x-m.x-m.width/2,y:h.y-m.y-m.height/2})}),e.init(c,b1,{cursor:"grabbing",autoActivate:!0,data:{shape:d,elements:l,context:p}})}}}function v1(t){var e=t.context.createConstraints;e&&(e.left&&(t.x=Math.max(t.x,e.left)),e.right&&(t.x=Math.min(t.x,e.right)),e.top&&(t.y=Math.max(t.y,e.top)),e.bottom&&(t.y=Math.min(t.y,e.bottom)))}function x1(t){return t&&t.length===1&&!he(t[0])}function bw(t,e,n,o,r){function i(a){var s=at("g");Z(s,r.cls("djs-drag-group",["no-events"]));var c=at("g");return a.forEach(function(l){var p;l.hidden||(l.waypoints?(p=n._createContainer("connection",c),n.drawConnection(Fi(p),l)):(p=n._createContainer("shape",c),n.drawShape(Fi(p),l),An(p,l.x,l.y)),o.addDragger(l,s,p))}),s}e.on("create.move",IC,function(a){var s=a.hover,c=a.context,l=c.elements,p=c.dragGroup;p||=c.dragGroup=i(l);var d;s?(p.parentNode||(d=t.getActiveLayer(),dt(d,p)),An(p,a.x,a.y)):rn(p)}),e.on("create.cleanup",function(a){var s=a.context.dragGroup;s&&rn(s)})}function nf(t){var e=this;this._lastMoveEvent=null;function n(o){e._lastMoveEvent=o}t.on("canvas.init",function(o){(e._svg=o.svg).addEventListener("mousemove",n)}),t.on("canvas.destroy",function(){e._lastMouseEvent=null,e._svg.removeEventListener("mousemove",n)})}function HC(t,e){var n=document.createEvent("MouseEvent"),o=t,r=e,i=t,a=e;return n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,o,r,i,a,!1,!1,!1,!1,0,null),n}function So(t,e,n,o,r,i,a,s){this._canvas=t,this._create=e,this._elementFactory=o,this._eventBus=r,this._modeling=i,this._mouse=a,this._rules=s,r.on("copyPaste.copyElement",function(c){var l=c.descriptor,p=c.element,d=c.elementsSet;l.priority=1,l.id=p.id,d.has(p.parent)&&(l.parent=p.parent.id),FC(p)&&(l.priority=2,l.host=p.host.id),he(p)&&(l.priority=3,l.source=p.source.id,l.target=p.target.id,l.waypoints=WC(p)),Lt(p)&&(l.priority=4,l.labelTarget=p.labelTarget.id),A(["x","y","width","height"],function(u){Mt(p[u])&&(l[u]=p[u])}),l.hidden=p.hidden,l.collapsed=p.collapsed}),r.on("copyPaste.elementsCopied",k1,function(c){c.hints?.clip!==!1&&n.set(c.tree)}),r.on("copyPaste.pasteElements",k1,function(c){c.tree||=n.get()}),r.on("copyPaste.pasteElements",function(c){var l=c.hints;j(l,{createElementsBehavior:!1})})}function FC(t){return!!t.host}function WC(t){return hn(t.waypoints,function(e){return e=w1(e),e.original&&(e.original=w1(e.original)),e})}function w1(t){return j({},t)}function GC(t,e){var n=e.indexOf(t);return n===-1?e:e.splice(n,1)}function Hm(t,e,n){Ct(n)||(n=[n]),A(n,function(o){ei(t[o])||(e[o]=t[o])})}function vw(t,e,n){function o(c,l){var p=t.create(c.$type);return n.copyElement(c,p,null,l)}e.on("copyPaste.copyElement",Fm,function(c){var l=c.descriptor,p=c.element,d=et(p);if(Lt(p))return l;var u=l.businessObject=o(d,!0),m=l.di=o(jt(p),!0);m.bpmnElement=u,Hm(u,l,"name"),Hm(m,l,"isExpanded"),d.default&&(l.default=d.default.id)});var r="-bpmn-js-refs";function i(c){return c[r]=c[r]||{}}function a(c,l){c[r]=l}function s(c,l,p){var d=et(c);return c.default&&(p[c.default]={element:d,property:"default"}),c.host&&(et(c).attachedToRef=et(l[c.host])),Vo(p,Zn(p,function(u,m,h){var f=m.element,g=m.property;return h===c.id&&(f.set(g,d),u.push(c.id)),u},[]))}e.on("copyPaste.pasteElement",function(c){var l=c.cache,p=c.descriptor,d=p.businessObject,u=p.di;Lt(p)?(p.businessObject=et(l[p.labelTarget]),p.di=jt(l[p.labelTarget])):(d=p.businessObject=o(d),u=p.di=o(u),u.bpmnElement=d,Hm(p,d,["isExpanded","name"]),p.type=d.$type)}),e.on("copyPaste.copyElement",Fm,function(c){var l=c.descriptor,p=c.element;if(y(p,"bpmn:Participant")){var d=et(p);d.processRef&&(l.processRef=o(d.processRef,!0))}}),e.on("copyPaste.pasteElement",function(c){var l=c.descriptor,p=l.processRef;p&&(l.processRef=o(p))}),e.on("copyPaste.createTree",function(c){var l=c.element,p=c.children;y(l,"bpmn:SubProcess")&&A(Cs(p),d=>{p.push(d.annotation)})}),e.on("copyPaste.pasteElement",Fm,function(c){var l=c.cache,p=c.descriptor;a(l,s(p,l,i(l)))})}function Qc(t,e,n){this._bpmnFactory=e,this._eventBus=t,this._moddle=n,t.on("moddleCopy.canCopyProperties",o=>{let{propertyNames:r}=o;if(r&&r.length)return Uo(r,i=>i==="extensionElements")}),t.on("moddleCopy.canCopyProperty",o=>{let{parent:r,property:i,propertyName:a}=o,s=We(r)&&r.$descriptor;if(a&&qC.includes(a))return i;if(a&&VC.includes(a)||a&&s&&!ve(s.properties,Ai({name:a})))return!1}),t.on("moddleCopy.canSetCopiedProperty",o=>{let{property:r}=o;if(y(r,"bpmn:ExtensionElements")&&(!r.values||!r.values.length))return!1})}function of(t,e){return Zn(t.properties,(n,o)=>e&&o.default?n:n.concat(o.name),[])}function rf(t,e){this._modeling=t,this._eventBus=e}function kw(t,e){e.on("replace.end",500,function(n){let{newElement:o,hints:r={}}=n;r.select!==!1&&t.select(o)})}function YC(t,e,n){Ct(n)||(n=[n]),A(n,function(o){ei(t[o])||(e[o]=t[o])})}function ZC(t,e){var n=t&&Pn(t,"collapsed")?t.collapsed:!Ut(t);return n!==(e&&(Pn(e,"collapsed")||Pn(e,"isExpanded"))?Pn(e,"collapsed")?e.collapsed:!e.isExpanded:n)}function ww(t,e,n,o,r,i){function a(s,c,l){l||={};var p=c.type,d=s.businessObject;if(Kp(d)&&(p==="bpmn:SubProcess"||p==="bpmn:AdHocSubProcess")&&ZC(s,c))return o.toggleCollapse(s),s;var u=t.create(p),m={type:p,businessObject:u};m.di={},p==="bpmn:ExclusiveGateway"&&(m.di.isMarkerVisible=!0),YC(s.di,m.di,["fill","stroke","background-color","border-color","color"]);var h=JC(of(d.$descriptor),of(u.$descriptor,!0));j(u,po(c,XC));var f=Ft(h,function(k){return k==="eventDefinitions"?E1(s,c.eventDefinitionType):k==="loopCharacteristics"?!Rn(u):Pn(u,k)||k==="processRef"&&c.isExpanded===!1||k==="triggeredByEvent"?!1:k!=="isForCompensation"||!Rn(u)});if(u=n.copyElement(d,u,f),c.eventDefinitionType&&(E1(u,c.eventDefinitionType)||(m.eventDefinitionType=c.eventDefinitionType,m.eventDefinitionAttrs=c.eventDefinitionAttrs)),y(d,"bpmn:Activity")){if(Kp(d))m.isExpanded=Ut(s);else if(c&&Pn(c,"isExpanded")){m.isExpanded=c.isExpanded;var g=e.getDefaultSize(u,{isExpanded:m.isExpanded});m.width=g.width,m.height=g.height,m.x=s.x-(m.width-s.width)/2,m.y=s.y-(m.height-s.height)/2}Ut(s)&&!y(d,"bpmn:Task")&&m.isExpanded&&(m.width=s.width,m.height=s.height)}if(Kp(d)&&!Kp(u)&&(l.moveChildren=!1),y(d,"bpmn:Participant")){c.isExpanded===!0?u.processRef=t.create("bpmn:Process"):l.moveChildren=!1;var v=Ye(s);jt(s).isHorizontal||(jt(m).isHorizontal=v),m.width=v?s.width:e.getDefaultSize(m).width,m.height=v?e.getDefaultSize(m).height:s.height}return i.allowed("shape.resize",{shape:u})||(m.height=e.getDefaultSize(m).height,m.width=e.getDefaultSize(m).width),u.name=d.name,Ht(d,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&Ht(u,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(u.default=d.default),c.host&&!y(d,"bpmn:BoundaryEvent")&&y(u,"bpmn:BoundaryEvent")&&(m.host=c.host),(m.type==="bpmn:DataStoreReference"||m.type==="bpmn:DataObjectReference")&&(m.x=s.x+(s.width-m.width)/2),r.replaceElement(s,m,{...l,targetElement:c})}this.replaceElement=a}function Kp(t){return y(t,"bpmn:SubProcess")}function E1(t,e){var n=et(t);return e&&n.get("eventDefinitions").some(function(o){return y(o,e)})}function JC(t,e){return t.filter(function(n){return e.includes(n)})}function $a(t){this._eventBus=t,this._tools=[],this._active=null}function tR(t){var e=t.originalEvent&&t.originalEvent.target;return e&&Lr(e,'.group[data-group="tools"]')}function eR(t,e){if(t==="x"){if(e>0)return"e";if(e<0)return"w"}if(t==="y"){if(e>0)return"s";if(e<0)return"n"}return null}function nR(t,e){var n=[],o=new Set(t);A(e,function(i){o.add(i)});var r=new Set;return o.forEach(function(i){var a=i.incoming,s=i.outgoing;A(a.concat(s),function(c){var l=c.source,p=c.target;(o.has(l)||o.has(p))&&(r.has(c)||(r.add(c),n.push(c)))})}),n}function oR(t,e,n){var o=t.x,r=t.y,i=t.width,a=t.height,s=n.x,c=n.y;switch(e){case"n":return{x:o,y:r+c,width:i,height:a-c};case"s":return{x:o,y:r,width:i,height:a+c};case"w":return{x:o+s,y:r,width:i-s,height:a};case"e":return{x:o,y:r,width:i+s,height:a};default:throw Error("unknown direction: "+e)}}function Qo(t,e,n,o,r,i,a){this._canvas=t,this._dragging=e,this._eventBus=n,this._modeling=o,this._rules=r,this._toolManager=i,this._mouse=a;var s=this;i.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",function(c){n.once("spaceTool.selection.ended",function(){s.activateMakeSpace(c.originalEvent)})}),n.on("spaceTool.move",iR,function(c){var l=c.context,p=l.initialized;p||=l.initialized=s.init(c,l),p&&C1(c)}),n.on("spaceTool.end",function(c){var l=c.context,p=l.axis,d=l.direction,u=l.movingShapes,m=l.resizingShapes,h=l.start;if(l.initialized){C1(c);var f={x:0,y:0};f[p]=rR(c["d"+p]),s.makeSpace(u,m,f,d,h),n.once("spaceTool.ended",function(g){s.activateSelection(g.originalEvent,!0,!0)})}})}function T1(t){return{top:t.top-Xp,right:t.right+Xp,bottom:t.bottom+Xp,left:t.left-Xp}}function C1(t){var e=t.context.spaceToolConstraints;if(e){var n,o;Mt(e.left)&&(n=Math.max(t.x,e.left),t.dx=t.dx+n-t.x,t.x=n),Mt(e.right)&&(n=Math.min(t.x,e.right),t.dx=t.dx+n-t.x,t.x=n),Mt(e.top)&&(o=Math.max(t.y,e.top),t.dy=t.dy+o-t.y,t.y=o),Mt(e.bottom)&&(o=Math.min(t.y,e.bottom),t.dy=t.dy+o-t.y,t.y=o)}}function aR(t,e,n,o,r){var i=t.movingShapes,a=t.resizingShapes;if(a.length){var s={},c,l,p=new Set(i),d=new Set(a);return A(a,function(u){var m=u.attachers,h=u.children,f=_t(u),g=Ft(h,function(V){return!he(V)&&!Lt(V)&&!p.has(V)&&!d.has(V)}),v=Ft(h,function(V){return!he(V)&&!Lt(V)&&p.has(V)}),k,_,w,T=[],C=[],B,D,M,N;g.length&&(_=T1(_t(en(g))),k=o-f[Vi[n]]+_[Vi[n]],n==="n"?s.bottom=l=Mt(l)?Math.min(l,k):k:n==="w"?s.right=l=Mt(l)?Math.min(l,k):k:n==="s"?s.top=c=Mt(c)?Math.max(c,k):k:n==="e"&&(s.left=c=Mt(c)?Math.max(c,k):k)),v.length&&(w=T1(_t(en(v))),k=o-w[Vi[Yp[n]]]+f[Vi[Yp[n]]],n==="n"?s.bottom=l=Mt(l)?Math.min(l,k):k:n==="w"?s.right=l=Mt(l)?Math.min(l,k):k:n==="s"?s.top=c=Mt(c)?Math.max(c,k):k:n==="e"&&(s.left=c=Mt(c)?Math.max(c,k):k)),m&&m.length&&(m.forEach(function(V){p.has(V)?T.push(V):C.push(V)}),T.length&&(B=_t(en(T.map(Tt))),D=f[Vi[Yp[n]]]-(B[Vi[Yp[n]]]-o)),C.length&&(M=_t(en(C.map(Tt))),N=M[Vi[n]]-(f[Vi[n]]-o)),n==="n"?(k=Math.min(D||1/0,N||1/0),s.bottom=l=Mt(l)?Math.min(l,k):k):n==="w"?(k=Math.min(D||1/0,N||1/0),s.right=l=Mt(l)?Math.min(l,k):k):n==="s"?(k=Math.max(D||-1/0,N||-1/0),s.top=c=Mt(c)?Math.max(c,k):k):n==="e"&&(k=Math.max(D||-1/0,N||-1/0),s.left=c=Mt(c)?Math.max(c,k):k));var z=r&&r[u.id];z&&(n==="n"?(k=o+u[di[e]]-z[di[e]],s.bottom=l=Mt(l)?Math.min(l,k):k):n==="w"?(k=o+u[di[e]]-z[di[e]],s.right=l=Mt(l)?Math.min(l,k):k):n==="s"?(k=o-u[di[e]]+z[di[e]],s.top=c=Mt(c)?Math.max(c,k):k):n==="e"&&(k=o-u[di[e]]+z[di[e]],s.left=c=Mt(c)?Math.max(c,k):k))}),s}}function sR(t){return!!t.host}function Ew(t,e,n,o,r){function i(a,s){A(a,function(c){r.addDragger(c,s),n.addMarker(c,Gm)})}t.on("spaceTool.selection.start",function(a){var s=n.getLayer("space"),c=a.context,l={x:"M 0,-10000 L 0,10000",y:"M -10000,0 L 10000,0"},p=at("g");Z(p,o.cls("djs-crosshair-group",["no-events"])),dt(s,p);var d=at("path");Z(d,"d",l.x),kt(d).add("djs-crosshair"),dt(p,d);var u=at("path");Z(u,"d",l.y),kt(u).add("djs-crosshair"),dt(p,u),c.crosshairGroup=p}),t.on("spaceTool.selection.move",function(a){var s=a.context.crosshairGroup;An(s,a.x,a.y)}),t.on("spaceTool.selection.cleanup",function(a){var s=a.context.crosshairGroup;s&&rn(s)}),t.on("spaceTool.move",cR,function(a){var s=a.context,c=s.line,l=s.axis,p=s.movingShapes,d=s.resizingShapes;if(s.initialized){if(!s.dragGroup){var u=n.getLayer("space");c=at("path"),Z(c,"d","M0,0 L0,0"),kt(c).add("djs-crosshair"),dt(u,c),s.line=c;var m=at("g");Z(m,o.cls("djs-drag-group",["no-events"])),dt(n.getActiveLayer(),m),i(p,m);var h=new Set(p);A(d,function(C){h.add(C)});var f=new Set,g=s.movingConnections=[];h.forEach(function(C){A(C.outgoing,function(B){!f.has(B)&&he(B)&&h.has(B.target)&&(f.add(B),g.push(B))})}),i(g,m),s.dragGroup=m}if(!s.frameGroup){var v=at("g");Z(v,o.cls("djs-frame-group",["no-events"])),dt(n.getActiveLayer(),v);var k=[];A(d,function(C){var B=r.addFrame(C,v),D=B.getBBox();k.push({element:B,initialBounds:D}),n.addMarker(C,R1)}),s.frameGroup=v,s.frames=k}var _={x:"M"+a.x+", -10000 L"+a.x+", 10000",y:"M -10000, "+a.y+" L 10000, "+a.y};Z(c,{d:_[l]});var w={x:"y",y:"x"},T={x:a.dx,y:a.dy};T[w[s.axis]]=0,An(s.dragGroup,T.x,T.y),A(s.frames,function(C){var B=C.element,D=C.initialBounds,M,N;s.direction==="e"?Z(B,{width:Zp(D.width+T.x,5)}):(M=Zp(D.width-T.x,5),Z(B,{width:M,x:D.x+D.width-M})),s.direction==="s"?Z(B,{height:Zp(D.height+T.y,5)}):(N=Zp(D.height-T.y,5),Z(B,{height:N,y:D.y+D.height-N}))})}}),t.on("spaceTool.cleanup",function(a){var s=a.context,c=s.movingShapes,l=s.movingConnections,p=s.resizingShapes,d=s.line,u=s.dragGroup,m=s.frameGroup;A(c,function(h){n.removeMarker(h,Gm)}),A(l,function(h){n.removeMarker(h,Gm)}),u&&(rn(d),rn(u)),A(p,function(h){n.removeMarker(h,R1)}),m&&rn(m)})}function xd(t,e){t.invoke(Qo,this),this._canvas=e}function pR(t){return y(t,"bpmn:Participant")&&!et(t).processRef}function Ze(t,e){this._handlerMap={},this._stack=[],this._stackIdx=-1,this._currentExecution={actions:[],dirty:[],trigger:null},this._injector=e,this._eventBus=t,this._uid=1,t.on(["diagram.destroy","diagram.clear"],function(){this.clear(!1)},this)}function ra(t,e){if(typeof e!="function")throw Error("removeFn iterator must be a function");if(!t)return[];for(var n;n=t[0];)e(n);return t}function af(t,e,n){J.call(this,e);var o=t.get("movePreview",!1);e.on("shape.move.start",B1,function(r){var i=r.context,a=i.shapes,s=i.validatedShapes;i.shapes=A1(a),i.validatedShapes=A1(s)}),o&&e.on("shape.move.start",uR,function(r){var i=r.context,a=new Set(i.shapes),s=new Set;for(let c of a)for(let l of c.labels)!l.hidden&&!a.has(l)&&s.add(l),c.labelTarget&&s.add(c);for(let c of s)o.makeDraggable(i,c,!0)}),this.preExecuted("elements.move",B1,function(r){var i=r.context.closure,a=i.enclosedElements,s=[];A(a,function(c){A(c.labels,function(l){a[l.id]||s.push(l)})}),i.addAll(s)}),this.preExecute(["connection.delete","shape.delete"],function(r){var i=r.context;ra((i.connection||i.shape).labels,function(a){n.removeShape(a,{nested:!0})})}),this.execute("shape.delete",function(r){var i=r.context,a=i.shape,s=a.labelTarget;s&&(i.labelTargetIndex=gp(s.labels,a),i.labelTarget=s,a.labelTarget=null)}),this.revert("shape.delete",function(r){var i=r.context,a=i.shape,s=i.labelTarget,c=i.labelTargetIndex;s&&(Ge(s.labels,a,c),a.labelTarget=s)})}function A1(t){var e=new Set(t);return Ft(t,function(n){return!e.has(n.labelTarget)})}function sf(t,e,n,o,r){J.call(this,e);var i=t.get("movePreview",!1);e.on("shape.move.start",M1,function(a){var s=a.context,c=s.shapes,l=s.validatedShapes;s.shapes=fR(c),s.validatedShapes=gR(l)}),i&&e.on("shape.move.start",hR,function(a){var s=a.context,c=s.shapes,l=cf(c);A(l,function(p){i.makeDraggable(s,p,!0),A(p.labels,function(d){i.makeDraggable(s,d,!0)})})}),i&&e.on("shape.move.start",function(a){var s=a.context.shapes;if(s.length===1){var c=s[0].host;c&&(n.addMarker(c,D1),e.once(["shape.move.out","shape.move.cleanup"],function(){n.removeMarker(c,D1)}))}}),this.preExecuted("elements.move",M1,function(a){var s=a.context,c=s.closure,l=s.shapes,p=cf(l);A(p,function(d){c.add(d,c.topLevel[d.host.id])})}),this.postExecuted("elements.move",function(a){var s=a.context,c=s.shapes,l=s.newHost,p;l&&c.length!==1||(p=l?c:Ft(c,function(d){var u=d.host;return yR(d)&&!bR(c,u)}),A(p,function(d){r.updateAttachment(d,l)}))}),this.postExecuted("elements.move",function(a){var s=a.context.shapes;A(s,function(c){A(c.attachers,function(l){A(l.outgoing.slice(),function(p){o.allowed("connection.reconnect",{connection:p,source:p.source,target:p.target})||r.removeConnection(p)}),A(l.incoming.slice(),function(p){o.allowed("connection.reconnect",{connection:p,source:p.source,target:p.target})||r.removeConnection(p)})})})}),this.postExecute("shape.create",function(a){var s=a.context,c=s.shape,l=s.host;l&&r.updateAttachment(c,l)}),this.postExecute("shape.replace",function(a){var s=a.context,c=s.oldShape,l=s.newShape;ra(c.attachers,function(p){o.allowed("elements.move",{target:l,shapes:[p]})==="attach"?r.updateAttachment(p,l):r.removeShape(p)}),l.attachers.length&&A(l.attachers,function(p){var d=Zv(p,c,l);r.moveShape(p,d,p.parent)})}),this.postExecute("shape.resize",function(a){var s=a.context,c=s.shape,l=s.oldBounds,p=s.newBounds,d=c.attachers;(s.hints||{}).attachSupport!==!1&&A(d,function(u){var m=Zv(u,l,p);r.moveShape(u,m,u.parent),A(u.labels,function(h){r.moveShape(h,m,h.parent)})})}),this.preExecute("shape.delete",function(a){var s=a.context.shape;ra(s.attachers,function(c){r.removeShape(c)}),s.host&&r.updateAttachment(s,null)})}function cf(t){return sp(hn(t,function(e){return e.attachers||[]}))}function fR(t){var e=cf(t);return c0("id",t,e)}function gR(t){var e=Bi(t,"id");return Ft(t,function(n){for(;n;){if(n.host&&e[n.host.id])return!1;n=n.parent}return!0})}function yR(t){return!!t.host}function bR(t,e){return t.indexOf(e)!==-1}function Zo(t){this._model=t}function $R(t,e){let n=et(t);if(e||=jt(t),y(n,"bpmn:SubProcess"))return Ut(n,e)?{...ER}:{...SR};if(y(n,"bpmn:Task"))return{...kR};if(y(n,"bpmn:Gateway"))return{...wR};if(y(n,"bpmn:Event"))return{..._R};if(y(n,"bpmn:Participant")){let o=!e||e.isHorizontal===void 0||e.isHorizontal===!0;return Ut(n,e)?o?{...TR}:{...CR}:o?{...RR}:{...BR}}return y(n,"bpmn:Lane")?{...AR}:y(n,"bpmn:DataObjectReference")?{...MR}:y(n,"bpmn:DataStoreReference")?{...DR}:y(n,"bpmn:TextAnnotation")?{...PR}:y(n,"bpmn:Group")?{...jR}:{...xR}}function Yi(t,e){zr.call(this),this._bpmnFactory=t,this._moddle=e}function OR(t,e,n){return A(n,function(o){e=lf(t,e,o)}),e}function lf(t,e,n){return e[n]===void 0?e:(t[n]=e[n],Vo(e,[n]))}function zR(t){return Ht(t,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])}function kd(t,e){this._modeling=t,this._canvas=e}function wd(t){this._modeling=t}function LR(t,e){return yr(t.outgoing,function(n){return n.target===e})}function _d(t,e){this._canvas=t,this._layouter=e}function pf(t){this._modeling=t}function ia(t){this._canvas=t}function _l(t){ia.call(this,t)}function HR(t){["width","height"].forEach(function(e){t[e]===void 0&&(t[e]=0)})}function tl(t,e){this._canvas=t,this._modeling=e}function df(t,e){this._modeling=t,this._elementRegistry=e}function el(t,e){this._canvas=t,this._modeling=e}function Kd(t){this._modeling=t}function Ed(t,e){this._layouter=t,this._canvas=e}function uf(){}function mf(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function xl(t){this._modeling=t}function Sd(t){this._helper=new xl(t)}function Oa(t){this._modeling=t,this._helper=new xl(t)}function nl(t){this._modeling=t}function $1(t){return t.original||t}function ui(t,e){this._modeling=t,this._rules=e}function ol(t){this._modeling=t}function Xi(t){this._modeling=t}function O1(t){return j({},t)}function FR(t){return hn(t.waypoints,function(e){return e=O1(e),e.original&&(e.original=O1(e.original)),e})}function Tw(t){switch(t){case"n":return"y";case"w":return"x";case"s":return"y";case"e":return"x"}}function z1(t,e,n){var o=Tw(n);if(/e|s/.test(n))return t[o]>e;if(/n|w/.test(n))return t[o]<e}function WR(t){return{x:t.x,y:t.y,height:t.height,width:t.width}}function Td(t){this._modeling=t}function Cw(t){var e={};return A(t,function(n){e[n.id]=n.hidden,n.children&&(e=j({},e,Cw(n.children)))}),e}function Rw(t,e){var n=[];return A(t,function(o){o.hidden=e,n=n.concat(o),o.children&&(n=n.concat(Rw(o.children,o.collapsed||e)))}),n}function Bw(t,e){var n=[];return A(t,function(o){o.hidden=e[o.id],n=n.concat(o),o.children&&(n=n.concat(Bw(o.children,e)))}),n}function Cd(t){this._modeling=t}function L1(t,e){return Ne(t&&t.attachers,e)}function N1(t,e,n){if(t){var o=t.attachers;o||(t.attachers=o=[]),Ge(o,e,n)}}function hf(){}function Me(t,e,n){this._eventBus=t,this._elementFactory=e,this._commandStack=n;var o=this;t.on("diagram.init",function(){o.registerHandlers(n)})}function rl(t){this._elementRegistry=t}function GR(t,e){return Zn(e,function(n,o){return n[o]=t.get(o),n},{})}function I1(t,e){A(e,function(n,o){t.set(o,n)})}function UR(t,e){return e.filter(function(n){return y(n,"bpmn:DataObjectReference")&&et(n).dataObjectRef===t})}function il(t,e,n,o){this._elementRegistry=t,this._moddle=e,this._modeling=n,this._textRenderer=o}function H1(t,e){return fi in t&&t[fi]!==e[fi]}function qR(t,e){var n=_c(e),o=t.businessObject,r=jt(t);return Zn(n,function(i,a){return i[a]=a===Aw?KR(r,_c(e.di)):o.get(a),i},{})}function KR(t,e){return Zn(e,function(n,o){return n[o]=t&&t.get(o),n},{})}function F1(t,e){var n=t.businessObject,o=jt(t);A(e,function(r,i){i===Aw?o&&YR(o,r):n.set(i,r)})}function YR(t,e){A(e,function(n,o){t.set(o,n)})}function ZR(t){var e=j({},t);return XR.forEach(function(n){n in t&&(e[n]=et(e[n]))}),e}function Rd(t,e){this._canvas=t,this._modeling=e}function ff(t,e){this._modeling=t,this._spaceTool=e}function gf(t){this._modeling=t}function al(t,e){this._modeling=t,this._spaceTool=e}function Bd(){}function sl(t,e){this._bpmnFactory=t,this._elementRegistry=e}function JR(t,e){return{groupShape:t,categoryValue:e,category:e.$parent}}function QR(t){t.forEach(function(e){et(e.groupShape).categoryValueRef=e.categoryValue,e.categoryValue.$parent=e.category})}function tB(t){t.forEach(function(e){et(e.groupShape).categoryValueRef=null})}function eB(t){t.forEach(function(e){var n=e.businessObject.get(Ff);e.categoryValuesToRemove.forEach(function(o){Ne(n,o)}),e.categoryValuesToAdd.forEach(function(o){Ge(n,o,!0)})})}function nB(t){t.forEach(function(e){var n=e.businessObject.get(Ff);e.categoryValuesToAdd.forEach(function(o){Ne(n,o)}),e.categoryValuesToRemove.forEach(function(o){Ge(n,o,!0)})})}function Vm(t){for(;t.parent;)t=t.parent;return t}function Ad(t){this._moddle=t}function yf(t){this._commandStack=t,this._normalizeColor=function(e){if(e){if(Dn(e)){var n=rB(e);if(n)return n}throw Error("invalid color value: ".concat(e))}}}function rB(t){var e=document.createElement("canvas").getContext("2d");return e.fillStyle="transparent",e.fillStyle=t,/^#[0-9a-fA-F]{6}$/.test(e.fillStyle)?e.fillStyle:null}function iB(t){"border-color"in t&&(t.stroke=t["border-color"]),"background-color"in t&&(t.fill=t["background-color"])}function Mw(t,e,n){function o(c,l){var p=c.label||c,d=c.labelTarget||c;return m0(p,l,d!==p),[p,d]}function r(c){var l=c.element,p=l.businessObject,d=c.newLabel;if(!Lt(l)&&br(l)&&!Ec(l)&&!W1(d)){var u=7,m=ls(l);m={x:m.x,y:m.y+u},t.createLabel(l,m,{id:p.id+"_label",businessObject:p,di:l.di})}}function i(c){return c.oldLabel=Jn(c.element),o(c.element,c.newLabel)}function a(c){return o(c.element,c.oldLabel)}function s(c){var l=c.element,p=l.label||l,d=c.newLabel,u=c.newBounds,m=c.hints||{};if(Lt(p)||y(p,"bpmn:TextAnnotation"))if(Lt(p)&&W1(d))m.removeShape!==!1&&t.removeShape(p,{unsetLabel:!1});else{var h=Jn(l);u===void 0&&(u=e.getExternalLabelBounds(p,h)),u&&t.resizeShape(p,u,aB)}}this.preExecute=r,this.execute=i,this.revert=a,this.postExecute=s}function W1(t){return!t||!t.trim()}function zn(t,e,n,o){Me.call(this,t,e,n),this._bpmnRules=o}function Dw(){}function lB(t,e){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[e].test(t)}function pB(t,e){return{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[t].test(e)}function Pw(t,e,n){var o=Cn(e,t,sB),r=n.split(":")[0],i=Yd((e.x-t.x)/2+t.x),a=Yd((e.y-t.y)/2+t.y),s,c,l=pB(r,o),p=/h|r|l/.test(r),d=!1,u=!1;return l?(s=p?{x:i,y:t.y}:{x:t.x,y:a},c=p?"h:h":"v:v"):(d=lB(o,r),c=p?"h:v":"v:h",d?p?(u=a===t.y,s={x:t.x+Qp*(/l/.test(r)?-1:1),y:u?a+Qp:a}):(u=i===t.x,s={x:u?i+Qp:i,y:t.y+Qp*(/t/.test(r)?-1:1)}):s={x:i,y:a}),{waypoints:Wf(t,s,c).concat(s),directions:c,turnNextDirections:u}}function dB(t,e,n){return Pw(t,e,n)}function uB(t,e,n){var o=Pw(e,t,U1(n));return{waypoints:o.waypoints.slice().reverse(),directions:U1(o.directions),turnNextDirections:o.turnNextDirections}}function mB(t,e){var n=t.directions.split(":")[1],o=e.directions.split(":")[0];t.turnNextDirections&&(n=n=="h"?"v":"h"),e.turnNextDirections&&(o=o=="h"?"v":"h");var r=n+":"+o;return{waypoints:Wf(t.waypoints[t.waypoints.length-1],e.waypoints[0],r),directions:r}}function U1(t){return t.split(":").reverse().join(":")}function hB(t,e,n){var o=Yd((e.x-t.x)/2+t.x),r=Yd((e.y-t.y)/2+t.y);if(n==="h:v")return[{x:e.x,y:t.y}];if(n==="v:h")return[{x:t.x,y:e.y}];if(n==="h:h")return[{x:o,y:t.y},{x:o,y:e.y}];if(n==="v:v")return[{x:t.x,y:r},{x:e.x,y:r}];throw Error("invalid directions: can only handle varians of [hv]:[hv]")}function Wf(t,e,n){if(n||="h:h",!_B(n))throw Error("unknown directions: <"+n+">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }");if(jw(n)){var o=dB(t,e,n),r=uB(t,e,n),i=mB(o,r);return[].concat(o.waypoints,i.waypoints,r.waypoints)}return hB(t,e,n)}function fB(t,e,n){var o=Wf(t,e,n);return o.unshift(t),o.push(e),$w(o)}function gB(t,e,n,o,r){var i=r&&r.preferredLayouts||[],a=a0(i,"straight")[0]||"h:h",s=cB[a]||0,c=Cn(t,e,s),l=wB(c,a);n||=Tt(t),o||=Tt(e);var p=l.split(":");return fB(q1(n,t,p[0],EB(c)),q1(o,e,p[1],c),l)}function yB(t,e,n,o,r,i){Ct(n)&&(r=n,i=o,n=Tt(t),o=Tt(e)),i=j({preferredLayouts:[]},i),r||=[];var a=i.preferredLayouts.indexOf("straight")!==-1&&vB(t,e,n,o,i);return a||(a=i.connectionEnd&&kB(e,t,o,r),a)||(a=i.connectionStart&&xB(t,e,n,r),a)?a:!i.connectionStart&&!i.connectionEnd&&r&&r.length?r:gB(t,e,n,o,i)}function bB(t,e,n){return t>=e&&t<=n}function V1(t,e,n){return bB(e[t],n[t],n[t]+n[{x:"width",y:"height"}[t]])}function vB(t,e,n,o,r){var i={},a,s=Cn(t,e);return/^(top|bottom|left|right)$/.test(s)?(/top|bottom/.test(s)&&(a="x"),/left|right/.test(s)&&(a="y"),r.preserveDocking==="target"?V1(a,o,t)?(i[a]=o[a],[{x:i.x===void 0?n.x:i.x,y:i.y===void 0?n.y:i.y,original:{x:i.x===void 0?n.x:i.x,y:i.y===void 0?n.y:i.y}},{x:o.x,y:o.y}]):null:V1(a,n,e)?(i[a]=n[a],[{x:n.x,y:n.y},{x:i.x===void 0?o.x:i.x,y:i.y===void 0?o.y:i.y,original:{x:i.x===void 0?o.x:i.x,y:i.y===void 0?o.y:i.y}}]):null):null}function xB(t,e,n,o){return Gf(t,e,n,o)}function kB(t,e,n,o){var r=o.slice().reverse();return r=Gf(t,e,n,r),r?r.reverse():null}function Gf(t,e,n,o){function r(p){return p.length<3?!0:p.length>4?!1:!!ve(p,function(d,u){var m=p[u-1];return m&&ds(d,m)<3})}function i(p,d,u){switch(jr(d,p)){case"v":return{x:u.x,y:p.y};case"h":return{x:p.x,y:u.y}}return{x:p.x,y:p.y}}function a(p,d,u){for(var m=p.length-2;m!==0;m--)if(cm(p[m],d,G1)||cm(p[m],u,G1))return p.slice(m);return p}if(r(o))return null;var s=o[0],c=o.slice(),l;return c[0]=n,c[1]=i(c[1],s,n),l=a(c,t,e),l!==c&&(c=Gf(t,e,n,l)),c&&jr(c)?null:c}function wB(t,e){if(jw(e))return e;switch(t){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return e}}function _B(t){return t&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(t)}function jw(t){return t&&/t|r|b|l/.test(t)}function EB(t){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[t]}function q1(t,e,n,o){if(n==="h"&&(n=/left/.test(o)?"l":"r"),n==="v"&&(n=/top/.test(o)?"t":"b"),n==="t")return{original:t,x:t.x,y:e.y};if(n==="r")return{original:t,x:e.x+e.width,y:t.y};if(n==="b")return{original:t,x:t.x,y:e.y+e.height};if(n==="l")return{original:t,x:e.x,y:t.y};throw Error("unexpected dockingDirection: <"+n+">")}function $w(t){return t.reduce(function(e,n,o){var r=e[e.length-1],i=t[o+1];return up(r,i,n,0)||e.push(n),e},[])}function Xd(t){this._elementRegistry=t}function BB(t){var e=t.host;return Cn(Tt(t),e,SB)}function AB(t,e,n){return{preferredLayouts:n.messageFlow,preserveDocking:MB(t,e)}}function MB(t,e){return y(e,"bpmn:Participant")?"source":y(t,"bpmn:Participant")?"target":El(e)?"source":El(t)||y(e,"bpmn:Event")?"target":y(t,"bpmn:Event")?"source":null}function DB(t){return El(t)?"target":"source"}function K1(t,e){return t?t.original||t:Tt(e)}function Y1(t,e){return y(e,"bpmn:Activity")&&y(t,"bpmn:BoundaryEvent")&&e.businessObject.isForCompensation}function El(t){return y(t,"bpmn:SubProcess")&&Ut(t)}function Na(t,e){return t===e}function PB(t,e){return e.indexOf(t)!==-1}function Zs(t){var e=/right|left/.exec(t);return e&&e[0]}function Js(t){var e=/top|bottom/.exec(t);return e&&e[0]}function X1(t,e){return Uf[t]===e}function jB(t,e){var n=Uf[Zs(t)];return e.indexOf(n)!==-1}function $B(t,e){var n=Uf[Js(t)];return e.indexOf(n)!==-1}function Ow(t){return t==="right"||t==="left"}function OB(t,e,n){var o=e.waypoints,r=o&&o.length&&Cn(o[0],t);return r==="top"?n.loop.fromTop:r==="right"?n.loop.fromRight:r==="left"?n.loop.fromLeft:n.loop.fromBottom}function zB(t,e,n,o){var r=Tt(t),i=Tt(e),a=BB(t),s,c,l=Na(t.host,e),p=PB(a,["top","right","bottom","left"]),d=Cn(i,r,{x:t.width/2+e.width/2,y:t.height/2+e.height/2});return l?LB(a,p,t,e,n,o):(s=NB(a,d,p,o.isHorizontal),c=IB(a,d,p,o.isHorizontal),[s+":"+c])}function LB(t,e,n,o,r,i){var a=cl[e?t:i.isHorizontal?Js(t):Zs(t)],s=e?Ow(t)?Z1("y",n,o,r)?"h":i.boundaryLoop.alternateHorizontalSide:Z1("x",n,o,r)?"v":i.boundaryLoop.alternateVerticalSide:i.boundaryLoop.default;return[a+":"+s]}function Z1(t,e,n,o){var r=TB;return!(qm(t,o,n,r)||qm(t,o,{x:n.x+n.width,y:n.y+n.height},r)||qm(t,o,Tt(e),r))}function qm(t,e,n,o){return Math.abs(e[t]-n[t])<o}function NB(t,e,n,o){if(n)return cl[t];var r=Js(t),i=Zs(t),a=Js(e),s=Zs(e);if(o){if(Na(r,a)||X1(i,s))return cl[r]}else if(Na(i,s)||X1(r,a))return cl[i];return cl[o?i:r]}function IB(t,e,n,o){if(n)return Ow(t)?jB(t,e)||Na(t,e)?"h":"v":$B(t,e)||Na(t,e)?"v":"h";var r=Js(t),i=Zs(t),a=Js(e),s=Zs(e);return a&&!s?"v":s&&!a?"h":o?Na(r,a)?"h":"v":Na(i,s)?"v":"h"}function J1(t){return j({original:t.point.original||t.point},t.actual)}function Zi(t,e){this._elementRegistry=t,this._graphicsFactory=e}function Md(t,e,n,o,r,i){this._complexPreview=t,this._connectionDocking=e,this._elementFactory=n,this._eventBus=o,this._layouter=r,this._rules=i}function Km(t){t.preventDefault()}function qc(t){t.stopPropagation()}function FB(t){return t.nodeType===Node.TEXT_NODE}function WB(t){return[].slice.call(t)}function wr(t){this.container=t.container,this.parent=Ae('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=xe("[contenteditable]",this.parent),this.keyHandler=t.keyHandler||function(){},this.resizeHandler=t.resizeHandler||function(){},this.focusoutHandler=t.focusoutHandler||function(){},this.autoResize=jn(this.autoResize,this),this.handlePaste=jn(this.handlePaste,this)}function GB(t){return t.replace(/\r\n|\r|\n/g,"\n")}function To(t,e){this._eventBus=t,this._canvas=e,this._providers=[],this._active=null,this._textbox=new wr({container:e.getContainer(),keyHandler:jn(this._handleKey,this),resizeHandler:jn(this._handleResize,this),focusoutHandler:jn(this._handleFocusout,this)}),t.on(["diagram.clear","diagram.destroy"],()=>this._cleanup())}function UB(t){return function(e){var n=e.target,o=et(t),r=o.eventDefinitions&&o.eventDefinitions[0],i=o.$type===n.type,a=(r&&r.$type)===n.eventDefinitionType,s=!!n.triggeredByEvent==!!o.triggeredByEvent,c=n.isExpanded===void 0||n.isExpanded===Ut(t);return!i||!a||!s||!c}}function tt(t,e={}){var n=VB[t];if(!n)throw Error("unknown popup entry <"+t+">");return{...n,actionName:"replace-with-"+t,...e}}function Jo(t,e,n,o,r,i,a,s){this._bpmnFactory=t,this._popupMenu=e,this._modeling=n,this._moddle=o,this._bpmnReplace=r,this._rules=i,this._translate=a,this._moddleCopy=s,this._register()}function ll(t,e,n,o,r,i,a,s,c,l,p,d,u){t||={},o.registerProvider(this),this._contextPad=o,this._modeling=r,this._elementFactory=i,this._connect=a,this._create=s,this._popupMenu=c,this._canvas=l,this._rules=p,this._translate=d,this._eventBus=n,this._appendPreview=u,t.autoPlace!==!1&&(this._autoPlace=e.get("autoPlace",!1)),n.on("create.end",250,function(m){var h=m.context.shape;if(Bs(m)&&o.isOpen(h)){var f=o.getEntries(h);f.replace&&f.replace.action.click(m,h)}}),n.on("contextPad.close",function(){u.cleanUp()})}function rx(t,e,n){var o=t.$instanceOf(e),r=!1,i=t.eventDefinitions||[];return A(i,function(a){a.$type===n&&(r=!0)}),o&&r}function mi(t,e){this._modeling=t,this._filters=[],this.registerFilter(function(n){var o=e.allowed("elements.distribute",{elements:n});return Ct(o)?o:o?n:[]})}function Dd(t){or.call(this,t)}function pl(t,e,n,o){this._distributeElements=e,this._translate=n,this._popupMenu=t,this._rules=o,t.registerProvider("align-elements",u9,this)}function tr(t,e){this._eventBus=t,this._actions={};var n=this;t.on("diagram.init",function(){n._registerDefaultActions(e),t.fire("editorActions.init",{editorActions:n})})}function Ym(t,e){return Error(t+" "+e)}function Pd(t){t.invoke(tr,this)}function Iw(t){t.on(["create.init","shape.move.init"],function(e){var n=e.context,o=e.shape;Ht(o,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(n.gridSnappingContext||={},n.gridSnappingContext.snapLocation="top-left")})}function za(t,e){J.call(this,t),this._gridSnapping=e;var n=this;this.preExecute("shape.resize",function(o){var r=o.context,i=(r.hints||{}).autoResize;if(i){var a=r.shape,s=r.newBounds;r.newBounds=Dn(i)?n.snapComplex(s,i):n.snapSimple(a,s)}})}function Hw(t,e){t.on(["spaceTool.move","spaceTool.end"],y9,function(n){var o=n.context;if(o.initialized){var r=o.axis,i;r==="x"?(i=e.snapValue(n.dx),n.x=n.x+i-n.dx,n.dx=i):(i=e.snapValue(n.dy),n.y=n.y+i-n.dy,n.dy=i)}})}function Xm(t,e,n){return n||="round",Math[n](t/e)*e}function Ji(t,e,n){var o=!n||n.active!==!1;this._eventBus=e;var r=this;e.on("diagram.init",x9,function(){r.setActive(o)}),e.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],v9,function(i){var a=i.originalEvent;if(!(!r.active||a&&to(a))){var s=i.context,c=s.gridSnappingContext;c||=s.gridSnappingContext={},["x","y"].forEach(function(l){var p={},d=w9(i,l,t);d&&(p.offset=d);var u=k9(i,l);u&&j(p,u),Ys(i,l)||r.snapEvent(i,l,p)})}})}function k9(t,e){var n=t.context,o=n.createConstraints,r=n.resizeConstraints||{},i=n.gridSnappingContext,a=i.snapConstraints;if(a&&a[e])return a[e];a||=i.snapConstraints={},a[e]||(a[e]={});var s=n.direction;o&&(jd(e)?(a.x.min=o.left,a.x.max=o.right):(a.y.min=o.top,a.y.max=o.bottom));var c=r.min,l=r.max;return c&&(jd(e)?lx(s)?a.x.max=c.left:a.x.min=c.right:cx(s)?a.y.max=c.top:a.y.min=c.bottom),l&&(jd(e)?lx(s)?a.x.min=l.left:a.x.max=l.right:cx(s)?a.y.min=l.top:a.y.max=l.bottom),a[e]}function w9(t,e,n){var o=t.context,r=t.shape,i=o.gridSnappingContext,a=i.snapLocation,s=i.snapOffset;return s&&Mt(s[e])||(s||=i.snapOffset={},Mt(s[e])||(s[e]=0),!r)||(n.get(r.id)||(jd(e)?s[e]+=r[e]+r.width/2:s[e]+=r[e]+r.height/2),!a)||(e==="x"?/left/.test(a)?s[e]-=r.width/2:/right/.test(a)&&(s[e]+=r.width/2):/top/.test(a)?s[e]-=r.height/2:/bottom/.test(a)&&(s[e]+=r.height/2)),s[e]}function jd(t){return t==="x"}function cx(t){return t.indexOf("n")!==-1}function lx(t){return t.indexOf("w")!==-1}function Fw(t,e,n){t.on("autoPlace",E9,function(o){var r=o.source,i=Tt(r),a=o.shape,s=pk(r,a,n);return["x","y"].forEach(function(c){var l={};s[c]!==i[c]&&(s[c]>i[c]?l.min=s[c]:l.max=s[c],y(a,"bpmn:TextAnnotation")&&(l.offset=S9(c)?-a.width/2:-a.height/2),s[c]=e.snapValue(s[c],l))}),s})}function S9(t){return t==="x"}function Ww(t,e,n){e.on(["create.start","shape.move.start"],T9,function(o){var r=o.context,i=r.shape,a=t.getRootElement();y(i,"bpmn:Participant")&&y(a,"bpmn:Process")&&a.children.length&&r.createConstraints&&(i.width=n.snapValue(i.width,{min:i.width}),i.height=n.snapValue(i.height,{min:i.height}))})}function $d(t,e,n){J.call(this,t),this._gridSnapping=e;var o=this;this.postExecuted(["connection.create","connection.layout"],C9,function(r){var i=r.context,a=i.connection,s=i.hints||{},c=a.waypoints;s.connectionStart||s.connectionEnd||s.createElementsBehavior===!1||R9(c)&&n.updateWaypoints(a,o.snapMiddleSegments(c))})}function R9(t){return t.length>3}function B9(t){return t==="h"}function A9(t){return t==="v"}function M9(t,e,n){var o=jr(e,n),r={};return B9(o)&&(r.y=t.snapValue(e.y)),A9(o)&&(r.x=t.snapValue(e.x)),("x"in r||"y"in r)&&(e=j({},e,r),n=j({},n,r)),[e,n]}function dl(t,e){this._interactionEvents=e;var n=this;t.on(["interactionEvents.createHit","interactionEvents.updateHit"],function(o){var r=o.element,i=o.gfx;if(y(r,"bpmn:Lane"))return n._createParticipantHit(r,i);if(y(r,"bpmn:Participant"))return Ut(r)?n._createParticipantHit(r,i):n._createDefaultHit(r,i);if(y(r,"bpmn:SubProcess"))return Ut(r)?n._createSubProcessHit(r,i):n._createDefaultHit(r,i)})}function Zd(t){t.invoke(Vs,this)}function Gw(t,e,n,o,r){var i=this;this._config=j({},O9,t||{}),e.addListener(z9,function(a){var s=a.keyEvent,c=L9[s.key];if(c&&!e.isCmd(s)){var l=e.isShift(s);return i.moveSelection(c,l),!0}}),this.moveSelection=function(a,s){var c=r.get();if(c.length){var l=this._config[s?"moveSpeedAccelerated":"moveSpeed"],p=N9[a](l);o.allowed("elements.move",{shapes:c,hints:{keyboardMove:!0}})&&n.moveElements(c,p)}}}function ml(t,e,n,o){this._dragging=o,this._rules=e;var r=this;function i(c,l){var p=c.shape,d=c.direction,u=c.resizeConstraints,m;c.delta=l,m=r7(p,d,l),c.newBounds=a7(m,u),c.canExecute=r.canResize(c)}function a(c){var l=c.resizeConstraints,p=c.minBounds;l===void 0&&(p===void 0&&(p=r.computeMinResizeBox(c)),c.resizeConstraints={min:_t(p)})}function s(c){var l=c.shape,p=c.canExecute,d=c.newBounds;if(p){if(d=dm(d),!H9(l,d))return;n.resizeShape(l,d)}}t.on("resize.start",function(c){a(c.context)}),t.on("resize.move",function(c){var l={x:c.dx,y:c.dy};i(c.context,l)}),t.on("resize.end",function(c){s(c.context)})}function H9(t,e){return t.x!==e.x||t.y!==e.y||t.width!==e.width||t.height!==e.height}function Uw(t,e){var n=Tt(t),o=_t(t),r={x:n.x,y:n.y};return e.indexOf("n")===-1?e.indexOf("s")!==-1&&(r.y=o.bottom):r.y=o.top,e.indexOf("e")===-1?e.indexOf("w")!==-1&&(r.x=o.left):r.x=o.right,r}function F9(t){var e="resize-";return t==="n"||t==="s"?e+"ns":t==="e"||t==="w"?e+"ew":t==="nw"||t==="se"?e+"nwse":e+"nesw"}function Vw(t,e,n){function o(i){var a=i.shape,s=i.newBounds,c=i.frame;c||(c=i.frame=n.addFrame(a,e.getActiveLayer()),e.addMarker(a,gx)),s.width>5&&Z(c,{x:s.x,width:s.width}),s.height>5&&Z(c,{y:s.y,height:s.height}),i.canExecute?kt(c).remove(yx):kt(c).add(yx)}function r(i){var a=i.shape;i.frame&&rn(i.frame),e.removeMarker(a,gx)}t.on("resize.move",W9,function(i){o(i.context)}),t.on("resize.cleanup",function(i){r(i.context)})}function Qi(t,e,n,o){this._resize=o,this._canvas=e;var r=this;t.on("selection.changed",function(i){var a=i.newSelection;r.removeResizers(),a.length===1&&A(a,jn(r.addResizer,r))}),t.on("shape.changed",function(i){var a=i.element;n.isSelected(a)&&(r.removeResizers(),r.addResizer(a))})}function U9(t){var e={x:0,y:0};return t.indexOf("e")===-1?t.indexOf("w")!==-1&&(e.x=td):e.x=-td,t.indexOf("s")===-1?t.indexOf("n")!==-1&&(e.y=td):e.y=-td,e}function hl(t,e,n,o,r,i,a){this._bpmnFactory=e,this._canvas=n,this._modeling=r,this._textRenderer=a,o.registerProvider(this),t.on("element.dblclick",function(c){s(c.element,!0)}),t.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set","selection.changed"],function(){o.isActive()&&o.complete()}),t.on(["shape.remove","connection.remove"],V9,function(c){o.isActive(c.element)&&o.cancel()}),t.on(["commandStack.changed"],function(c){o.isActive()&&o.cancel()}),t.on("directEditing.activate",function(c){i.removeResizers()}),t.on("create.end",500,function(c){var l=c.context,p=l.shape,d=c.context.canExecute;c.isTouch||d&&(l.hints&&l.hints.createElementsBehavior===!1||s(p))}),t.on("autoPlace.end",500,function(c){s(c.shape)});function s(c,l){(l||Ht(c,["bpmn:Activity","bpmn:Event","bpmn:TextAnnotation","bpmn:Participant"]))&&o.activate(c)}}function bx(t){return y(t,"bpmn:SubProcess")&&!Ut(t)}function q9(t){return y(t,"bpmn:SubProcess")&&Ut(t)}function K9(t){return y(t,"bpmn:Participant")&&!Ut(t)}function Y9(t){return y(t,"bpmn:Participant")&&Ut(t)}function X9(t){return!t||!t.trim()}function Kw(t,e,n){var o=this,r=e.getDefaultLayer(),i,a,s;t.on("directEditing.activate",function(c){var l=c.active;if(i=l.element.label||l.element,y(i,"bpmn:TextAnnotation")){a=e.getAbsoluteBBox(i),s=at("g");var p=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:i.width,containerHeight:i.height,position:{mx:0,my:0}}),d=o.path=at("path");Z(d,{d:p,strokeWidth:2,stroke:Z9(i)}),dt(s,d),dt(r,s),An(s,i.x,i.y)}y(i,"bpmn:TextAnnotation")||i.labelTarget?e.addMarker(i,vx):(y(i,"bpmn:Task")||y(i,"bpmn:CallActivity")||y(i,"bpmn:SubProcess")||y(i,"bpmn:Participant")||y(i,"bpmn:Lane"))&&e.addMarker(i,xx)}),t.on("directEditing.resize",function(c){if(y(i,"bpmn:TextAnnotation")){var l=c.height,p=c.dy,d=Math.max(i.height/a.height*(l+p),0),u=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:i.width,containerHeight:d,position:{mx:0,my:0}});Z(o.path,{d:u})}}),t.on(["directEditing.complete","directEditing.cancel"],function(c){var l=c.active;l&&(e.removeMarker(l.element.label||l.element,vx),e.removeMarker(i,xx)),i=void 0,a=void 0,s&&=(rn(s),void 0)})}function Z9(t,e){return jt(t).get("stroke")||e||"black"}function Ir(t,e,n){this._eventBus=t,this._elementRegistry=n,this._outlineOffset=5,this._outlineStyle=e.cls("djs-outline",["no-fill"]);var o=this;function r(i){p0(i)||o.createOutline(i)}t.on("element.hover",function(i){r(i.element)}),t.on("selection.changed",function(i){A(i.newSelection,r)}),t.on(["shape.changed","connection.changed"],Q9,function(i){var a=i.element,s=i.gfx,c=xe(".djs-outline",s);c&&o.updateOutline(a,c)})}function bf(t,e,n){this._canvas=e;var o=this;t.on("element.changed",function(r){n.isSelected(r.element)&&o._updateMultiSelectionOutline(n.get())}),t.on("selection.changed",function(r){var i=r.newSelection;o._updateMultiSelectionOutline(i)})}function eA(t){return{x:t.x-od,y:t.y-od,width:t.width+od*2,height:t.height+od*2}}function Yw(t,e,n,o,r){let i=e.getLayer("overlays");t.on(["selection.changed","shape.changed"],function(){s()}),t.on("selection.changed",function({newSelection:d}){let u=d.filter(m=>Ht(m,kx));if(u.length===1){let m=u[0];Lt(m)?a(m,m.labelTarget):m.labels?.length&&a(m.labels[0],m)}if(u.length===2){let m=u.find(Lt),h=u.find(f=>f.labels?.includes(m));m&&h&&a(m,h)}}),t.on("shape.changed",function({element:d}){Ht(d,kx)&&p(d)&&(Lt(d)?a(d,d.labelTarget):d.labels?.length&&a(d.labels[0],d))});function a(d,u){let m=Tt(d),h=he(u)?Wk(m,A7(u.waypoints)):Tt(u),f=Ea([h,m],wx),g=f.getAttribute("d"),v=r.isSelected(d)?c(d):l(d),k=ms(v,g);if(!k)return;let _;if(he(u))_=h;else{let w=r.isSelected(u)?c(u):l(u);_=ms(w,g)||Tt(u)}Ks(_,k)<nA||(Tc(f,[_,k]),dt(i,f))}function s(){Pc(".".concat(wx.class),i).forEach(rn)}function c(d){let u=o.getOutline(d);if(!u)return l(d);if(u.x){let m={x:d.x+qi(u,"x")-rd,y:d.y+qi(u,"y")-rd,width:qi(u,"width")+rd*2,height:qi(u,"height")+rd*2};return Cc(m,qi(u,"rx"))}if(u.cx){let m=qi(u,"r"),h={x:d.x+qi(u,"cx")-m,y:d.y+qi(u,"cy")-m,width:m*2,height:m*2};return yp(h)}}function l(d){return n.getShapePath(d)}function p(d){return r.isSelected(d)}}function qi(t,e){return parseFloat(Z(t,e)||0)}function iA(t){var e=Ae('<div class="djs-tooltip-container" />');return Fn(e,{position:"absolute",width:"0",height:"0"}),t.insertBefore(e,t.firstChild),e}function aA(t,e,n){Fn(t,{left:e+"px",top:n+"px"})}function Zm(t,e){t.style.display=e===!1?"none":""}function ho(t,e){this._eventBus=t,this._canvas=e,this._ids=rA,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=iA(e.getContainer());var n=this;Wn.bind(this._tooltipRoot,Jm,"mousedown",function(o){o.stopPropagation()}),Wn.bind(this._tooltipRoot,Jm,"mouseover",function(o){n.trigger("mouseover",o)}),Wn.bind(this._tooltipRoot,Jm,"mouseout",function(o){n.trigger("mouseout",o)}),this._init()}function Zw(t,e,n){function o(r,i,a){e.add({position:{x:r.x+5,y:r.y+5},type:"error",timeout:a||2e3,html:"<div>"+i+"</div>"})}t.on(["shape.move.rejected","create.rejected"],function(r){var i=r.context,a=i.shape,s=i.target;y(s,"bpmn:Collaboration")&&(y(a,"bpmn:FlowNode")?o(r,n(cA)):y(a,"bpmn:DataObjectReference")&&o(r,n(lA)))})}function hA(t){return{x:t.x+Jd(t.width/2),y:t.y+Jd(t.height/2)}}function Jw(t,e,n,o,r){function i(s,c,l,p){return r.allowed("elements.move",{shapes:s,delta:c,position:l,target:p})}t.on("shape.move.start",mA,function(s){var c=s.context,l=s.shape,p=o.get().slice();p.indexOf(l)===-1&&(p=[l]),p=fA(p),j(c,{shapes:p,validatedShapes:p,shape:l})}),t.on("shape.move.start",uA,function(s){var c=s.context,l=c.validatedShapes;if(!(c.canExecute=i(l)))return!1}),t.on("shape.move.move",dA,function(s){var c=s.context,l=c.validatedShapes,p=s.hover,d={x:s.dx,y:s.dy},u=i(l,d,{x:s.x,y:s.y},p);c.delta=d,c.canExecute=u,c.target=u===null?null:p}),t.on("shape.move.end",function(s){var c=s.context,l=c.delta,p=c.canExecute,d=p==="attach",u=c.shapes;if(p===!1)return!1;l.x=Jd(l.x),l.y=Jd(l.y),(l.x!==0||l.y!==0)&&n.moveElements(u,l,c.target,{primaryShape:c.shape,attach:d})}),t.on("element.mousedown",function(s){if(ci(s)){var c=Aa(s);if(!c)throw Error("must supply DOM mousedown event");return a(c,s.element)}});function a(s,c,l,p){if(We(l)&&(p=l,l=!1),!c.waypoints&&c.parent&&!kt(s.target).has("djs-hit-no-move")){var d=hA(c);if(e.init(s,d,"shape.move",{cursor:"grabbing",autoActivate:l,data:{shape:c,context:p||{}}})!==!1)return!0}}this.start=a}function fA(t){var e=Bi(t,"id");return Ft(t,function(n){for(;n=n.parent;)if(e[n.id])return!1;return!0})}function Qw(t,e,n,o){function r(c){return gA(i(c))}function i(c){var l=Ss(c),p=l.flatMap(u=>(u.incoming||[]).concat(u.outgoing||[])),d=l.concat(p);return[...new Set(d)]}function a(c,l){[Cx,Ex,Sx,Tx].forEach(function(p){p===l?e.addMarker(c,p):e.removeMarker(c,p)})}function s(c,l,p){o.addDragger(l,c.dragGroup),p&&e.addMarker(l,Qm),c.allDraggedElements?c.allDraggedElements.push(l):c.allDraggedElements=[l]}t.on("shape.move.start",_x,function(c){var l=c.context,p=l.shapes,d=l.allDraggedElements,u=r(p);if(!l.dragGroup){var m=at("g");Z(m,n.cls("djs-drag-group",["no-events"]));var h=e.getActiveLayer();dt(h,m),l.dragGroup=m}u.forEach(function(f){o.addDragger(f,l.dragGroup)}),d=d?sp([d,i(p)]):i(p),A(d,function(f){e.addMarker(f,Qm)}),l.allDraggedElements=d,l.differentParents=yA(p)}),t.on("shape.move.move",_x,function(c){var l=c.context,p=l.dragGroup,d=l.target,u=l.shape.parent,m=l.canExecute;d&&(m==="attach"?a(d,Cx):l.canExecute&&u&&d.id!==u.id?a(d,Tx):a(d,l.canExecute?Ex:Sx)),An(p,c.dx,c.dy)}),t.on(["shape.move.out","shape.move.cleanup"],function(c){var l=c.context.target;l&&a(l,null)}),t.on("shape.move.cleanup",function(c){var l=c.context,p=l.allDraggedElements,d=l.dragGroup;A(p,function(u){e.removeMarker(u,Qm)}),d&&rn(d)}),this.makeDraggable=s}function gA(t){var e=new Set;return t.forEach(function(n){e.add(n.id)}),Ft(t,function(n){return!he(n)||e.has(n.source.id)&&e.has(n.target.id)})}function yA(t){return s0(Bi(t,function(e){return e.parent&&e.parent.id}))!==1}function La(t){this._canvas=t,this._mount=null,this._current=null,this._showTimer=null}function dn(t,e){this._eventBus=t,this._canvas=e;var n=this;t.on("tool-manager.update",function(o){var r=o.tool;n.updateToolHighlight(r)}),t.on("i18n.changed",function(){n._update()}),t.on("diagram.init",function(){n._diagramInitialized=!0,n._rebuild()})}function EA(t,e){var n=Ie(t);(Ct(e)?e:e.split(/\s+/g)).forEach(function(o){n.add(o)})}function SA(t,e){var n=e.getPaletteEntries();return Ke(n)?n(t):(A(n,function(o,r){t[r]=o}),t)}function TA(t){let{title:e,shortcut:n}=t;return re(B2||(B2=ne(['\n <span class="djs-palette-tooltip-label">',"</span>\n ","\n "])),e,n?re(R2||(R2=ne(['<kbd class="djs-palette-tooltip-shortcut">',"</kbd>"])),n):null)}function Od(t,e,n){this._palette=e,this._hoverTooltip=n,this._entries={},t.on("palette.create",o=>this._init(o.container)),t.on("palette.changed",()=>this._updateEntries())}function ta(t,e,n,o,r,i,a){this._selection=r,this._dragging=n,this._mouse=a;var s=this,c={create:function(d){var u=e.getActiveLayer(),m=d.frame=at("rect");Z(m,{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),dt(u,m),l(!0),this.update(d)},update:function(d){var u=d.frame,m=d.bbox;u&&m&&Z(u,{x:m.x,y:m.y,width:m.width,height:m.height});var h=d.marked,f=d.lastMarked;if(h&&f){for(let g of f)h.has(g)||e.removeMarker(g,Ax);for(let g of h)f.has(g)||e.addMarker(g,Ax)}},remove:function(d){this.update(d),d.frame&&rn(d.frame),l(!1)}};function l(d){kt(e.getContainer()).toggle(AA,d)}function p(d){var u=o.getAll();return new Set(ka(Ra(u,d)))}i.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),t.on("lasso.selection.end",function(d){var u=d.originalEvent.target;(d.hover||u instanceof SVGElement)&&t.once("lasso.selection.ended",function(){s.activateLasso(d.originalEvent,!0)})}),t.on("lasso.end",0,function(d){var u=d.context;s._select(Array.from(u.marked))}),t.on("lasso.start",function(d){var u=d.context;u.bbox=Mx(d),u.add=Lc(d),u.lastMarked=new Set(r.get()),u.marked=u.add?u.lastMarked:new Set,u.initialMarked=u.marked,c.create(u)}),t.on("lasso.move",function(d){var u=d.context,m=p(u.bbox=Mx(d)),h=u.initialMarked.union(m);u.lastMarked=u.marked,u.marked=h,c.update(u)}),t.on("lasso.cleanup",function(d){var u=d.context;u.lastMarked=u.marked,u.marked=new Set(r.get()),c.remove(d.context)}),t.on("element.mousedown",1500,function(d){if(Lc(d))return s.activateLasso(d.originalEvent),!0})}function Mx(t){var e={x:t.x-t.dx,y:t.y-t.dy},n={x:t.x,y:t.y};return e.x<=n.x&&e.y<n.y||e.x<n.x&&e.y<=n.y?{x:e.x,y:e.y,width:n.x-e.x,height:n.y-e.y}:e.x>=n.x&&e.y<n.y||e.x>n.x&&e.y<=n.y?{x:n.x,y:e.y,width:e.x-n.x,height:n.y-e.y}:e.x<=n.x&&e.y>n.y||e.x<n.x&&e.y>=n.y?{x:e.x,y:n.y,width:n.x-e.x,height:e.y-n.y}:e.x>=n.x&&e.y>n.y||e.x>n.x&&e.y>=n.y?{x:n.x,y:n.y,width:e.x-n.x,height:e.y-n.y}:{x:n.x,y:n.y,width:0,height:0}}function Fs(t,e,n,o,r,i){this._dragging=n,this._mouse=i;var a=this,s=o.get("keyboard",!1);r.registerTool("hand",{tool:"hand",dragging:"hand.move"}),t.on("element.mousedown",nh,function(c){if(Bs(c))return a.activateMove(c.originalEvent,!0),!1}),s&&s.addListener(nh,function(c){if(Px(c.keyEvent)&&!a.isActive()){var l=a._mouse.getLastMoveEvent();a.activateMove(l,!!l)}},"keyboard.keydown"),s&&s.addListener(nh,function(c){Px(c.keyEvent)&&a.isActive()&&a.toggle()},"keyboard.keyup"),t.on("hand.end",function(c){var l=c.originalEvent.target;if(!c.hover&&!(l instanceof SVGElement))return!1;t.once("hand.ended",function(){a.activateMove(c.originalEvent,{reactivate:!0})})}),t.on("hand.move.move",function(c){var l=e.viewbox().scale;e.scroll({dx:c.dx*l,dy:c.dy*l})}),t.on("hand.move.end",function(c){var l=c.context.reactivate;return!Bs(c)&&l&&t.once("hand.move.ended",function(p){a.activateHand(p.originalEvent,!0,!0)}),!1})}function Px(t){return an("Space",t)}function Ws(t,e,n,o,r,i,a){var s=this;this._dragging=e,this._rules=i,this._mouse=a,r.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),t.on("global-connect.hover",function(c){var l=c.context,p=c.hover,d=l.canStartConnect=s.canStartConnect(p);d!==null&&(l.startTarget=p,o.addMarker(p,d?jx:$x))}),t.on(["global-connect.out","global-connect.cleanup"],function(c){var l=c.context.startTarget,p=c.context.canStartConnect;l&&o.removeMarker(l,p?jx:$x)}),t.on(["global-connect.ended"],function(c){var l=c.context.startTarget,p={x:c.x,y:c.y};if(s.canStartConnect(l))return t.once("element.out",function(){t.once(["connect.ended","connect.canceled"],function(){t.fire("global-connect.drag.ended")}),n.start(null,l,p)}),!1})}function vf(t,e,n,o,r,i,a,s){this._palette=t,this._create=e,this._elementFactory=n,this._spaceTool=o,this._lassoTool=r,this._handTool=i,this._globalConnect=a,this._translate=s,t.registerProvider(this)}function xf(t,e,n,o,r){J.call(this,t);function i(s){var c=s.canExecute.replacements;A(c,function(l){var p=l.oldElementId,d={type:l.newElementType};if(!s.visualReplacements[p]){var u=e.get(p);j(d,{x:u.x,y:u.y});var m=n.createShape(d);o.addShape(m,u.parent);var h=xe('[data-element-id="'+Rs(u.id)+'"]',s.dragGroup);h&&Z(h,{display:"none"});var f=r.addDragger(m,s.dragGroup);s.visualReplacements[p]=f,o.removeShape(m)}})}function a(s){var c=s.visualReplacements;A(c,function(l,p){var d=xe('[data-element-id="'+Rs(p)+'"]',s.dragGroup);d&&Z(d,{display:"inline"}),l.remove(),c[p]&&delete c[p]})}t.on("shape.move.move",$A,function(s){var c=s.context,l=c.canExecute;c.visualReplacements||={},l&&l.replacements?i(c):a(c)})}function o5(t){t.on(["connect.hover","connect.move","connect.end"],zA,function(e){var n=e.context,o=n.canExecute,r=n.start,i=n.hover,a=n.source,s=n.target;e.originalEvent&&to(e.originalEvent)||(n.initialConnectionStart||=n.connectionStart,o&&i&&HA(e,i,UA(i)),i&&GA(o,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(n.connectionStart=er(r),Ht(i,["bpmn:Event","bpmn:Gateway"])&&zx(e,er(i)),Ht(i,["bpmn:Task","bpmn:SubProcess"])&&FA(e,i),y(a,"bpmn:BoundaryEvent")&&s===a.host&&WA(e)):r5(o,"bpmn:MessageFlow")?(y(r,"bpmn:Event")&&(n.connectionStart=er(r)),y(i,"bpmn:Event")&&zx(e,er(i))):n.connectionStart=n.initialConnectionStart)})}function HA(t,e,n){n5.forEach(function(o){var r=i5(o,e);t[o]<e[o]+n?mn(t,o,e[o]+n):t[o]>e[o]+r-n&&mn(t,o,e[o]+r-n)})}function FA(t,e){var n=er(e);n5.forEach(function(o){VA(t,e,o)&&mn(t,o,n[o])})}function WA(t){var e=t.context,n=e.source,o=e.target;if(!qA(e)){var r=er(n),i=Cn(r,o,-10),a=[];/top|bottom/.test(i)&&a.push("x"),/left|right/.test(i)&&a.push("y"),a.forEach(function(s){var c=t[s],l;IA(c-r[s])<oh&&(l=c>r[s]?r[s]+oh:r[s]-oh,mn(t,s,l))})}}function zx(t,e){mn(t,"x",e.x),mn(t,"y",e.y)}function r5(t,e){return t&&t.type===e}function GA(t,e){return yr(e,function(n){return r5(t,n)})}function i5(t,e){return t==="x"?e.width:e.height}function UA(t){return y(t,"bpmn:Task")?NA:LA}function VA(t,e,n){return t[n]>e[n]+Ox&&t[n]<e[n]+i5(n,e)-Ox}function qA(t){var e=t.hover,n=t.source;return e&&n&&e===n}function oa(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function zd(){this._snapValues={}}function Gr(t,e,n){var o=this;this._elementRegistry=t,e.on(["create.start","shape.move.start"],function(r){o.initSnap(r)}),e.on(["create.move","create.end","shape.move.move","shape.move.end"],KA,function(r){var i=r.context,a=i.shape,s=i.snapContext,c=i.target;if(!(r.originalEvent&&to(r.originalEvent))&&!Ys(r)&&c){var l=s.pointsForTarget(c);l.initialized||(l=o.addSnapTargetPoints(l,a,c),l.initialized=!0),n.snap(r,l)}}),e.on(["create.cleanup","shape.move.cleanup"],function(){n.hide()})}function YA(t){return!!t.hidden}function Gs(t,e){e.invoke(Gr,this),t.on(["create.move","create.end"],Lx,QA),t.on(["create.move","create.end","shape.move.move","shape.move.end"],Lx,function(n){var o=n.context,r=o.canExecute,i=o.target;r&&(r==="attach"||r.attach)&&!Ys(n)&&XA(n,i)})}function XA(t,e){var n=_t(e),o=rw(t,e),r=t.context.shape,i=r.parent?{x:0,y:0}:Tt(r);/top/.test(o)?mn(t,"y",n.top-i.y):/bottom/.test(o)&&mn(t,"y",n.bottom-i.y),/left/.test(o)?mn(t,"x",n.left-i.x):/right/.test(o)&&mn(t,"x",n.right-i.x)}function ZA(t,e){return t.every(function(n){return y(n,e)})}function JA(t){return y(t,"bpmn:SubProcess")&&Ut(t)?!0:y(t,"bpmn:Participant")}function QA(t){var e=t.context.createConstraints;if(e){var n=e.top,o=e.right,r=e.bottom,i=e.left;(i&&i>=t.x||o&&o<=t.x)&&mn(t,"x",t.x),(n&&n>=t.y||r&&r<=t.y)&&mn(t,"y",t.y)}}function Nx(t,e){return t.indexOf(e)!==-1}function Ix(t,e,n){return e?{x:t.x-n.x,y:t.y-n.y}:{x:t.x,y:t.y}}function fl(t,e){var n=this;t.on(["resize.start"],function(o){n.initSnap(o)}),t.on(["resize.move","resize.end"],tM,function(o){var r=o.context,i=r.shape,a=i.parent,s=r.direction,c=r.snapContext;if(!(o.originalEvent&&to(o.originalEvent))&&!Ys(o)){var l=c.pointsForTarget(a);l.initialized||(l=n.addSnapTargetPoints(l,i,a,s),l.initialized=!0),oM(s)&&mn(o,"x",o.x),rM(s)&&mn(o,"y",o.y),e.snap(o,l)}}),t.on(["resize.cleanup"],function(){e.hide()})}function Hx(t,e){var n=Tt(t),o=_t(t),r={x:n.x,y:n.y};return e.indexOf("n")===-1?e.indexOf("s")!==-1&&(r.y=o.bottom):r.y=o.top,e.indexOf("e")===-1?e.indexOf("w")!==-1&&(r.x=o.left):r.x=o.right,r}function eM(t,e){return t.host===e}function nM(t){return!!t.hidden}function oM(t){return t==="n"||t==="s"}function rM(t){return t==="e"||t==="w"}function ea(t){this._canvas=t,this._asyncHide=cs(jn(this.hide,this),aM)}function Nt(t,e,n,o){this._open=!1,this._results={},this._eventMaps=[],this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._canvas=t,this._eventBus=e,this._selection=n,this._translate=o,this._container=this._getBoxHtml(),this._searchInput=xe(Nt.INPUT_SELECTOR,this._container),this._resultsContainer=xe(Nt.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),e.on(["canvas.destroy","diagram.destroy","drag.init","elements.changed"],this.close,this)}function Wx(t,e,n){var o=cM(e),r=Ae(n);r.innerHTML=o,t.appendChild(r)}function cM(t){var e="";return t.forEach(function(n){var o=Mp(n.value||n.matched||n.normal),r=n.match||n.matched;e+=r?'<b class="'+Nt.RESULT_HIGHLIGHT_CLASS+'">'+o+"</b>":o}),e===""?null:e}function kf(t,e,n,o){this._elementRegistry=t,this._canvas=n,this._search=o,e.registerProvider(this)}function pM(t){let{item:{element:e},tokens:n}=t;return{element:e,primaryTokens:n.label,secondaryTokens:n.id}}function Gx(t,e,n){return at("path",{d:t,strokeWidth:2,transform:"translate(".concat(e.x,", ").concat(e.y,")"),...n})}function Ld(t,e){this._styles=e,t.registerProvider(this)}function Ux(t,e){var n;return e==="bpmn:DataObjectReference"?n=hM:e==="bpmn:DataStoreReference"&&(n=fM),t.width===n.width&&t.height===n.height}function Hr(t){gl.call(this,t)}var D4,D2,Op,P4,j4,P2,$4,wf,O4,$2,z4,L4,N4,N2,F4,Pm,Gb,W4,G4,I2,U4,V4,q4,Y4,X4,zp,Z4,qb,J4,H2,tu,Je,F2,na,Kb,W2,G2,$m,id,yl,U2,_f,ih,ah,Nd,Id,nT,eu,tk,Jb,re,qs,un,Om,Qb,kl,ek,gn,tv,ev,nv,ov,rv,iv,av,Vx,qx,Kx,Yx,Xx,Zx,Jx,Qx,t2,e2,n2,o2,r2,i2,a2,s2,c2,l2,p2,d2,u2,m2,vT,h2,f2,g2,y2,b2,v2,x2,k2,w2,_2,E2,S2,ST,pv,TT,T2,uv,Ds,ak,Rf,sk,PT,jT,$T,OT,zT,GT,VT,Mf,JT,yv,t8,Ps,bv,yi,r8,Ur,Np,i8,hk,yk,bk,xv,Pa,ja,Ic,v8,x8,kv,Hc,Ip,wv,_v,Ev,Sv,Tv,Cv,w8,Av,E8,Mv,Lm,S8,T8,C8,Dv,Pv,Pf,R8,M8,D8,P8,j8,tc,Hp,Mk,I8,jf,Fp,U8,jv,Z8,_h,Eh,Gp,zv,Gd,Ud,o7,Gi,d7,m7,Nv,Vp,Wv,Gv,Nk,Ik,g7,Vv,Vd,Jv,Qv,L7,I7,H7,zf,Lf,yd,bd,Yk,Xk,Ui,F7,W7,G7,U7,t1,q7,tw,e1,nC,n1,Nm,cC,lC,nw,r1,dC,uC,ow,i1,yC,PC,jC,$C,OC,zC,LC,f1,g1,y1,b1,NC,IC,lu,Tl,k1,UC,Fm,VC,qC,xw,_1,KC,XC,_w,QC,pu,Wm,rR,di,S1,Vi,iR,Yp,Xp,Gm,R1,cR,Zp,lR,Sw,dR,uR,B1,mR,hR,M1,D1,vR,xR,kR,wR,_R,ER,SR,TR,CR,RR,BR,AR,MR,DR,PR,jR,Jp,P1,NR,IR,j1,Uc,fi,Aw,VR,XR,Vc,Um,Ff,oB,aB,Qp,sB,Yd,G1,cB,SB,TB,CB,RB,Uf,cl,zw,Q1,HB,tx,ex,Lw,VB,qB,KB,YB,XB,ZB,JB,QB,Nw,t9,nx,e9,n9,o9,r9,i9,a9,s9,ox,c9,l9,p9,ix,d9,ax,u9,m9,sx,h9,f9,g9,y9,b9,v9,x9,_9,E9,T9,C9,D9,P9,px,j9,ul,$9,O9,z9,dx,ux,mx,hx,L9,N9,I9,fx,gx,yx,W9,td,ed,nd,Kc,G9,qw,V9,vx,xx,J9,Q9,tA,od,Vf,kx,wx,nA,rd,oA,rA,Xw,Jm,sA,cA,lA,pA,dA,uA,mA,Jd,_x,Qm,Ex,Sx,Tx,Cx,bA,vA,C2,xA,t5,e5,kA,th,wA,eh,Rx,_A,R2,B2,CA,RA,A2,BA,Bx,Ax,AA,MA,nh,Dx,DA,jx,$x,PA,jA,$A,OA,zA,oh,LA,NA,Ox,n5,IA,KA,Lx,tM,iM,aM,sM,Fx,lM,dM,uM,mM,hM,fM,Xo,gM,yM,s5=Tn(()=>{"use strict";Jf();Mr();ni();ps();hp();bs();Rc();Em();Fb();As();ft(gl,Ue),gl.prototype._createModdle=function(t){var e=Ue.prototype._createModdle.call(this,t);return e.ids=new xr([32,36,1]),e},gl.prototype._collectIds=function(t,e){var n=t.$model.ids,o;for(o in n.clear(),e)n.claim(o,e[o])};D4=300;M2.$inject=["eventBus","canvas","selection"];D2={__init__:["keepSelectionVisible"],__depends__:[Eo],keepSelectionVisible:["type",M2]},Op="keyboard.keydown",P4="keyboard.keyup",j4=1e3,P2="Keyboard binding is now implicit; explicit binding to an element got removed. For more information, see https://github.com/bpmn-io/diagram-js/issues/661";Qn.$inject=["config.keyboard","eventBus"],Qn.prototype._keydownHandler=function(t){this._keyHandler(t,Op)},Qn.prototype._keyupHandler=function(t){this._keyHandler(t,P4)},Qn.prototype._keyHandler=function(t,e){var n;if(!this._isEventIgnored(t)){var o={keyEvent:t};n=this._eventBus.fire(e||Op,o),n&&t.preventDefault()}},Qn.prototype._isEventIgnored=function(t){return!1},Qn.prototype.bind=function(t){t&&console.error("unsupported argument <node>",Error(P2)),this.unbind(),t=this._node=this._target,$t.bind(t,"keydown",this._keydownHandler),$t.bind(t,"keyup",this._keyupHandler),this._fire("bind")},Qn.prototype.getBinding=function(){return this._node},Qn.prototype.unbind=function(){var t=this._node;t&&(this._fire("unbind"),$t.unbind(t,"keydown",this._keydownHandler),$t.unbind(t,"keyup",this._keyupHandler)),this._node=null},Qn.prototype._fire=function(t){this._eventBus.fire("keyboard."+t,{node:this._node})},Qn.prototype.addListener=function(t,e,n){Ke(t)&&(n=e,e=t,t=j4),this._eventBus.on(n||Op,t,e)},Qn.prototype.removeListener=function(t,e){this._eventBus.off(e||Op,t)},Qn.prototype.hasModifier=qf,Qn.prototype.isCmd=to,Qn.prototype.isShift=Cl,Qn.prototype.isKey=an;$4=500;Vs.$inject=["eventBus","keyboard"],Vs.prototype.registerBindings=function(t,e){function n(o,r){e.isRegistered(o)&&t.addListener(r)}n("undo",function(o){var r=o.keyEvent;if(du(r))return e.trigger("undo"),!0}),n("redo",function(o){var r=o.keyEvent;if(uu(r))return e.trigger("redo"),!0}),n("copy",function(o){var r=o.keyEvent;if(Kf(r))return e.trigger("copy"),!0}),n("paste",function(o){var r=o.keyEvent;if(Yf(r))return e.trigger("paste"),!0}),n("duplicate",function(o){var r=o.keyEvent;if(Xf(r))return e.trigger("duplicate"),!0}),n("cut",function(o){var r=o.keyEvent;if(Zf(r))return e.trigger("cut"),!0}),n("stepZoom",function(o){var r=o.keyEvent;if(an(["+","Add","="],r)&&to(r))return e.trigger("stepZoom",{value:1}),!0}),n("stepZoom",function(o){var r=o.keyEvent;if(an(["-","Subtract"],r)&&to(r))return e.trigger("stepZoom",{value:-1}),!0}),n("zoom",function(o){var r=o.keyEvent;if(an("0",r)&&to(r))return e.trigger("zoom",{value:1}),!0}),n("removeSelection",function(o){var r=o.keyEvent;if(an(["Backspace","Delete","Del"],r))return e.trigger("removeSelection"),!0})};wf={__init__:["keyboard","keyboardBindings"],keyboard:["type",Qn],keyboardBindings:["type",Vs]},O4={moveSpeed:50,moveSpeedAccelerated:200};j2.$inject=["config.keyboardMove","keyboard","canvas"];$2={__depends__:[wf],__init__:["keyboardMove"],keyboardMove:["type",j2]},z4=/^djs-cursor-.*$/;L4=5e3;N4=15;L2.$inject=["eventBus","canvas"];N2={__init__:["moveCanvas"],moveCanvas:["type",L2]};F4=Math.sign||function(t){return t>=0?1:-1},Pm={min:.2,max:4},Gb=10,W4=.1,G4=.75;Nr.$inject=["config.zoomScroll","eventBus","canvas"],Nr.prototype.scroll=function(t){this._canvas.scroll(t)},Nr.prototype.reset=function(){this._canvas.zoom("fit-viewport")},Nr.prototype.zoom=function(t,e){var n=Wb(Pm,Gb*2);this._totalDelta+=t,Math.abs(this._totalDelta)>W4&&(this._zoom(t,e,n),this._totalDelta=0)},Nr.prototype._handleWheel=function(t){if(this._enabled){var e=this._container;t.preventDefault();var n=t.ctrlKey||Dm()&&t.metaKey,o=t.shiftKey,r=-1*this._scale,i;if(r*=n?t.deltaMode===0?.02:.32:t.deltaMode===0?1:16,n){var a=e.getBoundingClientRect(),s={x:t.clientX-a.left,y:t.clientY-a.top};i=Math.sqrt(t.deltaY**2+t.deltaX**2)*F4(t.deltaY)*r,this.zoom(i,s)}else i=o?{dx:r*t.deltaY,dy:0}:{dx:r*t.deltaX,dy:r*t.deltaY},this.scroll(i)}},Nr.prototype.stepZoom=function(t,e){var n=Wb(Pm,Gb);this._zoom(t,e,n)},Nr.prototype._zoom=function(t,e,n){var o=this._canvas,r=t>0?1:-1,i=rh(o.zoom()),a=Math.round(i/n)*n;a+=n*r;var s=10**a;o.zoom(H4(Pm,s),e)},Nr.prototype.toggle=function(t){var e=this._container,n=this._handleWheel,o=this._enabled;return t===void 0&&(t=!o),o!==t&&$t[t?"bind":"unbind"](e,"wheel",n,!1),this._enabled=t,t},Nr.prototype._init=function(t){this.toggle(t)};I2={__init__:["zoomScroll"],zoomScroll:["type",Nr]};ft(Yc,si),Yc.prototype._navigationModules=[D2,$2,N2,I2],Yc.prototype._modules=[].concat(si.prototype._modules,Yc.prototype._navigationModules);U4={left:Vb,center:Vb,right:function(t){return t.x+t.width},top:Ub,middle:Ub,bottom:function(t){return t.y+t.height}};Ns.$inject=["modeling","rules"],Ns.prototype._getOrientationDetails=function(t){var e=["top","bottom","middle"],n="x",o="width";return e.indexOf(t)!==-1&&(n="y",o="height"),{axis:n,dimension:o}},Ns.prototype._isType=function(t,e){return e.indexOf(t)!==-1},Ns.prototype._alignmentPosition=function(t,e){var n=this._getOrientationDetails(t),o=n.axis,r=n.dimension,i={},a={},s=!1,c,l,p;function d(u,m){return Math.round((u[o]+m[o]+m[r])/2)}if(this._isType(t,["left","top"]))i[t]=e[0][o];else if(this._isType(t,["right","bottom"]))p=jm(e),i[t]=p[o]+p[r];else if(this._isType(t,["center","middle"])){if(A(e,function(u){var m=u[o]+Math.round(u[r]/2);a[m]?a[m].elements.push(u):a[m]={elements:[u],center:m}}),c=Uo(a,function(u){return u.elements.length>1&&(s=!0),u.elements.length}),s)return i[t]=jm(c).center,i;l=e[0],e=Uo(e,function(u){return u[o]+u[r]}),p=jm(e),i[t]=d(l,p)}return i},Ns.prototype.trigger=function(t,e){var n=this._modeling,o,r=Ft(t,function(c){return!(c.waypoints||c.host||c.labelTarget)});if(o=this._rules.allowed("elements.align",{elements:r}),Ct(o)&&(r=o),!(r.length<2||!o)){var i=U4[e],a=Uo(r,i),s=this._alignmentPosition(e,a);n.alignElements(a,s)}};V4={__init__:["alignElements"],alignElements:["type",Ns]},q4=new Ba;Is.$inject=["eventBus"],Is.prototype.schedule=function(t,e=q4.next()){this.cancel(e);let n=this._schedule(t,e);return this._scheduled[e]=n,n.promise},Is.prototype._schedule=function(t,e){let n=K4();return{executionId:setTimeout(()=>{try{this._scheduled[e]=null;try{n.resolve(t())}catch(o){n.reject(o)}}catch(o){console.error("Scheduler#_schedule execution failed",o)}}),promise:n.promise}},Is.prototype.cancel=function(t){let e=this._scheduled[t];e&&(this._cancel(e),this._scheduled[t]=null)},Is.prototype._cancel=function(t){clearTimeout(t.executionId)};Y4={scheduler:["type",Is]},X4="djs-element-hidden",zp=".entry",Z4=1e3,qb=8,J4=300;pn.$inject=["canvas","elementRegistry","eventBus","scheduler"],pn.prototype._init=function(){var t=this;this._eventBus.on("selection.changed",function(e){var n=e.newSelection,o=n.length?n.length===1?n[0]:n:null;o?t.open(o,!0):t.close()}),this._eventBus.on("elements.changed",function(e){var n=e.elements,o=t._current;if(o){var r=o.target,i=Ct(r)?r:[r];if(i.filter(function(s){return n.includes(s)}).length){t.close();var a=i.filter(function(s){return t._elementRegistry.get(s.id)});a.length&&t._updateAndOpen(a.length>1?a:a[0])}}}),this._eventBus.on("canvas.viewbox.changed",function(){t._updatePosition()}),this._eventBus.on("element.marker.update",function(e){if(t.isOpen()){var n=e.element,o=t._current;(Ct(o.target)?o.target:[o.target]).includes(n)&&t._updateVisibility()}}),this._container=this._createContainer()},pn.prototype._createContainer=function(){var t=Ae('<div class="djs-context-pad-parent"></div>');return this._canvas.getContainer().appendChild(t),t},pn.prototype.registerProvider=function(t,e){e||(e=t,t=Z4),this._eventBus.on("contextPad.getProviders",t,function(n){n.providers.push(e)})},pn.prototype.getEntries=function(t){var e=this._getProviders(),n=Ct(t)?"getMultiElementContextPadEntries":"getContextPadEntries",o={};return A(e,function(r){if(Ke(r[n])){var i=r[n](t);Ke(i)?o=i(o):A(i,function(a,s){o[s]=a})}}),o},pn.prototype.trigger=function(t,e,n){var o=this,r,i,a=e.delegateTarget||e.target;if(!a)return e.preventDefault();if(r=xn(a,"data-action"),i=e.originalEvent||e,t==="mouseover")this._timeout=setTimeout(function(){o._mouseout=o.triggerEntry(r,"hover",i,n)},J4);else if(t==="mouseout")clearTimeout(this._timeout),this._mouseout&&=(this._mouseout(),null);else return this.triggerEntry(r,t,i,n)},pn.prototype.triggerEntry=function(t,e,n,o){if(this.isShown()){var r=this._current.target,i=this._current.entries[t];if(i){var a=i.action;if(this._eventBus.fire("contextPad.trigger",{entry:i,event:n})!==!1){if(Ke(a)){if(e==="click")return a(n,r,o)}else if(a[e])return a[e](n,r,o);n.preventDefault()}}}},pn.prototype.open=function(t,e){(e||!this.isOpen(t))&&this._eventBus.fire("contextPad.open.allowed",{target:t})!==!1&&(this.close(),this._updateAndOpen(t))},pn.prototype._getProviders=function(){var t=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},pn.prototype._updateAndOpen=function(t){var e=this.getEntries(t),n=this._createHtml(t),o;A(e,function(r,i){var a=r.group||"default",s=Ae(r.html||'<div class="entry" draggable="true"></div>'),c;xn(s,"data-action",i),c=xe("[data-group="+Rs(a)+"]",n),c||(c=Ae('<div class="group"></div>'),xn(c,"data-group",a),n.appendChild(c)),c.appendChild(s),r.className&&Q4(s,r.className),r.title&&xn(s,"title",r.title),r.imageUrl&&(o=Ae("<img>"),xn(o,"src",r.imageUrl),o.style.width="100%",o.style.height="100%",s.appendChild(o))}),Ie(n).add("open"),this._current={entries:e,html:n,target:t},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})},pn.prototype._createHtml=function(t){var e=this,n=Ae('<div class="djs-context-pad"></div>');return Wn.bind(n,zp,"click",function(o){e.trigger("click",o)}),Wn.bind(n,zp,"dragstart",function(o){e.trigger("dragstart",o)}),Wn.bind(n,zp,"mouseover",function(o){e.trigger("mouseover",o)}),Wn.bind(n,zp,"mouseout",function(o){e.trigger("mouseout",o)}),$t.bind(n,"mousedown",function(o){o.stopPropagation()}),this._container.appendChild(n),this._eventBus.fire("contextPad.create",{target:t,pad:n}),n},pn.prototype.getPad=function(t){console.warn(Error("ContextPad#getPad is deprecated and will be removed in future library versions, cf. https://github.com/bpmn-io/diagram-js/pull/888"));let e;return e=this.isOpen()&&eT(this._current.target,t)?this._current.html:this._createHtml(t),{html:e}},pn.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},pn.prototype.isOpen=function(t){var e=this._current;if(!e)return!1;if(!t)return!0;var n=e.target;return Ct(t)===Ct(n)?Ct(t)?t.length===n.length&&Ar(t,function(o){return n.includes(o)}):n===t:!1},pn.prototype.isShown=function(){return this.isOpen()&&Ie(this._current.html).has("open")},pn.prototype.show=function(){this.isOpen()&&(Ie(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))},pn.prototype.hide=function(){this.isOpen()&&(Ie(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))},pn.prototype._getPosition=function(t){if(!Ct(t)&&he(t)){var e=this._canvas.viewbox(),n=tT(t),o=n.x*e.scale-e.x*e.scale,r=n.y*e.scale-e.y*e.scale;return{left:o+qb*this._canvas.zoom(),top:r}}var i=this._canvas.getContainer().getBoundingClientRect(),a=this._getTargetBounds(t);return{left:a.right-i.left+qb*this._canvas.zoom(),top:a.top-i.top}},pn.prototype._updatePosition=function(){this._scheduler.schedule(()=>{if(this.isOpen()){var t=this._current.html,e=this._getPosition(this._current.target);"x"in e&&"y"in e?(t.style.left=e.x+"px",t.style.top=e.y+"px"):["top","right","bottom","left"].forEach(function(n){n in e&&(t.style[n]=e[n]+"px")})}},"ContextPad#_updatePosition")},pn.prototype._updateVisibility=function(){this._scheduler.schedule(()=>{if(this.isOpen()){var t=this,e=this._current.target;(Ct(e)?e:[e]).some(function(n){return t._canvas.hasMarker(n,X4)})?t.hide():t.show()}},"ContextPad#_updateVisibility")},pn.prototype._getTargetBounds=function(t){var e=this;return(Ct(t)?t:[t]).map(function(n){return e._canvas.getGraphics(n)}).reduce(function(n,o){let r=o.getBoundingClientRect();return n.top=Math.min(n.top,r.top),n.right=Math.max(n.right,r.right),n.bottom=Math.max(n.bottom,r.bottom),n.left=Math.min(n.left,r.left),n.x=n.left,n.y=n.top,n.width=n.right-n.left,n.height=n.bottom-n.top,n},{top:1/0,right:-1/0,bottom:-1/0,left:1/0})};H2={__depends__:[Nc,Y4,zc],contextPad:["type",pn]},Nd={},Id=[],nT=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,eu=Array.isArray;tu=Id.slice,Je={__e:function(t,e,n,o){for(var r,i,a;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&i.getDerivedStateFromError!=null&&(r.setState(i.getDerivedStateFromError(t)),a=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(t,o||{}),a=r.__d),a)return r.__E=r}catch(s){t=s}throw t}},F2=0,sd.prototype.setState=function(t,e){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=gi({},this.state);typeof t=="function"&&(t=t(gi({},n),this.props)),t&&gi(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Yb(this))},sd.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Yb(this))},sd.prototype.render=nu,na=[],W2=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,G2=function(t,e){return t.__v.__b-e.__v.__b},Hd.__r=0,$m=Math.random().toString(8),id="__d"+$m,yl="__a"+$m,U2=/(PointerCapture)$|Capture$/i,_f=0,ih=Zb(!1),ah=Zb(!0);tk=function(t,e,n,o){var r;e[0]=0;for(var i=1;i<e.length;i++){var a=e[i++],s=e[i]?(e[0]|=a?1:2,n[e[i++]]):e[++i];a===3?o[0]=s:a===4?o[1]=Object.assign(o[1]||{},s):a===5?(o[1]=o[1]||{})[e[++i]]=s:a===6?o[1][e[++i]]+=s+"":a?(r=t.apply(s,tk(t,s,n,["",null])),o.push(r),s[0]?e[0]|=2:(e[i-2]=0,e[i]=r)):o.push(s)}return o},Jb=new Map;re=cT.bind(V2),kl=0,ek=[],gn=Je,tv=gn.__b,ev=gn.__r,nv=gn.diffed,ov=gn.__c,rv=gn.unmount,iv=gn.__;gn.__b=function(t){un=null,tv&&tv(t)},gn.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),iv&&iv(t,e)},gn.__r=function(t){ev&&ev(t),qs=0;var e=(un=t.__c).__H;e&&(Om===un?(e.__h=[],un.__h=[],e.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.some(ld),e.__h.some(sh),e.__h=[],qs=0)),Om=un},gn.diffed=function(t){nv&&nv(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(ek.push(e)!==1&&Qb===gn.requestAnimationFrame||((Qb=gn.requestAnimationFrame)||dT)(pT)),e.__H.__.some(function(n){n.u&&=(n.__H=n.u,void 0)})),Om=un=null},gn.__c=function(t,e){e.some(function(n){try{n.__h.some(ld),n.__h=n.__h.filter(function(o){return!o.__||sh(o)})}catch(o){e.some(function(r){r.__h&&=[]}),e=[],gn.__e(o,n.__v)}}),ov&&ov(t,e)},gn.unmount=function(t){rv&&rv(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some(function(o){try{ld(o)}catch(r){e=r}}),n.__H=void 0,e&&gn.__e(e,n.__v))};av=typeof requestAnimationFrame=="function";vT=new Ba("djs-popup");ST="data-id",pv=["contextPad.close","canvas.viewbox.changing","commandStack.changed"],TT=1e3;Xe.$inject=["config.popupMenu","eventBus","canvas","search"],Xe.prototype._render=function(){let{position:t,providerId:e,entries:n,headerEntries:o,emptyPlaceholder:r,options:i}=this._current,a=rk(n),s=Object.entries(o).map(([c,l])=>({id:c,...l}));Fd(re(T2||(T2=ne(["\n <","\n onClose=","\n onSelect=","\n position=","\n className=","\n entries=","\n headerEntries=","\n emptyPlaceholder=","\n scale=","\n onOpened=","\n onClosed=","\n searchFn=","\n defaultTab=","\n ...","\n />\n "])),xT,c=>this.close(c),(c,l,p)=>this.trigger(c,l,p),t&&(c=>this._ensureVisible(c,t)),e,a,s,r,this._updateScale(this._current.container),this._onOpened.bind(this),this._onClosed.bind(this),this._search,this._config.defaultTab,{...i}),this._current.container)},Xe.prototype.open=function(t,e,n,o){if(!t)throw Error("target is missing");if(!e)throw Error("providers for <"+e+"> not found");if(!n)throw Error("position is missing");if(this._eventBus.fire("popupMenu.open.allowed",{target:t,providerId:e})===!1)return;this.isOpen()&&this.close();let{entries:r,headerEntries:i,emptyPlaceholder:a}=this._getContext(t,e);this._current={position:n,providerId:e,target:t,entries:r,headerEntries:i,emptyPlaceholder:a,container:this._createContainer({provider:e}),options:o},this._emit("open"),this._bindAutoClose(),this._render()},Xe.prototype.refresh=function(){if(!this.isOpen())return;let{target:t,providerId:e}=this._current,{entries:n,headerEntries:o,emptyPlaceholder:r}=this._getContext(t,e);this._current={...this._current,entries:n,headerEntries:o,emptyPlaceholder:r},this._emit("refresh"),this._render()},Xe.prototype._getContext=function(t,e){let n=this._getProviders(e);if(!n||!n.length)throw Error("provider for <"+e+"> not found");let o=this._getEntries(t,n),r=this._getHeaderEntries(t,n);return{entries:o,headerEntries:r,emptyPlaceholder:this._getEmptyPlaceholder(n),empty:!(Object.keys(o).length||Object.keys(r).length)}},Xe.prototype.close=function(){this.isOpen()&&(this._emit("close"),this.reset(),this._canvas.restoreFocus(),this._current=null)},Xe.prototype.reset=function(){let t=this._current.container;Fd(null,t),kr(t)},Xe.prototype._emit=function(t,e){this._eventBus.fire("popupMenu.".concat(t),e)},Xe.prototype._onOpened=function(){this._emit("opened")},Xe.prototype._onClosed=function(){this._emit("closed")},Xe.prototype._createContainer=function(t){var e=this._canvas.getContainer();let n=Ae('<div class="djs-popup-parent djs-scrollable" data-popup='.concat(t.provider,"></div>"));return e.appendChild(n),n},Xe.prototype._bindAutoClose=function(){this._eventBus.once(pv,this.close,this)},Xe.prototype._unbindAutoClose=function(){this._eventBus.off(pv,this.close,this)},Xe.prototype._updateScale=function(){var t=this._canvas.zoom(),e=this._config.scale,n,o,r=t;return e!==!0&&(e===!1?(n=1,o=1):(n=e.min,o=e.max),on(n)&&t<n&&(r=n),on(o)&&t>o&&(r=o)),r},Xe.prototype._ensureVisible=function(t,e){var n=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect(),r={},i=e.x,a=e.y;return e.x+o.width>n.width&&(r.x=!0),e.y+o.height>n.height&&(r.y=!0),r.x&&r.y?(i=e.x-o.width,a=e.y-o.height):r.x?(i=e.x-o.width,a=e.y):r.y&&e.y<o.height?(i=e.x,a=10):r.y&&(i=e.x,a=e.y-o.height),e.y<n.top&&(a=e.y+o.height),{x:i,y:a}},Xe.prototype.isEmpty=function(t,e){if(!t)throw Error("target is missing");if(!e)throw Error("provider ID is missing");let n=this._getProviders(e);return!n||!n.length||this._getContext(t,e).empty},Xe.prototype.registerProvider=function(t,e,n){n||(n=e,e=TT),this._eventBus.on("popupMenu.getProviders."+t,e,function(o){o.providers.push(n)})},Xe.prototype._getProviders=function(t){var e=this._eventBus.createEvent({type:"popupMenu.getProviders."+t,providers:[]});return this._eventBus.fire(e),e.providers},Xe.prototype._getEntries=function(t,e){var n={};return A(e,function(o){if(!o.getPopupMenuEntries)A(o.getEntries(t),function(i){var a=i.id;if(!a)throw Error("entry ID is missing");n[a]=Vo(i,["id"])});else{var r=o.getPopupMenuEntries(t);Ke(r)?n=r(n):A(r,function(i,a){n[a]=i})}}),n},Xe.prototype._getHeaderEntries=function(t,e){var n={};return A(e,function(o){if(o.getPopupMenuHeaderEntries){var r=o.getPopupMenuHeaderEntries(t);Ke(r)?n=r(n):A(r,function(i,a){n[a]=i})}else{if(!o.getHeaderEntries)return;A(o.getHeaderEntries(t),function(i){var a=i.id;if(!a)throw Error("entry ID is missing");n[a]=Vo(i,["id"])})}}),n},Xe.prototype._getEmptyPlaceholder=function(t){let e=t.find(n=>Ke(n.getEmptyPlaceholder));return e&&e.getEmptyPlaceholder()},Xe.prototype.isOpen=function(){return!!this._current},Xe.prototype.trigger=function(t,e,n="click"){if(t.preventDefault(),!e){let r=Lr(t.delegateTarget||t.target,".entry",!0),i=xn(r,ST);e={id:i,...this._getEntry(i)}}let o=e.action;if(this._emit("trigger",{entry:e,event:t})!==!1){if(Ke(o)){if(n==="click")return o(t,e)}else if(o[n])return o[n](t,e)}},Xe.prototype._getEntry=function(t){var e=this._current.entries[t]||this._current.headerEntries[t];if(!e)throw Error("entry not found");return e};uv=.5,Ds={FULL:131.9,START_FULL_WORD:8,START_WORD_PART:7.87,WORD_START:2.19,WORD_PART:1,NO_MATCH:-.07};ak={search:["value",CT]},Rf={__depends__:[ak],__init__:["popupMenu"],popupMenu:["type",Xe]},sk={align:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 2000">\n <line x1="200" y1="150" x2="200" y2="1850" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="500" y="150" width="1300" height="700" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="500" y="1150" width="700" height="700" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',bottom:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="1650" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="350" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="850" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',center:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="900" y1="150" x2="900" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="250" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="500" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',left:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="100" y1="150" x2="100" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="100" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="100" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',right:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="1650" y1="150" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="350" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="850" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',top:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="150" x2="1650" y2="150" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="150" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="150" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',middle:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="900" x2="1650" y2="900" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="250" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="500" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>'},PT=900;Hs.$inject=["contextPad","popupMenu","translate","canvas"],Hs.prototype.getMultiElementContextPadEntries=function(t){var e={};return this._isAllowed(t)&&j(e,this._getEntries(t)),e},Hs.prototype._isAllowed=function(t){return!this._popupMenu.isEmpty(t,"align-elements")},Hs.prototype._getEntries=function(){var t=this;return{"align-elements":{group:"align-elements",title:t._translate("Align elements"),html:'<div class="entry">'.concat(sk.align,"</div>"),action:{click:function(e,n){var o=t._getMenuPosition(n);j(o,{cursor:{x:e.x,y:e.y}}),t._popupMenu.open(n,"align-elements",o)}}}}},Hs.prototype._getMenuPosition=function(t){var e=5,n=this._contextPad.getPad(t).html.getBoundingClientRect();return{x:n.left,y:n.bottom+e}};jT=["left","center","right","top","middle","bottom"];Xc.$inject=["popupMenu","alignElements","translate","rules"],Xc.prototype.getPopupMenuEntries=function(t){var e={};return this._isAllowed(t)&&j(e,this._getEntries(t)),e},Xc.prototype._isAllowed=function(t){return this._rules.allowed("elements.align",{elements:t})},Xc.prototype._getEntries=function(t){var e=this._alignElements,n=this._translate,o=this._popupMenu,r={};return A(jT,function(i){r["align-elements-"+i]={group:"align",title:n("Align elements "+i),className:"bjs-align-elements-menu-entry",imageHtml:sk[i],action:function(){e.trigger(t,i),o.close()}}}),r};or.$inject=["eventBus"],ft(or,J),or.prototype.addRule=function(t,e,n){var o=this;typeof t=="string"&&(t=[t]),t.forEach(function(r){o.canExecute(r,e,function(i,a,s){return n(i)},!0)})},or.prototype.init=function(){};pd.$inject=["eventBus"],ft(pd,or),pd.prototype.init=function(){this.addRule("elements.align",function(t){var e=t.elements,n=Ft(e,function(o){return!(o.waypoints||o.host||o.labelTarget)});return n=jc(n),n.length<2?!1:n})};$T={__depends__:[V4,H2,Rf],__init__:["alignElementsContextPadProvider","alignElementsMenuProvider","bpmnAlignElements"],alignElementsContextPadProvider:["type",Hs],alignElementsMenuProvider:["type",Xc],bpmnAlignElements:["type",pd]},OT=10,zT=250;GT=100;ck.$inject=["eventBus","modeling","canvas"];lk.$inject=["eventBus","selection"];VT={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",ck],autoPlaceSelectionBehavior:["type",lk]};dk.$inject=["eventBus","elementRegistry"];Mf={__depends__:[VT],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",dk]};hi.$inject=["eventBus","elementRegistry","modeling","rules"],ft(hi,J),hi.prototype._getOptimalBounds=function(t,e){var n=this.getOffset(e),o=this.getPadding(e),r=_t(en(t)),i=_t(e),a={};return r.top-i.top<o.top&&(a.top=r.top-n.top),r.left-i.left<o.left&&(a.left=r.left-n.left),i.right-r.right<o.right&&(a.right=r.right+n.right),i.bottom-r.bottom<o.bottom&&(a.bottom=r.bottom+n.bottom),us(j({},i,a))},hi.prototype._expand=function(t,e){if(typeof e=="string"&&(e=this._elementRegistry.get(e)),this._rules.allowed("element.autoResize",{elements:t,target:e})){var n=this._getOptimalBounds(t,e);if(XT(n,e)){var o=ZT(po(e,["x","y","width","height"]),n);this.resize(e,n,{autoResize:o});var r=e.parent;r&&this._expand([e],r)}}},hi.prototype.getOffset=function(t){return{top:60,bottom:60,left:100,right:100}},hi.prototype.getPadding=function(t){return{top:2,bottom:2,left:15,right:15}},hi.prototype.resize=function(t,e,n){this._modeling.resizeShape(t,e,null,n)};dd.$inject=["injector"],ft(dd,hi),dd.prototype.resize=function(t,e,n){y(t,"bpmn:Participant")?this._modeling.resizeLane(t,e,null,n):this._modeling.resizeShape(t,e,null,n)};vl.$inject=["eventBus"],ft(vl,or),vl.prototype.canResize=function(t,e){return!1};ft(ud,vl),ud.$inject=["eventBus","modeling"],ud.prototype.canResize=function(t,e){if(y(e.di,"bpmndi:BPMNPlane")||!y(e,"bpmn:Participant")&&!y(e,"bpmn:Lane")&&!y(e,"bpmn:SubProcess"))return!1;var n=!0;return A(t,function(o){(y(o,"bpmn:Lane")||Lt(o))&&(n=!1)}),n};JT={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",dd],bpmnAutoResizeProvider:["type",ud]},yv=1500;uk.$inject=["elementRegistry","eventBus","injector"];t8={__init__:["hoverFix"],hoverFix:["type",uk]},Ps=Math.round,bv="djs-drag-active";mk.$inject=["eventBus","canvas","selection","elementRegistry"];yi={__depends__:[t8,Eo],dragging:["type",mk]};Us.$inject=["config.autoScroll","eventBus","canvas"],Us.prototype.startScroll=function(t){var e=this._canvas,n=this._opts,o=this,r=e.getContainer().getBoundingClientRect(),i=[t.x,t.y,r.width-t.x,r.height-t.y];this.stopScroll();for(var a=0,s=0,c=0;c<4;c++)o8(i[c],n.scrollThresholdOut[c],n.scrollThresholdIn[c])&&(c===0?a=n.scrollStep:c==1?s=n.scrollStep:c==2?a=-n.scrollStep:c==3&&(s=-n.scrollStep));(a!==0||s!==0)&&(e.scroll({dx:a,dy:s}),this._scrolling=setTimeout(function(){o.startScroll(t)},n.scrollRepeatTimeout))};Us.prototype.stopScroll=function(){clearTimeout(this._scrolling)},Us.prototype.setOptions=function(t){this._opts=j({},this._opts,t)},Us.prototype._toBorderPoint=function(t){var e=this._canvas._container.getBoundingClientRect(),n=Wi(t.originalEvent);return{x:n.x-e.left,y:n.y-e.top}};r8={__depends__:[yi],__init__:["autoScroll"],autoScroll:["type",Us]};ch.$inject=["injector"],ch.prototype.allowed=function(t,e){var n=!0,o=this._commandStack;return o&&(n=o.canExecute(t,e)),n===void 0||n};Ur={__init__:["rules"],rules:["type",ch]},Np=Math.round,i8=Math.max;hk=10;yk="djs-bendpoint",bk="djs-segment-dragger";kk.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];xv=Math.round,Pa="reconnectStart",ja="reconnectEnd",Ic="updateWaypoints";uh.$inject=["injector","eventBus","canvas","dragging","rules","modeling"],uh.prototype.cropWaypoints=function(t,e){var n=this._injector.get("connectionDocking",!1);if(!n)return e;var o=t.waypoints;return t.waypoints=e,t.waypoints=n.getCroppedWaypoints(t),e=t.waypoints,t.waypoints=o,e};v8="reconnectStart",x8="reconnectEnd",kv="updateWaypoints",Hc="connect-ok",Ip="connect-not-ok",wv="connect-hover",_v="djs-updating",Ev="djs-dragging",Sv=1100;wk.$inject=["bendpointMove","injector","eventBus","canvas"];Tv="connect-hover",Cv="djs-updating";Ek.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];w8=Math.abs,Av=Math.round;E8=Math.abs,Mv=Math.round,Lm=10;Rk.$inject=["eventBus"];S8={__depends__:[yi,Ur],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",kk],bendpointMove:["type",uh],bendpointMovePreview:["type",wk],connectionSegmentMove:["type",Ek],bendpointSnapping:["type",Rk]};Bk.$inject=["eventBus","dragging","modeling","rules"];T8=1100,C8=900,Dv="connect-ok",Pv="connect-not-ok";Ak.$inject=["injector","eventBus","canvas"];Pf={__depends__:[Eo,Ur,yi],__init__:["connectPreview"],connect:["type",Bk],connectPreview:["type",Ak]},R8="djs-dragger";li.$inject=["injector","canvas","graphicsFactory","elementFactory"],li.prototype.drawPreview=function(t,e,n){n||={};var o=t.connectionPreviewGfx,r=t.getConnection,i=n.source,a=n.target,s=n.waypoints,c=n.connectionStart,l=n.connectionEnd,p=n.noLayout,d=n.noCropping,u=n.noNoop,m,h=this;o||=t.connectionPreviewGfx=this.createConnectionPreviewGfx(),hs(o),r||=t.getConnection=B8(function(f,g,v){return h.getConnection(f,g,v)}),e&&(m=r(e,i,a)),m?(m.waypoints=s||[],this._layouter&&!p&&(m.waypoints=this._layouter.layoutConnection(m,{source:i,target:a,connectionStart:c,connectionEnd:l,waypoints:n.waypoints||m.waypoints})),(!m.waypoints||!m.waypoints.length)&&(m.waypoints=[i?Tt(i):c,a?Tt(a):l]),this._connectionDocking&&(i||a)&&!d&&(m.waypoints=this._connectionDocking.getCroppedWaypoints(m,i,a)),this._graphicsFactory.drawConnection(o,m,{stroke:"var(--element-dragger-color)"})):!u&&this.drawNoopPreview(o,n)},li.prototype.drawNoopPreview=function(t,e){var n=e.source,o=e.target,r=e.connectionStart||Tt(n),i=e.connectionEnd||Tt(o),a=this.cropWaypoints(r,i,n,o),s=this.createNoopConnection(a[0],a[1]);dt(t,s)},li.prototype.cropWaypoints=function(t,e,n,o){var r=this._graphicsFactory,i=n&&r.getShapePath(n),a=o&&r.getShapePath(o),s=r.getConnectionPath({waypoints:[t,e]});return t=n&&ms(i,s,!0)||t,e=o&&ms(a,s,!1)||e,[t,e]},li.prototype.cleanUp=function(t){t&&t.connectionPreviewGfx&&rn(t.connectionPreviewGfx)},li.prototype.getConnection=function(t){var e=A8(t);return this._elementFactory.createConnection(e)},li.prototype.createConnectionPreviewGfx=function(){var t=at("g");return Z(t,{pointerEvents:"none"}),kt(t).add(R8),dt(this._canvas.getActiveLayer(),t),t},li.prototype.createNoopConnection=function(t,e){return Ea([t,e],{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"})};M8={__init__:["connectionPreview"],connectionPreview:["type",li]},D8=new Ba("ps"),P8=["marker-start","marker-mid","marker-end"],j8=["circle","ellipse","line","path","polygon","polyline","path","rect"];Ki.$inject=["elementRegistry","eventBus","canvas","styles"],Ki.prototype.cleanUp=function(){console.warn("PreviewSupport#cleanUp is deprecated and will be removed in future versions. You do not need to manually clean up previews anymore. cf. https://github.com/bpmn-io/diagram-js/pull/906")},Ki.prototype.getGfx=function(t){return this._elementRegistry.getGraphics(t)},Ki.prototype.addDragger=function(t,e,n,o="djs-dragger"){n||=this.getGfx(t);var r=gm(n);return this._cloneMarkers(Fi(r),o),Z(r,this._styles.cls(o,[])),dt(e,r),Z(r,"data-preview-support-element-id",t.id),r},Ki.prototype.addFrame=function(t,e){var n=at("rect",{class:"djs-resize-overlay",width:t.width,height:t.height,x:t.x,y:t.y});return dt(e,n),Z(n,"data-preview-support-element-id",t.id),n},Ki.prototype._cloneMarkers=function(t,e="djs-dragger",n=t){var o=this;t.childNodes&&t.childNodes.forEach(r=>{o._cloneMarkers(r,e,n)}),L8(t)&&P8.forEach(function(r){if(Z(t,r)){var i=$8(t,r,o._canvas.getContainer());i&&o._cloneMarker(n,t,i,r,e)}})},Ki.prototype._cloneMarker=function(t,e,n,o,r="djs-dragger"){var i=[n.id,r,D8.next()].join("-"),a=xe("marker#"+n.id,t);t||=this._canvas._svg;var s=a||gm(n);s.id=i,kt(s).add(r);var c=xe(":scope > defs",t);c||(c=at("defs"),dt(t,c)),dt(c,s);var l=z8(s.id);Z(e,o,l)};tc={__init__:["previewSupport"],previewSupport:["type",Ki]},Hp="complex-preview",Mk=class{constructor(t,e,n){this._canvas=t,this._graphicsFactory=e,this._previewSupport=n,this._markers=[]}create(t){this.cleanUp();let{created:e=[],moved:n=[],removed:o=[],resized:r=[]}=t,i=this._canvas.getLayer(Hp);e.filter(a=>!N8(a)).forEach(a=>{let s;he(a)?(s=this._graphicsFactory._createContainer("connection",at("g")),this._graphicsFactory.drawConnection(Fi(s),a)):(s=this._graphicsFactory._createContainer("shape",at("g")),this._graphicsFactory.drawShape(Fi(s),a),An(s,a.x,a.y)),this._previewSupport.addDragger(a,i,s)}),n.forEach(({element:a,delta:s})=>{this._previewSupport.addDragger(a,i,void 0,"djs-dragging"),this._canvas.addMarker(a,"djs-element-hidden"),this._markers.push([a,"djs-element-hidden"]);let c=this._previewSupport.addDragger(a,i);he(a)?An(c,s.x,s.y):An(c,a.x+s.x,a.y+s.y)}),o.forEach(a=>{this._previewSupport.addDragger(a,i,void 0,"djs-dragging"),this._canvas.addMarker(a,"djs-element-hidden"),this._markers.push([a,"djs-element-hidden"])}),r.forEach(({shape:a,bounds:s})=>{this._canvas.addMarker(a,"djs-hidden"),this._markers.push([a,"djs-hidden"]),this._previewSupport.addDragger(a,i,void 0,"djs-dragging");let c=this._graphicsFactory._createContainer("shape",at("g"));this._graphicsFactory.drawShape(Fi(c),a,{width:s.width,height:s.height}),An(c,s.x,s.y),this._previewSupport.addDragger(a,i,c)})}cleanUp(){hs(this._canvas.getLayer(Hp)),this._markers.forEach(([t,e])=>this._canvas.removeMarker(t,e)),this._markers=[]}show(){this._canvas.showLayer(Hp)}hide(){this._canvas.hideLayer(Hp)}};Mk.$inject=["canvas","graphicsFactory","previewSupport"];I8={__depends__:[tc],__init__:["complexPreview"],complexPreview:["type",Mk]},jf=["top","bottom","left","right"],Fp=10;ft(hh,J),hh.$inject=["eventBus","modeling"];ft(fh,J),fh.$inject=["eventBus"];U8=1500;ft(gh,J),gh.$inject=["injector","eventBus","canvas"];ft(yh,J),yh.$inject=["injector","modeling"];jv=500;md.$inject=["bpmnReplace","injector"],ft(md,J),md.prototype._replaceShape=function(t,e){var n=V8(t),o={type:"bpmn:BoundaryEvent",host:e};return n&&(o.eventDefinitionType=n.$type),this._bpmnReplace.replaceElement(t,o,{layoutConnection:!1})};bh.$inject=["eventBus","modeling"],ft(bh,J);Z8=500;vh.$inject=["bpmnjs","elementRegistry","injector"],ft(vh,J);ft(xh,J),xh.$inject=["eventBus","modeling","bpmnRules"];kh.$inject=["injector"],ft(kh,J);wh.$inject=["eventBus","bpmnFactory"],ft(wh,J);_h=20,Eh=20,Gp=2e3;Sh.$inject=["canvas","eventBus","modeling"],ft(Sh,J);zv="__targetRef_placeholder";Th.$inject=["eventBus","bpmnFactory"],ft(Th,J);hd.$inject=["bpmnUpdater"],hd.prototype.execute=function(t){var e=t.dataStoreBo,n=t.dataStoreDi,o=t.newSemanticParent,r=t.newDiParent;return t.oldSemanticParent=e.$parent,t.oldDiParent=n.$parent,this._bpmnUpdater.updateSemanticParent(e,o),this._bpmnUpdater.updateDiParent(n,r),[]},hd.prototype.revert=function(t){var e=t.dataStoreBo,n=t.dataStoreDi,o=t.oldSemanticParent,r=t.oldDiParent;return this._bpmnUpdater.updateSemanticParent(e,o),this._bpmnUpdater.updateDiParent(n,r),[]};Ch.$inject=["canvas","commandStack","elementRegistry","eventBus"],ft(Ch,J);Gd=Math.max,Ud=Math.min,o7=20;Gi=Math.abs;d7=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"];m7=500;Rh.$inject=["eventBus","spaceTool"],ft(Rh,J);Nv=500;fd.$inject=["bpmnReplace","injector"],ft(fd,J),fd.prototype._replaceShape=function(t){var e=h7(t),n=e?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:e.$type}:{type:"bpmn:IntermediateThrowEvent"};return this._bpmnReplace.replaceElement(t,n,{layoutConnection:!1})};ft(Bh,J),Bh.$inject=["eventBus","bpmnRules","modeling"];Ah.$inject=["eventBus","modeling"],ft(Ah,J);Vp=1500,Wv=2e3;zk.$inject=["elementRegistry","eventBus","canvas"];Gv=770;Mh.$inject=["bpmnFactory","eventBus","injector","moddleCopy"],ft(Mh,J);Lk.$inject=["eventBus"];Ph.$inject=["eventBus"],ft(Ph,J);Nk=Math.sqrt,Ik=Math.min,g7=Math.max,Vv=Math.abs;Vd=.1;Jv="name",Qv="text";ft(jh,J),jh.$inject=["eventBus","modeling","bpmnFactory","textRenderer"];ft($h,J),$h.$inject=["eventBus","modeling"];Oh.$inject=["eventBus","modeling"],ft(Oh,J);L7=["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:EscalationEventDefinition","bpmn:ConditionalEventDefinition","bpmn:SignalEventDefinition"];zh.$inject=["injector","modeling"],ft(zh,J);ft(Lh,J),Lh.$inject=["eventBus","modeling"];ft(Nh,J),Nh.$inject=["eventBus","bpmnRules","modeling"];Ih.$inject=["eventBus","modeling"],ft(Ih,J);ft(Hh,J),Hh.$inject=["eventBus","modeling","bpmnRules","injector"];ft(gd,J),gd.prototype._replaceElements=function(t,e){var n=this._elementRegistry,o=this._bpmnReplace,r=this._selection;A(e,function(i){var a={type:i.newElementType},s=n.get(i.oldElementId),c=t.indexOf(s);t[c]=o.replaceElement(s,a,{select:!1})}),e&&r.select(t)},gd.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];I7=1500,H7={width:140,height:120},zf={width:300,height:60},Lf={width:60,height:300},yd={width:300,height:150},bd={width:150,height:300},Yk={width:140,height:120},Xk={width:100,height:40};Zk.$inject=["eventBus"];Ui=Math.abs,F7=Math.min,W7=Math.max;G7={top:20,left:50,right:20,bottom:20},U7={top:50,left:20,right:20,bottom:20};t1=1001;Qk.$inject=["eventBus","modeling"];q7=500;Fh.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],ft(Fh,J);tw=Math.max;ew.$inject=["eventBus"];e1=400,nC=600,n1={x:180,y:160};ft(pi,J),pi.prototype._moveChildrenToShape=function(t,e){var n=this._modeling;if(t.length){var o=t.filter(function(c){return!c.hidden});if(!o.length)n.moveElements(t,{x:0,y:0},e,{autoResize:!1});else{var r=en(o),i;if(!e.x)i={x:n1.x-r.x,y:n1.y-r.y};else{var a=Tt(e),s=Tt(r);i={x:a.x-s.x,y:a.y-s.y}}n.moveElements(t,i,e,{autoResize:!1})}}},pi.prototype._disconnectSharedAnnotations=function(t){var e=this._modeling,n=new Set(Mm(t).map(o=>o.annotation));n.size&&A(Cs(t.children),o=>{n.has(o.annotation)&&A(o.associations,r=>{e.removeConnection(r)})})},pi.prototype._showRecursively=function(t,e){var n=this,o=[];return t.forEach(function(r){r.hidden=!!e,o=o.concat(r),r.children&&(o=o.concat(n._showRecursively(r.children,r.collapsed||e)))}),o},pi.prototype._addDiagram=function(t){var e=this._bpmnjs.getDefinitions().diagrams;return t.businessObject||(t=this._createNewDiagram(t)),e.push(t.di.$parent),t},pi.prototype._createNewDiagram=function(t){var e=this._bpmnFactory,n=this._elementFactory,o=e.create("bpmndi:BPMNPlane",{bpmnElement:t});return o.$parent=e.create("bpmndi:BPMNDiagram",{plane:o}),n.createRoot({id:qo(t),type:t.$type,di:o,businessObject:t,collapsed:!0})},pi.prototype._removeDiagram=function(t){var e=this._bpmnjs.getDefinitions().diagrams,n=ve(e,function(o){return o.plane.bpmnElement.id===t.id});return e.splice(e.indexOf(n),1),n},pi.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"];Wh.$inject=["injector","modeling"],ft(Wh,J);ft(Gh,J),Gh.$inject=["eventBus","textRenderer"];ft(Uh,J),Uh.$inject=["eventBus","modeling"];Nm=500;ft(Vh,J),Vh.$inject=["eventBus","elementFactory","modeling"];ft(qh,J),qh.$inject=["canvas","injector","moddle","modeling"];ft(Kh,J),Kh.$inject=["eventBus","modeling"];cC=500,lC=5e3,nw=["shape.create","shape.delete","shape.move","shape.resize"],r1=[...nw,"spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move"];Yh.$inject=["eventBus","modeling"],ft(Yh,J);dC=500,uC=5e3,ow=["connection.create","connection.delete","connection.layout","connection.move","connection.reconnect","connection.updateWaypoints","shape.create","shape.delete","shape.move","shape.resize"],i1=[...ow,"elements.create","elements.delete","elements.move","label.create","spaceTool"];Xh.$inject=["eventBus","modeling"],ft(Xh,J);ft(Zh,J),Zh.$inject=["eventBus","modeling"];yC={__init__:"adaptiveLabelPositioningBehavior.appendBehavior.artifactBehavior.associationBehavior.attachEventBehavior.boundaryEventBehavior.categoryRootElementReferenceBehavior.compensateBoundaryEventBehaviour.createBehavior.createDataObjectBehavior.createParticipantBehavior.dataInputAssociationBehavior.dataStoreBehavior.deleteLaneBehavior.detachEventBehavior.dropOnFlowBehavior.eventBasedGatewayBehavior.fixHoverBehavior.groupBehavior.importDockingFix.isHorizontalFix.labelBehavior.layoutConnectionBehavior.messageFlowBehavior.nonInterruptingBehavior.removeElementBehavior.removeEmbeddedLabelBoundsBehavior.removeParticipantBehavior.replaceConnectionBehavior.replaceElementBehaviour.resizeBehavior.resizeLaneBehavior.rootElementReferenceBehavior.spaceToolBehavior.subProcessPlaneBehavior.subProcessStartEventBehavior.textAnnotationBehavior.toggleCollapseConnectionBehaviour.toggleElementCollapseBehaviour.unclaimIdBehavior.updateFlowNodeRefsBehavior.updateCategoryValueRefsBehavior.unsetDefaultFlowBehavior.setCompensationActivityAfterPasteBehavior".split("."),adaptiveLabelPositioningBehavior:["type",hh],appendBehavior:["type",fh],associationBehavior:["type",yh],attachEventBehavior:["type",md],artifactBehavior:["type",gh],boundaryEventBehavior:["type",bh],categoryRootElementReferenceBehavior:["type",vh],compensateBoundaryEventBehaviour:["type",xh],createBehavior:["type",kh],createDataObjectBehavior:["type",wh],createParticipantBehavior:["type",Sh],dataInputAssociationBehavior:["type",Th],dataStoreBehavior:["type",Ch],deleteLaneBehavior:["type",Rh],detachEventBehavior:["type",fd],dropOnFlowBehavior:["type",Bh],eventBasedGatewayBehavior:["type",Ah],fixHoverBehavior:["type",zk],groupBehavior:["type",Mh],importDockingFix:["type",Lk],isHorizontalFix:["type",Ph],labelBehavior:["type",jh],layoutConnectionBehavior:["type",$h],messageFlowBehavior:["type",Oh],nonInterruptingBehavior:["type",zh],removeElementBehavior:["type",Nh],removeEmbeddedLabelBoundsBehavior:["type",Lh],removeParticipantBehavior:["type",Ih],replaceConnectionBehavior:["type",Hh],replaceElementBehaviour:["type",gd],resizeBehavior:["type",Zk],resizeLaneBehavior:["type",Qk],rootElementReferenceBehavior:["type",Fh],spaceToolBehavior:["type",ew],subProcessPlaneBehavior:["type",pi],subProcessStartEventBehavior:["type",Wh],textAnnotationBehavior:["type",Gh],toggleCollapseConnectionBehaviour:["type",Uh],toggleElementCollapseBehaviour:["type",Vh],unclaimIdBehavior:["type",qh],unsetDefaultFlowBehavior:["type",Kh],updateFlowNodeRefsBehavior:["type",Yh],updateCategoryValueRefsBehavior:["type",Xh],setCompensationActivityAfterPasteBehavior:["type",Zh]};ft(On,or),On.$inject=["eventBus"],On.prototype.init=function(){this.addRule("connection.start",function(t){var e=t.source;return bC(e)}),this.addRule("connection.create",function(t){var e=t.source,n=t.target,o=t.hints||{},r=o.targetParent;if(o.targetAttach)return!1;r&&(n.parent=r);try{return qp(e,n)}finally{r&&(n.parent=null)}}),this.addRule("connection.reconnect",function(t){var e=t.connection,n=t.source,o=t.target;return qp(n,o,e)}),this.addRule("connection.updateWaypoints",function(t){return{type:t.connection.type}}),this.addRule("shape.resize",function(t){var e=t.shape,n=t.newBounds,o=t.direction;return d1(e,n,o)}),this.addRule("elements.create",function(t){var e=t.elements,n=t.position,o=t.target;return he(o)&&!vd(e,o,n)?!1:Ar(e,function(r){return he(r)?qp(r.source,r.target,r):r.host?Zc(r,r.host,null,n):Im(r,o,null,n)})}),this.addRule("elements.move",function(t){var e=t.target,n=t.shapes,o=t.position;return t.hints?.keyboardMove&&n.some(function(r){return cw(r)&&!n.includes(r.host)})?!1:Zc(n,e,null,o)||l1(n,e,o)||p1(n,e,o)||vd(n,e,o)}),this.addRule("shape.create",function(t){return Im(t.shape,t.target,t.source,t.position)}),this.addRule("shape.attach",function(t){return Zc(t.shape,t.target,null,t.position)}),this.addRule("element.copy",function(t){var e=t.element,n=t.elements;return u1(n,e)})},On.prototype.canConnectMessageFlow=hw,On.prototype.canConnectSequenceFlow=fw,On.prototype.canConnectDataAssociation=Hf,On.prototype.canConnectAssociation=uw,On.prototype.canConnectCompensationAssociation=mw,On.prototype.canMove=p1,On.prototype.canAttach=Zc,On.prototype.canReplace=l1,On.prototype.canDrop=Xs,On.prototype.canInsert=vd,On.prototype.canCreate=Im,On.prototype.canConnect=qp,On.prototype.canResize=d1,On.prototype.canCopy=u1;PC={__depends__:[Ur],__init__:["bpmnRules"],bpmnRules:["type",On]},jC=2e3;gw.$inject=["eventBus","canvas"];$C={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",gw]};qd.prototype.getOrdering=function(t,e){return null},ft(qd,J);ef.$inject=["eventBus","canvas"],ft(ef,qd);OC={__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",ef]};Jc.prototype.get=function(){return this._data},Jc.prototype.set=function(t){this._data=t},Jc.prototype.clear=function(){var t=this._data;return delete this._data,t},Jc.prototype.isEmpty=function(){return!this._data};zC={clipboard:["type",Jc]},LC="drop-ok",f1="drop-not-ok",g1="attach-ok",y1="new-parent",b1="create",NC=2e3;yw.$inject=["canvas","dragging","eventBus","modeling","rules"];IC=750;bw.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];lu={__depends__:[yi,tc,Ur,Eo],__init__:["create","createPreview"],create:["type",yw],createPreview:["type",bw]};nf.$inject=["eventBus"],nf.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||HC(0,0)};Tl={__init__:["mouse"],mouse:["type",nf]},k1=2e3;So.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],So.prototype.copy=function(t,e={}){var n,o;return Ct(t)||(t=t?[t]:[]),n=this._eventBus.fire("copyPaste.canCopyElements",{elements:t}),o=n===!1?{}:this.createTree(Ct(n)?n:t),this._eventBus.fire("copyPaste.elementsCopied",{elements:t,tree:o,hints:e}),o},So.prototype.paste=function(t={}){var e=this._eventBus.createEvent({type:"copyPaste.pasteElements",hints:{},...t});if(this._eventBus.fire(e)!==!1){var n=e.tree;if(n){var o=e.hints,r=this._createElements(n);if(e.element&&e.point)return this._paste(r,e.element,e.point,o);this._create.start(this._mouse.getLastMoveEvent(),r,{hints:o})}}},So.prototype.duplicate=function(t,e={}){var n=this.copy(t,{clip:!1});return this.paste({...e,tree:n})},So.prototype.cut=function(t){var e=this.copy(t),n=this._getElementIdsFromTree(e),o=t.filter(function(r){return n[r.id]});return o.length>0&&this._modeling.removeElements(o),e},So.prototype._getElementIdsFromTree=function(t){var e={};return A(t,function(n){A(n,function(o){o.id&&(e[o.id]=!0)})}),e},So.prototype._paste=function(t,e,n,o){A(t,function(i){Mt(i.x)||(i.x=0),Mt(i.y)||(i.y=0)});var r=en(t);return A(t,function(i){he(i)&&(i.waypoints=hn(i.waypoints,function(a){return{x:a.x-r.x-r.width/2,y:a.y-r.y-r.height/2}})),j(i,{x:i.x-r.x-r.width/2,y:i.y-r.y-r.height/2})}),this._modeling.createElements(t,n,e,j({},o))},So.prototype._createElements=function(t){var e=this,n=this._eventBus,o={},r=[];return A(t,function(i,a){a=parseInt(a,10),i=Uo(i,"priority"),A(i,function(s){var c=j({},Vo(s,["priority"]));o[s.parent]?c.parent=o[s.parent]:delete c.parent,n.fire("copyPaste.pasteElement",{cache:o,descriptor:c});var l;he(c)?(c.source=o[s.source],c.target=o[s.target],l=o[s.id]=e.createConnection(c),r.push(l)):Lt(c)?(c.labelTarget=o[c.labelTarget],l=o[s.id]=e.createLabel(c),r.push(l)):(c.host&&=o[c.host],l=o[s.id]=e.createShape(c),r.push(l))})}),r},So.prototype.createConnection=function(t){return this._elementFactory.createConnection(Vo(t,["id"]))},So.prototype.createLabel=function(t){return this._elementFactory.createLabel(Vo(t,["id"]))},So.prototype.createShape=function(t){return this._elementFactory.createShape(Vo(t,["id"]))},So.prototype.hasRelations=function(t,e,n){return n||=new Set(e),!(he(t)&&(!n.has(t.source)||!n.has(t.target))||Lt(t)&&!n.has(t.labelTarget))},So.prototype.createTree=function(t){var e=this._rules,n=this,o={},r=[],i=new Map,a=jc(t);function s(d,u){return e.allowed("element.copy",{element:d,elements:u})}function c(d,u){var m=i.get(d);if(m){if(m.depth<u){r=l(m,r);var f={element:m.element,depth:u};r.push(f),i.set(d,f)}}else{var h={element:d,depth:u};r.push(h),i.set(d,h)}}function l(d,u){var m=u.indexOf(d);return m!==-1&&u.splice(m,1),u}Hi(a,function(d,u,m){if(Lt(d))return;A(d.labels,function(g){c(g,m)});function h(g){g&&g.length&&A(g,function(v){A(v.labels,function(k){c(k,m)}),c(v,m)})}A([d.attachers,d.incoming,d.outgoing],h),c(d,m);var f=[];return d.children&&(f=d.children.slice()),n._eventBus.fire("copyPaste.createTree",{element:d,children:f}),f}),t=hn(r,function(d){return d.element});var p=new Set(t);return r=hn(r,function(d){return d.descriptor={},n._eventBus.fire("copyPaste.copyElement",{descriptor:d.descriptor,element:d.element,elements:t,elementsSet:p}),d}),r=Uo(r,function(d){return d.descriptor.priority}),t=hn(r,function(d){return d.element}),A(r,function(d){var u=d.depth;n.hasRelations(d.element,t,p)&&s(d.element,t)?(o[u]||(o[u]=[]),o[u].push(d.descriptor)):(GC(d.element,t),p.delete(d.element))}),o};UC={__depends__:[zC,lu,Tl,Ur],__init__:["copyPaste"],copyPaste:["type",So]};Fm=750;vw.$inject=["bpmnFactory","eventBus","moddleCopy"];VC=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing","categoryValue"],qC=["errorRef","escalationRef","messageRef","signalRef","dataObjectRef"];Qc.$inject=["eventBus","bpmnFactory","moddle"],Qc.prototype.copyElement=function(t,e,n,o=!1){n&&!Ct(n)&&(n=[n]),n||=of(t.$descriptor);let r=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:n,sourceElement:t,targetElement:e,clone:o});return r===!1||(Ct(r)&&(n=r),A(n,i=>{let a;Pn(t,i)&&(a=t.get(i));let s=this.copyProperty(a,e,i,o);on(s)&&this._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:e,property:s,propertyName:i})!==!1&&e.set(i,s)})),e},Qc.prototype.copyProperty=function(t,e,n,o=!1){let r=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:e,property:t,propertyName:n,clone:o});if(r===!1)return;if(r)return We(r)&&r.$type&&!r.$parent&&(r.$parent=e),r;let i=this._moddle.getPropertyDescriptor(e,n);if(!i.isReference)return i.isId?t&&this._copyId(t,e,o):Ct(t)?Zn(t,(a,s)=>{let c=this.copyProperty(s,e,n,o);return c?a.concat(c):a},[]):We(t)&&t.$type?this._moddle.getElementDescriptor(t).isGeneric?void 0:(r=this._bpmnFactory.create(t.$type),r.$parent=e,r=this.copyElement(t,r,null,o),r):t},Qc.prototype._copyId=function(t,e,n=!1){if(n)return t;if(!this._moddle.ids.assigned(t))return this._moddle.ids.claim(t,e),t};xw={__depends__:[UC],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",vw],moddleCopy:["type",Qc]},_1=Math.round;rf.$inject=["modeling","eventBus"],rf.prototype.replaceElement=function(t,e,n){if(t.waypoints)return null;var o=this._modeling,r=this._eventBus;r.fire("replace.start",{element:t,attrs:e,hints:n});var i=e.width||t.width,a=e.height||t.height,s=e.x||t.x,c=e.y||t.y,l=_1(s+i/2),p=_1(c+a/2),d=o.replaceShape(t,j({},e,{x:l,y:p,width:i,height:a}),n);return r.fire("replace.end",{element:t,newElement:d,hints:n}),d};kw.$inject=["selection","eventBus"];KC={__init__:["replace","replaceSelectionBehavior"],replaceSelectionBehavior:["type",kw],replace:["type",rf]};XC=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];ww.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules"];_w={__depends__:[xw,KC,Eo],bpmnReplace:["type",ww]},QC=250;$a.$inject=["eventBus"],$a.prototype.registerTool=function(t,e){var n=this._tools;if(!e)throw Error('A tool has to be registered with it\'s "events"');n.push(t),this.bindEvents(t,e)},$a.prototype.isActive=function(t){return t&&this._active===t},$a.prototype.length=function(t){return this._tools.length},$a.prototype.setActive=function(t){var e=this._eventBus;this._active!==t&&(this._active=t,e.fire("tool-manager.update",{tool:t}))},$a.prototype.bindEvents=function(t,e){var n=this._eventBus,o=[];n.on(e.tool+".init",function(r){!r.context.reactivate&&this.isActive(t)?this.setActive(null):this.setActive(t)},this),A(e,function(r){o.push(r+".ended"),o.push(r+".canceled")}),n.on(o,QC,function(r){this._active&&(tR(r)||this.setActive(null))},this)};pu={__depends__:[yi],__init__:["toolManager"],toolManager:["type",$a]};Wm=Math.abs,rR=Math.round,di={x:"width",y:"height"},S1="crosshair",Vi={n:"top",w:"left",s:"bottom",e:"right"},iR=1500,Yp={n:"s",w:"e",s:"n",e:"w"},Xp=20;Qo.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"],Qo.prototype.activateSelection=function(t,e,n){this._dragging.init(t,"spaceTool.selection",{autoActivate:e,cursor:S1,data:{context:{reactivate:n}},trapClick:!1})},Qo.prototype.activateMakeSpace=function(t){this._dragging.init(t,"spaceTool",{autoActivate:!0,cursor:S1,data:{context:{}}})},Qo.prototype.makeSpace=function(t,e,n,o,r){return this._modeling.createSpace(t,e,n,o,r)},Qo.prototype.init=function(t,e){var n=Wm(t.dx)>Wm(t.dy)?"x":"y",o=t["d"+n],r=t[n]-o;if(Wm(o)<5)return!1;o<0&&(o*=-1),Bs(t)&&(o*=-1);var i=eR(n,o),a=this._canvas.getRootElement();!Lc(t)&&t.hover&&(a=t.hover);var s=[...Ss(a),...a.attachers||[]],c=this.calculateAdjustments(s,n,o,r),l=aR(c,n,i,r,this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:i,shapes:c.resizingShapes,start:r}));return j(e,c,{axis:n,direction:i,spaceToolConstraints:l,start:r}),Qd("resize-"+(n==="x"?"ew":"ns")),!0},Qo.prototype.calculateAdjustments=function(t,e,n,o){var r=this._rules,i=[],a=[],s=new Set,c=new Set,l=[],p=[];function d(m){s.has(m)||(s.add(m),i.push(m));var h=m.label;h&&!s.has(h)&&(s.add(h),i.push(h))}function u(m){c.has(m)||(c.add(m),a.push(m))}return A(t,function(m){if(m.parent&&!Lt(m))if(he(m))p.push(m);else{var h=m[e],f=h+m[di[e]];sR(m)&&(n>0&&Tt(m)[e]>o||n<0&&Tt(m)[e]<o)?l.push(m):n>0&&h>o||n<0&&f<o?d(m):h<o&&f>o&&r.allowed("shape.resize",{shape:m})&&u(m)}}),A(i,function(m){var h=m.attachers;h&&A(h,function(f){d(f)})}),A(l,function(m){var h=m.host;(s.has(h)||c.has(h))&&d(m)}),A(p,function(m){var h=m.source,f=m.target,g=m.label;(s.has(h)||c.has(h))&&(s.has(f)||c.has(f))&&g&&d(g)}),{movingShapes:i,resizingShapes:a}},Qo.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();this.activateSelection(t,!!t)},Qo.prototype.isActive=function(){var t=this._dragging.context();return t?/^spaceTool/.test(t.prefix):!1};Gm="djs-dragging",R1="djs-resizing",cR=250,Zp=Math.max;Ew.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];lR={__init__:["spaceToolPreview"],__depends__:[yi,Ur,pu,tc,Tl],spaceTool:["type",Qo],spaceToolPreview:["type",Ew]};xd.$inject=["injector","canvas"],ft(xd,Qo),xd.prototype.calculateAdjustments=function(t,e,n,o){var r=this._canvas.getRootElement(),i=t[0]===r?null:t[0],a=[];i&&(a=ka(Ra(r.children.filter(l=>y(l,"bpmn:Artifact")),en(i))));let s=[...t,...a];var c=Qo.prototype.calculateAdjustments.call(this,s,e,n,o);return c.resizingShapes=c.resizingShapes.filter(function(l){return!(y(l,"bpmn:TextAnnotation")||pR(l)&&(e==="y"&&Ye(l)||e==="x"&&!Ye(l)))}),c};Sw={__depends__:[lR],spaceTool:["type",xd]};Ze.$inject=["eventBus","injector"],Ze.prototype.execute=function(t,e){if(!t)throw Error("command required");this._currentExecution.trigger="execute";let n={command:t,context:e};this._pushAction(n),this._internalExecute(n),this._popAction()},Ze.prototype.canExecute=function(t,e){let n={command:t,context:e},o=this._getHandler(t),r=this._fire(t,"canExecute",n);if(r===void 0){if(!o)return!1;o.canExecute&&(r=o.canExecute(e))}return r},Ze.prototype.clear=function(t){this._stack.length=0,this._stackIdx=-1,t!==!1&&this._fire("changed",{trigger:"clear"})},Ze.prototype.undo=function(){let t=this._getUndoAction(),e;if(t){for(this._currentExecution.trigger="undo",this._pushAction(t);t&&(this._internalUndo(t),e=this._getUndoAction(),e&&e.id===t.id);)t=e;this._popAction()}},Ze.prototype.redo=function(){let t=this._getRedoAction(),e;if(t){for(this._currentExecution.trigger="redo",this._pushAction(t);t&&(this._internalExecute(t,!0),e=this._getRedoAction(),e&&e.id===t.id);)t=e;this._popAction()}},Ze.prototype.register=function(t,e){this._setHandler(t,e)},Ze.prototype.registerHandler=function(t,e){if(!t||!e)throw Error("command and handlerCls must be defined");let n=this._injector.instantiate(e);this.register(t,n)},Ze.prototype.canUndo=function(){return!!this._getUndoAction()},Ze.prototype.canRedo=function(){return!!this._getRedoAction()},Ze.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]},Ze.prototype._getUndoAction=function(){return this._stack[this._stackIdx]},Ze.prototype._internalUndo=function(t){let e=t.command,n=t.context,o=this._getHandler(e);this._atomicDo(()=>{this._fire(e,"revert",t),o.revert&&this._markDirty(o.revert(n)),this._revertedAction(t),this._fire(e,"reverted",t)})},Ze.prototype._fire=function(t,e,n){arguments.length<3&&(n=e,e=null);let o=e?[t+"."+e,e]:[t],r;n=this._eventBus.createEvent(n);for(let i of o)if(r=this._eventBus.fire("commandStack."+i,n),n.cancelBubble)break;return r},Ze.prototype._createId=function(){return this._uid++},Ze.prototype._atomicDo=function(t){let e=this._currentExecution;e.atomic=!0;try{t()}finally{e.atomic=!1}},Ze.prototype._internalExecute=function(t,e){let n=t.command,o=t.context,r=this._getHandler(n);if(!r)throw Error("no command handler registered for <"+n+">");this._pushAction(t),e||(this._fire(n,"preExecute",t),r.preExecute&&r.preExecute(o),this._fire(n,"preExecuted",t)),this._atomicDo(()=>{this._fire(n,"execute",t),r.execute&&this._markDirty(r.execute(o)),this._executedAction(t,e),this._fire(n,"executed",t)}),e||(this._fire(n,"postExecute",t),r.postExecute&&r.postExecute(o),this._fire(n,"postExecuted",t)),this._popAction()},Ze.prototype._pushAction=function(t){let e=this._currentExecution,n=e.actions,o=n[0];if(e.atomic)throw Error("illegal invocation in <execute> or <revert> phase (action: "+t.command+")");t.id||=o&&o.id||this._createId(),n.push(t)},Ze.prototype._popAction=function(){let t=this._currentExecution,e=t.trigger,n=t.actions,o=t.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:im("id",o.reverse())}),o.length=0,this._fire("changed",{trigger:e}),t.trigger=null)},Ze.prototype._markDirty=function(t){let e=this._currentExecution;t&&(t=Ct(t)?t:[t],e.dirty=e.dirty.concat(t))},Ze.prototype._executedAction=function(t,e){let n=++this._stackIdx;e||this._stack.splice(n,this._stack.length,t)},Ze.prototype._revertedAction=function(t){this._stackIdx--},Ze.prototype._getHandler=function(t){return this._handlerMap[t]},Ze.prototype._setHandler=function(t,e){if(!t||!e)throw Error("command and handler required");if(this._handlerMap[t])throw Error("overriding handler for command <"+t+">");this._handlerMap[t]=e};dR={commandStack:["type",Ze]};uR=250,B1=1400;ft(af,J),af.$inject=["injector","eventBus","modeling"];mR={__init__:["labelSupport"],labelSupport:["type",af]},hR=251,M1=1401,D1="attach-ok";ft(sf,J),sf.$inject=["injector","eventBus","canvas","rules","modeling"];vR={__depends__:[Ur],__init__:["attachSupport"],attachSupport:["type",sf]};Zo.$inject=["moddle"],Zo.prototype._needsId=function(t){return Ht(t,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])},Zo.prototype._ensureId=function(t){if(t.id)this._model.ids.claim(t.id,t);else{var e=y(t,"bpmn:Activity")?"Activity":y(t,"bpmn:Event")?"Event":y(t,"bpmn:Gateway")?"Gateway":Ht(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(t.$type||"").replace(/^[^:]*:/g,"");e+="_",!t.id&&this._needsId(t)&&(t.id=this._model.ids.nextPrefixed(e,t))}},Zo.prototype.create=function(t,e){var n=this._model.create(t,e||{});return this._ensureId(n),n},Zo.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},Zo.prototype.createDiShape=function(t,e){return this.create("bpmndi:BPMNShape",j({bpmnElement:t,bounds:this.createDiBounds()},e))},Zo.prototype.createDiBounds=function(t){return this.create("dc:Bounds",t)},Zo.prototype.createDiWaypoints=function(t){var e=this;return hn(t,function(n){return e.createDiWaypoint(n)})},Zo.prototype.createDiWaypoint=function(t){return this.create("dc:Point",po(t,["x","y"]))},Zo.prototype.createDiEdge=function(t,e){return this.create("bpmndi:BPMNEdge",j({bpmnElement:t,waypoint:this.createDiWaypoints([])},e))},Zo.prototype.createDiPlane=function(t,e){return this.create("bpmndi:BPMNPlane",j({bpmnElement:t},e))};xR={width:100,height:80},kR={width:100,height:80},wR={width:50,height:50},_R={width:36,height:36},ER={width:350,height:200},SR={width:100,height:80},TR={width:600,height:250},CR={width:250,height:600},RR={width:400,height:60},BR={width:60,height:400},AR={width:400,height:100},MR={width:36,height:50},DR={width:50,height:50},PR={width:100,height:40},jR={width:300,height:300};ft(Yi,zr),Yi.$inject=["bpmnFactory","moddle"],Yi.prototype._baseCreate=zr.prototype.create,Yi.prototype.create=function(t,e){if(t==="label"){var n=e.di||this._bpmnFactory.createDiLabel();return this._baseCreate(t,j({type:"label",di:n},oi,e))}return this.createElement(t,e)},Yi.prototype.createElement=function(t,e){e=j({},e||{});var n,o=e.businessObject,r=e.di;if(!o){if(!e.type)throw Error("no shape type specified");o=this._bpmnFactory.create(e.type)}if(!zR(r)){var i=j({},r||{},{id:o.id+"_di"});r=t==="root"?this._bpmnFactory.createDiPlane(o,i):t==="connection"?this._bpmnFactory.createDiEdge(o,i):this._bpmnFactory.createDiShape(o,i)}y(o,"bpmn:Group")&&(e=j({isFrame:!0},e)),e=OR(o,e,["processRef","isInterrupting","associationDirection","isForCompensation"]),e.isExpanded&&(e=lf(r,e,"isExpanded")),Ht(o,["bpmn:Lane","bpmn:Participant"])&&(e=lf(r,e,"isHorizontal")),y(o,"bpmn:SubProcess")&&(e.collapsed=!Ut(o,r)),y(o,"bpmn:ExclusiveGateway")&&(Pn(r,"isMarkerVisible")?r.isMarkerVisible===void 0&&(r.isMarkerVisible=!1):r.isMarkerVisible=!0),on(e.triggeredByEvent)&&(o.triggeredByEvent=e.triggeredByEvent,delete e.triggeredByEvent),on(e.cancelActivity)&&(o.cancelActivity=e.cancelActivity,delete e.cancelActivity);var a,s;return e.eventDefinitionType&&(a=o.get("eventDefinitions")||[],s=this._bpmnFactory.create(e.eventDefinitionType,e.eventDefinitionAttrs),e.eventDefinitionType==="bpmn:ConditionalEventDefinition"&&(s.condition=this._bpmnFactory.create("bpmn:FormalExpression")),a.push(s),s.$parent=o,o.eventDefinitions=a,delete e.eventDefinitionType),n=this.getDefaultSize(o,r),e=j({id:o.id},n,e,{businessObject:o,di:r}),this._baseCreate(t,e)},Yi.prototype.getDefaultSize=function(t,e){return $R(t,e)},Yi.prototype.createParticipantShape=function(t){return We(t)||(t={isExpanded:t}),t=j({type:"bpmn:Participant"},t||{}),t.isExpanded!==!1&&(t.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(t)};kd.$inject=["modeling","canvas"],kd.prototype.preExecute=function(t){var e=this._modeling,n=t.elements,o=t.alignment;A(n,function(r){var i={x:0,y:0};on(o.left)?i.x=o.left-r.x:on(o.right)?i.x=o.right-r.width-r.x:on(o.center)?i.x=o.center-Math.round(r.width/2)-r.x:on(o.top)?i.y=o.top-r.y:on(o.bottom)?i.y=o.bottom-r.height-r.y:on(o.middle)&&(i.y=o.middle-Math.round(r.height/2)-r.y),e.moveElements([r],i,r.parent)})},kd.prototype.postExecute=function(t){};wd.$inject=["modeling"],wd.prototype.preExecute=function(t){var e=t.source;if(!e)throw Error("source required");var n=t.target||e.parent,o=t.shape,r=t.hints||{};o=t.shape=this._modeling.createShape(o,t.position,n,{attach:r.attach}),t.shape=o},wd.prototype.postExecute=function(t){var e=t.hints||{};LR(t.source,t.shape)||(e.connectionTarget===t.source?this._modeling.connect(t.shape,t.source,t.connection):this._modeling.connect(t.source,t.shape,t.connection))};_d.$inject=["canvas","layouter"],_d.prototype.execute=function(t){var e=t.connection,n=t.source,o=t.target,r=t.parent,i=t.parentIndex,a=t.hints;if(!n||!o)throw Error("source and target required");if(!r)throw Error("parent required");return e.source=n,e.target=o,e.waypoints||=this._layouter.layoutConnection(e,a),this._canvas.addConnection(e,r,i),e},_d.prototype.revert=function(t){var e=t.connection;return this._canvas.removeConnection(e),e.source=null,e.target=null,e};Jp=Math.round;pf.$inject=["modeling"],pf.prototype.preExecute=function(t){var e=t.elements,n=t.parent,o=t.parentIndex,r=t.position,i=t.hints,a=this._modeling;A(e,function(d){Mt(d.x)||(d.x=0),Mt(d.y)||(d.y=0)});var s=Ft(e,function(d){return!d.hidden}),c=en(s);A(e,function(d){he(d)&&(d.waypoints=hn(d.waypoints,function(u){return{x:Jp(u.x-c.x-c.width/2+r.x),y:Jp(u.y-c.y-c.height/2+r.y)}})),j(d,{x:Jp(d.x-c.x-c.width/2+r.x),y:Jp(d.y-c.y-c.height/2+r.y)})});var l=new Set(jc(e)),p={};A(e,function(d){if(he(d))p[d.id]=Mt(o)?a.createConnection(p[d.source.id],p[d.target.id],o,d,d.parent||n,i):a.createConnection(p[d.source.id],p[d.target.id],d,d.parent||n,i);else{var u=j({},i);l.has(d)||(u.autoResize=!1),Lt(d)&&(u=Vo(u,["attach"])),p[d.id]=Mt(o)?a.createShape(d,po(d,["x","y","width","height"]),d.parent||n,o,u):a.createShape(d,po(d,["x","y","width","height"]),d.parent||n,u)}}),t.elements=ka(p)};P1=Math.round;ia.$inject=["canvas"],ia.prototype.execute=function(t){var e=t.shape,n=t.position,o=t.parent,r=t.parentIndex;if(!o)throw Error("parent required");if(!n)throw Error("position required");return n.width===void 0?j(e,{x:n.x-P1(e.width/2),y:n.y-P1(e.height/2)}):j(e,n),this._canvas.addShape(e,o,r),e},ia.prototype.revert=function(t){var e=t.shape;return this._canvas.removeShape(e),e};ft(_l,ia),_l.$inject=["canvas"];NR=ia.prototype.execute;_l.prototype.execute=function(t){var e=t.shape;return HR(e),e.labelTarget=t.labelTarget,NR.call(this,t)};IR=ia.prototype.revert;_l.prototype.revert=function(t){return t.shape.labelTarget=null,IR.call(this,t)};tl.$inject=["canvas","modeling"],tl.prototype.preExecute=function(t){var e=this._modeling,n=t.connection;ra(n.incoming,function(o){e.removeConnection(o,{nested:!0})}),ra(n.outgoing,function(o){e.removeConnection(o,{nested:!0})})},tl.prototype.execute=function(t){var e=t.connection,n=e.parent;return t.parent=n,t.parentIndex=gp(n.children,e),t.source=e.source,t.target=e.target,this._canvas.removeConnection(e),e.source=null,e.target=null,e},tl.prototype.revert=function(t){var e=t.connection,n=t.parent,o=t.parentIndex;return e.source=t.source,e.target=t.target,Ge(n.children,e,o),this._canvas.addConnection(e,n),e};df.$inject=["modeling","elementRegistry"],df.prototype.postExecute=function(t){var e=this._modeling,n=this._elementRegistry,o=t.elements;A(o,function(r){n.get(r.id)&&(r.waypoints?e.removeConnection(r):e.removeShape(r))})};el.$inject=["canvas","modeling"],el.prototype.preExecute=function(t){var e=this._modeling,n=t.shape;ra(n.incoming,function(o){e.removeConnection(o,{nested:!0})}),ra(n.outgoing,function(o){e.removeConnection(o,{nested:!0})}),ra(n.children,function(o){he(o)?e.removeConnection(o,{nested:!0}):e.removeShape(o,{nested:!0})})},el.prototype.execute=function(t){var e=this._canvas,n=t.shape,o=n.parent;return t.oldParent=o,t.oldParentIndex=gp(o.children,n),e.removeShape(n),n},el.prototype.revert=function(t){var e=this._canvas,n=t.shape,o=t.oldParent,r=t.oldParentIndex;return Ge(o.children,n,r),e.addShape(n,o),n};Kd.$inject=["modeling"];j1={x:"y",y:"x"};Kd.prototype.preExecute=function(t){var e=this._modeling,n=t.groups,o=t.axis,r=t.dimension;function i(g,v){g.range.min=Math.min(v[o],g.range.min),g.range.max=Math.max(v[o]+v[r],g.range.max)}function a(g){return g[o]+g[r]/2}function s(g){return g.length-1}function c(g){return g.max-g.min}function l(g,v){var k={y:0};k[o]=g-a(v),k[o]&&(k[j1[o]]=0,e.moveElements([v],k,v.parent))}var p=n[0],d=s(n),u=n[d],m,h,f=0;A(n,function(g,v){var k,_,w;g.elements.length<2?v&&v!==n.length-1&&(i(g,g.elements[0]),f+=c(g.range)):(k=Uo(g.elements,o),_=k[0],v===d&&(_=k[s(k)]),w=a(_),g.range=null,A(k,function(T){l(w,T),g.range===null?g.range={min:T[o],max:T[o]+T[r]}:i(g,T)}),v&&v!==n.length-1&&(f+=c(g.range)))}),h=Math.abs(u.range.min-p.range.max),m=Math.round((h-f)/(n.length-1)),!(m<n.length-1)&&A(n,function(g,v){var k={},_;g!==p&&g!==u&&(_=n[v-1],g.range.max=0,A(g.elements,function(w,T){k[j1[o]]=0,k[o]=_.range.max-w[o]+m,g.range.min!==w[o]&&(k[o]+=w[o]-g.range.min),k[o]&&e.moveElements([w],k,w.parent),g.range.max=Math.max(w[o]+w[r],T?g.range.max:0)}))})},Kd.prototype.postExecute=function(t){};Ed.$inject=["layouter","canvas"],Ed.prototype.execute=function(t){var e=t.connection,n=e.waypoints;return j(t,{oldWaypoints:n}),e.waypoints=this._layouter.layoutConnection(e,t.hints),e},Ed.prototype.revert=function(t){var e=t.connection;return e.waypoints=t.oldWaypoints,e};uf.prototype.execute=function(t){var e=t.connection,n=t.delta,o=t.newParent||e.parent,r=t.newParentIndex,i=e.parent;return t.oldParent=i,t.oldParentIndex=Ne(i.children,e),Ge(o.children,e,r),e.parent=o,A(e.waypoints,function(a){a.x+=n.x,a.y+=n.y,a.original&&(a.original.x+=n.x,a.original.y+=n.y)}),e},uf.prototype.revert=function(t){var e=t.connection,n=e.parent,o=t.oldParent,r=t.oldParentIndex,i=t.delta;return Ne(n.children,e),Ge(o.children,e,r),e.parent=o,A(e.waypoints,function(a){a.x-=i.x,a.y-=i.y,a.original&&(a.original.x-=i.x,a.original.y-=i.y)}),e};mf.prototype.add=function(t,e){return this.addAll([t],e)},mf.prototype.addAll=function(t,e){var n=yb(t,!!e,this);return j(this,n),this};xl.prototype.moveRecursive=function(t,e,n){return t?this.moveClosure(this.getClosure(t),e,n):[]},xl.prototype.moveClosure=function(t,e,n,o,r){var i=this._modeling,a=t.allShapes,s=t.allConnections,c=t.enclosedConnections,l=t.topLevel,p=!1;r&&r.parent===n&&(p=!0),A(a,function(d){i.moveShape(d,e,l[d.id]&&!p&&n,{recurse:!1,layout:!1})}),A(s,function(d){var u=!!a[d.source.id],m=!!a[d.target.id];c[d.id]&&u&&m?i.moveConnection(d,e,l[d.id]&&!p&&n):i.layoutConnection(d,{connectionStart:u&&$f(d,d.source,e),connectionEnd:m&&Of(d,d.target,e)})})},xl.prototype.getClosure=function(t){return new mf().addAll(t,!0)};Sd.$inject=["modeling"],Sd.prototype.preExecute=function(t){t.closure=this._helper.getClosure(t.shapes)},Sd.prototype.postExecute=function(t){var e=t.hints,n;e&&e.primaryShape&&(n=e.primaryShape,e.oldParent=n.parent),this._helper.moveClosure(t.closure,t.delta,t.newParent,t.newHost,n)};Oa.$inject=["modeling"],Oa.prototype.execute=function(t){var e=t.shape,n=t.delta,o=t.newParent||e.parent,r=t.newParentIndex,i=e.parent;return t.oldBounds=po(e,["x","y","width","height"]),t.oldParent=i,t.oldParentIndex=Ne(i.children,e),Ge(o.children,e,r),j(e,{parent:o,x:e.x+n.x,y:e.y+n.y}),e},Oa.prototype.postExecute=function(t){var e=t.shape,n=t.delta,o=t.hints,r=this._modeling;o.layout!==!1&&(A(e.incoming,function(i){r.layoutConnection(i,{connectionEnd:Of(i,e,n)})}),A(e.outgoing,function(i){r.layoutConnection(i,{connectionStart:$f(i,e,n)})})),o.recurse!==!1&&this.moveChildren(t)},Oa.prototype.revert=function(t){var e=t.shape,n=t.oldParent,o=t.oldParentIndex,r=t.delta;return Ge(n.children,e,o),j(e,{parent:n,x:e.x-r.x,y:e.y-r.y}),e},Oa.prototype.moveChildren=function(t){var e=t.delta,n=t.shape;this._helper.moveRecursive(n.children,e,null)},Oa.prototype.getNewParent=function(t){return t.newParent||t.shape.parent};nl.$inject=["modeling"],nl.prototype.execute=function(t){var e=t.newSource,n=t.newTarget,o=t.connection,r=t.dockingOrPoints;if(!e&&!n)throw Error("newSource or newTarget required");return Ct(r)&&(t.oldWaypoints=o.waypoints,o.waypoints=r),e&&(t.oldSource=o.source,o.source=e),n&&(t.oldTarget=o.target,o.target=n),o},nl.prototype.postExecute=function(t){var e=t.connection,n=t.newSource,o=t.newTarget,r=t.dockingOrPoints,i=t.hints||{},a={};i.connectionStart&&(a.connectionStart=i.connectionStart),i.connectionEnd&&(a.connectionEnd=i.connectionEnd),i.layoutConnection!==!1&&(n&&(!o||i.docking==="source")&&(a.connectionStart=a.connectionStart||$1(Ct(r)?r[0]:r)),o&&(!n||i.docking==="target")&&(a.connectionEnd=a.connectionEnd||$1(Ct(r)?r[r.length-1]:r)),i.newWaypoints&&(a.waypoints=i.newWaypoints),this._modeling.layoutConnection(e,a))},nl.prototype.revert=function(t){var e=t.oldSource,n=t.oldTarget,o=t.oldWaypoints,r=t.connection;return e&&(r.source=e),n&&(r.target=n),o&&(r.waypoints=o),r};ui.$inject=["modeling","rules"],ui.prototype.preExecute=function(t){var e=this,n=this._modeling,o=this._rules,r=t.oldShape,i=t.newData,a=t.hints||{},s;function c(h,f,g){return o.allowed("connection.reconnect",{connection:g,source:h,target:f})}var l={x:i.x,y:i.y},p={x:r.x,y:r.y,width:r.width,height:r.height};s=t.newShape=t.newShape||e.createShape(i,l,r.parent,a),r.host&&n.updateAttachment(s,r.host);var d;a.moveChildren!==!1&&(d=r.children.slice(),n.moveElements(d,{x:0,y:0},s,a));var u=r.incoming.slice(),m=r.outgoing.slice();A(u,function(h){var f=h.source;c(f,s,h)&&e.reconnectEnd(h,s,au(h,s,p),a)}),A(m,function(h){var f=h.target;c(s,f,h)&&e.reconnectStart(h,s,iu(h,s,p),a)})},ui.prototype.postExecute=function(t){var e=t.oldShape;this._modeling.removeShape(e)},ui.prototype.execute=function(t){},ui.prototype.revert=function(t){},ui.prototype.createShape=function(t,e,n,o){return this._modeling.createShape(t,e,n,o)},ui.prototype.reconnectStart=function(t,e,n,o){this._modeling.reconnectStart(t,e,n,o)},ui.prototype.reconnectEnd=function(t,e,n,o){this._modeling.reconnectEnd(t,e,n,o)};ol.$inject=["modeling"],ol.prototype.execute=function(t){var e=t.shape,n=t.newBounds,o=t.minBounds;if(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)throw Error("newBounds must have {x, y, width, height} properties");if(o&&(n.width<o.width||n.height<o.height))throw Error("width and height cannot be less than minimum height and width");if(!o&&n.width<10||n.height<10)throw Error("width and height cannot be less than 10px");return t.oldBounds={width:e.width,height:e.height,x:e.x,y:e.y},j(e,{width:n.width,height:n.height,x:n.x,y:n.y}),e},ol.prototype.postExecute=function(t){var e=this._modeling,n=t.shape,o=t.oldBounds;(t.hints||{}).layout!==!1&&(A(n.incoming,function(r){e.layoutConnection(r,{connectionEnd:au(r,n,o)})}),A(n.outgoing,function(r){e.layoutConnection(r,{connectionStart:iu(r,n,o)})}))},ol.prototype.revert=function(t){var e=t.shape,n=t.oldBounds;return j(e,{width:n.width,height:n.height,x:n.x,y:n.y}),e};Xi.$inject=["modeling"],Xi.prototype.preExecute=function(t){var e=t.delta,n=t.direction,o=t.movingShapes,r=t.resizingShapes,i=t.start,a={};this.moveShapes(o,e),A(r,function(s){a[s.id]=WR(s)}),this.resizeShapes(r,e,n),this.updateConnectionWaypoints(nR(o,r),e,n,i,o,r,a)},Xi.prototype.execute=function(){},Xi.prototype.revert=function(){},Xi.prototype.moveShapes=function(t,e){var n=this;A(t,function(o){n._modeling.moveShape(o,e,null,{autoResize:!1,layout:!1,recurse:!1})})},Xi.prototype.resizeShapes=function(t,e,n){var o=this;A(t,function(r){var i=oR(r,n,e);o._modeling.resizeShape(r,i,null,{attachSupport:!1,autoResize:!1,layout:!1})})},Xi.prototype.updateConnectionWaypoints=function(t,e,n,o,r,i,a){var s=this,c=new Set(r),l=new Set(i);A(t,function(p){var d=p.source,u=p.target,m=FR(p),h=Tw(n),f={},g=c.has(d)||l.has(d),v=c.has(u)||l.has(u);g&&v?(m=hn(m,function(k){return z1(k,o,n)&&(k[h]=k[h]+e[h]),k.original&&z1(k.original,o,n)&&(k.original[h]=k.original[h]+e[h]),k}),s._modeling.updateWaypoints(p,m,{labelBehavior:!1})):(g||v)&&(c.has(d)?f.connectionStart=$f(p,d,e):c.has(u)?f.connectionEnd=Of(p,u,e):l.has(d)?f.connectionStart=iu(p,d,a[d.id]):l.has(u)&&(f.connectionEnd=au(p,u,a[u.id])),s._modeling.layoutConnection(p,f))})};Td.$inject=["modeling"],Td.prototype.execute=function(t){var e=t.shape,n=e.children;t.oldChildrenVisibility=Cw(n),e.collapsed=!e.collapsed;var o=Rw(n,e.collapsed);return[e].concat(o)},Td.prototype.revert=function(t){var e=t.shape,n=t.oldChildrenVisibility,o=e.children,r=Bw(o,n);return e.collapsed=!e.collapsed,[e].concat(r)};Cd.$inject=["modeling"],Cd.prototype.execute=function(t){var e=t.shape,n=t.newHost,o=e.host;return t.oldHost=o,t.attacherIdx=L1(o,e),N1(n,e),e.host=n,e},Cd.prototype.revert=function(t){var e=t.shape,n=t.newHost,o=t.oldHost,r=t.attacherIdx;return e.host=o,L1(n,e),N1(o,e,r),e};hf.prototype.execute=function(t){var e=t.connection,n=t.newWaypoints;return t.oldWaypoints=e.waypoints,e.waypoints=n,e},hf.prototype.revert=function(t){var e=t.connection;return e.waypoints=t.oldWaypoints,e};Me.$inject=["eventBus","elementFactory","commandStack"],Me.prototype.getHandlers=function(){return{"shape.append":wd,"shape.create":ia,"shape.delete":el,"shape.move":Oa,"shape.resize":ol,"shape.replace":ui,"shape.toggleCollapse":Td,spaceTool:Xi,"label.create":_l,"connection.create":_d,"connection.delete":tl,"connection.move":uf,"connection.layout":Ed,"connection.updateWaypoints":hf,"connection.reconnect":nl,"elements.create":pf,"elements.move":Sd,"elements.delete":df,"elements.distribute":Kd,"elements.align":kd,"element.updateAttachment":Cd}},Me.prototype.registerHandlers=function(t){A(this.getHandlers(),function(e,n){t.registerHandler(n,e)})},Me.prototype.moveShape=function(t,e,n,o,r){typeof o=="object"&&(r=o,o=null);var i={shape:t,delta:e,newParent:n,newParentIndex:o,hints:r||{}};this._commandStack.execute("shape.move",i)},Me.prototype.updateAttachment=function(t,e){var n={shape:t,newHost:e};this._commandStack.execute("element.updateAttachment",n)},Me.prototype.moveElements=function(t,e,n,o){o||={};var r=o.attach,i=n,a;r===!0?(a=n,i=n.parent):r===!1&&(a=null);var s={shapes:t,delta:e,newParent:i,newHost:a,hints:o};this._commandStack.execute("elements.move",s)},Me.prototype.moveConnection=function(t,e,n,o,r){typeof o=="object"&&(r=o,o=void 0);var i={connection:t,delta:e,newParent:n,newParentIndex:o,hints:r||{}};this._commandStack.execute("connection.move",i)},Me.prototype.layoutConnection=function(t,e){var n={connection:t,hints:e||{}};this._commandStack.execute("connection.layout",n)},Me.prototype.createConnection=function(t,e,n,o,r,i){typeof n=="object"&&(i=r,r=o,o=n,n=void 0),o=this._create("connection",o);var a={source:t,target:e,parent:r,parentIndex:n,connection:o,hints:i};return this._commandStack.execute("connection.create",a),a.connection},Me.prototype.createShape=function(t,e,n,o,r){typeof o!="number"&&(r=o,o=void 0),r||={};var i=r.attach,a,s;t=this._create("shape",t),i?(a=n.parent,s=n):a=n;var c={position:e,shape:t,parent:a,parentIndex:o,host:s,hints:r};return this._commandStack.execute("shape.create",c),c.shape},Me.prototype.createElements=function(t,e,n,o,r){Ct(t)||(t=[t]),typeof o!="number"&&(r=o,o=void 0),r||={};var i={position:e,elements:t,parent:n,parentIndex:o,hints:r};return this._commandStack.execute("elements.create",i),i.elements},Me.prototype.createLabel=function(t,e,n,o){n=this._create("label",n);var r={labelTarget:t,position:e,parent:o||t.parent,shape:n};return this._commandStack.execute("label.create",r),r.shape},Me.prototype.appendShape=function(t,e,n,o,r){r||={},e=this._create("shape",e);var i={source:t,position:n,target:o,shape:e,connection:r.connection,connectionParent:r.connectionParent,hints:r};return this._commandStack.execute("shape.append",i),i.shape},Me.prototype.removeElements=function(t){var e={elements:t};this._commandStack.execute("elements.delete",e)},Me.prototype.distributeElements=function(t,e,n){var o={groups:t,axis:e,dimension:n};this._commandStack.execute("elements.distribute",o)},Me.prototype.removeShape=function(t,e){var n={shape:t,hints:e||{}};this._commandStack.execute("shape.delete",n)},Me.prototype.removeConnection=function(t,e){var n={connection:t,hints:e||{}};this._commandStack.execute("connection.delete",n)},Me.prototype.replaceShape=function(t,e,n){var o={oldShape:t,newData:e,hints:n||{}};return this._commandStack.execute("shape.replace",o),o.newShape},Me.prototype.alignElements=function(t,e){var n={elements:t,alignment:e};this._commandStack.execute("elements.align",n)},Me.prototype.resizeShape=function(t,e,n,o){var r={shape:t,newBounds:e,minBounds:n,hints:o};this._commandStack.execute("shape.resize",r)},Me.prototype.createSpace=function(t,e,n,o,r){var i={delta:n,direction:o,movingShapes:t,resizingShapes:e,start:r};this._commandStack.execute("spaceTool",i)},Me.prototype.updateWaypoints=function(t,e,n){var o={connection:t,newWaypoints:e,hints:n||{}};this._commandStack.execute("connection.updateWaypoints",o)},Me.prototype.reconnect=function(t,e,n,o,r){var i={connection:t,newSource:e,newTarget:n,dockingOrPoints:o,hints:r||{}};this._commandStack.execute("connection.reconnect",i)},Me.prototype.reconnectStart=function(t,e,n,o){o||={},this.reconnect(t,e,t.target,n,j(o,{docking:"source"}))},Me.prototype.reconnectEnd=function(t,e,n,o){o||={},this.reconnect(t,t.source,e,n,j(o,{docking:"target"}))},Me.prototype.connect=function(t,e,n,o){return this.createConnection(t,e,n||{},t.parent,o)},Me.prototype._create=function(t,e){return Cb(e)?e:this._elementFactory.create(t,e)},Me.prototype.toggleCollapse=function(t,e){var n={shape:t,hints:e||{}};this._commandStack.execute("shape.toggleCollapse",n)};rl.$inject=["elementRegistry"],rl.prototype.execute=function(t){var e=t.element,n=t.moddleElement,o=t.properties;if(!n)throw Error("<moddleElement> required");var r=t.changed||this._getVisualReferences(n).concat(e),i=t.oldProperties||GR(n,_c(o));return I1(n,o),t.oldProperties=i,t.changed=r,r},rl.prototype.revert=function(t){var e=t.oldProperties,n=t.moddleElement,o=t.changed;return I1(n,e),o},rl.prototype._getVisualReferences=function(t){var e=this._elementRegistry;return y(t,"bpmn:DataObject")?UR(t,e):[]};Uc="default",fi="id",Aw="di",VR={width:0,height:0};il.$inject=["elementRegistry","moddle","modeling","textRenderer"],il.prototype.execute=function(t){var e=t.element,n=[e];if(!e)throw Error("element required");var o=this._elementRegistry,r=this._moddle.ids,i=e.businessObject,a=ZR(t.properties),s=t.oldProperties||qR(e,a);return H1(a,i)&&(r.unclaim(i[fi]),o.updateId(e,a[fi]),r.claim(a[fi],i)),Uc in a&&(a[Uc]&&n.push(o.get(a[Uc].id)),i[Uc]&&n.push(o.get(i[Uc].id))),F1(e,a),t.oldProperties=s,t.changed=n,n},il.prototype.postExecute=function(t){var e=t.element.label,n=e&&et(e).name;if(n){var o=this._textRenderer.getExternalLabelBounds(e,n);this._modeling.resizeShape(e,o,VR)}},il.prototype.revert=function(t){var e=t.element,n=t.properties,o=t.oldProperties,r=e.businessObject,i=this._elementRegistry,a=this._moddle.ids;return F1(e,o),H1(n,r)&&(a.unclaim(n[fi]),i.updateId(e,o[fi]),a.claim(o[fi],r)),t.changed};XR=["default"];Rd.$inject=["canvas","modeling"],Rd.prototype.execute=function(t){var e=this._canvas,n=t.newRoot,o=n.businessObject,r=e.getRootElement(),i=r.businessObject,a=i.$parent,s=jt(r);return e.setRootElement(n),e.removeRootElement(r),Ge(a.rootElements,o),o.$parent=a,Ne(a.rootElements,i),i.$parent=null,r.di=null,s.bpmnElement=o,n.di=s,t.oldRoot=r,[]},Rd.prototype.revert=function(t){var e=this._canvas,n=t.newRoot,o=n.businessObject,r=t.oldRoot,i=r.businessObject,a=o.$parent,s=jt(n);return e.setRootElement(r),e.removeRootElement(n),Ne(a.rootElements,o),o.$parent=null,Ge(a.rootElements,i),i.$parent=a,n.di=null,s.bpmnElement=i,r.di=s,[]};ff.$inject=["modeling","spaceTool"],ff.prototype.preExecute=function(t){var e=this._spaceTool,n=this._modeling,o=t.shape,r=t.location,i=nr(o),a=i===o,s=a?o:o.parent,c=aa(s),l=Ye(o);if(l?r==="left"?r="top":r==="right"&&(r="bottom"):r==="top"?r="left":r==="bottom"&&(r="right"),!c.length){var p=l?{x:o.x+30,y:o.y,width:o.width-30,height:o.height}:{x:o.x,y:o.y+30,width:o.width,height:o.height-30};n.createShape({type:"bpmn:Lane",isHorizontal:l},p,s)}var d=[];Hi(i,function(w){return d.push(w),w.label&&d.push(w.label),w===o?[]:Ft(w.children,function(T){return T!==o})});var u,m,h,f,g;r==="top"?(u=-120,m=o.y,h=m+10,f="n",g="y"):r==="left"?(u=-120,m=o.x,h=m+10,f="w",g="x"):r==="bottom"?(u=120,m=o.y+o.height,h=m-10,f="s",g="y"):r==="right"&&(u=120,m=o.x+o.width,h=m-10,f="e",g="x");var v=e.calculateAdjustments(d,g,u,h),k=l?{x:0,y:u}:{x:u,y:0};e.makeSpace(v.movingShapes,v.resizingShapes,k,f,h);var _=l?{x:o.x+(a?30:0),y:m-(r==="top"?120:0),width:o.width-(a?30:0),height:120}:{x:m-(r==="left"?120:0),y:o.y+(a?30:0),width:120,height:o.height-(a?30:0)};t.newLane=n.createShape({type:"bpmn:Lane",isHorizontal:l},_,s)};gf.$inject=["modeling"],gf.prototype.preExecute=function(t){var e=this._modeling,n=t.shape,o=t.count,r=aa(n),i=r.length;if(i>o)throw Error("more than <".concat(o,"> child lanes"));for(var a=Ye(n),s=a?n.height:n.width,c=Math.round(s/o),l,p,d,u=0;u<o;u++)l=u===o-1?s-c*u:c,p=a?{x:n.x+30,y:n.y+u*c,width:n.width-30,height:l}:{x:n.x+u*c,y:n.y+30,width:l,height:n.height-30},u<i?e.resizeShape(r[u],p):(d={type:"bpmn:Lane",isHorizontal:a},e.createShape(d,p,n))};al.$inject=["modeling","spaceTool"],al.prototype.preExecute=function(t){var e=t.shape,n=t.newBounds;t.balanced===!1?this.resizeSpace(e,n):this.resizeBalanced(e,n)},al.prototype.resizeBalanced=function(t,e){var n=this._modeling,o=u7(t,e);n.resizeShape(t,e),o.forEach(function(r){n.resizeShape(r.shape,r.newBounds)})},al.prototype.resizeSpace=function(t,e){var n=this._spaceTool,o=_t(t),r=$k(_t(e),o),i=nr(t),a=[],s=[];Hi(i,function(m){return a.push(m),(y(m,"bpmn:Lane")||y(m,"bpmn:Participant"))&&s.push(m),m.children});var c,l,p,d,u;(r.bottom||r.top)&&(c=r.bottom||r.top,l=t.y+(r.bottom?t.height:0)+(r.bottom?-10:10),p=r.bottom?"s":"n",d=r.top>0||r.bottom<0?-c:c,u=n.calculateAdjustments(a,"y",d,l),n.makeSpace(u.movingShapes,u.resizingShapes,{x:0,y:c},p)),(r.left||r.right)&&(c=r.right||r.left,l=t.x+(r.right?t.width:0)+(r.right?-10:100),p=r.right?"e":"w",d=r.left>0||r.right<0?-c:c,u=n.calculateAdjustments(s,"x",d,l),n.makeSpace(u.movingShapes,u.resizingShapes,{x:c,y:0},p))};Vc="flowNodeRef",Um="lanes";Bd.prototype._computeUpdates=function(t,e){var n=[],o=[],r={},i=[];function a(p,d){var u=_t(d),m={x:p.x+p.width/2,y:p.y+p.height/2};return m.x>u.left&&m.x<u.right&&m.y>u.top&&m.y<u.bottom}function s(p){n.indexOf(p)===-1&&(i.push(p),n.push(p))}function c(p){var d=nr(p);return r[d.id]||(r[d.id]=ru(d)),r[d.id]}function l(p){return p.parent?c(p).filter(function(d){return a(p,d)}).map(function(d){return d.businessObject}):[]}return e.forEach(function(p){var d=nr(p);d&&n.indexOf(d)===-1&&(d.children.filter(function(u){return y(u,"bpmn:FlowNode")}).forEach(s),n.push(d))}),t.forEach(s),i.forEach(function(p){var d=p.businessObject,u=d.get(Um).slice(),m=l(p);o.push({flowNode:d,remove:u,add:m})}),e.forEach(function(p){var d=p.businessObject;p.parent||d.get(Vc).forEach(function(u){o.push({flowNode:u,remove:[d],add:[]})})}),o},Bd.prototype.execute=function(t){var e=t.updates;return e||=t.updates=this._computeUpdates(t.flowNodeShapes,t.laneShapes),e.forEach(function(n){var o=n.flowNode,r=o.get(Um);n.remove.forEach(function(i){Ne(r,i),Ne(i.get(Vc),o)}),n.add.forEach(function(i){Ge(r,i),Ge(i.get(Vc),o)})}),[]},Bd.prototype.revert=function(t){return t.updates.forEach(function(e){var n=e.flowNode,o=n.get(Um);e.add.forEach(function(r){Ne(o,r),Ne(r.get(Vc),n)}),e.remove.forEach(function(r){Ge(o,r),Ge(r.get(Vc),n)})}),[]};Ff="categoryValueRef";sl.$inject=["bpmnFactory","elementRegistry"],sl.prototype._computeUpdates=function(t,e){var n=this._elementRegistry,o=this._bpmnFactory,r=new Map,i=[],a=new Map;function s(v,k,_){if(k){var w=a.get(v);w||(w={},a.set(v,w)),!(_&&w.present)&&(_||!w.past)&&(_?w.present={categoryValue:k,root:Vm(v)}:w.past={categoryValue:k})}}function c(v){r.set(v,et(v))}function l(){n.filter(function(v){return y(v,"bpmn:FlowElement")&&!Lt(v)&&v.parent}).forEach(c)}function p(v){var k=et(v),_=k.get("categoryValueRef");return _||(_=jk(o,k),i.push(JR(v,_))),_}function d(v){return v.reduce(function(k,_){var w=Vm(_),T=k.get(w);return T||(T=[],k.set(w,T)),T.push(_),k},new Map)}t=Array.from(t||[]);var u=d(t);e.length&&l(),t.forEach(c),n.filter(function(v){return y(v,"bpmn:Group")&&!Lt(v)&&v.parent}).forEach(function(v){var k=et(v).get("categoryValueRef");if(!k){var _=Vm(v),w=u.get(_)||[],T=Ra(w,v);Object.keys(T).length>0&&(k=p(v))}s(v,k,!0)}),e.forEach(function(v){s(v.groupShape,v.categoryValue,!1)}),i.length&&l();var m=Array.from(r.keys()),h=Array.from(a.values()).reduce(function(v,k){return k.present&&v.add(k.present.categoryValue),k.past&&v.add(k.past.categoryValue),v},new Set),f=new Map,g=d(m);return a.forEach(function(v,k){var _=v.present;if(_){var w=g.get(_.root)||[],T=Ra(w,k);w.forEach(function(C){if(T[C.id]){var B=f.get(C);B||(B=new Set,f.set(C,B)),B.add(_.categoryValue)}})}}),{flowElements:m.reduce(function(v,k){var _=r.get(k),w=_.get(Ff),T=new Set(w),C=f.get(k)||new Set,B=Array.from(C).filter(function(M){return!T.has(M)}),D=w.filter(function(M){return h.has(M)&&!C.has(M)});return(B.length||D.length)&&v.push({businessObject:_,categoryValuesToAdd:B,categoryValuesToRemove:D}),v},[]),groups:i}},sl.prototype.execute=function(t){var e=t.updates;return e||=t.updates=this._computeUpdates(t.affectedFlowElements,t.affectedGroupEntries),QR(e.groups),eB(e.flowElements),[]},sl.prototype.revert=function(t){var e=t.updates;return nB(e.flowElements),tB(e.groups),[]};Ad.$inject=["moddle"],Ad.prototype.execute=function(t){var e=this._moddle.ids,n=t.id,o=t.element;return t.claiming?e.claim(n,o):e.unclaim(n),[]},Ad.prototype.revert=function(t){var e=this._moddle.ids,n=t.id,o=t.element;return t.claiming?e.unclaim(n):e.claim(n,o),[]};oB={fill:void 0,stroke:void 0};yf.$inject=["commandStack"],yf.prototype.postExecute=function(t){var e=t.elements,n=t.colors||oB,o=this,r={};"fill"in n&&j(r,{"background-color":this._normalizeColor(n.fill)}),"stroke"in n&&j(r,{"border-color":this._normalizeColor(n.stroke)}),A(e,function(i){var a=he(i)?po(r,["border-color"]):r,s=jt(i);if(iB(a),Lt(i)){if(!s||!y(s.label,"bpmndi:BPMNLabel"))return;o._commandStack.execute("element.updateModdleProperties",{element:i,moddleElement:s.label,properties:{color:r["border-color"]}})}else{if(!Ht(s,["bpmndi:BPMNEdge","bpmndi:BPMNShape"]))return;o._commandStack.execute("element.updateProperties",{element:i,properties:{di:a}})}})};aB={width:0,height:0};Mw.$inject=["modeling","textRenderer","bpmnFactory"];ft(zn,Me),zn.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],zn.prototype.getHandlers=function(){var t=Me.prototype.getHandlers.call(this);return t["element.updateModdleProperties"]=rl,t["element.updateProperties"]=il,t["canvas.updateRoot"]=Rd,t["lane.add"]=ff,t["lane.resize"]=al,t["lane.split"]=gf,t["lane.updateRefs"]=Bd,t["group.updateRefs"]=sl,t["id.updateClaim"]=Ad,t["element.setColor"]=yf,t["element.updateLabel"]=Mw,t},zn.prototype.updateLabel=function(t,e,n,o){this._commandStack.execute("element.updateLabel",{element:t,newLabel:e,newBounds:n,hints:o||{}})},zn.prototype.connect=function(t,e,n,o){var r=this._bpmnRules;if(n||=r.canConnect(t,e),n)return this.createConnection(t,e,n,t.parent,o)},zn.prototype.updateModdleProperties=function(t,e,n){this._commandStack.execute("element.updateModdleProperties",{element:t,moddleElement:e,properties:n})},zn.prototype.updateProperties=function(t,e){this._commandStack.execute("element.updateProperties",{element:t,properties:e})},zn.prototype.resizeLane=function(t,e,n){this._commandStack.execute("lane.resize",{shape:t,newBounds:e,balanced:n})},zn.prototype.addLane=function(t,e){var n={shape:t,location:e};return this._commandStack.execute("lane.add",n),n.newLane},zn.prototype.splitLane=function(t,e){this._commandStack.execute("lane.split",{shape:t,count:e})},zn.prototype.makeCollaboration=function(){var t=this._create("root",{type:"bpmn:Collaboration"}),e={newRoot:t};return this._commandStack.execute("canvas.updateRoot",e),t},zn.prototype.makeProcess=function(){var t=this._create("root",{type:"bpmn:Process"}),e={newRoot:t};return this._commandStack.execute("canvas.updateRoot",e),t},zn.prototype.updateLaneRefs=function(t,e){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:t,laneShapes:e})},zn.prototype.updateCategoryValueRefs=function(t,e){this._commandStack.execute("group.updateRefs",{affectedFlowElements:t,affectedGroupEntries:e})},zn.prototype.claimId=function(t,e){this._commandStack.execute("id.updateClaim",{id:t,element:e,claiming:!0})},zn.prototype.unclaimId=function(t,e){this._commandStack.execute("id.updateClaim",{id:t,element:e})},zn.prototype.setColor=function(t,e){t.length||(t=[t]),this._commandStack.execute("element.setColor",{elements:t,colors:e})};Dw.prototype.layoutConnection=function(t,e){return e||={},[e.connectionStart||Tt(e.source||t.source),e.connectionEnd||Tt(e.target||t.target)]};Qp=20,sB=5,Yd=Math.round,G1=20,cB={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};SB=-10,TB=40,CB={default:["h:h"],fromGateway:["v:h"],toGateway:["h:v"],loop:{fromTop:["t:r"],fromRight:["r:b"],fromLeft:["l:t"],fromBottom:["b:l"]},boundaryLoop:{alternateHorizontalSide:"b",alternateVerticalSide:"l",default:"v"},messageFlow:["straight","v:v"],subProcess:["straight","h:h"],isHorizontal:!0},RB={default:["v:v"],fromGateway:["h:v"],toGateway:["v:h"],loop:{fromTop:["t:l"],fromRight:["r:t"],fromLeft:["l:b"],fromBottom:["b:r"]},boundaryLoop:{alternateHorizontalSide:"t",alternateVerticalSide:"r",default:"h"},messageFlow:["straight","h:h"],subProcess:["straight","v:v"],isHorizontal:!1},Uf={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},cl={top:"t",right:"r",bottom:"b",left:"l"};ft(Xd,Dw),Xd.prototype.layoutConnection=function(t,e){e||={};var n=e.source||t.source,o=e.target||t.target,r=e.waypoints||t.waypoints,i=e.connectionStart,a=e.connectionEnd,s=this._elementRegistry,c,l;if(i||=K1(r&&r[0],n),a||=K1(r&&r[r.length-1],o),(y(t,"bpmn:Association")||y(t,"bpmn:DataAssociation"))&&r&&!Y1(n,o))return[i].concat(r.slice(1,-1),[a]);var p=_m(n,s)?CB:RB;return y(t,"bpmn:MessageFlow")?c=AB(n,o,p):(y(t,"bpmn:SequenceFlow")||Y1(n,o))&&(c=n===o?{preferredLayouts:OB(n,t,p)}:y(n,"bpmn:BoundaryEvent")?{preferredLayouts:zB(n,o,a,p)}:El(n)||El(o)?{preferredLayouts:p.subProcess,preserveDocking:DB(n)}:y(n,"bpmn:Gateway")?{preferredLayouts:p.fromGateway}:y(o,"bpmn:Gateway")?{preferredLayouts:p.toGateway}:{preferredLayouts:p.default}),c&&(c=j(c,e),l=$w(yB(n,o,i,a,r,c))),l||[i,a]};Xd.$inject=["elementRegistry"];Zi.$inject=["elementRegistry","graphicsFactory"],Zi.prototype.getCroppedWaypoints=function(t,e,n){e||=t.source,n||=t.target;var o=this.getDockingPoint(t,e,!0),r=this.getDockingPoint(t,n),i=t.waypoints.slice(o.idx+1,r.idx);return i.unshift(J1(o)),i.push(J1(r)),i},Zi.prototype.getDockingPoint=function(t,e,n){var o=t.waypoints,r=n?0:o.length-1,i=o[r];return{point:i,actual:this._getIntersection(e,t,n)||i,idx:r}},Zi.prototype._getIntersection=function(t,e,n){var o=this._getShapePath(t),r=this._getConnectionPath(e);return ms(o,r,n)},Zi.prototype._getConnectionPath=function(t){return this._graphicsFactory.getConnectionPath(t)},Zi.prototype._getShapePath=function(t){return this._graphicsFactory.getShapePath(t)},Zi.prototype._getGfx=function(t){return this._elementRegistry.getGraphics(t)};zw={__init__:["modeling","bpmnUpdater"],__depends__:[yC,PC,$C,OC,_w,dR,mR,vR,Eo,jp,Sw],bpmnFactory:["type",Zo],bpmnUpdater:["type",$n],elementFactory:["type",Yi],modeling:["type",zn],layouter:["type",Xd],connectionDocking:["type",Zi]},Q1=Math.round;Md.prototype.create=function(t,e,n){let o=this._complexPreview,r=this._connectionDocking,i=this._elementFactory,a=this._eventBus,s=this._layouter,c=this._rules,l=i.createShape(j({type:e},n)),p=a.fire("autoPlace",{source:t,shape:l});if(!p)return;j(l,{x:p.x-Q1(l.width/2),y:p.y-Q1(l.height/2)});let d=c.allowed("connection.create",{source:t,target:l,hints:{targetParent:t.parent}}),u=null;d&&(u=i.createConnection(d),u.waypoints=s.layoutConnection(u,{source:t,target:l}),u.waypoints=r.getCroppedWaypoints(u,t,l)),o.create({created:[l,u].filter(m=>!Ri(m))})},Md.prototype.cleanUp=function(){this._complexPreview.cleanUp()},Md.$inject=["complexPreview","connectionDocking","elementFactory","eventBus","layouter","rules"];HB={__depends__:[Mf,I8,zw],__init__:["appendPreview"],appendPreview:["type",Md]},tx=Math.min,ex=Math.max;wr.prototype.create=function(t,e,n,o){var r=this,i=this.parent,a=this.content,s=this.container;o=this.options=o||{},e=this.style=e||{};var c=po(e,["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);j(i.style,{width:t.width+"px",height:t.height+"px",maxWidth:t.maxWidth+"px",maxHeight:t.maxHeight+"px",minWidth:t.minWidth+"px",minHeight:t.minHeight+"px",left:t.x+"px",top:t.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},c);var l=po(e,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return j(a.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},l),o.centerVertically&&j(a.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},l),a.innerText=n,$t.bind(a,"keydown",this.keyHandler),$t.bind(a,"mousedown",qc),$t.bind(a,"paste",r.handlePaste),$t.bind(a,"focusout",this.focusoutHandler),o.autoResize&&$t.bind(a,"input",this.autoResize),o.resizable&&this.resizable(e),s.appendChild(i),this.setSelection(a.lastChild,a.lastChild&&a.lastChild.length),i},wr.prototype.handlePaste=function(t){var e=this.options,n=this.style;t.preventDefault();var o=t.clipboardData?t.clipboardData.getData("text/plain"):window.clipboardData.getData("Text");if(this.insertText(o),e.autoResize){var r=this.autoResize(n);r&&this.resizeHandler(r)}},wr.prototype.insertText=function(t){t=GB(t),!document.execCommand("insertText",!1,t)&&this._insertTextIE(t)},wr.prototype._insertTextIE=function(t){var e=this.getSelection(),n=e.startContainer,o=e.endContainer,r=e.startOffset,i=e.endOffset,a=e.commonAncestorContainer,s=WB(a.childNodes),c,l;if(FB(a)){var p=n.textContent;n.textContent=p.substring(0,r)+t+p.substring(i),c=n,l=r+t.length}else if(n===this.content&&o===this.content){var d=document.createTextNode(t);this.content.insertBefore(d,s[r]),c=d,l=d.textContent.length}else{var u=s.indexOf(n),m=s.indexOf(o);s.forEach(function(h,f){f===u?h.textContent=n.textContent.substring(0,r)+t+o.textContent.substring(i):f>u&&f<=m&&kr(h)}),c=n,l=r+t.length}c&&l!==void 0&&setTimeout(function(){self.setSelection(c,l)})},wr.prototype.autoResize=function(){var t=this.parent,e=this.content,n=parseInt(this.style.fontSize)||12;if(e.scrollHeight>t.offsetHeight||e.scrollHeight<t.offsetHeight-n){var o=t.getBoundingClientRect(),r=e.scrollHeight;t.style.height=r+"px",this.resizeHandler({width:o.width,height:o.height,dx:0,dy:r-o.height})}},wr.prototype.resizable=function(){var t=this,e=this.parent,n=this.resizeHandle,o=parseInt(this.style.minWidth)||0,r=parseInt(this.style.minHeight)||0,i=parseInt(this.style.maxWidth)||1/0,a=parseInt(this.style.maxHeight)||1/0;if(!n){n=this.resizeHandle=Ae('<div class="djs-direct-editing-resize-handle"></div>');var s,c,l,p,d=function(h){Km(h),qc(h),s=h.clientX,c=h.clientY;var f=e.getBoundingClientRect();l=f.width,p=f.height,$t.bind(document,"mousemove",u),$t.bind(document,"mouseup",m)},u=function(h){Km(h),qc(h);var f=tx(ex(l+h.clientX-s,o),i),g=tx(ex(p+h.clientY-c,r),a);e.style.width=f+"px",e.style.height=g+"px",t.resizeHandler({width:l,height:p,dx:h.clientX-s,dy:h.clientY-c})},m=function(h){Km(h),qc(h),$t.unbind(document,"mousemove",u,!1),$t.unbind(document,"mouseup",m,!1)};$t.bind(n,"mousedown",d)}j(n.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),e.appendChild(n)},wr.prototype.destroy=function(){var t=this.parent,e=this.content,n=this.resizeHandle;e.innerText="",t.removeAttribute("style"),e.removeAttribute("style"),$t.unbind(e,"keydown",this.keyHandler),$t.unbind(e,"mousedown",qc),$t.unbind(e,"input",this.autoResize),$t.unbind(e,"paste",this.handlePaste),$t.unbind(e,"focusout",this.focusoutHandler),n&&(n.removeAttribute("style"),kr(n)),kr(t)},wr.prototype.getValue=function(){return this.content.innerText.trim()},wr.prototype.getSelection=function(){return window.getSelection().getRangeAt(0)},wr.prototype.setSelection=function(t,e){var n=document.createRange();t===null?n.selectNodeContents(this.content):(n.setStart(t,e),n.setEnd(t,e));var o=window.getSelection();o.removeAllRanges(),o.addRange(n)};To.$inject=["eventBus","canvas"],To.prototype.registerProvider=function(t){this._providers.push(t)},To.prototype.isActive=function(t){return!(!this._active||t&&this._active.element!==t)},To.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},To.prototype._fire=function(t,e){this._eventBus.fire("directEditing."+t,e||{active:this._active})},To.prototype.close=function(){this._fire("deactivate"),this._cleanup(),this._canvas.restoreFocus&&this._canvas.restoreFocus()},To.prototype._cleanup=function(){this._active&&(this._textbox.destroy(),this._active=null,this.resizable=void 0)},To.prototype.complete=function(){var t=this._active;if(t){var e,n=t.context.bounds,o=this.$textbox.getBoundingClientRect(),r=this.getValue();(r!==t.context.text||o.height!==n.height||o.width!==n.width)&&(e=this._textbox.container.getBoundingClientRect(),t.provider.update(t.element,r,t.context.text,{x:o.left-e.left,y:o.top-e.top,width:o.width,height:o.height})),this._fire("complete"),this.close()}},To.prototype.getValue=function(){return this._textbox.getValue()},To.prototype._handleKey=function(t){t.stopPropagation();var e=t.keyCode||t.charCode;if(e===27)return t.preventDefault(),this.cancel();if(e===13&&!t.shiftKey)return t.preventDefault(),this.complete()},To.prototype._handleResize=function(t){this._fire("resize",t)},To.prototype._handleFocusout=function(t){t.relatedTarget&&this._textbox.parent.contains(t.relatedTarget)||this.complete()},To.prototype.activate=function(t){if(this.isActive()&&this.cancel(),this._eventBus.fire("directEditing.activate.allowed",{element:t})===!1)return!1;var e,n=ve(this._providers,function(o){return(e=o.activate(t))?o:null});return e&&(this.$textbox=this._textbox.create(e.bounds,e.style,e.text,e.options),this._active={element:t,context:e,provider:n},e.options&&e.options.resizable&&(this.resizable=!0),this._fire("activate")),!!e};Lw={__depends__:[Nc],__init__:["directEditing"],directEditing:["type",To]};VB={task:{label:"Task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},"user-task":{label:"User task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},"service-task":{label:"Service task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},"send-task":{label:"Send task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},"receive-task":{label:"Receive task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},"manual-task":{label:"Manual task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},"rule-task":{label:"Business rule task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},"script-task":{label:"Script task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},"call-activity":{label:"Call activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},transaction:{label:"Transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},"event-subprocess":{label:"Event sub-process",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},"collapsed-subprocess":{label:"Sub-process (collapsed)",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},"expanded-subprocess":{label:"Sub-process (expanded)",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},"collapsed-ad-hoc-subprocess":{label:"Ad-hoc sub-process (collapsed)",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:AdHocSubProcess",isExpanded:!1}},"expanded-ad-hoc-subprocess":{label:"Ad-hoc sub-process (expanded)",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:AdHocSubProcess",isExpanded:!0}},"exclusive-gateway":{label:"Exclusive gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},"parallel-gateway":{label:"Parallel gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},"inclusive-gateway":{label:"Inclusive gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},"complex-gateway":{label:"Complex gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},"event-based-gateway":{label:"Event-based gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}},"data-store-reference":{label:"Data store reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}},"data-object-reference":{label:"Data object reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}},"expanded-pool":{label:"Expanded pool/participant",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},"collapsed-pool":{label:"Empty pool/participant",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}},"none-start-event":{label:"Start event",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},"none-intermediate-throwing":{label:"Intermediate throw event",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},"none-boundary-event":{label:"Boundary event",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:BoundaryEvent"}},"none-end-event":{label:"End event",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},"message-start":{label:"Message start event",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!0}},"timer-start":{label:"Timer start event",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!0}},"conditional-start":{label:"Conditional start event",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!0}},"signal-start":{label:"Signal start event",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!0}},"error-start":{label:"Error start event",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition",isInterrupting:!0}},"escalation-start":{label:"Escalation start event",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!0}},"compensation-start":{label:"Compensation start event",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition",isInterrupting:!0}},"non-interrupting-message-start":{label:"Message start event (non-interrupting)",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},"non-interrupting-timer-start":{label:"Timer start event (non-interrupting)",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},"non-interrupting-conditional-start":{label:"Conditional start event (non-interrupting)",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},"non-interrupting-signal-start":{label:"Signal start event (non-interrupting)",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},"non-interrupting-escalation-start":{label:"Escalation start event (non-interrupting)",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}},"message-intermediate-catch":{label:"Message intermediate catch event",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},"message-intermediate-throw":{label:"Message intermediate throw event",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},"timer-intermediate-catch":{label:"Timer intermediate catch event",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},"escalation-intermediate-throw":{label:"Escalation intermediate throw event",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},"conditional-intermediate-catch":{label:"Conditional intermediate catch event",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},"link-intermediate-catch":{label:"Link intermediate catch event",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},"link-intermediate-throw":{label:"Link intermediate throw event",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},"compensation-intermediate-throw":{label:"Compensation intermediate throw event",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},"signal-intermediate-catch":{label:"Signal intermediate catch event",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},"signal-intermediate-throw":{label:"Signal intermediate throw event",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},"message-boundary":{label:"Message boundary event",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!0}},"timer-boundary":{label:"Timer boundary event",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!0}},"escalation-boundary":{label:"Escalation boundary event",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!0}},"conditional-boundary":{label:"Conditional boundary event",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!0}},"error-boundary":{label:"Error boundary event",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition",cancelActivity:!0}},"cancel-boundary":{label:"Cancel boundary event",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition",cancelActivity:!0}},"signal-boundary":{label:"Signal boundary event",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!0}},"compensation-boundary":{label:"Compensation boundary event",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition",cancelActivity:!0}},"non-interrupting-message-boundary":{label:"Message boundary event (non-interrupting)",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},"non-interrupting-timer-boundary":{label:"Timer boundary event (non-interrupting)",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},"non-interrupting-escalation-boundary":{label:"Escalation boundary event (non-interrupting)",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},"non-interrupting-conditional-boundary":{label:"Conditional boundary event (non-interrupting)",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},"non-interrupting-signal-boundary":{label:"Signal boundary event (non-interrupting)",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}},"message-end":{label:"Message end event",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},"escalation-end":{label:"Escalation end event",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},"error-end":{label:"Error end event",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},"cancel-end":{label:"Cancel end event",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},"compensation-end":{label:"Compensation end event",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},"signal-end":{label:"Signal end event",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},"terminate-end":{label:"Terminate end event",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}};qB=[tt("none-start-event",{actionName:"replace-with-none-start"}),tt("none-intermediate-throwing"),tt("none-end-event",{actionName:"replace-with-none-end"}),tt("message-start"),tt("timer-start"),tt("conditional-start"),tt("signal-start")],KB=[tt("none-start-event",{actionName:"replace-with-none-start"}),tt("none-intermediate-throwing"),tt("none-end-event",{actionName:"replace-with-none-end"})],YB=[tt("none-start-event",{actionName:"replace-with-none-start"}),tt("none-intermediate-throwing",{actionName:"replace-with-none-intermediate-throw"}),tt("none-end-event",{actionName:"replace-with-none-end"}),tt("message-intermediate-catch"),tt("message-intermediate-throw"),tt("timer-intermediate-catch"),tt("escalation-intermediate-throw"),tt("conditional-intermediate-catch"),tt("link-intermediate-catch"),tt("link-intermediate-throw"),tt("compensation-intermediate-throw"),tt("signal-intermediate-catch"),tt("signal-intermediate-throw")],XB=[tt("none-start-event",{actionName:"replace-with-none-start"}),tt("none-intermediate-throwing",{actionName:"replace-with-none-intermediate-throw"}),tt("none-end-event",{actionName:"replace-with-none-end"}),tt("message-end"),tt("escalation-end"),tt("error-end"),tt("cancel-end"),tt("compensation-end"),tt("signal-end"),tt("terminate-end")],ZB=[tt("exclusive-gateway"),tt("parallel-gateway"),tt("inclusive-gateway"),tt("complex-gateway"),tt("event-based-gateway")],JB=[tt("transaction"),tt("event-subprocess"),tt("expanded-ad-hoc-subprocess",{actionName:"replace-with-ad-hoc-subprocess",label:"Ad-hoc sub-process"}),tt("collapsed-subprocess")],QB=[tt("expanded-subprocess",{actionName:"replace-with-subprocess",label:"Sub-process"}),tt("transaction"),tt("event-subprocess"),tt("collapsed-ad-hoc-subprocess")],Nw=[tt("transaction"),tt("expanded-subprocess",{actionName:"replace-with-subprocess",label:"Sub-process"}),tt("expanded-ad-hoc-subprocess",{actionName:"replace-with-ad-hoc-subprocess",label:"Ad-hoc sub-process"}),tt("event-subprocess")],t9=Nw,nx=[tt("task"),tt("user-task"),tt("service-task"),tt("send-task"),tt("receive-task"),tt("manual-task"),tt("rule-task"),tt("script-task"),tt("call-activity"),tt("collapsed-subprocess"),tt("expanded-subprocess"),tt("collapsed-ad-hoc-subprocess"),tt("expanded-ad-hoc-subprocess",{actionName:"replace-with-ad-hoc-subprocess"})],e9=[tt("data-store-reference")],n9=[tt("data-object-reference")],o9=[tt("message-boundary"),tt("timer-boundary"),tt("escalation-boundary"),tt("conditional-boundary"),tt("error-boundary"),tt("cancel-boundary"),tt("signal-boundary"),tt("compensation-boundary"),tt("non-interrupting-message-boundary"),tt("non-interrupting-timer-boundary"),tt("non-interrupting-escalation-boundary"),tt("non-interrupting-conditional-boundary"),tt("non-interrupting-signal-boundary")],r9=[tt("message-start"),tt("timer-start"),tt("conditional-start"),tt("signal-start"),tt("error-start"),tt("escalation-start"),tt("compensation-start"),tt("non-interrupting-message-start"),tt("non-interrupting-timer-start"),tt("non-interrupting-conditional-start"),tt("non-interrupting-signal-start"),tt("non-interrupting-escalation-start")],i9=[{label:"Sequence flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],a9=[tt("expanded-pool"),tt("collapsed-pool",{label:function(t){var e="Empty pool/participant";return t.children&&t.children.length&&(e+=" (removes content)"),e}})],s9={"bpmn:MessageEventDefinition":[tt("message-start"),tt("message-intermediate-catch"),tt("message-intermediate-throw"),tt("message-end")],"bpmn:TimerEventDefinition":[tt("timer-start"),tt("timer-intermediate-catch")],"bpmn:ConditionalEventDefinition":[tt("conditional-start"),tt("conditional-intermediate-catch")],"bpmn:SignalEventDefinition":[tt("signal-start"),tt("signal-intermediate-catch"),tt("signal-intermediate-throw"),tt("signal-end")],"bpmn:ErrorEventDefinition":[tt("error-start"),tt("error-end")],"bpmn:EscalationEventDefinition":[tt("escalation-start"),tt("escalation-intermediate-throw"),tt("escalation-end")],"bpmn:CompensateEventDefinition":[tt("compensation-start"),tt("compensation-intermediate-throw"),tt("compensation-end")]},ox={"start-event-non-interrupting":'\n <svg viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg">\n <g transform="translate(0 995.64)">\n <path d="m1899 28.357c21.545 567.43-598.38 1023.5-1133.6 835.92-548.09-147.21-801.57-873.95-463.59-1330 302.62-480.3 1071.7-507.54 1407.6-49.847 122.14 153.12 190.07 348.07 189.59 543.91z" fill="none" stroke="currentColor" stroke-dasharray="418.310422, 361.2328165" stroke-linecap="round" stroke-width="100"/>\n </g>\n </svg>',"intermediate-event-non-interrupting":'\n <svg viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg">\n <g transform="translate(0 995.64)" fill="none" stroke="currentColor" stroke-linecap="round">\n <circle cx="1024" cy="28.357" r="875" stroke-dasharray="418.310422, 361.2328165" stroke-width="100"/>\n <circle cx="1024" cy="28.357" r="685" stroke-dasharray="348.31044857,261.23283643" stroke-dashoffset="500" stroke-width="100"/>\n </g>\n </svg>'};Jo.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate","moddleCopy"],Jo.prototype._register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},Jo.prototype.getPopupMenuEntries=function(t){var e=t.businessObject,n=this._rules,o=[],r,i=[];if(Ct(t)||!n.allowed("shape.replace",{element:t}))return{};var a=UB(t);return y(e,"bpmn:DataObjectReference")?this._createEntries(t,e9):y(e,"bpmn:DataStoreReference")&&!y(t.parent,"bpmn:Collaboration")?this._createEntries(t,n9):(y(e,"bpmn:Event")&&!y(e,"bpmn:BoundaryEvent")&&(r=e.get("eventDefinitions")[0]?.$type,o=s9[r]||[],!Rn(e.$parent)&&y(e.$parent,"bpmn:SubProcess")&&(o=Ft(o,function(s){return s.target.type!=="bpmn:StartEvent"}))),y(e,"bpmn:StartEvent")&&!y(e.$parent,"bpmn:SubProcess")?(i=Ft(qB.concat(o),a),this._createEntries(t,i)):y(e,"bpmn:Participant")?(i=Ft(a9,function(s){return Ut(t)!==s.target.isExpanded}),this._createEntries(t,i)):y(e,"bpmn:StartEvent")&&Rn(e.$parent)?(i=Ft(r9.concat(o),function(s){var c=s.target.isInterrupting!==!1,l=e.isInterrupting===c;return a(s)||!a(s)&&!l}),this._createEntries(t,i)):y(e,"bpmn:StartEvent")&&!Rn(e.$parent)&&y(e.$parent,"bpmn:SubProcess")?(i=Ft(KB.concat(o),a),this._createEntries(t,i)):y(e,"bpmn:EndEvent")?(i=Ft(XB.concat(o),function(s){return s.target.eventDefinitionType=="bpmn:CancelEventDefinition"&&!y(e.$parent,"bpmn:Transaction")?!1:a(s)}),this._createEntries(t,i)):y(e,"bpmn:BoundaryEvent")?(i=Ft(o9,function(s){var c=s.target;if(c.eventDefinitionType=="bpmn:CancelEventDefinition"&&!y(e.attachedToRef,"bpmn:Transaction"))return!1;var l=c.cancelActivity!==!1,p=e.cancelActivity==l;return a(s)||!a(s)&&!p}),this._createEntries(t,i)):y(e,"bpmn:IntermediateCatchEvent")||y(e,"bpmn:IntermediateThrowEvent")?(i=Ft(YB.concat(o),a),this._createEntries(t,i)):y(e,"bpmn:Gateway")?(i=Ft(ZB,a),this._createEntries(t,i)):y(e,"bpmn:Transaction")?(i=Ft(Nw,a),this._createEntries(t,i)):Rn(e)&&Ut(t)?(i=Ft(t9,a),this._createEntries(t,i)):y(e,"bpmn:AdHocSubProcess")&&Ut(t)?(i=Ft(QB,a),this._createEntries(t,i)):y(e,"bpmn:SubProcess")&&Ut(t)?(i=Ft(JB,a),this._createEntries(t,i)):y(e,"bpmn:SubProcess")&&!Ut(t)?(i=Ft(nx,function(s){return s.target.type===t.type==(s.target.isExpanded===!0)}),this._createEntries(t,i)):y(e,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(t,i9):y(e,"bpmn:FlowNode")?(i=Ft(nx,a),this._createEntries(t,i)):{})},Jo.prototype.getPopupMenuHeaderEntries=function(t){var e={};return y(t,"bpmn:Activity")&&!Rn(t)&&(e={...e,...this._getLoopCharacteristicsHeaderEntries(t)}),y(t,"bpmn:DataObjectReference")&&(e={...e,...this._getCollectionHeaderEntries(t)}),y(t,"bpmn:Participant")&&(e={...e,...this._getParticipantMultiplicityHeaderEntries(t)}),qk(t)&&(e={...e,...this._getNonInterruptingHeaderEntries(t)}),e},Jo.prototype._createEntries=function(t,e){var n={},o=this;return A(e,function(r){n[r.actionName]=o._createEntry(r,t)}),n},Jo.prototype._createSequenceFlowEntries=function(t,e){var n=et(t),o={},r=this._modeling,i=this._moddle,a=this;return A(e,function(s){switch(s.actionName){case"replace-with-default-flow":n.sourceRef.default!==n&&(y(n.sourceRef,"bpmn:ExclusiveGateway")||y(n.sourceRef,"bpmn:InclusiveGateway")||y(n.sourceRef,"bpmn:ComplexGateway")||y(n.sourceRef,"bpmn:Activity"))&&(o={...o,[s.actionName]:a._createEntry(s,t,function(){r.updateProperties(t.source,{default:n})})});break;case"replace-with-conditional-flow":!n.conditionExpression&&y(n.sourceRef,"bpmn:Activity")&&(o={...o,[s.actionName]:a._createEntry(s,t,function(){var c=i.create("bpmn:FormalExpression",{body:""});r.updateProperties(t,{conditionExpression:c})})});break;default:y(n.sourceRef,"bpmn:Activity")&&n.conditionExpression&&(o={...o,[s.actionName]:a._createEntry(s,t,function(){r.updateProperties(t,{conditionExpression:void 0})})}),(y(n.sourceRef,"bpmn:ExclusiveGateway")||y(n.sourceRef,"bpmn:InclusiveGateway")||y(n.sourceRef,"bpmn:ComplexGateway")||y(n.sourceRef,"bpmn:Activity"))&&n.sourceRef.default===n&&(o={...o,[s.actionName]:a._createEntry(s,t,function(){r.updateProperties(t.source,{default:void 0})})})}}),o},Jo.prototype._createEntry=function(t,e,n){var o=this._translate,r=this._bpmnReplace.replaceElement,i=function(){return r(e,t.target)},a=t.label;return a&&typeof a=="function"&&(a=a(e)),n||=i,{label:o(a),className:t.className,action:n}},Jo.prototype._getLoopCharacteristicsHeaderEntries=function(t){var e=this,n=this._translate;function o(c,l){if(l.active)e._modeling.updateProperties(t,{loopCharacteristics:void 0});else{var p=t.businessObject.get("loopCharacteristics");p&&y(p,l.options.loopCharacteristics)?e._modeling.updateModdleProperties(t,p,{isSequential:l.options.isSequential}):(p=e._moddle.create(l.options.loopCharacteristics,{isSequential:l.options.isSequential}),e._modeling.updateProperties(t,{loopCharacteristics:p}))}}var r=et(t).loopCharacteristics,i,a,s;return r&&(i=r.isSequential,a=r.isSequential===void 0,s=r.isSequential!==void 0&&!r.isSequential),{"toggle-parallel-mi":{className:"bpmn-icon-parallel-mi-marker",title:n("Parallel multi-instance"),active:s,action:o,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},"toggle-sequential-mi":{className:"bpmn-icon-sequential-mi-marker",title:n("Sequential multi-instance"),active:i,action:o,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},"toggle-loop":{className:"bpmn-icon-loop-marker",title:n("Loop"),active:a,action:o,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}}},Jo.prototype._getCollectionHeaderEntries=function(t){var e=this,n=this._translate,o=t.businessObject.dataObjectRef;if(!o)return{};function r(a,s){e._modeling.updateModdleProperties(t,o,{isCollection:!s.active})}var i=o.isCollection;return{"toggle-is-collection":{className:"bpmn-icon-parallel-mi-marker",title:n("Collection"),active:i,action:r}}},Jo.prototype._getParticipantMultiplicityHeaderEntries=function(t){var e=this,n=this._bpmnFactory,o=this._translate;function r(a,s){var c=s.active,l;c||(l=n.create("bpmn:ParticipantMultiplicity")),e._modeling.updateProperties(t,{participantMultiplicity:l})}var i=t.businessObject.participantMultiplicity;return{"toggle-participant-multiplicity":{className:"bpmn-icon-parallel-mi-marker",title:o("Participant multiplicity"),active:!!i,action:r}}},Jo.prototype._getNonInterruptingHeaderEntries=function(t){let e=this._translate,n=et(t),o=this,r=Kk(t),i=y(t,"bpmn:BoundaryEvent")?ox["intermediate-event-non-interrupting"]:ox["start-event-non-interrupting"],a=!n[r];return{"toggle-non-interrupting":{imageHtml:i,title:e("Toggle non-interrupting"),active:a,action:function(){o._modeling.updateProperties(t,{[r]:!!a})}}}};c9={__depends__:[Rf,_w,Mf],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",Jo]};ll.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate","appendPreview"],ll.prototype.getMultiElementContextPadEntries=function(t){var e=this._modeling,n={};return this._isDeleteAllowed(t)&&j(n,{delete:{group:"edit",className:"bpmn-icon-trash",title:this._translate("Delete"),action:{click:function(o,r){e.removeElements(r.slice())}}}}),n},ll.prototype._isDeleteAllowed=function(t){var e=this._rules.allowed("elements.delete",{elements:t});return Ct(e)?Ar(t,n=>e.includes(n)):e},ll.prototype.getContextPadEntries=function(t){var e=this._contextPad,n=this._modeling,o=this._elementFactory,r=this._connect,i=this._create,a=this._popupMenu,s=this._autoPlace,c=this._translate,l=this._appendPreview,p={};if(t.type==="label")return this._isDeleteAllowed([t])&&j(p,h()),p;var d=t.businessObject;function u(_,w){r.start(_,w)}function m(_,w){n.removeElements([w])}function h(){return{delete:{group:"edit",className:"bpmn-icon-trash",title:c("Delete"),action:{click:m}}}}function f(_){var w=5,T=e.getPad(_).html.getBoundingClientRect();return{x:T.left,y:T.bottom+w}}function g(_,w,T,C){function B(D,M){var N=o.createShape(j({type:_},C));i.start(D,N,{source:M})}return{group:"model",className:w,title:T,action:{dragstart:B,click:s?function(D,M){var N=o.createShape(j({type:_},C));s.append(M,N)}:B,hover:s?function(D,M){return l.create(M,_,C),()=>{l.cleanUp()}}:null}}}function v(_){return function(w,T){n.splitLane(T,_),e.open(T,!0)}}if(Ht(d,["bpmn:Lane","bpmn:Participant"])&&Ut(t)){var k=aa(t);j(p,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:c("Add lane above"),action:{click:function(_,w){n.addLane(w,"top")}}}}),k.length<2&&((Ye(t)?t.height>=120:t.width>=120)&&j(p,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:c("Divide into two lanes"),action:{click:v(2)}}}),(Ye(t)?t.height>=180:t.width>=180)&&j(p,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:c("Divide into three lanes"),action:{click:v(3)}}})),j(p,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:c("Add lane below"),action:{click:function(_,w){n.addLane(w,"bottom")}}}})}return y(d,"bpmn:FlowNode")&&(y(d,"bpmn:EventBasedGateway")?j(p,{"append.receive-task":g("bpmn:ReceiveTask","bpmn-icon-receive-task",c("Append receive task")),"append.message-intermediate-event":g("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",c("Append message intermediate catch event"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":g("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",c("Append timer intermediate catch event"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":g("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",c("Append conditional intermediate catch event"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":g("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",c("Append signal intermediate catch event"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):rx(d,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?j(p,{"append.compensation-activity":g("bpmn:Task","bpmn-icon-task",c("Append compensation activity"),{isForCompensation:!0})}):!y(d,"bpmn:EndEvent")&&!d.isForCompensation&&!rx(d,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")&&!Rn(d)&&j(p,{"append.end-event":g("bpmn:EndEvent","bpmn-icon-end-event-none",c("Append end event")),"append.gateway":g("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",c("Append gateway")),"append.append-task":g("bpmn:Task","bpmn-icon-task",c("Append task")),"append.intermediate-event":g("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",c("Append intermediate/boundary event"))})),a.isEmpty(t,"bpmn-replace")||j(p,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:c("Change element"),action:{click:function(_,w){var T=j(f(w),{cursor:{x:_.x,y:_.y}});a.open(w,"bpmn-replace",T,{title:c("Change element"),width:"var(--bpmn-replace-popup-width, 300px)",search:!0})}}}}),y(d,"bpmn:SequenceFlow")&&j(p,{"append.text-annotation":g("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation"))}),y(d,"bpmn:MessageFlow")&&j(p,{"append.text-annotation":g("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation"))}),Ht(d,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&j(p,{"append.text-annotation":g("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation")),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect to other element"),action:{click:u,dragstart:u}}}),y(d,"bpmn:TextAnnotation")&&j(p,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using association"),action:{click:u,dragstart:u}}}),Ht(d,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&j(p,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using data input association"),action:{click:u,dragstart:u}}}),y(d,"bpmn:Group")&&j(p,{"append.text-annotation":g("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation"))}),this._isDeleteAllowed([t])&&j(p,h()),p};l9={__depends__:[HB,Lw,H2,Eo,Pf,lu,c9],__init__:["contextPadProvider"],contextPadProvider:["type",ll]},p9={horizontal:["x","width"],vertical:["y","height"]},ix=5;mi.$inject=["modeling","rules"],mi.prototype.registerFilter=function(t){if(typeof t!="function")throw Error("the filter has to be a function");this._filters.push(t)},mi.prototype.trigger=function(t,e){var n=this._modeling,o,r;if(!(t.length<3)&&(this._setOrientation(e),r=this._filterElements(t),o=this._createGroups(r),!(o.length<=2)))return n.distributeElements(o,this._axis,this._dimension),o},mi.prototype._filterElements=function(t){var e=this._filters,n=this._axis,o=this._dimension,r=[].concat(t);return e.length?(A(e,function(i){r=i(r,n,o)}),r):t},mi.prototype._createGroups=function(t){var e=[],n=this,o=this._axis,r=this._dimension;if(!o)throw Error('must have a defined "axis" and "dimension"');var i=Uo(t,o);return A(i,function(a,s){var c=n._findRange(a,o,r),l,p=e[e.length-1];p&&n._hasIntersection(p.range,c)?e[e.length-1].elements.push(a):(l={range:c,elements:[a]},e.push(l))}),e},mi.prototype._setOrientation=function(t){var e=p9[t];this._axis=e[0],this._dimension=e[1]},mi.prototype._hasIntersection=function(t,e){return Math.max(t.min,t.max)>=Math.min(e.min,e.max)&&Math.min(t.min,t.max)<=Math.max(e.min,e.max)},mi.prototype._findRange=function(t){var e=t[this._axis],n=t[this._dimension];return{min:e+ix,max:e+n-ix}};d9={__init__:["distributeElements"],distributeElements:["type",mi]};Dd.$inject=["eventBus"],ft(Dd,or),Dd.prototype.init=function(){this.addRule("elements.distribute",function(t){var e=t.elements;return e=Ft(e,function(n){var o=Ht(n,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(n.labelTarget||o)}),e=jc(e),e.length<3?!1:e})};ax={horizontal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <polyline points="450 400 450 150 1350 150 1350 400" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>\n <rect x="150" y="450" width="600" height="1200" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="450" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',vertical:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <polyline points="400 1350 150 1350 150 450 400 450" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>\n <rect x="450" y="150" width="1200" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="450" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>'},u9=900;pl.$inject=["popupMenu","distributeElements","translate","rules"],pl.prototype.getPopupMenuEntries=function(t){var e={};return this._isAllowed(t)&&j(e,this._getEntries(t)),e},pl.prototype._isAllowed=function(t){return this._rules.allowed("elements.distribute",{elements:t})},pl.prototype._getEntries=function(t){var e=this._distributeElements,n=this._translate,o=this._popupMenu;return{"distribute-elements-horizontal":{group:"distribute",title:n("Distribute elements horizontally"),className:"bjs-align-elements-menu-entry",imageHtml:ax.horizontal,action:function(r,i){e.trigger(t,"horizontal"),o.close()}},"distribute-elements-vertical":{group:"distribute",title:n("Distribute elements vertically"),imageHtml:ax.vertical,action:function(r,i){e.trigger(t,"vertical"),o.close()}}}};m9={__depends__:[Rf,d9],__init__:["bpmnDistributeElements","distributeElementsMenuProvider"],bpmnDistributeElements:["type",Dd],distributeElementsMenuProvider:["type",pl]},sx="is not a registered action",h9="is already registered";tr.$inject=["eventBus","injector"],tr.prototype._registerDefaultActions=function(t){var e=t.get("commandStack",!1),n=t.get("modeling",!1),o=t.get("selection",!1),r=t.get("zoomScroll",!1),i=t.get("copyPaste",!1),a=t.get("canvas",!1),s=t.get("rules",!1),c=t.get("keyboardMove",!1),l=t.get("keyboardMoveSelection",!1);e&&(this.register("undo",function(){e.undo()}),this.register("redo",function(){e.redo()})),i&&o&&this.register("copy",function(){var p=o.get();if(p.length)return i.copy(p)}),i&&o&&this.register("duplicate",function(){var p=o.get();if(p.length)return i.duplicate(p)}),i&&this.register("paste",function(){i.paste()}),i&&o&&s&&this.register("cut",function(){var p=o.get();if(p.length){var d=s.allowed("elements.delete",{elements:p});if(d!==!1){var u=Ct(d)?d:p;return i.cut(u.slice())}}}),r&&this.register("stepZoom",function(p){r.stepZoom(p.value)}),a&&this.register("zoom",function(p){a.zoom(p.value)}),n&&o&&s&&this.register("removeSelection",function(){var p=o.get();if(p.length){var d=s.allowed("elements.delete",{elements:p}),u;d!==!1&&(u=Ct(d)?d:p,u.length&&n.removeElements(u.slice()))}}),c&&this.register("moveCanvas",function(p){c.moveCanvas(p)}),l&&this.register("moveSelection",function(p){l.moveSelection(p.direction,p.accelerated)})},tr.prototype.trigger=function(t,e){if(!this._actions[t])throw Ym(t,sx);if(this._eventBus.fire("editorActions.allowed",{action:t,opts:e})!==!1)return this._actions[t](e)},tr.prototype.register=function(t,e){var n=this;if(typeof t=="string")return this._registerAction(t,e);A(t,function(o,r){n._registerAction(r,o)})},tr.prototype._registerAction=function(t,e){if(this.isRegistered(t))throw Ym(t,h9);this._actions[t]=e},tr.prototype.unregister=function(t){if(!this.isRegistered(t))throw Ym(t,sx);this._actions[t]=void 0},tr.prototype.getActions=function(){return Object.keys(this._actions)},tr.prototype.isRegistered=function(t){return!!this._actions[t]};f9={__init__:["editorActions"],editorActions:["type",tr]};ft(Pd,tr),Pd.$inject=["injector"],Pd.prototype._registerDefaultActions=function(t){tr.prototype._registerDefaultActions.call(this,t);var e=t.get("canvas",!1),n=t.get("elementRegistry",!1),o=t.get("selection",!1),r=t.get("spaceTool",!1),i=t.get("lassoTool",!1),a=t.get("handTool",!1),s=t.get("globalConnect",!1),c=t.get("distributeElements",!1),l=t.get("alignElements",!1),p=t.get("directEditing",!1),d=t.get("searchPad",!1),u=t.get("modeling",!1),m=t.get("contextPad",!1);e&&n&&o&&this._registerAction("selectElements",function(){var h=e.getRootElement(),f=n.filter(function(g){return g!==h});return o.select(f),f}),r&&this._registerAction("spaceTool",function(){r.toggle()}),i&&this._registerAction("lassoTool",function(){i.toggle()}),a&&this._registerAction("handTool",function(){a.toggle()}),s&&this._registerAction("globalConnectTool",function(){s.toggle()}),o&&c&&this._registerAction("distributeElements",function(h){var f=o.get(),g=h.type;f.length&&c.trigger(f,g)}),o&&l&&this._registerAction("alignElements",function(h){var f=o.get(),g=[],v=h.type;f.length&&(g=Ft(f,function(k){return!y(k,"bpmn:Lane")}),l.trigger(g,v))}),o&&u&&this._registerAction("setColor",function(h){var f=o.get();f.length&&u.setColor(f,h)}),o&&p&&this._registerAction("directEditing",function(){var h=o.get();h.length&&p.activate(h[0])}),d&&this._registerAction("find",function(){d.toggle()}),e&&u&&this._registerAction("moveToOrigin",function(){var h=e.getRootElement(),f,g=y(h,"bpmn:Collaboration")?n.filter(function(v){return y(v.parent,"bpmn:Collaboration")}):n.filter(function(v){return v!==h&&!y(v.parent,"bpmn:SubProcess")});f=en(g),u.moveElements(g,{x:-f.x,y:-f.y},h)}),o&&m&&this._registerAction("replaceElement",function(h){m.triggerEntry("replace","click",h)})};g9={__depends__:[f9],editorActions:["type",Pd]};Iw.$inject=["eventBus"];za.$inject=["eventBus","gridSnapping","modeling"],ft(za,J),za.prototype.snapSimple=function(t,e){var n=this._gridSnapping;return e.width=n.snapValue(e.width,{min:e.width}),e.height=n.snapValue(e.height,{min:e.height}),e.x=t.x+t.width/2-e.width/2,e.y=t.y+t.height/2-e.height/2,e},za.prototype.snapComplex=function(t,e){return/w|e/.test(e)&&(t=this.snapHorizontally(t,e)),/n|s/.test(e)&&(t=this.snapVertically(t,e)),t},za.prototype.snapHorizontally=function(t,e){var n=this._gridSnapping,o=/w/.test(e),r=/e/.test(e),i={};return i.width=n.snapValue(t.width,{min:t.width}),r&&(o?(i.x=n.snapValue(t.x,{max:t.x}),i.width+=n.snapValue(t.x-i.x,{min:t.x-i.x})):t.x=t.x+t.width-i.width),j(t,i),t},za.prototype.snapVertically=function(t,e){var n=this._gridSnapping,o=/n/.test(e),r=/s/.test(e),i={};return i.height=n.snapValue(t.height,{min:t.height}),o&&(r?(i.y=n.snapValue(t.y,{max:t.y}),i.height+=n.snapValue(t.y-i.y,{min:t.y-i.y})):t.y=t.y+t.height-i.height),j(t,i),t};y9=2e3;Hw.$inject=["eventBus","gridSnapping"];b9={__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",za],gridSnappingSpaceToolBehavior:["type",Hw]};v9=1200,x9=800;Ji.prototype.snapEvent=function(t,e,n){mn(t,e,this.snapValue(t[e],n))},Ji.prototype.getGridSpacing=function(){return 10},Ji.prototype.snapValue=function(t,e){var n=0;e&&e.offset&&(n=e.offset),t+=n,t=Xm(t,10);var o,r;return e&&e.min&&(o=e.min,Mt(o)&&(o=Xm(o+n,10,"ceil"),t=Math.max(t,o))),e&&e.max&&(r=e.max,Mt(r)&&(r=Xm(r+n,10,"floor"),t=Math.min(t,r))),t-=n,t},Ji.prototype.isActive=function(){return this.active},Ji.prototype.setActive=function(t){this.active=t,this._eventBus.fire("gridSnapping.toggle",{active:t})},Ji.prototype.toggleActive=function(){this.setActive(!this.active)},Ji.$inject=["elementRegistry","eventBus","config.gridSnapping"];_9={__depends__:[b9],__init__:["gridSnapping"],gridSnapping:["type",Ji]},E9=2e3;Fw.$inject=["eventBus","gridSnapping","elementRegistry"];T9=1750;Ww.$inject=["canvas","eventBus","gridSnapping"];C9=3e3;$d.$inject=["eventBus","gridSnapping","modeling"],ft($d,J),$d.prototype.snapMiddleSegments=function(t){var e=this._gridSnapping,n;t=t.slice();for(var o=1;o<t.length-2;o++)n=M9(e,t[o],t[o+1]),t[o]=n[0],t[o+1]=n[1];return t};D9={__depends__:[_9,{__init__:["gridSnappingAutoPlaceBehavior","gridSnappingParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",Fw],gridSnappingParticipantBehavior:["type",Ww],gridSnappingLayoutConnectionBehavior:["type",$d]}],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",Iw]},P9=30,px=30;dl.$inject=["eventBus","interactionEvents"],dl.prototype._createDefaultHit=function(t,e){return this._interactionEvents.removeHits(e),this._interactionEvents.createDefaultHit(t,e),!0},dl.prototype._createParticipantHit=function(t,e){this._interactionEvents.removeHits(e),this._interactionEvents.createBoxHit(e,"no-move",{width:t.width,height:t.height}),this._interactionEvents.createBoxHit(e,"click-stroke",{width:t.width,height:t.height});var n=Ye(t)?{width:P9,height:t.height}:{width:t.width,height:px};return this._interactionEvents.createBoxHit(e,"all",n),!0},dl.prototype._createSubProcessHit=function(t,e){return this._interactionEvents.removeHits(e),this._interactionEvents.createBoxHit(e,"no-move",{width:t.width,height:t.height}),this._interactionEvents.createBoxHit(e,"click-stroke",{width:t.width,height:t.height}),this._interactionEvents.createBoxHit(e,"all",{width:t.width,height:px}),!0};j9={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",dl]};ft(Zd,Vs),Zd.$inject=["injector"];ul={selectElements:{key:"A",modifier:"cmd"},find:{key:"F",modifier:"cmd"},spaceTool:{key:"S"},lassoTool:{key:"L"},handTool:{key:"H"},globalConnectTool:{key:"C"},directEditing:{key:"E"},replaceElement:{key:"R"}};Zd.prototype.registerBindings=function(t,e){Vs.prototype.registerBindings.call(this,t,e),A(ul,function(n,o){if(e.isRegistered(o)){var r=[n.key.toLowerCase(),n.key.toUpperCase()],i=n.modifier==="cmd";t.addListener(function(a){var s=a.keyEvent;if(t.isKey(r,s)){if(i){if(!t.isCmd(s))return}else if(t.hasModifier(s))return;return e.trigger(o,s),!0}})}})};$9={__depends__:[wf],__init__:["keyboardBindings"],keyboardBindings:["type",Zd]},O9={moveSpeed:1,moveSpeedAccelerated:10},z9=1500,dx="left",ux="up",mx="right",hx="down",L9={ArrowLeft:dx,Left:dx,ArrowUp:ux,Up:ux,ArrowRight:mx,Right:mx,ArrowDown:hx,Down:hx},N9={left:function(t){return{x:-t,y:0}},up:function(t){return{x:0,y:-t}},right:function(t){return{x:t,y:0}},down:function(t){return{x:0,y:t}}};Gw.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];I9={__depends__:[wf,Eo],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",Gw]},fx=10;ml.prototype.canResize=function(t){var e=this._rules,n=po(t,["newBounds","shape","delta","direction"]);return e.allowed("shape.resize",n)},ml.prototype.activate=function(t,e,n){var o=this._dragging,r,i;if(typeof n=="string"&&(n={direction:n}),r=j({shape:e},n),i=r.direction,!i)throw Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");o.init(t,Uw(e,i),"resize",{autoActivate:!0,cursor:F9(i),data:{shape:e,context:r}})},ml.prototype.computeMinResizeBox=function(t){var e=t.shape,n=t.direction;return s7(n,e,t.minDimensions||{width:fx,height:fx},Ok(e,t.childrenBoxPadding))},ml.$inject=["eventBus","rules","modeling","dragging"];gx="djs-resizing",yx="resize-not-ok",W9=500;Vw.$inject=["eventBus","canvas","previewSupport"];td=-6,ed=8,nd=20,Kc="djs-resizer",G9=["n","w","s","e","nw","ne","se","sw"];Qi.prototype.makeDraggable=function(t,e,n){var o=this._resize;function r(i){ci(i)&&o.activate(i,t,n)}$t.bind(e,"mousedown",r),$t.bind(e,"touchstart",r)},Qi.prototype._createResizer=function(t,e,n,o){var r=this._getResizersParent(),i=U9(o),a=at("g");kt(a).add(Kc),kt(a).add(Kc+"-"+t.id),kt(a).add(Kc+"-"+o),dt(r,a);var s=at("rect");Z(s,{x:-ed/2+i.x,y:-ed/2+i.y,rx:2,width:ed,height:ed}),kt(s).add(Kc+"-visual"),dt(a,s);var c=at("rect");return Z(c,{x:-nd/2+i.x,y:-nd/2+i.y,width:nd,height:nd}),kt(c).add(Kc+"-hit"),dt(a,c),Mc(a,e,n),a},Qi.prototype.createResizer=function(t,e){var n=Uw(t,e),o=this._createResizer(t,n.x,n.y,e);this.makeDraggable(t,o,e)},Qi.prototype.addResizer=function(t){var e=this;he(t)||A(G9,function(n){e._resize.canResize({shape:t,direction:n})&&e.createResizer(t,n)})},Qi.prototype.removeResizers=function(){var t=this._getResizersParent();hs(t)},Qi.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},Qi.$inject=["eventBus","canvas","selection","resize"];qw={__depends__:[Ur,yi,tc],__init__:["resize","resizePreview","resizeHandles"],resize:["type",ml],resizePreview:["type",Vw],resizeHandles:["type",Qi]},V9=2e3;hl.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],hl.prototype.activate=function(t){var e=Jn(t);if(e!==void 0){var n={text:e},o=this.getEditingBBox(t);j(n,o);var r={},i=n.style||{};return j(i,{backgroundColor:null,border:null}),(Ht(t,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||bx(t))&&j(r,{centerVertically:!0}),br(t)&&(j(r,{resizable:!0,autoResize:!0}),j(i,{backgroundColor:"#ffffff",border:"1px solid #ccc"})),y(t,"bpmn:TextAnnotation")&&(j(r,{resizable:!0,autoResize:!0}),j(i,{backgroundColor:"#ffffff",border:"1px solid #ccc"})),j(n,{options:r,style:i}),n}},hl.prototype.getEditingBBox=function(t){var e=this._canvas,n=t.label||t,o=e.getAbsoluteBBox(n),r={x:o.x+o.width/2,y:o.y+o.height/2},i={x:o.x,y:o.y},a=e.zoom(),s=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),l=c.fontSize*a,p=c.lineHeight,d=s.fontSize*a,u=s.lineHeight,m={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};if(y(t,"bpmn:Lane")||Y9(t)){var h=Ye(t),f=h?{width:o.height,height:30*a,x:o.x-o.height/2+15*a,y:r.y-30*a/2}:{width:o.width,height:30*a};j(i,f),j(m,{fontSize:d+"px",lineHeight:u,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:h?"rotate(-90deg)":null})}if(K9(t)){var g=Ye(t),v=g?{width:o.width,height:o.height}:{width:o.height,height:o.width,x:r.x-o.height/2,y:r.y-o.width/2};j(i,v),j(m,{fontSize:d+"px",lineHeight:u,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:g?null:"rotate(-90deg)"})}(Ht(t,["bpmn:Task","bpmn:CallActivity"])||bx(t))&&(j(i,{width:o.width,height:o.height}),j(m,{fontSize:d+"px",lineHeight:u,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"})),q9(t)&&(j(i,{width:o.width,x:o.x}),j(m,{fontSize:d+"px",lineHeight:u,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"}));var k=1,_=o.width+2*k;if(n.labelTarget&&(j(i,{width:_,height:o.height+2*k,x:o.x-k,y:o.y-k}),j(m,{fontSize:l+"px",lineHeight:p})),br(n)&&!Ec(n)&&!Lt(n)){var w=ls(t),T=e.getAbsoluteBBox({x:w.x,y:w.y,width:0,height:0}),C=l,B=oi.width*a+2*k;j(i,{width:B,height:C+2*k,x:T.x-B/2,y:T.y-C/2-k}),j(m,{fontSize:l+"px",lineHeight:p})}return y(t,"bpmn:TextAnnotation")&&(j(i,{width:o.width+2*k,height:o.height+2*k,x:o.x-k,y:o.y-k,minWidth:30*a,minHeight:10*a}),j(m,{textAlign:"left",paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:7*a+"px",paddingRight:7*a+"px",fontSize:d+"px",lineHeight:u})),{bounds:i,style:m}},hl.prototype.update=function(t,e,n,o){var r,i;y(t,"bpmn:TextAnnotation")&&(i=this._canvas.getAbsoluteBBox(t),r={x:t.x,y:t.y,width:t.width/i.width*o.width,height:t.height/i.height*o.height}),X9(e)&&(e=null),this._modeling.updateLabel(t,e,r)};vx="djs-element-hidden",xx="djs-label-hidden";Kw.$inject=["eventBus","canvas","pathMap"];J9={__depends__:[jp,qw,Lw],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",hl],labelEditingPreview:["type",Kw]},Q9=500,tA=1e3;Ir.prototype.createOutline=function(t){var e=this._elementRegistry.getGraphics(t);if(!e)throw Error("cannot create outline for non-rendered element");var n=xe(".djs-outline",e);return n||(n=this.getOutline(t)||this._createOutlineGfx(),dt(e,n),this.updateOutline(t,n)),n},Ir.prototype._createOutlineGfx=function(){var t=at("rect");return Z(t,j({x:0,y:0,rx:4,width:100,height:100},this._outlineStyle)),t},Ir.prototype.updateOutline=function(t,e){t.waypoints?this.updateConnectionOutline(e,t):this.updateShapeOutline(e,t)},Ir.prototype.updateShapeOutline=function(t,e){var n=!1,o=this._getProviders();o.length&&A(o,function(r){n||=r.updateOutline(e,t)}),n||Z(t,{x:-this._outlineOffset,y:-this._outlineOffset,width:e.width+this._outlineOffset*2,height:e.height+this._outlineOffset*2})},Ir.prototype.updateConnectionOutline=function(t,e){var n=en(e);Z(t,{x:n.x-this._outlineOffset,y:n.y-this._outlineOffset,width:n.width+this._outlineOffset*2,height:n.height+this._outlineOffset*2})},Ir.prototype.registerProvider=function(t,e){e||(e=t,t=tA),this._eventBus.on("outline.getProviders",t,function(n){n.providers.push(e)})},Ir.prototype._getProviders=function(){var t=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},Ir.prototype.getOutline=function(t){var e,n=this._getProviders();return A(n,function(o){Ke(o.getOutline)&&(e||=o.getOutline(t))}),e},Ir.$inject=["eventBus","styles","elementRegistry"];od=6;bf.prototype._updateMultiSelectionOutline=function(t){var e=this._canvas.getLayer("selectionOutline");hs(e);var n=t.length>1,o=this._canvas.getContainer();if(kt(o)[n?"add":"remove"]("djs-multi-select"),n){var r=eA(en(t)),i=at("rect");Z(i,j({rx:3},r)),kt(i).add("djs-selection-outline"),dt(e,i)}},bf.$inject=["eventBus","canvas","selection"];Vf={__depends__:[Eo],__init__:["outline","multiSelectionOutline"],outline:["type",Ir],multiSelectionOutline:["type",bf]},kx=["bpmn:Event","bpmn:SequenceFlow","bpmn:Gateway"],wx={class:"bjs-label-link",stroke:"var(--element-selected-outline-secondary-stroke-color)",strokeDasharray:"5, 5"},nA=15,rd=2;Yw.$inject=["eventBus","canvas","graphicsFactory","outline","selection"];oA={__depends__:[Eo,Vf],__init__:["labelLink"],labelLink:["type",Yw]},rA=new Ba("tt");Xw="djs-tooltip",Jm="."+Xw;ho.$inject=["eventBus","canvas"],ho.prototype.add=function(t){if(!t.position)throw Error("must specifiy tooltip position");if(!t.html)throw Error("must specifiy tooltip html");var e=this._ids.next();return t=j({},this._tooltipDefaults,t,{id:e}),this._addTooltip(t),t.timeout&&this.setTimeout(t),e},ho.prototype.trigger=function(t,e){var n=e.delegateTarget||e.target,o=this.get(xn(n,"data-tooltip-id"));o&&(t==="mouseover"&&o.timeout&&this.clearTimeout(o),t==="mouseout"&&o.timeout&&(o.timeout=1e3,this.setTimeout(o)))},ho.prototype.get=function(t){return typeof t!="string"&&(t=t.id),this._tooltips[t]},ho.prototype.clearTimeout=function(t){if(t=this.get(t),t){var e=t.removeTimer;e&&(clearTimeout(e),t.removeTimer=null)}},ho.prototype.setTimeout=function(t){if(t=this.get(t),t){this.clearTimeout(t);var e=this;t.removeTimer=setTimeout(function(){e.remove(t)},t.timeout)}},ho.prototype.remove=function(t){var e=this.get(t);e&&(kr(e.html),kr(e.htmlContainer),delete e.htmlContainer,delete this._tooltips[e.id])},ho.prototype.show=function(){Zm(this._tooltipRoot)},ho.prototype.hide=function(){Zm(this._tooltipRoot,!1)},ho.prototype._updateRoot=function(t){var e=t.scale||1,n=t.scale||1,o="matrix("+e+",0,0,"+n+","+-1*t.x*e+","+-1*t.y*n+")";this._tooltipRoot.style.transform=o,this._tooltipRoot.style["-ms-transform"]=o},ho.prototype._addTooltip=function(t){var e=t.id,n=t.html,o,r=this._tooltipRoot;n.get&&n.constructor.prototype.jquery&&(n=n.get(0)),Dn(n)&&(n=Ae(n)),o=Ae('<div data-tooltip-id="'+e+'" class="'+Xw+'">'),Fn(o,{position:"absolute"}),o.appendChild(n),t.type&&Ie(o).add("djs-tooltip-"+t.type),t.className&&Ie(o).add(t.className),t.htmlContainer=o,r.appendChild(o),this._tooltips[e]=t,this._updateTooltip(t)},ho.prototype._updateTooltip=function(t){var e=t.position,n=t.htmlContainer;aA(n,e.x,e.y)},ho.prototype._updateTooltipVisibilty=function(t){A(this._tooltips,function(e){var n=e.show,o=e.htmlContainer,r=!0;n&&((n.minZoom>t.scale||n.maxZoom<t.scale)&&(r=!1),Zm(o,r))})},ho.prototype._init=function(){var t=this;function e(n){t._updateRoot(n),t._updateTooltipVisibilty(n),t.show()}this._eventBus.on("canvas.viewbox.changing",function(n){t.hide()}),this._eventBus.on("canvas.viewbox.changed",function(n){e(n.viewbox)})};sA={__init__:["tooltips"],tooltips:["type",ho]},cA="flow elements must be children of pools/participants",lA="Data object must be placed within a pool/participant.";Zw.$inject=["eventBus","tooltips","translate"];pA={__depends__:[sA],__init__:["modelingFeedback"],modelingFeedback:["type",Zw]},dA=500,uA=1250,mA=1500,Jd=Math.round;Jw.$inject=["eventBus","dragging","modeling","selection","rules"];_x=499,Qm="djs-dragging",Ex="drop-ok",Sx="drop-not-ok",Tx="new-parent",Cx="attach-ok";Qw.$inject=["eventBus","canvas","styles","previewSupport"];bA={__depends__:[Nc,Eo,Vf,Ur,yi,tc],__init__:["move","movePreview"],move:["type",Jw],movePreview:["type",Qw]},vA=300;La.$inject=["canvas"],La.prototype.add=function(t){let{container:e,selector:n,showDelay:o=vA}=t;Wn.bind(e,n,"mouseover",r=>this._show(r.delegateTarget,t,o)),Wn.bind(e,n,"mouseout",r=>{let{delegateTarget:i,relatedTarget:a}=r;a&&i.contains(a)||this._hide()})},La.prototype._show=function(t,e,n){let o=e.getContent(t);o&&(this._current={target:t,content:o,getPosition:e.getPosition},clearTimeout(this._showTimer),this._showTimer=setTimeout(()=>this._render(),n))},La.prototype._hide=function(){clearTimeout(this._showTimer),this._current=null,this._render()},La.prototype._render=function(){let t=this._getMount();if(!this._current){Fd(null,t);return}let{target:e,content:n,getPosition:o}=this._current,{x:r,y:i,placement:a="right"}=o(e);Fd(re(C2||(C2=ne(['<div\n class="djs-hover-tooltip djs-hover-tooltip--','"\n style=',"\n >","</div>"])),a,{left:"".concat(r,"px"),top:"".concat(i,"px")},n),t)},La.prototype._getMount=function(){return this._mount||(this._mount=Ae('<div class="djs-hover-tooltip-container"></div>'),this._canvas.getContainer().appendChild(this._mount)),this._mount};xA={__init__:["hoverTooltip"],hoverTooltip:["type",La]},t5=".djs-palette-toggle",e5=".entry",kA=t5+", "+e5,th="djs-palette-",wA="shown",eh="open",Rx="two-column",_A=1e3;dn.$inject=["eventBus","canvas"],dn.prototype.registerProvider=function(t,e){e||(e=t,t=_A),this._eventBus.on("palette.getProviders",t,function(n){n.providers.push(e)}),this._rebuild()},dn.prototype.getEntries=function(){return this._getProviders().reduce(SA,{})},dn.prototype._rebuild=function(){this._diagramInitialized&&this._getProviders().length&&(this._container||this._init(),this._update())},dn.prototype._init=function(){var t=this,e=this._eventBus,n=this._getParentContainer(),o=this._container=Ae(dn.HTML_MARKUP);n.appendChild(o),Ie(n).add(th+wA),Wn.bind(o,kA,"click",function(r){var i=r.delegateTarget;if(Dp(i,t5))return t.toggle();t.trigger("click",r)}),$t.bind(o,"mousedown",function(r){r.stopPropagation()}),Wn.bind(o,e5,"dragstart",function(r){t.trigger("dragstart",r)}),e.on("canvas.resized",this._layoutChanged,this),e.fire("palette.create",{container:o})},dn.prototype._getProviders=function(t){var e=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},dn.prototype._toggleState=function(t){t||={};var e=this._getParentContainer(),n=this._container,o=this._eventBus,r,i=Ie(n),a=Ie(e);r="twoColumn"in t?t.twoColumn:this._needsCollapse(e.clientHeight,this._entries||{}),i.toggle(Rx,r),a.toggle(th+Rx,r),"open"in t&&(i.toggle(eh,t.open),a.toggle(th+eh,t.open)),o.fire("palette.changed",{twoColumn:r,open:this.isOpen()})},dn.prototype._update=function(){var t=xe(".djs-palette-entries",this._container),e=this._entries=this.getEntries();Dc(t),A(e,function(n,o){var r=n.group||"default",i=xe("[data-group="+Rs(r)+"]",t);i||(i=Ae('<div class="group"></div>'),xn(i,"data-group",r),t.appendChild(i));var a=n.html||(n.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),s=Ae(a);if(i.appendChild(s),!n.separator&&(xn(s,"data-action",o),n.title&&(xn(s,"aria-label",n.title),xn(s,"role","button")),n.className&&EA(s,n.className),n.imageUrl)){var c=Ae("<img>");xn(c,"src",n.imageUrl),s.appendChild(c)}}),this.open()},dn.prototype.trigger=function(t,e,n){var o,r,i=e.delegateTarget||e.target;return i?(o=xn(i,"data-action"),r=e.originalEvent||e,this.triggerEntry(o,t,r,n)):e.preventDefault()},dn.prototype.triggerEntry=function(t,e,n,o){var r=this._entries[t],i;if(r&&(i=r.action,this._eventBus.fire("palette.trigger",{entry:r,event:n})!==!1)){if(Ke(i)){if(e==="click")return i(n,o)}else if(i[e])return i[e](n,o);n.preventDefault()}},dn.prototype._layoutChanged=function(){this._toggleState({})},dn.prototype._needsCollapse=function(t,e){return t<Object.keys(e).length*46+50},dn.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},dn.prototype.open=function(){this._toggleState({open:!0})},dn.prototype.toggle=function(){this.isOpen()?this.close():this.open()},dn.prototype.isActiveTool=function(t){return t&&this._activeTool===t},dn.prototype.updateToolHighlight=function(t){var e,n;this._toolsContainer||=(e=xe(".djs-palette-entries",this._container),xe("[data-group=tools]",e)),n=this._toolsContainer,A(n.children,function(o){var r=o.getAttribute("data-action");if(r){var i=Ie(o);r=r.replace("-tool",""),i.contains("entry")&&r===t?i.add("highlighted-entry"):i.remove("highlighted-entry")}})},dn.prototype.isOpen=function(){return Ie(this._container).has(eh)},dn.prototype._getParentContainer=function(){return this._canvas.getContainer()},dn.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';CA=".djs-palette-entries .entry",RA=8;Od.$inject=["eventBus","palette","hoverTooltip"],Od.prototype._init=function(t){this._updateEntries(),this._hoverTooltip.add({container:t,selector:CA,getContent:e=>{let n=this._entries[xn(e,"data-action")];return!n||!n.title?null:re(A2||(A2=ne(["<","\n title=","\n shortcut=","\n />"])),TA,n.title,n.shortcut)},getPosition:e=>{let n=e.getBoundingClientRect();return{x:n.right+RA,y:n.top+n.height/2,placement:"right"}}})},Od.prototype._updateEntries=function(){this._entries=this._palette.getEntries()};BA={__depends__:[xA],__init__:["palette","paletteTooltip"],palette:["type",dn],paletteTooltip:["type",Od]},Bx="crosshair",Ax="selected",AA="djs-dragging-active-lasso";ta.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],ta.prototype.activateLasso=function(t,e){this._dragging.init(t,"lasso",{autoActivate:e,cursor:Bx,data:{context:{}},keepSelection:!0})},ta.prototype.activateSelection=function(t,e){this._dragging.init(t,"lasso.selection",{trapClick:!1,autoActivate:e,cursor:Bx,data:{context:{}},keepSelection:!0})},ta.prototype._select=function(t){this._selection.select(t)},ta.prototype.select=function(t,e,n=[]){var o=ka(Ra(t,e));this._select([...n,...o])},ta.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();this.activateSelection(t,!!t)},ta.prototype.isActive=function(){var t=this._dragging.context();return t&&/^lasso/.test(t.prefix)};MA={__depends__:[pu,Tl],__init__:["lassoTool"],lassoTool:["type",ta]},nh=1500,Dx="grab";Fs.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"],Fs.prototype.activateMove=function(t,e,n){typeof e=="object"&&(n=e,e=!1),this._dragging.init(t,"hand.move",{autoActivate:e,cursor:Dx,data:{context:n||{}}})},Fs.prototype.activateHand=function(t,e,n){this._dragging.init(t,"hand",{trapClick:!1,autoActivate:e,cursor:Dx,data:{context:{reactivate:n}}})},Fs.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();this.activateHand(t,!!t)},Fs.prototype.isActive=function(){var t=this._dragging.context();return t?/^(hand|hand\.move)$/.test(t.prefix):!1};DA={__depends__:[pu,Tl],__init__:["handTool"],handTool:["type",Fs]},jx="connect-ok",$x="connect-not-ok";Ws.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"],Ws.prototype.start=function(t,e){this._dragging.init(t,"global-connect",{autoActivate:e,trapClick:!1,data:{context:{}}})},Ws.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();return this.start(t,!!t)},Ws.prototype.isActive=function(){var t=this._dragging.context();return t&&/^global-connect/.test(t.prefix)},Ws.prototype.canStartConnect=function(t){return this._rules.allowed("connection.start",{source:t})};PA={__depends__:[Pf,Ur,yi,pu,Tl],globalConnect:["type",Ws]};vf.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"],vf.prototype.getPaletteEntries=function(){var t={},e=this._create,n=this._elementFactory,o=this._spaceTool,r=this._lassoTool,i=this._handTool,a=this._globalConnect,s=this._translate;function c(d,u,m,h,f){function g(v){var k=n.createShape(j({type:d},f));e.start(v,k)}return{group:u,className:m,title:h,action:{dragstart:g,click:g}}}function l(d){var u=n.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),m=n.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:u});e.start(d,[u,m],{hints:{autoSelect:[u]}})}function p(d){e.start(d,n.createParticipantShape())}return j(t,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:s("Activate hand tool"),shortcut:ul.handTool.key,action:{click:function(d){i.activateHand(d)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:s("Activate lasso tool"),shortcut:ul.lassoTool.key,action:{click:function(d){r.activateSelection(d)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:s("Activate create/remove space tool"),shortcut:ul.spaceTool.key,action:{click:function(d){o.activateSelection(d)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:s("Activate global connect tool"),shortcut:ul.globalConnectTool.key,action:{click:function(d){a.start(d)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":c("bpmn:StartEvent","event","bpmn-icon-start-event-none",s("Create start event")),"create.intermediate-event":c("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",s("Create intermediate/boundary event")),"create.end-event":c("bpmn:EndEvent","event","bpmn-icon-end-event-none",s("Create end event")),"create.exclusive-gateway":c("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",s("Create gateway")),"create.task":c("bpmn:Task","activity","bpmn-icon-task",s("Create task")),"create.data-object":c("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",s("Create data object reference")),"create.data-store":c("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",s("Create data store reference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:s("Create expanded sub-process"),action:{dragstart:l,click:l}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:s("Create pool/participant"),action:{dragstart:p,click:p}},"create.group":c("bpmn:Group","artifact","bpmn-icon-group",s("Create group"))}),t};jA={__depends__:[BA,lu,Sw,MA,DA,PA,Oc],__init__:["paletteProvider"],paletteProvider:["type",vf]},$A=250;xf.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"],ft(xf,J);OA={__depends__:[tc],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",xf]},zA=1250,oh=40,LA=20,NA=10,Ox=20,n5=["x","y"],IA=Math.abs;o5.$inject=["eventBus"];oa.prototype.getSnapOrigin=function(t){return this._snapOrigins[t]},oa.prototype.setSnapOrigin=function(t,e){this._snapOrigins[t]=e,this._snapLocations.indexOf(t)===-1&&this._snapLocations.push(t)},oa.prototype.addDefaultSnap=function(t,e){var n=this._defaultSnaps[t];n||=this._defaultSnaps[t]=[],n.push(e)},oa.prototype.getSnapLocations=function(){return this._snapLocations},oa.prototype.setSnapLocations=function(t){this._snapLocations=t},oa.prototype.pointsForTarget=function(t){var e=t.id||t,n=this._targets[e];return n||(n=this._targets[e]=new zd,n.initDefaults(this._defaultSnaps)),n};zd.prototype.add=function(t,e){var n=this._snapValues[t];n||=this._snapValues[t]={x:[],y:[]},n.x.indexOf(e.x)===-1&&n.x.push(e.x),n.y.indexOf(e.y)===-1&&n.y.push(e.y)},zd.prototype.snap=function(t,e,n,o){var r=this._snapValues[e];return r&&_8(t[n],r[n],o)},zd.prototype.initDefaults=function(t){var e=this;A(t||{},function(n,o){A(n,function(r){e.add(o,r)})})};KA=1250;Gr.$inject=["elementRegistry","eventBus","snapping"],Gr.prototype.initSnap=function(t){var e=this._elementRegistry,n=t.context,o=n.shape,r=n.snapContext;r||=n.snapContext=new oa;var i=e.get(o.id)?er(o,t):{x:t.x+er(o).x,y:t.y+er(o).y},a={x:i.x-o.width/2,y:i.y-o.height/2},s={x:i.x+o.width/2,y:i.y+o.height/2};return r.setSnapOrigin("mid",{x:i.x-t.x,y:i.y-t.y}),Lt(o)||(r.setSnapOrigin("top-left",{x:a.x-t.x,y:a.y-t.y}),r.setSnapOrigin("bottom-right",{x:s.x-t.x,y:s.y-t.y})),r},Gr.prototype.addSnapTargetPoints=function(t,e,n){var o=this.getSnapTargets(e,n);return A(o,function(r){if(Lt(r))Lt(e)&&t.add("mid",er(r));else if(he(r)){if(r.waypoints.length<3)return;var i=r.waypoints.slice(1,-1);A(i,function(a){t.add("mid",a)})}else t.add("mid",er(r))}),!Mt(e.x)||!Mt(e.y)||this._elementRegistry.get(e.id)&&t.add("mid",er(e)),t},Gr.prototype.getSnapTargets=function(t,e){return Ck(e).filter(function(n){return!YA(n)})};Lx=1500;ft(Gs,Gr),Gs.$inject=["eventBus","injector"],Gs.prototype.initSnap=function(t){var e=Gr.prototype.initSnap.call(this,t),n=t.shape,o=!!this._elementRegistry.get(n.id);return A(n.outgoing,function(r){var i=r.waypoints[0];i=i.original||i,e.setSnapOrigin(r.id+"-docking",Ix(i,o,t))}),A(n.incoming,function(r){var i=r.waypoints[r.waypoints.length-1];i=i.original||i,e.setSnapOrigin(r.id+"-docking",Ix(i,o,t))}),y(n,"bpmn:Participant")&&e.setSnapLocations(["top-left","bottom-right","mid"]),e},Gs.prototype.addSnapTargetPoints=function(t,e,n){Gr.prototype.addSnapTargetPoints.call(this,t,e,n);var o=this.getSnapTargets(e,n);A(o,function(i){(JA(i)||ZA([e,i],"bpmn:TextAnnotation"))&&(t.add("top-left",Sk(i)),t.add("bottom-right",Tk(i)))});var r=this._elementRegistry;return A(e.incoming,function(i){if(r.get(e.id)){Nx(o,i.source)||t.add("mid",Tt(i.source));var a=i.waypoints[0];t.add(i.id+"-docking",a.original||a)}}),A(e.outgoing,function(i){if(r.get(e.id)){Nx(o,i.target)||t.add("mid",Tt(i.target));var a=i.waypoints[i.waypoints.length-1];t.add(i.id+"-docking",a.original||a)}}),y(n,"bpmn:SequenceFlow")&&(t=this.addSnapTargetPoints(t,e,n.parent)),t},Gs.prototype.getSnapTargets=function(t,e){return Gr.prototype.getSnapTargets.call(this,t,e).filter(function(n){return!y(n,"bpmn:Lane")})};tM=1250;fl.prototype.initSnap=function(t){var e=t.context,n=e.shape,o=e.direction,r=e.snapContext;r||=e.snapContext=new oa;var i=Hx(n,o);return r.setSnapOrigin("corner",{x:i.x-t.x,y:i.y-t.y}),r},fl.prototype.addSnapTargetPoints=function(t,e,n,o){var r=this.getSnapTargets(e,n);return A(r,function(i){t.add("corner",Tk(i)),t.add("corner",Sk(i))}),t.add("corner",Hx(e,o)),t},fl.$inject=["eventBus","snapping"],fl.prototype.getSnapTargets=function(t,e){return Ck(e).filter(function(n){return!eM(n,t)&&!he(n)&&!nM(n)&&!Lt(n)})};iM=7,aM=1e3;ea.$inject=["canvas"],ea.prototype.snap=function(t,e){var n=t.context.snapContext,o=n.getSnapLocations(),r={x:Ys(t,"x"),y:Ys(t,"y")};A(o,function(i){var a=n.getSnapOrigin(i),s={x:t.x+a.x,y:t.y+a.y};if(A(["x","y"],function(c){var l;r[c]||(l=e.snap(s,i,c,iM),l!==void 0&&(r[c]={value:l,originValue:l-a[c]}))}),r.x&&r.y)return!1}),this.showSnapLine("vertical",r.x&&r.x.value),this.showSnapLine("horizontal",r.y&&r.y.value),A(["x","y"],function(i){var a=r[i];We(a)&&mn(t,i,a.originValue)})},ea.prototype._createLine=function(t){var e=this._canvas.getLayer("snap"),n=at("path");return Z(n,{d:"M0,0 L0,0"}),kt(n).add("djs-snap-line"),dt(e,n),{update:function(o){Mt(o)?t==="horizontal"?Z(n,{d:"M-100000,"+o+" L+100000,"+o,display:""}):Z(n,{d:"M "+o+",-100000 L "+o+", +100000",display:""}):Z(n,{display:"none"})}}},ea.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},ea.prototype.showSnapLine=function(t,e){var n=this.getSnapLine(t);n&&n.update(e),this._asyncHide()},ea.prototype.getSnapLine=function(t){return this._snapLines||this._createSnapLines(),this._snapLines[t]},ea.prototype.hide=function(){A(this._snapLines,function(t){t.update()})};sM={__depends__:[{__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",Gr],resizeSnapping:["type",fl],snapping:["type",ea]}],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",o5],createMoveSnapping:["type",Gs]},Fx=300;Nt.$inject=["canvas","eventBus","selection","translate"],Nt.prototype._bindEvents=function(){var t=this;function e(n,o,r,i){t._eventMaps.push({el:n,type:r,listener:Wn.bind(n,o,r,i)})}e(document,"html","click",function(n){t.close(!1)}),e(this._container,Nt.INPUT_SELECTOR,"click",function(n){n.stopPropagation(),n.delegateTarget.focus()}),e(this._container,Nt.RESULT_SELECTOR,"mouseover",function(n){n.stopPropagation(),t._scrollToNode(n.delegateTarget),t._preselect(n.delegateTarget)}),e(this._container,Nt.RESULT_SELECTOR,"click",function(n){n.stopPropagation(),t._select(n.delegateTarget)}),e(this._container,Nt.INPUT_SELECTOR,"keydown",function(n){an("ArrowUp",n)&&n.preventDefault(),an("ArrowDown",n)&&n.preventDefault()}),e(this._container,Nt.INPUT_SELECTOR,"keyup",function(n){if(an("Escape",n))return t.close();if(an("Enter",n)){var o=t._getCurrentResult();return o?t._select(o):t.close(!1)}if(an("ArrowUp",n))return t._scrollToDirection(!0);if(an("ArrowDown",n))return t._scrollToDirection();an(["ArrowLeft","ArrowRight"],n)||t._search(n.delegateTarget.value)})},Nt.prototype._unbindEvents=function(){this._eventMaps.forEach(function(t){Wn.unbind(t.el,t.type,t.listener)})},Nt.prototype._search=function(t){var e=this;if(this._clearResults(),t.trim()){var n=this._searchProvider.find(t);if(n=n.filter(function(r){return!e._canvas.getRootElements().includes(r.element)}),!n.length)this._selection.select(null);else{n.forEach(function(r){var i=r.element.id,a=e._createResultNode(r,i);e._results[i]={element:r.element,node:a}});var o=xe(Nt.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(o),this._preselect(o)}}},Nt.prototype._scrollToDirection=function(t){var e=this._getCurrentResult();if(e){var n=t?e.previousElementSibling:e.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}},Nt.prototype._scrollToNode=function(t){if(t&&t!==this._getCurrentResult()){var e=t.offsetTop,n=this._resultsContainer.scrollTop,o=e-this._resultsContainer.clientHeight+t.clientHeight;e<n?this._resultsContainer.scrollTop=e:n<o&&(this._resultsContainer.scrollTop=o)}},Nt.prototype._clearResults=function(){Dc(this._resultsContainer),this._results={},this._eventBus.fire("searchPad.cleared")},Nt.prototype._getCurrentResult=function(){return xe(Nt.RESULT_SELECTED_SELECTOR,this._resultsContainer)},Nt.prototype._createResultNode=function(t,e){var n=Ae(Nt.RESULT_HTML);return t.primaryTokens.length>0&&Wx(n,t.primaryTokens,Nt.RESULT_PRIMARY_HTML),Wx(n,t.secondaryTokens,Nt.RESULT_SECONDARY_HTML),xn(n,Nt.RESULT_ID_ATTRIBUTE,e),this._resultsContainer.appendChild(n),n},Nt.prototype.registerProvider=function(t){this._searchProvider=t},Nt.prototype.open=function(){if(!this._searchProvider)throw Error("no search provider registered");this.isOpen()||(this._cachedRootElement=this._canvas.getRootElement(),this._cachedSelection=this._selection.get(),this._cachedViewbox=this._canvas.viewbox(),this._selection.select(null),this._bindEvents(),this._open=!0,Ie(this._canvas.getContainer()).add("djs-search-open"),Ie(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},Nt.prototype.close=function(t=!0){this.isOpen()&&(t&&(this._cachedRootElement&&this._canvas.setRootElement(this._cachedRootElement),this._cachedSelection&&this._selection.select(this._cachedSelection),this._cachedViewbox&&this._canvas.viewbox(this._cachedViewbox),this._eventBus.fire("searchPad.restored")),this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._unbindEvents(),this._open=!1,Ie(this._canvas.getContainer()).remove("djs-search-open"),Ie(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._eventBus.fire("searchPad.closed"),this._canvas.restoreFocus())},Nt.prototype.toggle=function(){this.isOpen()?this.close():this.open()},Nt.prototype.isOpen=function(){return this._open},Nt.prototype._preselect=function(t){var e=this._getCurrentResult();if(t!==e){e&&Ie(e).remove(Nt.RESULT_SELECTED_CLASS);var n=xn(t,Nt.RESULT_ID_ATTRIBUTE),o=this._results[n].element;Ie(t).add(Nt.RESULT_SELECTED_CLASS),this._canvas.scrollToElement(o,{top:Fx}),this._selection.select(o),this._eventBus.fire("searchPad.preselected",o)}},Nt.prototype._select=function(t){var e=xn(t,Nt.RESULT_ID_ATTRIBUTE),n=this._results[e].element;this._cachedSelection=null,this._cachedViewbox=null,this.close(!1),this._canvas.scrollToElement(n,{top:Fx}),this._selection.select(n),this._eventBus.fire("searchPad.selected",n)},Nt.prototype._getBoxHtml=function(){let t=Ae(Nt.BOX_HTML),e=xe(Nt.INPUT_SELECTOR,t);return e&&e.setAttribute("aria-label",this._translate("Search in diagram")),t};Nt.CONTAINER_SELECTOR=".djs-search-container",Nt.INPUT_SELECTOR=".djs-search-input input",Nt.RESULTS_CONTAINER_SELECTOR=".djs-search-results",Nt.RESULT_SELECTOR=".djs-search-result",Nt.RESULT_SELECTED_CLASS="djs-search-result-selected",Nt.RESULT_SELECTED_SELECTOR="."+Nt.RESULT_SELECTED_CLASS,Nt.RESULT_ID_ATTRIBUTE="data-result-id",Nt.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",Nt.BOX_HTML='<div class="djs-search-container djs-scrollable">\n <div class="djs-search-input">\n <svg class="djs-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>\n </svg>\n <input type="text" spellcheck="false" />\n </div>\n <div class="djs-search-results" />\n</div>',Nt.RESULT_HTML='<div class="djs-search-result"></div>',Nt.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',Nt.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';lM={__depends__:[Oc,zc,Eo],searchPad:["type",Nt]};kf.$inject=["elementRegistry","searchPad","canvas","search"],kf.prototype.find=function(t){var e=this._canvas.getRootElements(),n=this._elementRegistry.filter(function(o){return!Lt(o)&&!e.includes(o)});return this._search(n.map(o=>({element:o,label:Jn(o),id:o.id})),t,{keys:["label","id"]}).map(pM)};dM={__depends__:[lM,ak],__init__:["bpmnSearch"],bpmnSearch:["type",kf]},uM="M44.7648 11.3263L36.9892 2.64074C36.0451 1.58628 34.5651 0.988708 33.1904 0.988708H5.98667C3.22688 0.988708 0.989624 3.34892 0.989624 6.26039V55.0235C0.989624 57.9349 3.22688 60.2952 5.98667 60.2952H40.966C43.7257 60.2952 45.963 57.9349 45.963 55.0235V14.9459C45.963 13.5998 45.6407 12.3048 44.7648 11.3263Z",mM="M1.03845 48.1347C1.03845 49.3511 1.07295 50.758 1.38342 52.064C1.69949 53.3938 2.32428 54.7154 3.56383 55.6428C6.02533 57.4841 10.1161 58.7685 14.8212 59.6067C19.5772 60.4538 25.1388 60.8738 30.6831 60.8738C36.2276 60.8738 41.7891 60.4538 46.545 59.6067C51.2504 58.7687 55.3412 57.4842 57.8028 55.6429C59.0424 54.7156 59.6673 53.3938 59.9834 52.064C60.2938 50.7579 60.3285 49.351 60.3285 48.1344V13.8415C60.3285 12.6249 60.2938 11.218 59.9834 9.91171C59.6673 8.58194 59.0423 7.2602 57.8027 6.33294C55.341 4.49168 51.2503 3.20723 46.545 2.36914C41.7891 1.522 36.2276 1.10204 30.6831 1.10205C25.1388 1.10206 19.5772 1.52206 14.8213 2.36923C10.1162 3.20734 6.02543 4.49183 3.5639 6.33314C2.32433 7.26038 1.69951 8.58206 1.38343 9.91181C1.07295 11.2179 1.03845 12.6247 1.03845 13.8411V48.1347Z",hM={width:36,height:50},fM={width:50,height:50};Xo=5;Ld.$inject=["outline","styles"],Ld.prototype.getOutline=function(t){let e=this._styles.cls("djs-outline",["no-fill"]);var n;if(h0(t))return n=at("rect"),Z(n,j({x:-Xo,y:-Xo,rx:4,width:t.width+Xo*2,height:t.height+Xo*2},e)),n;if(!Lt(t))return y(t,"bpmn:Gateway")?(n=at("rect"),j(n.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),Z(n,j({x:2,y:2,rx:4,width:t.width-4,height:t.height-4},e))):Ht(t,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(n=at("rect"),Z(n,j({x:-Xo,y:-Xo,rx:14,width:t.width+Xo*2,height:t.height+Xo*2},e))):y(t,"bpmn:EndEvent")?(n=at("circle"),Z(n,j({cx:t.width/2,cy:t.height/2,r:t.width/2+Xo+1},e))):y(t,"bpmn:Event")?(n=at("circle"),Z(n,j({cx:t.width/2,cy:t.height/2,r:t.width/2+Xo},e))):y(t,"bpmn:DataObjectReference")&&Ux(t,"bpmn:DataObjectReference")?n=Gx(uM,{x:-6,y:-6},e):y(t,"bpmn:DataStoreReference")&&Ux(t,"bpmn:DataStoreReference")&&(n=Gx(mM,{x:-6,y:-6},e)),n},Ld.prototype.updateOutline=function(t,e){if(!Lt(t))return Ht(t,["bpmn:SubProcess","bpmn:Group"])?(Z(e,{width:t.width+Xo*2,height:t.height+Xo*2}),!0):!!Ht(t,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};gM={__depends__:[Vf],__init__:["outlineProvider"],outlineProvider:["type",Ld]},yM='<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>';ft(Hr,gl),Hr.Viewer=si,Hr.NavigatedViewer=Yc,Hr.prototype.createDiagram=function(){return this.importXML(yM)},Hr.prototype._interactionModules=[D2,$2,N2,I2],Hr.prototype._modelingModules=[$T,Mf,r8,JT,S8,Pf,M8,l9,xw,lu,m9,g9,D9,j9,$9,I9,J9,oA,zw,pA,bA,jA,OA,qw,sM,dM,gM],Hr.prototype._modules=[].concat(si.prototype._modules,Hr.prototype._interactionModules,Hr.prototype._modelingModules)});function p5(t){return/^\s*\[Doc\]/.test(t??"")}function ec(t){return/^\s*\[App\]/.test(t??"")}function mu(t){return(t??"").replace(/^\s*\[(Doc|App)\]\s*/,"")}function bM(t,e,n){let o=t.charCodeAt(0);if(o<32||o>126){let i=t.normalize("NFD").charCodeAt(0);o=i>=32&&i<=126?i:-1}let r=n?c5.bold:c5.regular;return(o>=32?r[o-32]??l5:l5)*e/1e3}function Vr(t,e,n=!1){let o=0;for(let r of t??"")o+=bM(r,e,n);return o}function Ha(t,e,n,o=!1){let r=[];for(let i of(t??"").split("\n")){let a="";for(let s of i.split(/\s+/).filter(Boolean)){let c=a?"".concat(a," ").concat(s):s;if(Vr(c,e,o)<=n)a=c;else{for(a&&r.push(a),a="";Vr(s,e,o)>n&&s.length>1;){let l=s.length;for(;l>1&&Vr(s.slice(0,l),e,o)>n;)--l;r.push(s.slice(0,l)),s=s.slice(l)}a=s}}r.push(a)}return r.length?r:[""]}var c5,l5,hu=Tn(()=>{"use strict";c5={regular:"278 278 355 556 556 889 667 191 333 333 389 584 278 333 278 278 556 556 556 556 556 556 556 556 556 556 278 278 584 584 584 556 1015 667 667 722 722 667 611 778 722 278 500 667 556 833 722 778 667 778 722 667 611 722 667 944 667 667 611 278 278 278 469 556 333 556 556 500 556 556 278 556 556 222 222 500 222 833 556 556 556 556 333 500 278 556 500 722 500 500 500 334 260 334 584".split(" ").map(Number),bold:"278 333 474 556 556 889 722 238 333 333 389 584 278 333 278 278 556 556 556 556 556 556 556 556 556 556 333 333 584 584 584 611 975 722 722 722 722 667 611 778 722 278 556 722 611 833 722 778 667 778 722 667 611 722 667 944 667 667 611 333 278 333 584 556 333 556 611 556 611 556 333 611 611 278 278 556 278 889 611 611 611 611 389 556 333 611 556 778 556 556 500 389 280 389 584".split(" ").map(Number)},l5=556});function Qf(t,e={}){switch(t.$type){case"bpmn:Task":return"task";case"bpmn:CallActivity":return"external";case"bpmn:SubProcess":return e.expanded===!1&&!t.triggeredByEvent?"subprocess":void 0;case"bpmn:ExclusiveGateway":case"bpmn:ParallelGateway":return"gateway";case"bpmn:DataInput":return t.isCollection?void 0:"input";case"bpmn:DataOutput":return t.isCollection?void 0:"output";case"bpmn:DataObjectReference":case"bpmn:DataObject":return t.dataState||t.isCollection||t.dataObjectRef?.isCollection?void 0:"data";case"bpmn:TextAnnotation":{let n=typeof t.text=="string"?t.text:"";return p5(n)?"document":ec(n)?"application":void 0}case"bpmn:Participant":return e.horizontal!==!1&&e.expanded!==!1?"pool":void 0;case"bpmn:Lane":return e.horizontal===!1?void 0:"lane";default:return vM.has(t.$type)&&(t.eventDefinitions?.length??0)===0?"event":void 0}}function d5(t){switch(t.$type){case"bpmn:SequenceFlow":return t.conditionExpression||t.sourceRef&&t.sourceRef.default===t?void 0:"sequence";case"bpmn:Association":return t.associationDirection&&t.associationDirection!=="None"?void 0:"link";case"bpmn:DataInputAssociation":case"bpmn:DataOutputAssociation":return"data-link";default:return}}function xM(t,e){let n=/^#([0-9a-fA-F]{6})$/.exec(t.trim());if(!n)return t;let o=n[1],r=i=>Math.max(0,Math.min(255,Math.round(parseInt(o.slice(i,i+2),16)*e))).toString(16).padStart(2,"0");return"#".concat(r(0)).concat(r(2)).concat(r(4))}function tg(t,e,n){let o=/^#([0-9a-fA-F]{6})$/.exec(t.trim());if(!o)return e;let r=o[1],i=[0,2,4].map(a=>{let s=parseInt(r.slice(a,a+2),16)/255;return s<=.03928?s/12.92:((s+.055)/1.055)**2.4});return .2126*i[0]+.7152*i[1]+.0722*i[2]<.35?n:e}function kM(t,e){let n=Vr(t,fo.font,!0)+fo.chrome,o=Math.max(fo.minWidth,e-2*fo.margin),r=Math.min(o,Math.max(fo.minWidth,Math.ceil(n)));if(n<=r)return{width:r,height:fo.height};let i=Ha(t,fo.font,r-fo.chrome,!0).length;return{width:r,height:Math.max(fo.height,Math.ceil(i*fo.font*1.2+8))}}function u5(t,e,n){let o=t.map(i=>kM(i,e)),r=(e-(o.reduce((i,a)=>i+a.width,0)+fo.gap*Math.max(0,t.length-1)))/2;return t.map((i,a)=>{let s=o[a],c={name:i,x:r,y:n-fo.overlap,width:s.width,height:s.height};return r+=s.width+fo.gap,c})}function eg(t,e){let n=e*.85;return"M0 0H".concat(t,"V").concat(n,"Q").concat(t*.75," ").concat(e*.63," ").concat(t*.5," ").concat(n,"Q").concat(t*.25," ").concat(e*1.07," 0 ").concat(n,"Z")}function m5(t,e){return{x:bi.padX,y:bi.textTop,width:t-2*bi.padX,height:Math.max(0,e*bi.waveTop-bi.textTop-bi.padBottom)}}function fu(t=[]){return t.map((e,n)=>"".concat(n===0?"M":"L").concat(e.x," ").concat(e.y)).join("")}function yu(t){return og(gu,t)}function og(t,e){let n={};for(let[r,i]of Object.entries(e??{}))i!==void 0&&(n[r]=i);let o={...t};if(typeof n.stroke=="string")for(let r of ng)o[r]=n.stroke;return typeof n.fill=="string"&&(o.taskFill=n.fill),Object.assign(o,n),n.docLink===void 0&&n.link!==void 0&&(o.docLink=o.link),n.laneHeaderFill===void 0&&n.laneFill!==void 0&&(o.laneHeaderFill=o.laneFill),n.taskFillEnd===void 0&&typeof o.taskFill=="string"&&o.taskFill!==t.taskFill&&(o.taskFillEnd=xM(o.taskFill,.95)),o}var vM,fo,bi,h5,gu,ng,rg=Tn(()=>{"use strict";hu();vM=new Set(["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"]);fo={minWidth:80,height:30,overlap:10,gap:4,font:12,chrome:31,margin:10};bi={band:15,textTop:20,waveTop:.74,padX:6,padBottom:4};h5=Object.freeze({fontFamily:"system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif",fontSize:12,strokeWidth:1,stroke:"#333333",fill:"#ffffff",text:"#222222",labelText:"#22242a",headerText:"#222222",flow:"#333333",link:"#666666",docLink:"#666666",docLinkDash:"5 5",dataLinkArrow:!0,taskLine:"#333333",taskFill:"#ffffff",taskFillEnd:"#f2f2f2",eventLine:"#333333",eventFill:"#e4e9ef",gatewayLine:"#333333",gatewayFill:"#d9e2ec",poolLine:"#333333",poolFill:"#efefef",laneLine:"#333333",laneFill:"#f6f6f6",laneHeaderFill:"#f6f6f6",externalLine:"#333333",externalFill:"#f3f1e7",docLine:"#333333",docFill:"#f7f3e3",dataLine:"#333333",dataFill:"#f5f5f5",appLine:"#333333",appFill:"#e8eef7"}),gu=Object.freeze({fontFamily:"system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif",fontSize:12,strokeWidth:1,stroke:"#000000",fill:"#ffffff",text:"#000000",labelText:"#22242a",headerText:"#595959",flow:"#000000",link:"#b85450",docLink:"#b85450",docLinkDash:"5 5",dataLinkArrow:!1,taskLine:"#000000",taskFill:"#f6f1ea",taskFillEnd:"#ECE2D4",eventLine:"#000000",eventFill:"#E27676",gatewayLine:"#000000",gatewayFill:"#60BE89",poolLine:"#000000",poolFill:"#eee7df",laneLine:"#000000",laneFill:"#f6f6f6",laneHeaderFill:"#ffffff",externalLine:"#000000",externalFill:"#ffff99",docLine:"#000000",docFill:"#ffe599",dataLine:"#000000",dataFill:"#f6f1ea",appLine:"#000000",appFill:"#99ffff"}),ng=["flow","taskLine","eventLine","gatewayLine","poolLine","laneLine","externalLine","docLine","dataLine","appLine"]});var v5={};Ci(v5,{DEFAULT_LEGEND_TOKENS:()=>gu,LEGEND_ACTION_IDS:()=>_M,legendProfile:()=>LM,resolveLegendTokens:()=>yu});function CM(t){return!!t&&(t.$type==="bpmn:DataInput"||t.$type==="bpmn:DataOutput")}function RM(t){let e=t.$parent;if(e&&typeof e.get=="function"){for(let n of["dataInputs","dataOutputs"]){let o=e.get(n);if(Array.isArray(o)){let r=o.indexOf(t);r>=0&&o.splice(r,1)}}for(let[n,o]of[["inputSets","dataInputRefs"],["outputSets","dataOutputRefs"]])for(let r of e.get(n)??[]){let i=r.get(o),a=Array.isArray(i)?i.indexOf(t):-1;a>=0&&i.splice(a,1)}}t.$parent=null}function BM(t){let e=t;if(e&&e.$type==="bpmn:Participant"&&e.processRef)return e.processRef;for(;e;){if(e.$type==="bpmn:Process"||e.$type==="bpmn:SubProcess")return e;e=e.$parent}return null}function y5(t){let e=t?.businessObject;return!!e&&e.$type==="bpmn:TextAnnotation"&&ec(typeof e.text=="string"?e.text:"")}function Rl(t){return!!t?.businessObject&&y(t,"bpmn:Activity")}function b5(t){let e=[];for(let n of[...t.incoming??[],...t.outgoing??[]]){if(n.type!=="bpmn:Association")continue;let o=n.source===t?n.target:n.source;o&&e.push(o)}return e}function sg(t){return Rl(t)?b5(t).filter(y5):[]}function ag(t){return!!t&&y5(t)&&b5(t).some(Rl)}function PM(t){return t.waypoints?t.type==="bpmn:Association"&&(ag(t.source)&&Rl(t.target)||ag(t.target)&&Rl(t.source)):ag(t)}function bu(t){let e=t.businessObject;if(!e)return;let n={};return(e.$type==="bpmn:SubProcess"||e.$type==="bpmn:Participant")&&(n.expanded=!!Ut(t,jt(t))),(e.$type==="bpmn:Participant"||e.$type==="bpmn:Lane")&&(n.horizontal=!!Ye(t)),Qf(e,n)}function LM(t){return{id:"legend",modelerModules:[f5,zM,MM],viewerModules:[f5],tokens:yu(t)}}var wM,g5,_M,EM,SM,TM,AM,MM,DM,ig,jM,$M,OM,f5,zM,x5=Tn(()=>{"use strict";ni();hu();bs();rg();Rc();Em();wM={"legend.start":"bpmn-icon-start-event-none","legend.end":"bpmn-icon-end-event-none","legend.intermediate-event":"bpmn-icon-intermediate-event-none","legend.task":"bpmn-icon-task","legend.subprocess":"bpmn-icon-subprocess-collapsed","legend.external-process":"bpmn-icon-call-activity","legend.gateway-or":"bpmn-icon-gateway-xor","legend.gateway-and":"bpmn-icon-gateway-parallel","legend.data-input":"bpmn-icon-data-object","legend.data-output":"bpmn-icon-data-object","legend.external-input":"bpmn-icon-data-input","legend.process-output":"bpmn-icon-data-output","legend.document":"bpmn-icon-text-annotation","legend.application":"bpmn-icon-text-annotation","legend.lane":"bpmn-icon-lane-insert-below","legend.sequence-flow":"bpmn-icon-connection-multi"},g5=[{id:"legend.start",title:"Start",bpmnType:"bpmn:StartEvent",group:"events"},{id:"legend.end",title:"End",bpmnType:"bpmn:EndEvent",group:"events"},{id:"legend.intermediate-event",title:"Intermediate event",bpmnType:"bpmn:IntermediateThrowEvent",group:"events"},{id:"legend.task",title:"Task",bpmnType:"bpmn:Task",group:"activities"},{id:"legend.subprocess",title:"Sub-process (collapsed)",bpmnType:"bpmn:SubProcess",group:"activities",preset:{collapsed:!0}},{id:"legend.external-process",title:"External process",bpmnType:"bpmn:CallActivity",group:"activities"},{id:"legend.gateway-or",title:"Gateway OR",bpmnType:"bpmn:ExclusiveGateway",group:"gateways",preset:{subtype:"or"}},{id:"legend.gateway-and",title:"Gateway AND",bpmnType:"bpmn:ParallelGateway",group:"gateways",preset:{subtype:"and"}},{id:"legend.data-input",title:"Task input",bpmnType:"bpmn:DataObjectReference",group:"data",preset:{name:"Input"}},{id:"legend.data-output",title:"Task output",bpmnType:"bpmn:DataObjectReference",group:"data",preset:{name:"Output"}},{id:"legend.external-input",title:"External input",bpmnType:"bpmn:DataInput",group:"data",preset:{name:"External input"}},{id:"legend.process-output",title:"Process output",bpmnType:"bpmn:DataOutput",group:"data",preset:{name:"Process output"}},{id:"legend.document",title:"Document reference",bpmnType:"bpmn:TextAnnotation",group:"annotations",preset:{text:"[Doc] "}},{id:"legend.application",title:"Application",bpmnType:"bpmn:TextAnnotation",group:"annotations",preset:{text:"[App] "}},{id:"legend.lane",title:"Lane",bpmnType:"bpmn:Lane",group:"structure"},{id:"legend.sequence-flow",title:"Sequence flow",bpmnType:"bpmn:SequenceFlow",group:"flows",tool:"connect"}],_M=Object.freeze(g5.map(t=>t.id)),EM=class{static $inject=["palette","create","elementFactory","globalConnect"];create;elementFactory;globalConnect;constructor(t,e,n,o){this.create=e,this.elementFactory=n,this.globalConnect=o,t.registerProvider(this)}getPaletteEntries(){let t={};for(let e of g5)t[e.id]={group:e.group,className:wM[e.id]??"bpmn-icon-task",title:"Create ".concat(e.title),action:{dragstart:n=>this.startCreate(n,e),click:n=>this.startCreate(n,e)}};return t}startCreate(t,e){if(e.tool==="connect"){this.globalConnect.start(t);return}let n={type:e.bpmnType};e.preset?.name&&(n.name=e.preset.name),e.preset?.text&&(n.text=e.preset.text),e.preset?.collapsed&&(n.isExpanded=!1);let o=this.elementFactory.createShape(n);e.preset?.name&&(o.businessObject.name=e.preset.name),this.create.start(t,o)}},SM=["bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"],TM=class{static $inject=["eventBus"];constructor(t){let e=n=>{let o=n.context?.shapes??(n.context?.shape?[n.context.shape]:[]),r=n.context?.target;if(o.length===1&&(y(o[0],"bpmn:DataInput")||y(o[0],"bpmn:DataOutput"))&&SM.some(i=>y(r,i)))return!0};t.on("commandStack.shape.create.canExecute",1500,e),t.on("commandStack.elements.create.canExecute",1500,e)}};AM=class extends $n{static $inject=$n.$inject;bpmnFactory;created=new WeakSet;constructor(t,e,n){super(t,e,n),this.bpmnFactory=e}updateSemanticParent(t,e,n){if(!CM(t)){super.updateSemanticParent(t,e,n);return}let o=t.$parent;if(RM(t),this.dropEmptySpecification(o),!e)return;let r=BM(e);if(!r)return;let i=r.ioSpecification;i||(i=this.bpmnFactory.create("bpmn:InputOutputSpecification"),r.set("ioSpecification",i),i.$parent=r,this.created.add(i)),this.ensureSets(i);let a=t.$type==="bpmn:DataInput";i.get(a?"dataInputs":"dataOutputs").push(t),t.$parent=i,i.get(a?"inputSets":"outputSets")[0]?.get(a?"dataInputRefs":"dataOutputRefs").push(t)}dropEmptySpecification(t){if(!t||!this.created.has(t))return;let e=t.get("dataInputs").length===0&&t.get("dataOutputs").length===0&&[...t.get("inputSets"),...t.get("outputSets")].every(o=>(o.get("dataInputRefs")?.length??0)+(o.get("dataOutputRefs")?.length??0)+(o.get("optionalInputRefs")?.length??0)+(o.get("optionalOutputRefs")?.length??0)+(o.get("whileExecutingInputRefs")?.length??0)+(o.get("whileExecutingOutputRefs")?.length??0)===0),n=t.$parent;e&&n&&n.ioSpecification===t&&(n.set("ioSpecification",void 0),t.$parent=null)}ensureSets(t){for(let[e,n]of[["inputSets","bpmn:InputSet"],["outputSets","bpmn:OutputSet"]]){let o=t.get(e);if(o.length===0){let r=this.bpmnFactory.create(n);r.$parent=t,o.push(r)}}}},MM={__init__:["paletteProvider","legendRules"],paletteProvider:["type",EM],legendRules:["type",TM],bpmnUpdater:["type",AM]},DM=1500,ig="legend-no-colour";jM=class extends ko{static $inject=["eventBus","textRenderer","canvas","config.bpmnCanvas","bpmnRenderer"];upstream;textRenderer;canvas;instanceId;tokens;constructor(t,e,n,o,r){super(t,DM),this.upstream=r,this.textRenderer=e,this.canvas=n,this.instanceId=o?.instanceId??"legend-".concat(Math.random().toString(36).slice(2,8)),this.tokens=o?.legend??yu()}get arrowId(){return"".concat(this.instanceId,"-legend-arrow")}get gradientId(){return"".concat(this.instanceId,"-legend-task-gradient")}canRender(t){let e=t;return e.type==="label"?this.recolorsLabels&&!!e.businessObject:e.businessObject?e.waypoints?this.connectionKind(e)!==void 0:bu(t)!==void 0:!1}endsOnDocument(t){return[t.source,t.target].some(e=>e?.businessObject&&Qf(e.businessObject)==="document")}connectionKind(t){let e=d5(t.businessObject);return e===void 0&&t.businessObject?.$type==="bpmn:Association"&&this.endsOnDocument(t)?"link":e}get recolorsLabels(){return this.tokens.labelText!==gu.labelText}drawConnection(t,e){let n=e,o=this.connectionKind(n),r=this.tokens,i=at("path");if(o==="sequence")Z(i,{d:fu(n.waypoints),fill:"none",stroke:ut(n,r.flow),"stroke-width":r.strokeWidth,"stroke-linejoin":"round","marker-end":"url(#".concat(this.arrowMarker(ut(n,r.flow)),")")}),kt(i).add("legend-flow");else{let a=this.endsOnDocument(n),s=ut(n,a?r.docLink:r.link);Z(i,{d:fu(n.waypoints),fill:"none",stroke:s,"stroke-width":r.strokeWidth,"stroke-dasharray":a?r.docLinkDash:"5 5",...o==="data-link"&&r.dataLinkArrow?{"marker-end":"url(#".concat(this.arrowMarker(s),")")}:{}}),kt(i).add("legend-link")}return dt(t,i),i}drawLabel(t,e){let n=this.upstream.drawShape(t,e),o=!1;try{o=!!jt(e.labelTarget??e).get("label")?.get("color:color")}catch{}if(!o)for(let r of gs(t,"text")){Z(r,{fill:this.tokens.labelText});for(let i of gs(r,"tspan"))i.style.fill&&Z(i,{fill:this.tokens.labelText})}return n}getConnectionPath(t){return fu(t.waypoints)}drawShape(t,e){if(e.type==="label")return this.drawLabel(t,e);let n=at("g");return kt(n).add("legend-shape"),dt(t,n),this.draw(n,e),n}draw(t,e){let n=bu(e);if(!n)return;let o=this.tokens,r=this.defaultFill(n),i=Wt(e,ig),a=i===ig?r:i,s=ut(e,this.lineFor(n)),c=o.strokeWidth,l=e.width,p=e.height;switch(n){case"task":case"subprocess":{let d=at("rect"),u=i===ig?"url(#".concat(this.taskGradient(),")"):a;Z(d,{x:0,y:0,width:l,height:p,rx:10,fill:u,stroke:s,"stroke-width":c}),kt(d).add("legend-task"),dt(t,d),n==="subprocess"&&this.subprocessMarker(t,l,p,s),this.label(t,e,a,s,l,p),this.drawApps(t,e);break}case"external":{let d=at("rect");Z(d,{x:0,y:0,width:l,height:p,rx:10,fill:a,stroke:s,"stroke-width":c}),dt(t,d);let u=at("path");Z(u,{d:"M".concat(l-24," 9h9v-3l6 5l-6 5v-3h-9Z"),fill:"none",stroke:s,"stroke-width":c,"pointer-events":"all","data-marker":"process-icon"}),kt(u).add("legend-process-icon"),kt(u).add("legend-marker"),dt(t,u),this.label(t,e,a,s,l,p),this.drawApps(t,e);break}case"event":{let d=l/2,u=p/2,m=Math.min(l,p)/2,h=y(e,"bpmn:EndEvent"),f=y(e,"bpmn:StartEvent"),g=at("circle");if(Z(g,{cx:d,cy:u,r:h?m-1.5:m,fill:a,stroke:s,"stroke-width":h?3*c:c}),dt(t,g),!h&&!f){let v=at("circle");Z(v,{cx:d,cy:u,r:Math.max(1,m-3),fill:"none",stroke:s,"stroke-width":c}),dt(t,v)}break}case"gateway":this.diamond(t,l,p,a,s,c),this.gatewayMarker(t,e,l,p,s);break;case"data":this.dataPage(t,l,p,a,s);break;case"input":case"output":{this.dataPage(t,l,p,a,s);let d=at("path");Z(d,{d:"M4 7h6v-3l6 5l-6 5v-3h-6Z",fill:n==="output"?s:"none",stroke:s,"stroke-width":1.2}),kt(d).add(n==="output"?"legend-output":"legend-input"),dt(t,d);break}case"document":{let d=at("path");Z(d,{d:eg(l,p),fill:a,stroke:s,"stroke-width":c}),dt(t,d);let u=at("line");Z(u,{x1:0,y1:bi.band,x2:l,y2:bi.band,stroke:s,"stroke-width":c}),dt(t,u);let m=m5(l,p),h=this.textRenderer.createText(mu(e.businessObject?.text),{box:{width:m.width,height:m.height},align:"center-top",padding:0,style:{fill:$r(e,o.text,s),fontSize:Math.max(8,o.fontSize-1),fontFamily:o.fontFamily,lineHeight:1.2}});Z(h,{transform:"translate(".concat(m.x," ").concat(m.y,")")}),kt(h).add("djs-label"),dt(t,h);break}case"application":this.appBox(t,{name:mu(e.businessObject?.text),x:0,y:0,width:l,height:p},a,s);break;case"lane":{let d=at("rect");Z(d,{x:0,y:0,width:l,height:p,fill:"none",stroke:s,"stroke-width":c}),dt(t,d);let u=at("rect");Z(u,{x:0,y:0,width:40,height:p,fill:o.laneHeaderFill,stroke:s,"stroke-width":c}),kt(u).add("legend-lane-header"),dt(t,u),this.verticalHeader(t,e,p,40,o.fontSize+2);break}case"pool":{let d=at("rect");Z(d,{x:0,y:0,width:l,height:p,fill:"none",stroke:s,"stroke-width":c}),dt(t,d);let u=at("rect");Z(u,{x:0,y:0,width:30,height:p,fill:a,stroke:s,"stroke-width":c}),kt(u).add("legend-pool-strip"),dt(t,u),this.verticalHeader(t,e,p,30,o.fontSize+2);break}}}defaultFill(t){let e=this.tokens;switch(t){case"task":case"subprocess":return e.taskFill;case"external":case"input":case"output":return e.externalFill;case"event":return e.eventFill;case"gateway":return e.gatewayFill;case"data":return e.dataFill;case"document":return e.docFill;case"application":return e.appFill;case"lane":return e.laneFill;case"pool":return e.poolFill}}lineFor(t){let e=this.tokens;switch(t){case"task":case"subprocess":return e.taskLine;case"external":case"input":case"output":return e.externalLine;case"event":return e.eventLine;case"gateway":return e.gatewayLine;case"data":return e.dataLine;case"document":return e.docLine;case"application":return e.appLine;case"lane":return e.laneLine;case"pool":return e.poolLine}}drawApps(t,e){let n=sg(e);if(n.length===0)return;let o=n.map(a=>mu(a.businessObject?.text)),r=n.length===1?n[0]:null,i=r?{x:(r.x??0)-(e.x??0),y:(r.y??0)-(e.y??0)}:null;(r&&i&&i.y>=e.height-20&&i.y<=e.height+5&&i.x>=-5&&i.x+r.width<=e.width+5?[{name:o[0],x:i.x,y:i.y,width:r.width,height:r.height}]:u5(o,e.width,e.height)).forEach((a,s)=>{let c=n[s];this.appBox(t,a,Wt(c,this.tokens.appFill),ut(c,this.tokens.appLine))})}appBox(t,e,n,o){let r=this.tokens,i=at("g");kt(i).add("legend-app"),Z(i,{transform:"translate(".concat(e.x," ").concat(e.y,")")});let a=at("rect");Z(a,{x:0,y:0,width:e.width,height:e.height,fill:n,stroke:o,"stroke-width":r.strokeWidth}),dt(i,a);let s=e.width-17,c=at("path");Z(c,{d:"M".concat(s+3," 5h9v12h-9ZM").concat(s," 7.5h6v2.5h-6ZM").concat(s," 12h6v2.5h-6Z"),fill:n,stroke:o,"stroke-width":r.strokeWidth}),dt(i,c);let l=this.textRenderer.createText(e.name,{box:{width:Math.max(10,e.width-27),height:e.height},align:"right-middle",padding:2,style:{fill:tg(n,r.text,r.fill),fontSize:r.fontSize,fontFamily:r.fontFamily,fontWeight:700}});Z(l,{transform:"translate(5 0)"}),kt(l).add("djs-label"),dt(i,l),dt(t,i)}defsFor(t){let e=this.canvas?._svg;if(!e||e.querySelector('[id="'.concat(t,'"]')))return null;let n=e.querySelector(":scope > defs");return n||(n=at("defs"),dt(e,n)),n}arrowMarker(t){let e=t===this.tokens.flow?this.arrowId:"".concat(this.arrowId,"-").concat(t.replace(/[^0-9a-zA-Z]/g,"")),n=this.defsFor(e);if(!n)return e;let o=at("marker");Z(o,{id:e,viewBox:"0 0 10 10",refX:"9.5",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto"});let r=at("path");return Z(r,{d:"M0 0L10 5L0 10L2.5 5Z",fill:t,stroke:"none"}),dt(o,r),dt(n,o),e}taskGradient(){let t=this.gradientId,e=this.defsFor(t);if(!e)return t;let n=at("linearGradient");Z(n,{id:t,x1:"0",y1:"0",x2:"1",y2:"0"});for(let[o,r]of[["0",this.tokens.taskFill],["1",this.tokens.taskFillEnd]]){let i=at("stop");Z(i,{offset:o,"stop-color":r}),dt(n,i)}return dt(e,n),t}label(t,e,n,o,r,i){let a=this.tokens,s=sg(e).length?fo.overlap:0,c=this.textRenderer.createText(e.businessObject?.name||"",{box:{width:r,height:i-s},align:"center-middle",padding:7,style:{fill:$r(e,tg(n,a.text,a.fill),o),fontSize:a.fontSize,fontFamily:a.fontFamily}});kt(c).add("djs-label"),dt(t,c)}verticalHeader(t,e,n,o,r){let i=this.tokens,a=e.businessObject?.name||"",s=this.textRenderer.createText(a,{box:{width:n,height:o},align:"center-middle",padding:6,style:{fill:$r(e,i.headerText),fontSize:r,fontFamily:i.fontFamily,fontWeight:700}});Z(s,{transform:"translate(0 ".concat(n,") rotate(-90)")}),kt(s).add("djs-label"),dt(t,s)}subprocessMarker(t,e,n,o){let r=at("g");kt(r).add("legend-subprocess-marker"),kt(r).add("legend-marker"),Z(r,{"data-marker":"sub-process","pointer-events":"all"});let i=at("rect");Z(i,{x:e/2-7,y:n-18,width:14,height:14,fill:"transparent",stroke:o,"stroke-width":1.2,"pointer-events":"all"}),kt(i).add("legend-marker"),dt(r,i);let a=at("path");Z(a,{d:"M".concat(e/2-4," ").concat(n-11,"h8M").concat(e/2," ").concat(n-15,"v8"),stroke:o,"stroke-width":1.2,"pointer-events":"all"}),kt(a).add("legend-marker"),dt(r,a),dt(t,r)}diamond(t,e,n,o,r,i){let a=e/2,s=n/2,c=at("path");Z(c,{d:"M".concat(a," 0L").concat(e," ").concat(s,"L").concat(a," ").concat(n,"L0 ").concat(s,"Z"),fill:o,stroke:r,"stroke-width":i}),dt(t,c)}gatewayMarker(t,e,n,o,r){let i=n/2,a=o/2,s=y(e,"bpmn:ParallelGateway"),c=at("path");Z(c,{d:s?"M".concat(i-10," ").concat(a,"h20M").concat(i," ").concat(a-10,"v20"):"M".concat(i-8," ").concat(a-8,"l16 16M").concat(i+8," ").concat(a-8,"l-16 16"),stroke:r,"stroke-width":5*this.tokens.strokeWidth,"stroke-linecap":"butt"}),dt(t,c)}dataPage(t,e,n,o,r){let i=this.tokens.strokeWidth,a=at("path"),s=Math.round(Math.min(e,n)*.2);Z(a,{d:"M0 0h".concat(e-s,"l").concat(s," ").concat(s,"v").concat(n-s,"h-").concat(e,"Z"),fill:o,stroke:r,"stroke-width":i}),kt(a).add("legend-data-page"),dt(t,a);let c=at("path");Z(c,{d:"M".concat(e-s," 0v").concat(s,"h").concat(s),fill:"none",stroke:r,"stroke-width":i}),kt(c).add("legend-data-fold"),dt(t,c)}getShapePath(t){let e=t,n=bu(t),o=e.width,r=e.height;if(n==="event"){let i=Math.min(o,r)/2,a=o/2,s=r/2;return"M".concat(a-i," ").concat(s,"a").concat(i," ").concat(i," 0 1 0 ").concat(2*i," 0a").concat(i," ").concat(i," 0 1 0 ").concat(-2*i," 0Z")}return n==="gateway"?"M".concat(o/2," 0L").concat(o," ").concat(r/2,"L").concat(o/2," ").concat(r,"L0 ").concat(r/2,"Z"):n==="document"?eg(o,r):"M0 0h".concat(o,"v").concat(r,"h-").concat(o,"Z")}},$M=class{static $inject=["eventBus","elementRegistry","graphicsFactory"];registry;graphicsFactory;constructor(t,e,n){this.registry=e,this.graphicsFactory=n,t.on("import.render.complete",()=>this.refresh(!0)),t.on("elements.changed",500,()=>this.refresh(!1))}refresh(t){for(let e of this.registry.getAll()){if(e.type==="label"||!e.parent)continue;let n=this.registry.getGraphics(e);if(!n)continue;let o=PM(e),r=!!e.hidden!==o;e.hidden=o;let i=bu(e),a=!e.waypoints&&(Rl(e)||i==="data"||i==="input"||i==="output");if(t||a||r)try{this.graphicsFactory.update(e.waypoints?"connection":"shape",e,n)}catch{}}}},OM=class{static $inject=["eventBus"];constructor(t){new J(t).preExecute("elements.move",e=>{let n=e.context.shapes;for(let o of[...n])for(let r of sg(o))n.includes(r)||n.push(r)})}},f5={__init__:["legendRenderer","legendSync"],legendRenderer:["type",jM],legendSync:["type",$M]},zM={__init__:["legendAppFollow"],legendAppFollow:["type",OM]}});var E5={};Ci(E5,{DEFAULT_COLORED_TOKENS:()=>_5,coloredProfile:()=>UM,resolveColoredTokens:()=>cg});function cg(t){let e=og(_5,t);return t?.labelText===void 0?{...e,labelText:e.text}:e}function NM(t){return Object.values(t??{}).some(e=>e!==void 0)}function IM(t){let e=new Set;for(let[n,o]of Object.entries(t??{}))o!==void 0&&e.add(n);if(e.has("stroke"))for(let n of ng)e.add(n);return e.has("fill")&&e.add("taskFill"),e.has("text")&&e.add("labelText"),[...e]}function k5(t){if(t?.businessObject){if(t.labelTarget)return"label";if(y(t,"bpmn:Participant"))return"pool";if(y(t,"bpmn:Lane"))return"lane";if(y(t,"bpmn:Event"))return"event";if(y(t,"bpmn:Gateway"))return"gateway";if(y(t,"bpmn:CallActivity"))return"external";if(y(t,"bpmn:Activity"))return"task";if(y(t,"bpmn:DataInput")||y(t,"bpmn:DataOutput"))return"external";if(y(t,"bpmn:DataObjectReference")||y(t,"bpmn:DataStoreReference")||y(t,"bpmn:DataObject"))return"data";if(y(t,"bpmn:TextAnnotation")){let e=t.businessObject.text;return FM(e)?"doc":WM(e)?"app":"annotation"}if(y(t,"bpmn:SequenceFlow")||y(t,"bpmn:MessageFlow"))return"flow";if(y(t,"bpmn:Association")||y(t,"bpmn:DataAssociation"))return"link"}}function vu(t,e){try{let n=jt(t);return e==="fill"?!!(n.get("color:background-color")||n.get("bioc:fill")):e==="stroke"?!!(n.get("color:border-color")||n.get("bioc:stroke")):!!n.get("label")?.get("color:color")}catch{return!1}}function UM(t){return NM(t)?{id:"colored",modelerModules:[w5],viewerModules:[w5],tokens:cg(t),named:IM(t)}:{id:"colored",modelerModules:[],viewerModules:[]}}var _5,HM,FM,WM,GM,w5,S5=Tn(()=>{"use strict";ni();bs();rg();_5=h5;HM=1500,FM=t=>/^\s*\[Doc\]/.test(typeof t=="string"?t:""),WM=t=>/^\s*\[App\]/.test(typeof t=="string"?t:"");GM={task:{fill:"taskFill",stroke:"taskLine"},event:{fill:"eventFill",stroke:"eventLine"},gateway:{fill:"gatewayFill",stroke:"gatewayLine"},pool:{fill:"poolFill",stroke:"poolLine"},lane:{fill:"laneFill",stroke:"laneLine"},external:{fill:"externalFill",stroke:"externalLine"},doc:{stroke:"docLine"},app:{stroke:"appLine"},data:{fill:"dataFill",stroke:"dataLine"},annotation:{stroke:"stroke"},flow:{stroke:"flow"},link:{stroke:"link"}},w5={__init__:["coloredRenderer"],coloredRenderer:["type",class extends ko{static $inject=["eventBus","bpmnRenderer","config.bpmnCanvas"];upstream;tokens;named;constructor(t,e,n){super(t,HM),this.upstream=e,this.tokens=n?.colored??cg(),this.named=n?.coloredNamed?new Set(n.coloredNamed):void 0}canRender(t){return!!t?.businessObject&&y(t,"bpmn:BaseElement")}isNamed(t){return this.named===void 0||this.named.has(t)}coloursOf(t,e){let n=this.tokens,o;switch(t){case"task":o={stroke:n.taskLine,fill:n.taskFill};break;case"event":o={stroke:n.eventLine,fill:n.eventFill};break;case"gateway":o={stroke:n.gatewayLine,fill:n.gatewayFill};break;case"pool":o={stroke:n.poolLine,fill:n.poolFill};break;case"lane":o={stroke:n.laneLine,fill:n.laneFill};break;case"external":o={stroke:n.externalLine,fill:n.externalFill};break;case"doc":o={stroke:n.docLine};break;case"app":o={stroke:n.appLine};break;case"data":o={stroke:n.dataLine,fill:n.dataFill};break;case"annotation":o={stroke:n.stroke};break;case"flow":o={stroke:n.flow};break;case"link":o={stroke:n.link};break;default:o={}}let r=GM[t??"label"];return r&&(r.fill&&!this.isNamed(r.fill)&&delete o.fill,r.stroke&&!this.isNamed(r.stroke)&&delete o.stroke),o.fill!==void 0&&vu(e,"fill")&&delete o.fill,o.stroke!==void 0&&vu(e,"stroke")&&delete o.stroke,o}finish(t,e,n){if(!n||n==="flow"||n==="link")return;let o=this.tokens,r=n==="pool"||n==="lane"?"headerText":n==="label"?"labelText":"text";if(this.isNamed(r)&&!vu(e,"label")){let i=o[r];for(let a of gs(t,"text")){Z(a,{fill:i});for(let s of gs(a,"tspan"))s.style.fill&&Z(s,{fill:i})}}if((n==="doc"||n==="app")&&this.isNamed(n==="doc"?"docFill":"appFill")&&!vu(e,"fill")){let i=z0(t,"rect");i&&Z(i,{fill:n==="doc"?o.docFill:o.appFill})}}drawShape(t,e,n={}){let o=k5(e),r=this.upstream.drawShape(t,e,{...this.coloursOf(o,e),...n});return this.finish(t,e,o),r}drawConnection(t,e,n={}){let o=k5(e);return this.upstream.drawConnection(t,e,{...this.coloursOf(o,e),...n})}}]}});var Z5={};Ci(Z5,{AutoLayoutHandler:()=>Y5,BpmnCanvasLayout:()=>X5,BpmnCanvasLayoutModule:()=>UD,layoutChanges:()=>q5,processesByParticipant:()=>K5});function VM(t){return!!t.sourceRef}function gg(t){return!!t.attachedToRef}function N5(t,e,n=new Set){if(t===e)return!0;if(n.has(t)||(n.add(t),!t.outgoing||t.outgoing.length===0))return!1;for(let o of t.outgoing.map(r=>r.targetRef))if(N5(o,e,n))return!0;return!1}function I5(t){return Gn(t,"bpmn:SubProcess")||Gn(t,"bpmn:Task")?{width:lg,height:wu}:Gn(t,"bpmn:Gateway")?{width:50,height:50}:Gn(t,"bpmn:Event")?{width:36,height:36}:Gn(t,"bpmn:Participant")||Gn(t,"bpmn:Lane")?{width:400,height:100}:Gn(t,"bpmn:DataObjectReference")?{width:36,height:50}:Gn(t,"bpmn:DataStoreReference")?{width:50,height:50}:Gn(t,"bpmn:TextAnnotation")?{width:lg,height:30}:{width:lg,height:wu}}function Gn(t,e){return t.$instanceOf(e)}function yg(t){return{x:t.x+t.width/2,y:t.y+t.height/2}}function yn(t,e,n="r",o="top-left"){if(n==="h"&&(n=/left/.test(o)?"l":"r"),n==="v"&&(n=/top/.test(o)?"t":"b"),n==="t")return{original:t,x:t.x,y:e.y};if(n==="r")return{original:t,x:e.x+e.width,y:t.y};if(n==="b")return{original:t,x:t.x,y:e.y+e.height};if(n==="l")return{original:t,x:e.x,y:t.y};throw Error("unexpected dockingDirection: <"+n+">")}function H5(t,e,n){let o=t.di,r=e.di,i=o.get("bounds"),a=r.get("bounds"),s=yg(i),c=yg(a),l=e.gridPosition.col-t.gridPosition.col,p=e.gridPosition.row-t.gridPosition.row,d="".concat(p>0?"bottom":"top","-").concat(l>0?"right":"left"),u="".concat(p>0?"top":"bottom","-").concat(l>0?"left":"right"),m=t.grid||t.attachedToRef?.grid,h=e.grid;if(l===0&&p===0){let{x:v,y:k}=pg(t.gridPosition.row,t.gridPosition.col);return[yn(s,i,"r",d),{x:m?v+(m.getGridDimensions()[1]+1)*wn:v+wn,y:s.y},{x:m?v+(m.getGridDimensions()[1]+1)*wn:v+wn,y:k},{x:c.x,y:k},yn(c,a,"t",u)]}if(l<0){let{y:v}=pg(t.gridPosition.row,t.gridPosition.col),k=ge/2;if(s.y>=c.y){let _=KM(t,e,n);return _?[yn(s,i,"b"),{x:s.x,y:m?v+(m.getGridDimensions()[0]+1)*ge:v+ge+_*ge},{x:c.x,y:m?v+(m.getGridDimensions()[0]+1)*ge:v+ge+_*ge},yn(c,a,"b")]:[yn(s,i,"b"),{x:s.x,y:m?v+(m.getGridDimensions()[0]+1)*ge:v+ge},{x:c.x,y:m?v+(m.getGridDimensions()[0]+1)*ge:v+ge},yn(c,a,"b")]}{let _=s.y-k;return[yn(s,i,"t"),{x:s.x,y:_},{x:c.x,y:_},yn(c,a,"t")]}}if(p===0){if(T5(t,e,n)){let{y:v}=pg(t.gridPosition.row,t.gridPosition.col);return[yn(s,i,"b"),{x:s.x,y:m?v+(m.getGridDimensions()[0]+1)*ge:v+ge},{x:c.x,y:m?v+(m.getGridDimensions()[0]+1)*ge:v+ge},yn(c,a,"b")]}{let v=yn(s,i,"h",d),k=yn(c,a,"h",u);return m&&(v.y=i.y+wu/2),h&&(k.y=a.y+wu/2),[v,k]}}if(l===0){if(T5(t,e,n)){let v=-Math.sign(p)*ge/2;return[yn(s,i,"r"),{x:s.x+wn/2,y:s.y},{x:c.x+wn/2,y:c.y+v},{x:c.x,y:c.y+v},yn(c,a,Math.sign(v)>0?"b":"t")]}return[yn(s,i,"v",d),yn(c,a,"v",u)]}let f=qM(t,e,n);if(f){let v=yn(s,i,f[0],d),k=yn(c,a,f[1],u);return[v,f[0]==="h"?{x:k.x,y:v.y}:{x:v.x,y:k.y},k]}let g=-Math.sign(p)*ge/2;return[yn(s,i,"r",d),{x:s.x+wn/2,y:s.y},{x:s.x+wn/2,y:c.y+g},{x:c.x-wn/2,y:c.y+g},{x:c.x-wn/2,y:c.y},yn(c,a,"l",u)]}function pg(t,e){return{width:wn,height:ge,x:e*wn,y:t*ge}}function bg(t,e,n,o,r){let{width:i,height:a}=I5(t),{x:s,y:c}=o;if(!r)return{width:t.isExpanded?t.grid.getGridDimensions()[1]*wn+i:i,height:t.isExpanded?t.grid.getGridDimensions()[0]*ge+a:a,x:n*wn+(wn-i)/2+s,y:e*ge+(ge-a)/2+c};let l=r.di.bounds;return{width:i,height:a,x:Math.round(l.x+l.width/2-i/2),y:Math.round(l.y+l.height-a/2)}}function T5(t,e,n){let{row:o,col:r}=t.gridPosition,{row:i,col:a}=e.gridPosition,s=a-r,c=i-o,l=0;return s&&(l+=n.getElementsInRange({row:o,col:r},{row:o,col:a}).length),c&&(l+=n.getElementsInRange({row:o,col:a},{row:i,col:a}).length),l>2}function qM(t,e,n){let{row:o,col:r}=t.gridPosition,{row:i,col:a}=e.gridPosition,s=a-r,c=i-o;if(s>0&&c!==0){if(c>0){let l=0,p={row:i,col:r};return l+=n.getElementsInRange({row:o,col:r},p).length,l+=n.getElementsInRange(p,{row:i,col:a}).length,l>2?!1:["v","h"]}{let l=0,p={row:o,col:a};return l+=n.getElementsInRange({row:o,col:r},p).length,l+=n.getElementsInRange(p,{row:i,col:a}).length,l>2?!1:["h","v"]}}}function KM(t,e,n){let o=t.attachedToRef?t.attachedToRef:t,r=e.attachedToRef?e.attachedToRef:e,[i,a]=n.find(o),[,s]=n.find(r),c=a<s?a:s,l=a<s?s:a;return n.getAllElements().filter(p=>p.gridPosition.row===i&&p.gridPosition.col>c&&p.gridPosition.col<l).reduce((p,d)=>{if(d.grid?.getGridDimensions()[0]>p)return d.grid?.getGridDimensions()[0]},0)}function JM(t,e,n){let[o,r]=n.find(e);(n.get(o+1,r)||n.get(o+1,r+1))&&n.createRow(o),n.add(t,[o+1,r+1])}function QM(t,e,[n,o]){let r=t.di.get("bounds"),i=yn(yg(r),r,"b");if(e[0].x===i.x&&e[0].y===i.y)return;let a=t.grid||t.attachedToRef?.grid;if(e.length===2){let c=[i,{x:i.x,y:a?(n+a.getGridDimensions()[0]+1)*ge:(n+1)*ge},{x:a?(o+a.getGridDimensions()[1]+1)*wn:(o+1)*wn,y:a?(n+a.getGridDimensions()[0]+1)*ge:(n+1)*ge},{x:a?(o+a.getGridDimensions()[1]+1)*wn:(o+1)*wn,y:a?n*ge+ge/2:(n+.5)*ge}];e.splice(0,1,...c);return}let s=[i,{x:i.x,y:a?(n+a.getGridDimensions()[0]+1)*ge:(n+1)*ge},{x:e[1].x,y:a?(n+a.getGridDimensions()[0]+1)*ge:(n+1)*ge}];e.splice(0,1,...s)}function nD(t,e){let n=t.filter(o=>!Gn(o,e));return[...t.filter(o=>Gn(o,e)),...n]}function oD(t,e){for(let n of t.incoming)if(!e.has(n.sourceRef))return N5(t,n.sourceRef)}function rD(t,e){if(t.incoming.length>1){for(let n of t.incoming)if(!e.has(n.sourceRef))return!0}return!1}function iD(t){return t.every(e=>Gn(e,"bpmn:Task"))}function cD(t){t.filter(e=>gg(e)).forEach(e=>{let n=e.attachedToRef,o=n.attachers||[];o.push(e),n.attachers=o})}function lD(t){let[e,n]=t.getGridDimensions();for(let o=n-1;o>=0;o--){let r=[];for(let a=0;a<e;a++){let s=t.get(a,o);s&&s.isExpanded&&r.push(s)}if(r.length===0)continue;let i=r.reduce((a,s)=>{let[,c]=s.grid.getGridDimensions();return a===void 0||c>a?c:a},void 0)||2;t.createCol(o,i)}}function pD(t){let[e,n]=t.getGridDimensions();for(let o=e-1;o>=0;o--){let r=[];for(let a=0;a<n;a++){let s=t.get(o,a);s&&s.isExpanded&&r.push(s)}if(r.length===0)continue;let i=r.reduce((a,s)=>{let[c]=s.grid.getGridDimensions();return a===void 0||c>a?c:a},void 0)||1;for(let a=0;a<i;a++)t.createRow(o)}}function dD(t){let e=t.incoming?.filter(o=>o.sourceRef!==t&&o.sourceRef.attachedToRef===void 0)||[],n=t.incoming?.filter(o=>o.sourceRef!==t&&o.sourceRef.attachedToRef!==t);return e?.length>0||n?.length>0}function uD(t){return new sD().layoutProcess(t)}function j5(t,e,n){let o=n.padX??8,r=n.padY??6,i=Vr(t,e,n.bold)+2*o,a,s;i<=n.maxW?(a=Math.max(n.minW,i),s=1):(a=n.maxW,s=Ha(t,e,n.maxW-2*o,n.bold).length);let c=Math.max(n.minH,s*e*W5+2*r+(n.extraH??0));return[Math.ceil(a),Math.ceil(c)]}function mg(t,e,n,o=!1){if(!(t??"").trim())return[0,0];let r=Ha(t,e,n,o),i=Math.max(...r.map(a=>Vr(a,e,o)));return[Math.ceil(Math.min(n,i)+4),Math.ceil(r.length*e*W5+2)]}function kD(t,e){let n=Vr(t,oc,!0)+vg,o=Math.max(D5,e-2*U5),r=Math.trunc(Math.min(o,Math.max(D5,Math.ceil(n))));if(n<=r)return[r,P5];let i=Ha(t,oc,r-vg,!0).length;return[r,Math.trunc(Math.max(P5,Math.ceil(i*oc*1.2+8)))]}function wD(t){let e=(t??"").split(/\s+/).filter(Boolean),n=e.length?Math.max(...e.map(o=>Vr(o,oc,!0))):0;return Math.trunc(Math.ceil(n+vg+2*U5))}function _D(t){let e=Ha(t,Bl,V5-2*bD).length*Bl*1.2;return Math.trunc(Math.max(50,Math.ceil((gD+e+vD)/yD)))}function ED(t){let e=(t.type||"TASK").trim().toUpperCase();return e in G5?e:"TASK"}function SD(t,e){let n=_u(t),o=String(t.app_label||""),r=o?Math.min(200,Math.max(120,wD(o))):120;return e==="TASK"||e==="SUB-PROCESS"?j5(n,oc,{minW:r,maxW:Math.max(200,r),minH:80,padX:8,padY:8,extraH:o?10:0}):e==="EXTERNAL_PROCESS"?j5(n,oc,{minW:Math.max(108,o?r:108),maxW:200,minH:62,padX:14,padY:8,extraH:10}):e==="DOCUMENT"?[V5,_D(n)]:G5[e]??[120,80]}function CD(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function RD(t,e){let n=new Map(t.map((a,s)=>[a.label,"n".concat(s)])),o=new Map([...n.values()].map(a=>[a,[]])),r=new Map([...n.values()].map(a=>[a,[]])),i=[];return e.forEach(([a,s],c)=>{let l=n.get(a),p=n.get(s);if(l&&p){let d="f".concat(c);r.get(l).push(d),o.get(p).push(d),i.push('<bpmn:sequenceFlow id="'.concat(d,'" sourceRef="').concat(l,'" targetRef="').concat(p,'"/>'))}}),{xml:'<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" id="d" targetNamespace="http://bpmn.io/schema/bpmn"><bpmn:process id="p" isExecutable="false">'+t.map(a=>{let s=n.get(a.label),c=(a.type||"TASK").trim().toUpperCase(),l=c==="GATEWAY"?(a.subtype||"").trim().toUpperCase()==="AND"?"parallelGateway":"exclusiveGateway":TD[c]??"task",p=o.get(s).map(d=>"<bpmn:incoming>".concat(d,"</bpmn:incoming>")).join("")+r.get(s).map(d=>"<bpmn:outgoing>".concat(d,"</bpmn:outgoing>")).join("");return"<bpmn:".concat(l,' id="').concat(s,'" name="').concat(CD(_u(a)),'">').concat(p,"</bpmn:").concat(l,">")}).join("")+i.join("")+"</bpmn:process></bpmn:definitions>",ids:n}}async function AD(t,e){if(!t.length)return new Map;let{xml:n,ids:o}=RD(t,e),r;try{r=await uD(n)}catch{return null}let i=new Map;for(let c of r.matchAll(BD))i.set(c[1]??"",Math.floor((Number(c[2])+Number(c[4])/2)/xD));if(i.size!==o.size)return null;let a=Math.min(...i.values()),s=new Map;for(let[c,l]of o)s.set(c,i.get(l)-a);return s}async function MD(t,e={}){let n=e.originY??0,o=e.columns??"bpmn-io",r=t.lanes??[],i=new Map,a=new Map,s=new Map,c=[];r.forEach(($,X)=>{for(let mt of $.nodes??[]){let ct=mt.label||"";i.has(ct)||(i.set(ct,X),a.set(ct,ED(mt)),s.set(ct,mt),F5.has(a.get(ct))&&c.push(ct))}});let l=new Set(c),p=(t.connections??[]).filter($=>i.has($.source)&&i.has($.target)),d=p.filter($=>($.kind||"FLOW")==="FLOW"&&l.has($.source)&&l.has($.target)),u=p.filter($=>($.kind||"FLOW")!=="FLOW"),m=new Map,h=$=>m.get($)??[];for(let $ of d)m.set($.source,[...h($.source),$.target]);let f=[...c.filter($=>a.get($)==="START"),...c],g=new Set,v=($,X)=>"".concat($,"\0").concat(X),k=new Map;for(let $ of f){if(k.has($))continue;let X=[[$,0]];for(k.set($,1);X.length;){let mt=X[X.length-1],ct=h(mt[0]);if(mt[1]>=ct.length){k.set(mt[0],2),X.pop();continue}let xt=ct[mt[1]++],Vt=k.get(xt)??0;Vt===1?g.add(v(mt[0],xt)):Vt===0&&(k.set(xt,1),X.push([xt,0]))}}let _=new Map(c.map($=>[$,0])),w=new Map;for(let $ of d)g.has(v($.source,$.target))||(_.set($.target,_.get($.target)+1),w.set($.source,[...w.get($.source)??[],$.target]));let T=new Map(c.map($=>[$,0])),C=c.filter($=>_.get($)===0);for(;C.length;){let $=C.shift();for(let X of w.get($)??[])T.set(X,Math.max(T.get(X),T.get($)+1)),_.set(X,_.get(X)-1),_.get(X)===0&&C.push(X)}if(o==="bpmn-io"){let $=await AD(c.map(X=>s.get(X)),d.map(X=>[X.source,X.target]));if($){let X=[...new Set($.values())].sort((mt,ct)=>mt-ct);T=new Map(c.map(mt=>[mt,X.indexOf($.get(mt))]))}}let B=new Map,D=new Map,M=($,X)=>"".concat($,":").concat(X);for(let $ of c){let X=M(i.get($),T.get($));D.set($,B.get(X)??0),B.set(X,(B.get(X)??0)+1)}let N=r.map(($,X)=>{let mt=[...B.entries()].filter(([ct])=>Number(ct.split(":")[0])===X).map(([,ct])=>ct);return mt.length?Math.max(...mt):1}),z=T.size?Math.max(...T.values()):0,V=new Map;for(let[$,X]of s)V.set($,SD(X,a.get($)));let gt=new Map;for(let[$,X]of s){let mt=a.get($);mt==="START"||mt==="END"||mt==="EVENT"||mt==="GATEWAY"?gt.set($,mg(_u(X),Bl,M5.EVENT)):_r.has(mt)&&mt!=="DOCUMENT"&>.set($,mg(_u(X),Bl,M5.ITEM))}let ht=new Map;for(let $ of c){let X=s.get($);X.app_label&&fD.has(a.get($))&&ht.set($,kD(String(X.app_label),V.get($)[0]))}let Rt=new Map,Pe=new Map,Pt=new Map,Et=new Map,St=($,X,mt)=>{$.set(X,[...$.get(X)??[],mt])};for(let[$,X]of s){if(!_r.has(a.get($)))continue;let mt=X._task&&T.has(X._task)?X._task:null;if(mt===null){Et.set(i.get($),[...Et.get(i.get($))??[],$]);continue}let ct=X._dir||"in";St(ct==="doc"?Rt:ct==="in"?Pe:Pt,mt,$)}let pt=$=>gt.get($)??[0,0],Ot=$=>a.get($)==="DOCUMENT"?V.get($)[0]:Math.max(V.get($)[0],pt($)[0]),U=$=>V.get($)[1]+(pt($)[1]?4+pt($)[1]:0),G=$=>$.reduce((X,mt)=>X+Ot(mt),0)+Fa*Math.max(0,$.length-1),nt=$=>{let X=Rt.get($)??[],mt=Math.floor((X.length+1)/2);return[X.slice(0,mt),X.slice(mt)]},Yt=new Map;for(let[$,X]of Rt){let mt=M(i.get($),D.get($));for(let ct of X)Yt.set(mt,Math.max(Yt.get(mt)??0,V.get(ct)[1]))}for(let[$,X]of Rt){let mt=M(i.get($),D.get($));for(let ct of X)V.set(ct,[V.get(ct)[0],Yt.get(mt)])}let fe=new Map;for(let $ of c){let X=M(i.get($),D.get($));fe.set(X,Math.max(fe.get(X)??0,V.get($)[1]/2))}let R=new Map;for(let $ of c){let[X,mt]=V.get($),[ct,xt]=nt($),Vt=M(i.get($),D.get($)),At=Rt.get($)??[],be=mt/2+(At.length?fe.get(Vt)-mt/2+Math.max(...At.map(je=>V.get(je)[1]))+14:0),Ve=ht.has($)?ht.get($)[0]/2:0,Mn=0;ht.has($)&&(Mn=ht.get($)[1]-10);let Sn=Mn+14,ro=[...Pe.get($)??[],...Pt.get($)??[]];ro.length&&(Mn=Sn+Math.max(...ro.map(U))),gt.has($)&&pt($)[1]&&(Mn=Math.max(Mn,4+pt($)[1]));let io=Math.max(Ve,nc),ao=Math.max(X/2,nc+G(ct),io+8+G(Pe.get($)??[]),pt($)[0]/2),me=Math.max(X/2,nc+G(xt),io+8+G(Pt.get($)??[]),pt($)[0]/2);R.set($,{left:ao,right:me,up:be,down:mt/2+Mn,itemStart:Sn})}let x=dg+mD+hD,b=($,X)=>{let mt=c.filter(ct=>T.get(ct)===$).map(ct=>X(R.get(ct)));return mt.length?Math.max(...mt):60},L=[],H=[];for(let $=0;$<=z;$++)L.push(b($,X=>X.left)),H.push(b($,X=>X.right));let ot=[],bt=x;for(let $=0;$<=z;$++)bt+=L[$]??0,ot.push(bt),bt+=(H[$]??0)+ug;let vt=r.map(($,X)=>(Et.get(X)??[]).reduce((mt,ct)=>mt+Ot(ct)+Fa,0)),de=Math.trunc(Math.max(bt-ug+A5,x+(vt.length?Math.max(...vt):0)+A5)),Gt=new Map,Xt=new Map;for(let $ of c){let X=M(i.get($),D.get($));Gt.set(X,Math.max(Gt.get(X)??0,R.get($).up)),Xt.set(X,Math.max(Xt.get(X)??0,R.get($).down))}let _e=new Map,Oe=new Map,q=[],st=new Map,wt=n;r.forEach(($,X)=>{let mt=wt;for(let Vt=0;Vt<(N[X]??1);Vt++){let At=M(X,Vt),be=Gt.has(At)?Gt.get(At):40,Ve=Xt.has(At)?Xt.get(At):40;_e.set(At,wt),Oe.set(At,Math.trunc(wt+C5+be)),wt=Math.trunc(wt+C5+be+Ve+R5)}let ct=Et.get(X)??[];ct.length&&(st.set(X,wt),wt+=Math.max(...ct.map(Vt=>a.get(Vt)==="DOCUMENT"?V.get(Vt)[1]:U(Vt)))+R5);let xt=Math.max(B5,wt-mt);wt=mt+xt,q.push([$.name||"",Lo(dg,mt,de-dg,xt)])});let se=Lo(0,n,de,Math.max(wt-n,B5)),ze={},ce=$=>ze[$],Re={},te={},Qe=($,X,mt,ct)=>{let[xt,Vt]=V.get($),At=X+Math.floor(ct/2);if(ze[$]=Lo(At-Math.floor(xt/2),mt,xt,Vt),pt($)[1]){let[be,Ve]=pt($);Re[$]=Lo(At-Math.floor(be/2),mt+Vt+4,be,Ve)}};for(let $ of c){let[X,mt]=V.get($),ct=M(i.get($),D.get($)),xt=Math.trunc(ot[T.get($)]??0),Vt=Oe.get(ct),At=Lo(xt-Math.floor(X/2),Vt-Math.floor(mt/2),X,mt);if(ze[$]=At,pt($)[1]){let[me,je]=pt($);Re[$]=Lo(xt-Math.floor(me/2),At.y+At.h+4,me,je)}if(ht.has($)){let[me,je]=ht.get($);te[$]=Lo(xt-Math.floor(me/2),At.y+At.h-10,me,je)}let[be,Ve]=nt($),Mn=Vt-Math.trunc(fe.get(ct))-14,Sn=xt-nc;for(let me of[...be].reverse()){let[je,Yn]=V.get(me);Sn-=je,ze[me]=Lo(Sn,Mn-Yn,je,Yn),Sn-=Fa}let ro=xt+nc;for(let me of Ve){let[je,Yn]=V.get(me);ze[me]=Lo(ro,Mn-Yn,je,Yn),ro+=je+Fa}let io=Math.max(te[$]?Math.floor(te[$].w/2):0,nc)+8,ao=Math.trunc(Vt+mt/2+R.get($).itemStart);Sn=xt-io;for(let me of[...Pe.get($)??[]].reverse()){let je=Ot(me);Sn-=je,Qe(me,Sn,ao,je),Sn-=Fa}ro=xt+io;for(let me of Pt.get($)??[]){let je=Ot(me);Qe(me,ro,ao,je),ro+=je+Fa}}for(let[$,X]of Et){let mt=x;for(let ct of X){let xt=Ot(ct);a.get(ct)==="DOCUMENT"?ze[ct]=Lo(mt,st.get($),V.get(ct)[0],V.get(ct)[1]):Qe(ct,mt,st.get($),xt),mt+=xt+Fa}}let Kn=[],Le=[],qt=new Map,ee=$=>{let X=M(i.get($),D.get($)),mt=qt.get(X)??0;return qt.set(X,mt+1),_e.get(X)+8+mt%3*5},xo=($,X)=>kn(ce($))<=kn(ce(X))?$:X,Po=($,X,mt,ct)=>{let xt=Math.min(X,mt),Vt=Math.max(X,mt);return c.some(At=>!ct.includes(At)&&ce(At).x<Vt&&ce(At).x+ce(At).w>xt&&ce(At).y<=$&&$<=ce(At).y+ce(At).h)},ti=$=>Math.trunc((ot[$]??0)-(L[$]??0)-ug/2);for(let $ of d){let X=$.source,mt=$.target,ct=ce(X),xt=ce(mt),Vt;if(g.has(v(X,mt))||le(xt)<le(ct)){let At=ee(xo(X,mt));Vt=[[le(ct),ct.y],[le(ct),At],[le(xt),At],[le(xt),xt.y]]}else if(le(xt)===le(ct)){let At=kn(xt)>kn(ct),be=At?X:mt;if(te[be]||(Pe.get(be)??[]).length||(Pt.get(be)??[]).length){let Ve=Math.trunc((ot[T.get(X)]??0)+(H[T.get(X)]??0)+14);Vt=[[ct.x+ct.w,kn(ct)],[Ve,kn(ct)],[Ve,kn(xt)],[xt.x+xt.w,kn(xt)]]}else Vt=At?[[le(ct),ct.y+ct.h],[le(xt),xt.y]]:[[le(ct),ct.y],[le(xt),xt.y+xt.h]]}else{let At=ti(T.get(mt)),be=Math.abs(kn(ct)-kn(xt))<2;if(be&&!Po(kn(ct),ct.x+ct.w,xt.x,[X,mt]))Vt=[[ct.x+ct.w,kn(ct)],[xt.x,kn(xt)]];else if(!be&&!Po(kn(ct),ct.x+ct.w,At,[X,mt]))Vt=[[ct.x+ct.w,kn(ct)],[At,kn(ct)],[At,kn(xt)],[xt.x,kn(xt)]];else if(be){let Ve=ee(X);Vt=[[le(ct),ct.y],[le(ct),Ve],[le(xt),Ve],[le(xt),xt.y]]}else{let Ve=ee(X);Vt=[[le(ct),ct.y],[le(ct),Ve],[At,Ve],[At,kn(xt)],[xt.x,kn(xt)]]}}if(Kn.push(Vt),$.label){let[At,be]=mg($.label,Bl,120),[Ve,Mn,Sn,ro]=Vt,io=Vt.length===4&&Mn[0]===Sn[0]&&Ve[1]===Mn[1],[[ao,me],[je,Yn]]=io?[Sn,ro]:[Ve,Mn];io?Le.push(Lo(je-At-4,Yn-be-2,At,be)):ao===je?Le.push(Lo(ao+4,Math.floor((me+Yn)/2)-Math.floor(be/2),At,be)):Le.push(Lo(Math.floor((ao+je)/2)-Math.floor(At/2),Math.min(me,Yn)-be-2,At,be))}else Le.push(null)}for(let $ of u){let X=ce($.source),mt=ce($.target);if(!X||!mt){Kn.push([]),Le.push(null);continue}let ct=_r.has(a.get($.source)),[xt,Vt]=ct?[$.source,$.target]:[$.target,$.source],At=s.get(xt)._task===Vt,be=PD(xt,Vt,ce(xt),ce(Vt),a,te,ot,L,T,At);ct||(be=[...be].reverse()),Kn.push(be),Le.push(null)}return{pool:se,lanes:q,nodes:ze,edges:Kn,edgeLabels:Le,connections:[...d,...u],apps:te,labels:Re}}function DD(t,e){return e?[e.x+6,e.x+e.w-6,e.y+e.h]:[t.x+8,t.x+t.w-8,t.y+t.h]}function PD(t,e,n,o,r,i,a,s,c,l){let p=c.has(e)?Math.trunc((a[c.get(e)]??0)-(s[c.get(e)]??0)-12):o.x-12;if(r.get(t)==="DOCUMENT"){let g=o.x+14,v=o.x+o.w-14,k=o.y,_=o.y-7;if(l){if(g<=le(n)&&le(n)<=v)return[[le(n),n.y+n.h],[le(n),k]];let T=le(n)<le(o)?g:v;return[[le(n),n.y+n.h],[le(n),_],[T,_],[T,k]]}let w=n.y+n.h+6;return[[le(n),n.y+n.h],[le(n),w],[p,w],[p,_],[g,_],[g,k]]}let[d,u,m]=DD(o,i[e]),h=m+7;if(l){if(d<=le(n)&&le(n)<=u)return[[le(n),n.y],[le(n),m]];let g=le(n)<le(o)?d:u;return[[le(n),n.y],[le(n),h],[g,h],[g,m]]}let f=n.y-8;return[[le(n),n.y],[le(n),f],[p,f],[p,h],[d,h],[d,m]]}function $D(t){if(typeof DOMParser>"u")throw Error("parseProcesses needs a DOM (DOMParser)");let e=[...new DOMParser().parseFromString(t,"application/xml").documentElement.children],n=e.filter(o=>rr(o)==="collaboration").flatMap(o=>[...o.children].filter(r=>rr(r)==="textAnnotation"||rr(r)==="association"));return e.filter(o=>rr(o)==="process").map(o=>({id:o.getAttribute("id")??"",proc:zD(o,n)}))}function OD(t,e){let n=new Set([t,...t.getElementsByTagName("*")].map(i=>i.getAttribute("id")).filter(Boolean)),o=new Set(e.filter(i=>rr(i)==="textAnnotation").map(i=>i.getAttribute("id"))),r=new Set;for(let i of e){if(rr(i)!=="association")continue;let a=i.getAttribute("sourceRef"),s=i.getAttribute("targetRef"),c=l=>n.has(l)||o.has(l);c(a)&&c(s)&&(n.has(a)||n.has(s))&&(r.add(i.getAttribute("id")),o.has(a)&&r.add(a),o.has(s)&&r.add(s))}return e.filter(i=>r.has(i.getAttribute("id")))}function zD(t,e=[]){let n=[t,...t.getElementsByTagName("*")];for(let h of OD(t,e))n.push(h,...h.getElementsByTagName("*"));let o=new Map;for(let h of n){let f=h.getAttribute("id");f&&!["laneSet","lane","flowNodeRef"].includes(rr(h))&&o.set(f,h)}let r=new Map,i=new Map,a=new Set,s=h=>h.getAttribute("name")??"";for(let[h,f]of o){let g=rr(f);if(g==="textAnnotation"){let v=(f.textContent??"").trim();v.startsWith("[App]")?i.set(h,v.slice(5).trim()):v.startsWith("[Doc]")&&(r.set(h,{type:"DOCUMENT",label:h,text:v.slice(5).trim()||h}),a.add(h))}else if(g in $5){let[v,k]=$5[g];r.set(h,{type:v,label:h,text:s(f)||h,...k?{subtype:k}:{}})}else g==="dataInput"?r.set(h,{type:"EXTERNAL_INPUT",label:h,text:s(f)||h}):g==="dataOutput"?r.set(h,{type:"PROCESS_OUTPUT",label:h,text:s(f)||h}):g==="dataObjectReference"&&r.set(h,{type:"TASK_OUTPUT",label:h,text:s(f)||h,_pending:!0})}let c=[],l=new Map;for(let h of t.getElementsByTagName("*"))if(rr(h)==="laneSet")for(let f of hg(h,"lane")){c.push(f.getAttribute("name")||f.getAttribute("id")||"");for(let g of hg(f,"flowNodeRef")){let v=(g.textContent??"").trim();o.has(v)&&l.set(v,c.length-1)}}c.length||c.push("Lane 1");let p=[];for(let[h,f]of o){let g=rr(f);if(g==="sequenceFlow"){let v=f.getAttribute("sourceRef")??"",k=f.getAttribute("targetRef")??"";r.has(v)&&r.has(k)&&p.push({source:v,target:k,kind:"FLOW",...f.getAttribute("name")?{label:f.getAttribute("name")}:{}})}else if(g==="association"){let v=f.getAttribute("sourceRef")??"",k=f.getAttribute("targetRef")??"";i.has(v)&&r.has(k)?r.get(k).app_label=i.get(v)??null:i.has(k)&&r.has(v)?r.get(v).app_label=i.get(k)??null:r.has(v)&&r.has(k)&&(a.has(v)||a.has(k))&&p.push({source:v,target:k,kind:"DOC"})}else if(g==="dataInputAssociation"||g==="dataOutputAssociation"){let v=f.parentElement&&jD.has(rr(f.parentElement))?f.parentElement.getAttribute("id"):null;if(!v||!r.has(v))continue;let k=hg(f,g==="dataInputAssociation"?"sourceRef":"targetRef");for(let _ of k){let w=(_.textContent??"").trim();if(!r.has(w))continue;let T=r.get(w);g==="dataInputAssociation"?p.push({source:w,target:v,kind:"DATA"}):p.push({source:v,target:w,kind:"DATA"}),T._pending&&(T.type=g==="dataInputAssociation"?"TASK_INPUT":"TASK_OUTPUT",delete T._pending)}}}for(let h of r.values())delete h._pending;let d=new Map;for(let h of p){let f=r.get(h.source),g=r.get(h.target);if(f&&g){if(h.kind==="DATA"){let[v,k]=eo(f)==="TASK_INPUT"||eo(f)==="EXTERNAL_INPUT"?[h.source,h.target]:[h.target,h.source];d.set(v,l.get(k)??0)}else if(h.kind==="DOC"){let v=eo(g)==="DOCUMENT"?h.target:h.source,k=v===h.target?h.source:h.target;d.set(v,l.get(k)??0)}}}let u=c.map(h=>({name:h,nodes:[]}));for(let[h,f]of r)u[l.get(h)??d.get(h)??0]?.nodes.push(f);let m={name:t.getAttribute("name")||t.getAttribute("id")||"",lanes:u,connections:p};return LD(m),ND(m),m}function LD(t){let e=new Map;for(let n of t.lanes)for(let o of n.nodes)e.has(o.label)||e.set(o.label,o);for(let n of t.connections){let o=e.get(n.source),r=e.get(n.target);if(!o||!r)continue;let i=eo(o),a=eo(r),s=a==="DOCUMENT"||i==="DOCUMENT"?"DOC":_r.has(a)||_r.has(i)?"DATA":"FLOW";if(n.kind=s,s==="FLOW")continue;let[c,l,p]=_r.has(a)?[r,o,"out"]:[o,r,"in"];if(!F5.has(eo(l)))continue;let d=eo(c);d==="DATA_OBJECT"?c.type=p==="out"?"TASK_OUTPUT":"TASK_INPUT":d==="EXTERNAL_DATA_OBJECT"&&(c.type=p==="out"?"PROCESS_OUTPUT":"EXTERNAL_INPUT"),c._task===void 0&&(c._task=l.label),c._dir===void 0&&(c._dir=s==="DOC"?"doc":p)}for(let n of e.values()){let o=eo(n);_r.has(o)&&n._dir===void 0&&(n._dir={TASK_INPUT:"in",EXTERNAL_INPUT:"in",DOCUMENT:"doc"}[o]??"out",o==="DATA_OBJECT"?n.type="TASK_INPUT":o==="EXTERNAL_DATA_OBJECT"&&(n.type="EXTERNAL_INPUT"))}return t}function ND(t){let e=new Map;for(let i of t.lanes)for(let a of i.nodes)e.has(a.label)||e.set(a.label,a);let n=new Map;for(let i of t.connections)(i.kind||"FLOW").toUpperCase()==="FLOW"&&e.has(i.source)&&e.has(i.target)&&n.set(i.target,[...n.get(i.target)??[],i.source]);let o=i=>{let a=new Set([i]),s=[...n.get(i)??[]];for(;s.length;){let c=s.shift();if(a.has(c))continue;a.add(c);let l=e.get(c);if(l&&O5.has(eo(l)))return c;s.push(...(n.get(c)??[]).filter(p=>!a.has(p)))}return null},r=[];for(let i of t.connections){let a=(i.kind||"FLOW").toUpperCase();if(a!=="DATA"&&a!=="DOC"){r.push(i);continue}let s=e.get(i.source),c=e.get(i.target);if(!s||!c){r.push(i);continue}let l,p;if(a==="DOC")if(eo(s)==="DOCUMENT")[l,p]=[i.source,i.target];else if(eo(c)==="DOCUMENT")[l,p]=[i.target,i.source];else{r.push(i);continue}else{if(_r.has(eo(s))&&_r.has(eo(c))){r.push(i);continue}l=_r.has(eo(s))?i.source:i.target,p=_r.has(eo(s))?i.target:i.source}let d=p===i.source;if(O5.has(eo(e.get(p)))){r.push(i);continue}let u=o(p);if(u===null)continue;i=d?{...i,source:u}:{...i,target:u};let m=e.get(l);m&&(m._task=u),r.push(i)}t.connections=r}function ID(t,e,n){let o=e.x+e.w/2,r=e.y+e.h/2,i=[["top",Math.abs(r-t.y)],["bottom",Math.abs(r-(t.y+t.h))],["left",Math.abs(o-t.x)],["right",Math.abs(o-(t.x+t.w))]].reduce((d,u)=>u[1]<d[1]?u:d)[0],a=d=>Math.min(1,Math.max(0,d)),s=i==="top"||i==="bottom",c=a(s?(o-t.x)/(t.w||1):(r-t.y)/(t.h||1)),l=s?n.x+c*n.w:i==="left"?n.x:n.x+n.w,p=s?i==="top"?n.y:n.y+n.h:n.y+c*n.h;return{x:Math.round(l-e.w/2),y:Math.round(p-e.h/2),w:e.w,h:e.h}}function HD(t,e){let n=new Map;for(let a of e)a.bounds&&n.set(a.element,a.bounds);let o=[],r=[];for(let a of t.getAll()){if(a.type!=="bpmn:BoundaryEvent"||!a.host)continue;let s=n.get(a.host);if(!s)continue;let c=ID({x:a.host.x,y:a.host.y,w:a.host.width,h:a.host.height},{x:a.x,y:a.y,w:a.width,h:a.height},s);o.push({element:a,bounds:c}),r.push(a);let l=a.label;l&&o.push({element:l,bounds:{x:l.x+(c.x-a.x),y:l.y+(c.y-a.y),w:l.width,h:l.height}})}let i=new Set(r.map(a=>a.id));return{changes:o,reroute:t.getAll().filter(a=>a.waypoints&&a.source&&a.target&&(i.has(a.source.id)||i.has(a.target.id)))}}function q5(t,e,n,o=[]){let r=e.x-n.pool.x,i=e.y-n.pool.y,a=l=>({x:l.x+r,y:l.y+i,w:l.w,h:l.h}),s=[{element:e,bounds:a(n.pool)}];t.getAll().filter(l=>l.type==="bpmn:Lane"&&l.parent===e).sort((l,p)=>l.y-p.y).forEach((l,p)=>{let d=n.lanes[p];d&&s.push({element:l,bounds:a(d[1])})});for(let[l,p]of Object.entries(n.nodes)){let d=t.get(l);if(!d){o.push(l);continue}s.push({element:d,bounds:a(p)});let u=n.labels[l];u&&d.label&&s.push({element:d.label,bounds:a(u)})}for(let[l,p]of Object.entries(n.apps)){let d=t.get(l),u=n.nodes[l];if(!d||!u)continue;let m=[...d.incoming??[],...d.outgoing??[]].filter(f=>f.type==="bpmn:Association"),h=0;for(let f of m){let g=f.source===d?f.target:f.source;if(g?.type!=="bpmn:TextAnnotation"||!ec(g.businessObject?.text))continue;let v=a({...p,x:p.x+h*(p.w+4)});h+=1,s.push({element:g,bounds:v});let k=v.x+Math.floor(v.w/2),_=a(u),w=[[k,v.y],[k,_.y+_.h-20]];s.push({element:f,waypoints:f.source===g?w:[...w].reverse()})}}let c=new Map;for(let l of t.getAll())l.waypoints&&l.source&&l.target&&c.set("".concat(l.source.id,"\0").concat(l.target.id,"\0").concat(l.type),l);return n.connections.forEach((l,p)=>{let d=n.edges[p];if(!d?.length)return;let u=(FD[l.kind||"FLOW"]??[]).map(g=>c.get("".concat(l.source,"\0").concat(l.target,"\0").concat(g))??c.get("".concat(l.target,"\0").concat(l.source,"\0").concat(g))).find(Boolean);if(!u){o.push("".concat(l.source,"->").concat(l.target));return}let m=u.source?.id===l.source,h=d.map(([g,v])=>[g+r,v+i]);s.push({element:u,waypoints:m?h:[...h].reverse()});let f=n.edgeLabels[p];f&&u.label&&s.push({element:u.label,bounds:a(f)})}),s}function K5(t,e){let n=new Map($D(t).map(o=>[o.id,o.proc]));return e.getAll().filter(o=>o.type==="bpmn:Participant"&&o.businessObject?.processRef).map(o=>({participant:o,proc:n.get(o.businessObject.processRef.id)})).filter(o=>o.proc)}var wu,lg,wn,ge,YM,XM,ZM,tD,eD,aD,sD,F5,_r,dg,mD,hD,ug,C5,R5,B5,A5,Fa,nc,oc,Bl,W5,sa,xu,ku,M5,G5,fD,D5,P5,vg,U5,V5,gD,yD,bD,vD,xD,le,_u,kn,Lo,TD,BD,$5,jD,O5,rr,hg,eo,z5,FD,WD,GD,L5,Y5,fg,X5,UD,J5=Tn(()=>{"use strict";Mr();ni();ps();hp();hu();As();wu=80,lg=100;wn=150,ge=140;YM=class{constructor(){this.grid=[]}add(t,e){if(!e){this._addStart(t);return}let[n,o]=e;if(!n&&!o&&this._addStart(t),this.grid[n]||(this.grid[n]=[]),this.grid[n][o])throw Error("Grid is occupied please ensure the place you insert at is not occupied");this.grid[n][o]=t}createRow(t){!t&&!Number.isInteger(t)?this.grid.push([]):this.grid.splice(t+1,0,[])}_addStart(t){this.grid.push([t])}addAfter(t,e){t||this._addStart(e);let[n,o]=this.find(t);this.grid[n].splice(o+1,0,e)}addBelow(t,e){t||this._addStart(e);let[n,o]=this.find(t);if(this.grid[n+1]||(this.grid[n+1]=[]),this.grid[n+1][o]&&this.grid.splice(n+1,0,[]),this.grid[n+1][o])throw Error("Grid is occupied and we could not find a place - this should not happen");this.grid[n+1][o]=e}find(t){let e,n;return e=this.grid.findIndex(o=>(n=o.findIndex(r=>r===t),n!==-1)),[e,n]}get(t,e){return(this.grid[t]||[])[e]}getElementsInRange({row:t,col:e},{row:n,col:o}){let r=[];t>n&&([t,n]=[n,t]),e>o&&([e,o]=[o,e]);for(let i=t;i<=n;i++)for(let a=e;a<=o;a++){let s=this.get(i,a);s&&r.push(s)}return r}adjustGridPosition(t){let[e,n]=this.find(t),[,o]=this.getGridDimensions();n<o-1&&(this.grid[e].length=o,this.grid[e][o]=t,this.grid[e][n]=null)}adjustRowForMultipleIncoming(t,e){let n=t.map(a=>this.find(a)),o=Math.min(...n.map(a=>a[0]).filter(a=>a>=0)),[r,i]=this.find(e);o<r&&!this.grid[o][i]&&(this.grid[o][i]=e,this.grid[r][i]=null)}adjustColumnForMultipleIncoming(t,e){let n=t.map(a=>this.find(a)),o=Math.max(...n.map(a=>a[1]).filter(a=>a>=0)),[r,i]=this.find(e);o+1>i&&(this.grid[r][o+1]=e,this.grid[r][i]=null)}getAllElements(){let t=[];for(let e=0;e<this.grid.length;e++)for(let n=0;n<this.grid[e].length;n++){let o=this.get(e,n);o&&t.push(o)}return t}getGridDimensions(){let t=this.grid.length,e=0;for(let n=0;n<t;n++){let o=this.grid[n].length;o>e&&(e=o)}return[t,e]}elementsByPosition(){let t=[];return this.grid.forEach((e,n)=>{e.forEach((o,r)=>{o&&t.push({element:o,row:n,col:r})})}),t}getElementsTotal(){let t=this.grid.flat();return new Set(t.filter(e=>e)).size}createCol(t,e){this.grid.forEach((n,o)=>{this.expandRow(o,t,e)})}expandRow(t,e,n){if(!Number.isInteger(t)||t<0||t>this.rowCount-1)return;let o=Number.isInteger(n)&&n>0?Array(n):[,],r=this.grid[t];!e&&!Number.isInteger(e)?r.splice(r.length,0,...o):r.splice(e+1,0,...o)}},XM=class{constructor(t){this.moddle=t}create(t,e){return this.moddle.create(t,e||{})}createDiBounds(t){return this.create("dc:Bounds",t)}createDiLabel(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})}createDiShape(t,e,n){return this.create("bpmndi:BPMNShape",j({bpmnElement:t,bounds:this.createDiBounds(e)},n))}createDiWaypoints(t){var e=this;return hn(t,function(n){return e.createDiWaypoint(n)})}createDiWaypoint(t){return this.create("dc:Point",po(t,["x","y"]))}createDiEdge(t,e,n){return this.create("bpmndi:BPMNEdge",j({bpmnElement:t,waypoint:this.createDiWaypoints(e)},n))}createDiPlane(t){return this.create("bpmndi:BPMNPlane",t)}createDiDiagram(t){return this.create("bpmndi:BPMNDiagram",t)}},ZM={addToGrid:({element:t,grid:e,visited:n})=>{let o=[];return(t.attachers||[]).map(r=>(r.outgoing||[]).reverse()).flat().map(r=>r.targetRef).forEach((r,i,a)=>{n.has(r)||(JM(r,t,e),o.push(r),n.add(r))}),o},createElementDi:({element:t,row:e,col:n,diFactory:o,shift:r})=>{let i=bg(t,e,n,r),a=[];return(t.attachers||[]).forEach((s,c,l)=>{s.gridPosition={row:e,col:n};let p=bg(s,e,n,r,t);p.x=i.x+(c+1)*(i.width/(l.length+1))-p.width/2;let d=o.createDiShape(s,p,{id:s.id+"_di"});s.di=d,s.gridPosition={row:e,col:n},a.push(d)}),a},createConnectionDi:({element:t,row:e,col:n,layoutGrid:o,diFactory:r,shift:i})=>(t.attachers||[]).flatMap(a=>(a.outgoing||[]).map(s=>{let c=s.targetRef,l=H5(a,c,o);return QM(a,l,[e,n]),r.createDiEdge(s,l,{id:s.id+"_di"})}))};tD={createElementDi:({element:t,row:e,col:n,diFactory:o,shift:r})=>{let i=bg(t,e,n,r),a={id:t.id+"_di"};Gn(t,"bpmn:ExclusiveGateway")&&(a.isMarkerVisible=!0),t.isExpanded&&(a.isExpanded=!0);let s=o.createDiShape(t,i,a);return t.di=s,t.gridPosition={row:e,col:n},s}},eD={addToGrid:({element:t,grid:e,visited:n,stack:o})=>{let r=[],i=(t.outgoing||[]).map(s=>s.targetRef).filter(s=>s),a=null;return i.length>1&&iD(i)&&e.adjustGridPosition(t),i.forEach((s,c,l)=>{n.has(s)||(a||o.length>0)&&rD(s,n)&&!oD(s,n)||(a?Gn(t,"bpmn:ExclusiveGateway")&&Gn(s,"bpmn:ExclusiveGateway")?e.addAfter(a,s):e.addBelow(l[c-1],s):e.addAfter(t,s),s!==t&&(a=s),r.unshift(s),n.add(s))}),r=nD(r,"bpmn:ExclusiveGateway"),r},createConnectionDi:({element:t,row:e,col:n,layoutGrid:o,diFactory:r})=>(t.outgoing||[]).map(i=>{let a=i.targetRef,s=H5(t,a,o);return r.createDiEdge(i,s,{id:i.id+"_di"})})};aD=[tD,{addToGrid:({element:t,grid:e,visited:n})=>{let o=[],r=(t.incoming||[]).map(i=>i.sourceRef).filter(i=>i);return r.length>1&&(e.adjustColumnForMultipleIncoming(r,t),e.adjustRowForMultipleIncoming(r,t)),o}},eD,ZM],sD=class{constructor(){this.moddle=new Ma,this.diFactory=new XM(this.moddle),this._handlers=aD}handle(t,e){return this._handlers.filter(n=>Ke(n[t])).map(n=>n[t](e))}async layoutProcess(t){let e=await this.moddle.fromXML(t),{rootElement:n}=e;this.diagram=n;let o=this.getProcess();return o&&(this.setExpandedPropertyToModdleElements(e),this.setExecutedProcesses(o),this.createGridsForProcesses(),this.cleanDi(),this.createRootDi(o),this.drawProcesses()),(await this.moddle.toXML(this.diagram,{format:!0})).xml}createGridsForProcesses(){let t=this.layoutedProcesses.sort((e,n)=>n.level-e.level);for(let e of t)if(e.grid=this.createGridLayout(e),lD(e.grid),pD(e.grid),e.isExpanded){let[n,o]=e.grid.getGridDimensions();n===0&&e.grid.createRow(),o===0&&e.grid.createCol()}}setExpandedPropertyToModdleElements(t){let e=t.elementsById;if(e)for(let n of Object.values(e))n.$type==="bpmndi:BPMNShape"&&n.isExpanded===!0&&(n.bpmnElement.isExpanded=!0)}setExecutedProcesses(t){this.layoutedProcesses=[];let e=[t];for(;e.length>0;){let n=e.pop();this.layoutedProcesses.push(n),n.level=n.$parent===this.diagram?0:n.$parent.level+1;let o=n.get("flowElements").filter(r=>Gn(r,"bpmn:SubProcess"));e.splice(e.length,0,...o)}}cleanDi(){this.diagram.diagrams=[]}createGridLayout(t){let e=new YM,n=t.flowElements||[],o=n.filter(i=>!Gn(i,"bpmn:SequenceFlow"));if(!n)return e;cD(n);let r=new Set;for(;r.size<o.filter(i=>!i.attachedToRef).length;){let i=n.filter(s=>!VM(s)&&!gg(s)&&(!s.incoming||!dD(s))&&!r.has(s)),a=[...i];if(i.forEach(s=>{e.add(s),r.add(s)}),this.handleGrid(e,r,a),e.getElementsTotal()!==o.length){let s=e.getAllElements(),c=o.filter(l=>!s.includes(l)&&!gg(l));c.length>0&&(a.push(c[0]),e.add(c[0]),r.add(c[0]),this.handleGrid(e,r,a))}}return e}generateDi(t,e,n){let o=this.diFactory,r=(n||this.diagram.diagrams[0]).plane.get("planeElement");t.elementsByPosition().forEach(({element:i,row:a,col:s})=>{let c=this.handle("createElementDi",{element:i,row:a,col:s,layoutGrid:t,diFactory:o,shift:e}).flat();r.push(...c)}),t.elementsByPosition().forEach(({element:i,row:a,col:s})=>{let c=this.handle("createConnectionDi",{element:i,row:a,col:s,layoutGrid:t,diFactory:o,shift:e}).flat();r.push(...c)})}handleGrid(t,e,n){for(;n.length>0;){let o=n.pop();this.handle("addToGrid",{element:o,grid:t,visited:e,stack:n}).flat().forEach(r=>{n.push(r),e.add(r)})}}getProcess(){return this.diagram.get("rootElements").find(t=>t.$type==="bpmn:Process")}createRootDi(t){this.createProcessDi(t)}createProcessDi(t){let e=this.diFactory,n=e.createDiPlane({id:"BPMNPlane_"+t.id,bpmnElement:t}),o=e.createDiDiagram({id:"BPMNDiagram_"+t.id,plane:n});return this.diagram.diagrams.push(o),o}drawProcesses(){let t=this.layoutedProcesses.sort((e,n)=>e.level-n.level);for(let e of t){if(e.isExpanded){let o=this.getElementDi(e),r=this.getProcDi(o),{x:i,y:a}=o.bounds,{width:s,height:c}=I5(e);i+=wn/2-s/4,a+=ge-c-c/4,this.generateDi(e.grid,{x:i,y:a},r);continue}let n=this.diagram.diagrams.find(o=>o.plane.bpmnElement===e);this.generateDi(e.grid,{x:0,y:0},n)}}getElementDi(t){return this.diagram.diagrams.map(e=>e.plane.planeElement).flat().find(e=>e.bpmnElement===t)}getProcDi(t){return this.diagram.diagrams.find(e=>e.plane.planeElement.includes(t))}};F5=new Set(["START","END","TASK","SUB-PROCESS","GATEWAY","EVENT","EXTERNAL_PROCESS"]),_r=new Set(["TASK_INPUT","TASK_OUTPUT","EXTERNAL_INPUT","PROCESS_OUTPUT","DOCUMENT","DATA_OBJECT","EXTERNAL_DATA_OBJECT"]),dg=30,mD=30,hD=40,ug=70,C5=26,R5=24,B5=200,A5=70,Fa=10,nc=10,oc=12,Bl=11,W5=1.2,sa=50,xu=40,ku=50,M5={EVENT:120,ITEM:100},G5={TASK:[120,80],"SUB-PROCESS":[120,80],EXTERNAL_PROCESS:[108,62],GATEWAY:[sa,sa],START:[sa,sa],END:[sa,sa],EVENT:[sa,sa],TASK_INPUT:[xu,ku],TASK_OUTPUT:[xu,ku],EXTERNAL_INPUT:[xu,ku],PROCESS_OUTPUT:[xu,ku],DOCUMENT:[110,50]},fD=new Set(["TASK","SUB-PROCESS","EXTERNAL_PROCESS"]),D5=80,P5=30,vg=31,U5=10,V5=120,gD=20,yD=.74,bD=6,vD=4,xD=150,le=t=>t.x+Math.floor(t.w/2),_u=t=>t.text??t.label??"",kn=t=>t.y+Math.floor(t.h/2),Lo=(t,e,n,o)=>({x:t,y:e,w:n,h:o});TD={START:"startEvent",END:"endEvent",EVENT:"intermediateThrowEvent","SUB-PROCESS":"subProcess",EXTERNAL_PROCESS:"callActivity"};BD=/bpmnElement="(n\d+)"[^>]*>\s*<dc:Bounds x="(-?[\d.]+)" y="(-?[\d.]+)" width="([\d.]+)" height="([\d.]+)"/g;$5={startEvent:["START",null],endEvent:["END",null],task:["TASK",null],subProcess:["SUB-PROCESS",null],callActivity:["EXTERNAL_PROCESS",null],exclusiveGateway:["GATEWAY","OR"],parallelGateway:["GATEWAY","AND"],inclusiveGateway:["GATEWAY","OR"],intermediateThrowEvent:["EVENT",null],intermediateCatchEvent:["EVENT",null]},jD=new Set(["task","subProcess","callActivity","exclusiveGateway","parallelGateway","inclusiveGateway","startEvent","endEvent","intermediateThrowEvent","intermediateCatchEvent"]),O5=new Set(["TASK","SUB-PROCESS","EXTERNAL_PROCESS"]),rr=t=>t.localName,hg=(t,e)=>[...t.children].filter(n=>rr(n)===e),eo=t=>(t.type||"TASK").trim().toUpperCase();z5="bpmnCanvas.autoLayout",FD={FLOW:["bpmn:SequenceFlow"],DATA:["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"],DOC:["bpmn:Association"]};WD=(t,e)=>t.x===e.x&&t.y===e.y&&t.width===e.w&&t.height===e.h,GD=(t,e)=>{let n=t.waypoints??[];return n.length===e.length&&e.every(([o,r],i)=>n[i]?.x===o&&n[i]?.y===r)},L5=t=>t.type==="label"?t.labelTarget?.id:t.id,Y5=class{static $inject=["moddle","layouter","connectionDocking","graphicsFactory","elementRegistry"];moddle;layouter;docking;graphics;registry;constructor(t,e,n,o,r){this.moddle=t,this.layouter=e,this.docking=n,this.graphics=o,this.registry=r}boundsDi(t,e,n){if(t.type!=="label")return jt(t).bounds;let o=jt(t.labelTarget);return!o.label&&e?(o.set("label",this.moddle.create("bpmndi:BPMNLabel",{bounds:this.moddle.create("dc:Bounds")})),n?.push(o)):o.label&&!o.label.bounds&&e&&o.label.set("bounds",this.moddle.create("dc:Bounds")),o.label?.bounds}setBounds(t,e,n,o){let r=this.boundsDi(t,!0,o);n.push({element:t,bounds:{x:t.x,y:t.y,width:t.width,height:t.height},di:r?{x:r.x,y:r.y,width:r.width,height:r.height}:void 0}),Object.assign(t,{x:e.x,y:e.y,width:e.w,height:e.h}),r&&Object.assign(r,{x:e.x,y:e.y,width:e.w,height:e.h})}setWaypoints(t,e,n){let o=jt(t);n.push({element:t,waypoints:t.waypoints,diWaypoints:o.waypoint}),t.waypoints=e.map(({x:r,y:i})=>({x:r,y:i})),o.set("waypoint",e.map(({x:r,y:i})=>this.moddle.create("dc:Point",{x:r,y:i})))}execute(t){let e=[],n=[];for(let r of t.changes)r.bounds&&this.setBounds(r.element,r.bounds,e,n),r.waypoints&&this.setWaypoints(r.element,r.waypoints.map(([i,a])=>({x:i,y:a})),e);for(let r of t.reroute??[]){let i=r.source?.type==="bpmn:BoundaryEvent"||r.target?.type==="bpmn:BoundaryEvent"?{connectionStart:Tt(r.source),connectionEnd:Tt(r.target),waypoints:[]}:{},a=this.layouter.layoutConnection(r,i),s={...r,waypoints:a};this.setWaypoints(r,this.docking.getCroppedWaypoints(s,r.source,r.target),e);let c=r.label;if(c){let l=ls(r);this.setBounds(c,{x:Math.round(l.x-c.width/2),y:Math.round(l.y-c.height/2),w:c.width,h:c.height},e,n)}}t.saved=e,t.createdLabels=n;let o=[...t.changes.map(r=>r.element),...t.reroute??[],...(t.reroute??[]).map(r=>r.label)];return[...new Set(o.filter(Boolean))]}revert(t){for(let o of[...t.saved??[]].reverse()){let r=o.element;if(o.bounds){Object.assign(r,o.bounds);let i=this.boundsDi(r,!1);i&&o.di&&Object.assign(i,o.di)}o.waypoints&&(r.waypoints=o.waypoints,jt(r).set("waypoint",o.diWaypoints))}for(let o of t.createdLabels??[])delete o.label;let e=[...t.changes.map(o=>o.element),...t.reroute??[],...(t.reroute??[]).map(o=>o.label)],n=[];for(let o of new Set(e.filter(Boolean)))if(o.type==="label"){let r=this.registry.getGraphics(o);r&&this.graphics.update("shape",o,r)}else n.push(o);return n}},fg=()=>new DOMException("Layout superseded or canvas destroyed","AbortError"),X5=class{static $inject=["commandStack","elementRegistry","bpmnjs","eventBus"];commandStack;registry;bpmnjs;generation=0;destroyed=!1;constructor(t,e,n,o){t.registerHandler(z5,Y5),this.commandStack=t,this.registry=e,this.bpmnjs=n,o.on(["diagram.clear","import.parse.start","root.set","commandStack.changed"],()=>{this.generation+=1}),o.on("diagram.destroy",()=>{this.destroyed=!0,this.generation+=1})}async run(t=()=>!0){if(this.destroyed)throw fg();let e=++this.generation,n=()=>!this.destroyed&&e===this.generation&&t(),{xml:o}=await this.bpmnjs.saveXML();if(!n())throw fg();let r=[],i=[];for(let{participant:u,proc:m}of K5(o,this.registry)){let h=await MD(m);if(!n())throw fg();r.push(...q5(this.registry,u,h,i))}let a=HD(this.registry,r);r.push(...a.changes);let s=r.length?[...new Set([...this.registry.getAll().filter(u=>u.type==="bpmn:MessageFlow"&&u.source&&u.target),...a.reroute])]:[],c=new Set([...r.map(u=>L5(u.element)),...s.map(u=>u.id)]),l=r.filter(u=>u.bounds?!WD(u.element,u.bounds):u.waypoints?!GD(u.element,u.waypoints):!1),p=new Set(l.map(u=>L5(u.element))).size,d=new Set(i);for(let u of this.registry.getAll())u.parent&&u.type!=="label"&&(c.has(u.id)||d.add(u.id));return l.length&&this.commandStack.execute(z5,{changes:l,reroute:s}),{changed:p,skipped:[...d].sort()}}},UD={__init__:["bpmnCanvasLayout"],bpmnCanvasLayout:["type",X5]}});var Lg={};Ci(Lg,{a:()=>zg,c:()=>Kf,d:()=>an,f:()=>Yf,g:()=>Ma,h:()=>du,i:()=>A_,l:()=>Zf,m:()=>Cl,n:()=>R_,o:()=>qf,p:()=>uu,port:()=>P_,r:()=>B_,renderBpmn:()=>$_,s:()=>to,t:()=>gj,toXml:()=>j_,u:()=>Xf});function Tg(){}function f_(t,e){this.model=t,this.properties=e}function Cg(t,e){var n=g_[t];return n?n(e):e}function xg(t){return!!qD[t]}function y_(t){return!!g_[t]}function Un(t,e){var n=t.split(/:/),o,r;if(n.length===1)o=t,r=e;else if(n.length===2)o=n[1],r=n[0];else throw Error("expected <prefix:localName> or <localName>, got "+t);return t=(r?r+":":"")+o,{name:t,prefix:r,localName:o}}function No(t){this.ns=t,this.name=t.name,this.allTypes=[],this.allTypesByName=Object.create(null),this.properties=[],this.propertiesByName=Object.create(null)}function la(t,e){this.packageMap=Object.create(null),this.typeMap=Object.create(null),this.packages=[],this.properties=e,A(t,jn(this.registerPackage,this))}function t_(t,e,n){var o=e[n];if(o in t)throw Error("package with "+n+" <"+o+"> already defined")}function Ua(t){this.model=t}function KD(t){return t===void 0}function e_(t,e,n){Object.defineProperty(t,e.name,{enumerable:!e.isReference,writable:!0,value:n,configurable:!0})}function kg(t){return t.replace(/^:/,"")}function ar(t,e={}){this.properties=new Ua(this),this.factory=new f_(this,this.properties),this.registry=new la(t,this.properties),this.typeCache=Object.create(null),this.config=e}function JD(t,e,n,o){return o?XD.call(Ml,o)?Ml[o]:"&"+o+";":YD(e||parseInt(n,16))}function Wa(t){return t.length>3&&t.indexOf("&")!==-1?t.replace(ZD,JD):t}function ca(t){return Error(t)}function QD(t){return"missing namespace for prefix <"+t+">"}function Eu(t){return{get:t,enumerable:!0}}function wg(t,e,n,o){n in e||(e[n]=n in t?t[n]:null),t[n]=o}function tP(t,e){var n,o;for(n in e)o=e[n],o===null?delete t[n]:t[n]=o}function Rg(t){return t+"$uri"}function eP(t){var e=Object.create(null),n,o;for(n in t)o=t[n],e[o]=o,e[Rg(o)]=n;return e}function Su(){return{line:0,column:0}}function nP(t){throw t}function b_(t){if(!this)return new b_(t);var e=t&&t.proxy,n,o,r,i,a=nP,s,c,l,p,d=Su,u=!1,m=!1,h="",f=!1,g=!1,v=null,k=!1,_,w,T,C;function B(z){z instanceof Error||(z=ca(z)),v=z,a(z,d)}function D(z){s&&(z instanceof Error||(z=ca(z)),s(z,d))}this.on=function(z,V){if(typeof V!="function")throw ca("required args <name, cb>");switch(z){case"openTag":o=V;break;case"text":n=V;break;case"closeTag":r=V;break;case"error":a=V;break;case"warn":s=V;break;case"cdata":i=V;break;case"attention":p=V;break;case"question":l=V;break;case"comment":c=V;break;default:throw ca("unsupported event: "+z)}return this},this.ns=function(z){if(z===void 0&&(z={}),typeof z!="object")throw ca("required args <nsMap={}>");var V=Object.create(null),gt;for(gt in z)V[gt]=z[gt];return g=!0,C=V,this};function M(){_=g?[]:null,w=g?eP(C):null,T=[],d=Su,k=!1,v=null,m=!1,h=""}this.parse=function(z){if(typeof z!="string")throw ca("required args <xml=string>");if(u)throw ca("parse during stream; call end() first");return M(),N(z),d=Su,k=!1,v},this.write=function(z){if(typeof z!="string")throw ca("required args <xml=string>");return u||=(M(),!0),v||(h=N(h+z,!0)||""),this},this.end=function(){return u||M(),u=!1,v||N(h),h="",d=Su,k=!1,v},this.stop=function(){k=!0};function N(z,V=!1){var gt=null,ht,Rt,Pe=0,Pt=!1,Et=!1,St=0,pt=0,Ot,U,G,nt,Yt,fe,R,x,b,L="",H=0,ot;function bt(Xt,_e){var Oe=Xt.indexOf(":");if(Oe===-1)return Xt;var q=w[Xt.substring(0,Oe)];return q?_e===q?Xt.substr(Oe+1):q+Xt.substr(Oe):(D(QD(Xt.substring(0,Oe))),null)}function vt(){if(ot!==null)return ot;var Xt,_e,Oe=g&&w.xmlns,q=g&&f?[]:null,st=H,wt=L,se=wt.length,ze,ce,Re,te,Qe={},Kn=new Set,Le,qt,ee;t:for(;st<se;st++)if(Le=!1,qt=wt.charCodeAt(st),!(qt===32||qt<14&&qt>8)){for((qt<65||qt>122||qt>90&&qt<97)&&qt!==95&&qt!==58&&(D("illegal first char attribute name"),Le=!0),ee=st+1;ee<se;ee++)if(qt=wt.charCodeAt(ee),!(qt>96&&qt<123||qt>64&&qt<91||qt>47&&qt<59||qt===46||qt===45||qt===95)){if(qt===32||qt<14&&qt>8){D("missing attribute value"),st=ee;continue t}if(qt===61)break;D("illegal attribute name char"),Le=!0}if(te=wt.substring(st,ee),te==="xmlns:xmlns"&&(D("illegal declaration of xmlns"),Le=!0),qt=wt.charCodeAt(ee+1),qt===34)ee=wt.indexOf('"',st=ee+2),ee===-1&&(ee=wt.indexOf("'",st),ee!==-1&&(D("attribute value quote missmatch"),Le=!0));else if(qt===39)ee=wt.indexOf("'",st=ee+2),ee===-1&&(ee=wt.indexOf('"',st),ee!==-1&&(D("attribute value quote missmatch"),Le=!0));else for(D("missing attribute value quotes"),Le=!0,ee+=1;ee<se&&(qt=wt.charCodeAt(ee+1),!(qt===32||qt<14&&qt>8));ee++);for(ee===-1&&(D("missing closing quotes"),ee=se,Le=!0),Le||(ce=wt.substring(st,ee)),te==="xmlns:xml"&&ce!=="http://www.w3.org/XML/1998/namespace"&&B("illegal value of xmlns:xml"),st=ee;ee+1<se&&(qt=wt.charCodeAt(ee+1),!(qt===32||qt<14&&qt>8));ee++)st===ee&&(D("illegal character after attribute end"),Le=!0);if(st=ee+1,Le)continue t;if(Kn.has(te))D("attribute <"+te+"> already defined");else if(Kn.add(te),!g)Qe[te]=ce;else if(f){if(ze=te==="xmlns"?"xmlns":te.charCodeAt(0)===120&&te.substr(0,6)==="xmlns:"?te.substr(6):null,ze!==null){if(Xt=Wa(ce),_e=Rg(ze),Re=C[Xt],!Re){if(ze==="xmlns"||_e in w&&w[_e]!==Xt)do Re="ns"+Pe++;while(w[Re]!==void 0);else Re=ze;C[Xt]=Re}w[ze]!==Re&&(ht||=Object.create(null),gt=null,Rt=null,wg(w,ht,ze,Re),ze==="xmlns"&&(wg(w,ht,Rg(Re),Xt),Oe=Re),wg(w,ht,_e,Xt)),Qe[te]=ce;continue}q.push(te,ce)}else te=bt(te,Oe),te!==null&&(Qe[te]=ce)}if(f)for(st=0,se=q.length;st<se;st++)te=bt(q[st++],Oe),ce=q[st],te!==null&&(Qe[te]=ce);return ot=Qe}function de(){for(var Xt=/(\r\n|\r|\n)/g,_e=0,Oe=0,q=0,st=pt,wt,se;St>=q&&(wt=Xt.exec(z),!(!wt||(st=wt[0].length+wt.index,st>St)));)_e+=1,q=st;return St==-1?(Oe=st,se=z.substring(pt)):pt===0?se=z.substring(pt,St):(Oe=St-q,se=pt==-1?z.substring(St):z.substring(St,pt+1)),{data:se,line:_e,column:Oe}}for(d=de,e&&(b=Object.create({},{name:Eu(function(){return R}),originalName:Eu(function(){return x}),attrs:Eu(vt),ns:Eu(function(){return Rt||=Object.assign(Object.create(null),w),Rt})}));pt!==-1;){if(St=z.charCodeAt(pt)===60?pt:z.indexOf("<",pt),St===-1){if(V)return z.substring(pt);if(T.length)return B("unexpected end of file");if(!m)return B("missing start tag");pt<z.length&&z.substring(pt).trim()&&D(n_);return}if(m||=!0,pt!==St){if(T.length){if(n&&(n(z.substring(pt,St),Wa,d),k))return}else if(z.substring(pt,St).trim()&&(D(n_),k))return}if(nt=z.charCodeAt(St+1),nt===33){if(G=z.charCodeAt(St+2),G===91&&z.substr(St+3,6)==="CDATA["){if(pt=z.indexOf("]]>",St),pt===-1)return V?z.substring(St):B("unclosed cdata");if(i&&(i(z.substring(St+9,pt),d),k))return;pt+=3;continue}if(G===45&&z.charCodeAt(St+3)===45){if(pt=z.indexOf("-->",St),pt===-1)return V?z.substring(St):B("unclosed comment");if(c&&(c(z.substring(St+4,pt),Wa,d),k))return;pt+=3;continue}}if(nt===63){if(pt=z.indexOf("?>",St),pt===-1)return V?z.substring(St):B("unclosed question");if(l&&(l(z.substring(St,pt+2),d),k))return;pt+=2}else{for(Ot=St+1;;Ot++){if(Yt=z.charCodeAt(Ot),isNaN(Yt))return V?z.substring(St):(pt=-1,B("unclosed tag"));if(Yt===34)G=z.indexOf('"',Ot+1),Ot=G===-1?Ot:G;else if(Yt===39)G=z.indexOf("'",Ot+1),Ot=G===-1?Ot:G;else if(Yt===62){pt=Ot;break}}if(nt===33){if(p&&(p(z.substring(St,pt+1),Wa,d),k))return;pt+=1}else{if(ot={},nt===47){if(Pt=!1,Et=!0,!T.length)return B("missing open tag");if(Ot=R=T.pop(),G=St+2+Ot.length,z.substring(St+2,G)!==Ot)return B("closing tag mismatch");for(;G<pt;G++)if(nt=z.charCodeAt(G),!(nt===32||nt>8&&nt<14))return B("close tag")}else{if(z.charCodeAt(pt-1)===47?(Ot=R=z.substring(St+1,pt-1),Pt=!0,Et=!0):(Ot=R=z.substring(St+1,pt),Pt=!0,Et=!1),!(nt>96&&nt<123||nt>64&&nt<91||nt===95||nt===58))return B("illegal first char nodeName");for(G=1,U=Ot.length;G<U;G++)if(nt=Ot.charCodeAt(G),!(nt>96&&nt<123||nt>64&&nt<91||nt>47&&nt<59||nt===45||nt===95||nt==46)){if(nt===32||nt<14&&nt>8){R=Ot.substring(0,G),ot=null;break}return B("invalid nodeName")}Et||T.push(R)}if(g){Pt&&(ht=null,ot===null&&(f=Ot.indexOf("xmlns",G)!==-1)&&(H=G,L=Ot,vt(),f=!1),Et||_.push(ht)),x=R,gt===null&&(gt=Object.create(null));var Gt=gt[R];if(Gt!==void 0)R=Gt;else{if(nt=R.indexOf(":"),nt!==-1){if(fe=w[R.substring(0,nt)],!fe)return B("missing namespace on <"+x+">");R=R.substr(nt+1)}else fe=w.xmlns;fe&&(R=fe+":"+R),gt[x]=R}}if(Pt&&(H=G,L=Ot,o&&(e?o(b,Wa,Et,d):o(R,vt,Wa,Et,d),k)))return;if(Et){if(r&&(r(e?b:R,Wa,Pt,d),k))return;g&&(Pt||(ht=_.pop()),ht&&(tP(w,ht),ht=null,gt=null,Rt=null))}pt+=1}}}}}function v_(t){return t.xml&&t.xml.tagAlias==="lowerCase"}function k_(t){return t.xml&&t.xml.serialize}function oP(t){let e=k_(t);return e!==x_&&(e||null)}function rP(t){return t.charAt(0).toUpperCase()+t.slice(1)}function w_(t,e){return v_(e)?t.prefix+":"+rP(t.localName):t.name}function iP(t,e){var n=t.name,o=t.localName,r=e&&e.xml&&e.xml.typePrefix;return r&&o.indexOf(r)===0?t.prefix+":"+o.slice(r.length):n}function aP(t,e,n){let o=Un(t,e.xmlns),r=Un("".concat(e[o.prefix]||o.prefix,":").concat(o.localName));return iP(r,n.getPackage(r.prefix))}function ma(t){return Error(t)}function vi(t){return t.$descriptor}function sP(t){j(this,t),this.elementsById=Object.create(null),this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw ma("expected element");var n=this.elementsById,o=vi(e).idProperty,r;if(o&&(r=e.get(o.name),r)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(r))throw Error("illegal ID <"+r+">");if(n[r])throw ma("duplicate ID <"+r+">");n[r]=e}},this.addWarning=function(e){this.warnings.push(e)}}function Dl(){}function Ag(){}function ic(){}function Al(t,e){this.property=t,this.context=e}function Mg(t,e){this.element=e,this.propertyDesc=t}function Au(){}function no(t,e,n){this.model=t,this.type=t.getType(e),this.context=n}function Dg(t,e,n){no.call(this,t,e,n)}function rc(t,e,n){this.model=t,this.context=n}function Pg(t){t instanceof ar&&(t={model:t}),j(this,{lax:!1},t)}function cP(){var t=[];return Object.defineProperty(t,"peek",{value:function(){return this[this.length-1]}}),t}function ir(t){this.prefixMap={},this.uriMap={},this.used={},this.wellknown=[],this.custom=[],this.parent=t,this.defaultPrefixMap=t&&t.defaultPrefixMap||{}}function dP(t){return t.charAt(0).toLowerCase()+t.slice(1)}function uP(t,e){return v_(e)?dP(t):t}function E_(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}function o_(t){return Dn(t)?t:(t.prefix?t.prefix+":":"")+t.localName}function mP(t){return t.getUsed().filter(function(e){return e.prefix!=="xml"}).map(function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:T_(e.uri)}})}function hP(t,e){return e.isGeneric?j({localName:e.ns.localName},t):j({localName:uP(e.ns.localName,e.$pkg)},t)}function fP(t,e){return j({localName:e.ns.localName},t)}function gP(t){var e=t.$descriptor;return Ft(e.properties,function(n){var o=n.name;if(n.isVirtual||!Pn(t,o))return!1;var r=t[o];return r===n.default||r===null?!1:!n.isMany||r.length})}function S_(t,e,n){return t=Dn(t)?t:""+t,t.replace(e,function(o){return"&"+n[o]+";"})}function T_(t){return S_(t,pP,yP)}function C_(t){return S_(t,__,bP)}function vP(t){return Ft(t,function(e){return e.isAttr})}function xP(t){return Ft(t,function(e){return!e.isAttr})}function jg(t){this.tagName=t}function Va(){}function $g(t){this.tagName=t}function $e(t,e){this.body=[],this.attrs=[],this.parent=t,this.propertyDescriptor=e}function kP(t,e){for(var n=[{serializer:t,index:0,opened:!1,indent:!1}];n.length;){var o=n[n.length-1],r=o.serializer;if(!o.opened){var i=r.body[0];if(o.indent=i&&i.constructor!==Va,e.appendIndent().append("<"+r.tagName),r.serializeAttributes(e),e.append(i?">":" />"),o.opened=!0,!i){e.appendNewLine(),n.pop();continue}o.indent&&e.appendNewLine().indent()}if(o.index<r.body.length){var a=r.body[o.index++];a instanceof $e?n.push({serializer:a,index:0,opened:!1,indent:!1}):a.serializeTo(e)}else o.indent&&e.unindent().appendIndent(),e.append("</"+r.tagName+">").appendNewLine(),n.pop()}}function Ru(t,e,n){$e.call(this,t,e),this.serialization=n}function wP(){this.value="",this.write=function(t){this.value+=t}}function _P(t,e){var n=[""];this.append=function(o){return t.write(o),this},this.appendNewLine=function(){return e&&t.write("\n"),this},this.appendIndent=function(){return e&&t.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function EP(t){t=j({format:!1,preamble:!0},t||{});function e(n,o){var r=o||new wP,i=new _P(r,t.format);t.preamble&&i.append(lP);var a=new $e,s=n.$model;if(a.getNamespaces().mapDefaultPrefixes(TP(s)),a.build(n).serializeTo(i),!o)return r.value}return{toXML:e}}function SP(t,e){for(var n=[{serializer:t,children:t.enter(e),index:0}];n.length;){var o=n[n.length-1];if(o.index>=o.children.length)o.serializer.exit(),n.pop();else{var r=o.children[o.index++],i=r.create();o.serializer.body.push(i),r.element&&n.push({serializer:i,children:i.enter(r.element),index:0})}}}function TP(t){let e=t.config&&t.config.nsMap||{},n={};for(let o in Bg)n[o]=Bg[o];for(let o in e){let r=e[o];n[r]=o}for(let o of t.getPackages())n[o.prefix]=o.uri;return n}function Bu(t,e){ar.call(this,t,e)}function Ma(t,e){return new Bu(j({},CP,t),e)}function qf(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.altKey}function to(t){return t.altKey?!1:t.ctrlKey||t.metaKey}function an(t,e){return t=Ct(t)?t:[t],t.indexOf(e.key)!==-1||t.indexOf(e.code)!==-1}function Cl(t){return t.shiftKey}function Kf(t){return to(t)&&an(R_,t)}function Yf(t){return to(t)&&an(B_,t)}function Xf(t){return to(t)&&an(RP,t)}function Zf(t){return to(t)&&an(BP,t)}function du(t){return to(t)&&!Cl(t)&&an(zg,t)}function uu(t){return to(t)&&(an(A_,t)||an(zg,t)&&Cl(t))}function MP(t){let e=0;for(;e<t.length;){let n=t.indexOf("<",e);if(n<0)return!1;if(t.startsWith("<!--",n))return!0;if(t.startsWith("<![CDATA[",n)){let o=t.indexOf("]]>",n+9);if(o<0)return!1;e=o+3}else if(t.startsWith("<?",n)){let o=t.indexOf("?>",n+2);if(o<0)return!1;e=o+2}else e=n+1}return!1}function DP(t){let e=[];for(let n of t){let o=n.message??"",r=/nested error: duplicate ID <([^>]+)>/.exec(o);if(r)e.push({code:"duplicate-id",severity:"error",destructive:!0,ids:[r[1]],message:'Duplicate id "'.concat(r[1],'": the second element is dropped on save.')});else if(o.startsWith("unparsable content")){let i=/unparsable content <([^>]+?)\/?> detected/.exec(o);e.push({code:"unparsable-content",severity:"warning",destructive:!0,ids:i?[i[1]]:[],message:"Unrecognised content <".concat(i?.[1]??"?","> is dropped on save.")})}else if(o.startsWith("unresolved reference")){let i=/unresolved reference <([^>]+)>/.exec(o)?.[1],a=[i,n.element?.id].filter(s=>typeof s=="string");e.push({code:"unresolved-reference",severity:"warning",destructive:!0,ids:a,message:'Reference to missing id "'.concat(i??"?",'"').concat(n.element?.id?' from "'.concat(n.element.id,'"'):""," is dropped on save.")})}else e.push({code:"import-warning",severity:"warning",message:o.split("\n")[0]??o})}return e}function M_(t,e){for(let n of go(t.flowElements))Og(n)&&e.push(n),n.$instanceOf("bpmn:SubProcess")&&M_(n,e);for(let n of go(t.artifacts))Og(n)&&e.push(n);for(let n of go(t.laneSets)){let o=go(n.lanes);for(;o.length;){let r=o.pop();e.push(r),o.push(...go(r.childLaneSet?.lanes))}}}function jP(t){let e=[],n=go(t.diagrams),o=new Set;for(let c of n){let l=c.plane,p=l?.bpmnElement;p?.id&&o.add(p.id);for(let d of go(l?.planeElement)){let u=d.bpmnElement;u?.id&&o.add(u.id)}}let r=[];for(let c of go(t.rootElements))if(c.$instanceOf("bpmn:Process")&&M_(c,r),c.$instanceOf("bpmn:Collaboration")){for(let l of go(c.participants))r.push(l);for(let l of go(c.messageFlows))r.push(l);for(let l of go(c.artifacts))Og(l)&&r.push(l)}let i=r.map(c=>c.id).filter(c=>!!c);if(n.length===0){let c=r_(t);return c.length>0&&e.push({code:"incomplete-io-specification",severity:"warning",ids:Tu(c),message:"ioSpecification without inputSet and outputSet is invalid against the BPMN 2.0 schema."}),i.length>0&&e.push({code:"missing-di",severity:"error",ids:Tu(i),message:"The document has no BPMNDiagram, so there is nothing to draw. DI is not generated implicitly."}),e}let a=r_(t);a.length>0&&e.push({code:"incomplete-io-specification",severity:"warning",ids:Tu(a),message:"ioSpecification without inputSet and outputSet is invalid against the BPMN 2.0 schema."});let s=i.filter(c=>!o.has(c));return s.length>0&&e.push({code:"partial-di",severity:"warning",ids:Tu(s),message:"".concat(s.length," element(s) have no diagram shape or edge and are not drawn.")}),e}function r_(t){let e=[],n=o=>{let r=o.ioSpecification;r&&(go(r.inputSets).length===0||go(r.outputSets).length===0)&&e.push(o.id??r.id??o.$type);for(let i of go(o.flowElements))n(i)};for(let o of go(t.rootElements))o.$instanceOf("bpmn:Process")&&n(o);return e}function i_(){return _g??=Er(()=>Promise.resolve().then(()=>(s5(),a5)).then(t=>({Modeler:t.default}),t=>{throw _g=void 0,t}),[]),_g}async function a_(t,e){return t==="legend"?(await Er(()=>Promise.resolve().then(()=>(x5(),v5)),[])).legendProfile(e):t==="colored"?(await Er(()=>Promise.resolve().then(()=>(S5(),E5)),[])).coloredProfile(e):{id:"standard",modelerModules:[],viewerModules:[]}}function OP(t,e,n){let o=n?{paletteColumns:n}:{};return e.tokens?e.id==="colored"?{instanceId:t,colored:e.tokens,...e.named?{coloredNamed:e.named}:{},...o}:{instanceId:t,legend:e.tokens,...o}:{instanceId:t,...o}}function zP(){return"bc".concat(Math.random().toString(36).slice(2,8)).concat((LP++).toString(36))}function NP(t){let e=t.plane.bpmnElement,n=(e?.participants??[]).map(o=>o.name).filter(Boolean).join(" \xB7 ");return t.name||e?.name||n||e?.id||t.id}function HP(t){let e={};for(let[n,o]of Object.entries(IP)){let r=t[o];typeof r=="string"&&r&&(e[n]=r)}return e}function GP(){return{"inline-01.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17'%20height='17'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%20/%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'%20/%3e%3c/svg%3e",""+import.meta.url).href,"inline-02.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='16'%20cy='16'%20r='11'%20stroke-width='2'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-03.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='16'%20cy='16'%20r='11'%20stroke-width='4'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-04.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='16'%20cy='16'%20r='11'%20stroke-width='1.5'/%3e%3ccircle%20cx='16'%20cy='16'%20r='8'%20stroke-width='1.5'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-05.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='6'%20width='26'%20height='20'%20rx='4'%20stroke-width='2'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-06.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='6'%20width='26'%20height='20'%20rx='4'%20stroke-width='2'/%3e%3crect%20x='12'%20y='18'%20width='8'%20height='6'%20stroke-width='1'/%3e%3cpath%20d='M16%2019.5v3M14.5%2021h3'%20stroke-width='1'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-07.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='6'%20width='26'%20height='20'%20rx='4'%20stroke-width='1.5'/%3e%3cpath%20d='M19%2010h4v-2l4%203l-4%203v-2h-4Z'%20stroke-width='1.2'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-08.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpolygon%20points='16,3%2029,16%2016,29%203,16'%20stroke-width='2'/%3e%3cpath%20d='M12%2012l8%208M20%2012l-8%208'%20stroke-width='2.5'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-09.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpolygon%20points='16,3%2029,16%2016,29%203,16'%20stroke-width='2'/%3e%3cpath%20d='M16%2010v12M10%2016h12'%20stroke-width='2.5'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-10.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M8%2010h11l5%205v14H8z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%2010v5h5'%20stroke-width='1.5'/%3e%3cpath%20d='M16%201v7M13%205l3%203l3-3'%20stroke-width='1.8'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-11.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M8%2010h11l5%205v14H8z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%2010v5h5'%20stroke-width='1.5'/%3e%3cpath%20d='M16%208V1M13%204l3-3l3%203'%20stroke-width='1.8'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-12.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M7%204h12l6%206v18H7z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%204v6h6'%20stroke-width='1.5'/%3e%3cpath%20d='M10%2011h4v-2.5l5%203.5l-5%203.5v-2.5h-4Z'%20stroke-width='1.2'%20fill='none'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-13.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M7%204h12l6%206v18H7z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%204v6h6'%20stroke-width='1.5'/%3e%3cpath%20d='M10%2011h4v-2.5l5%203.5l-5%203.5v-2.5h-4Z'%20stroke-width='1.2'%20fill='black'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-14.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M6%205h20v18.7q-5%20-4.8%20-10%200q-5%204.8%20-10%200Z'%20stroke-width='1.5'/%3e%3cpath%20d='M6%2010h20'%20stroke-width='1.2'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-15.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='7'%20y='5'%20width='22'%20height='22'%20rx='2'%20stroke-width='2'/%3e%3crect%20x='3'%20y='9'%20width='7'%20height='4'%20stroke-width='1.5'/%3e%3crect%20x='3'%20y='18'%20width='7'%20height='4'%20stroke-width='1.5'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-16.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='4'%20y='6'%20width='24'%20height='20'%20stroke-width='2'/%3e%3cpath%20d='M11%206v20'%20stroke-width='1.5'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-17.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M4%2022L20%2010'%20stroke-width='2'/%3e%3cpolygon%20points='28,6%2020,8%2024,14'%20fill='black'%20stroke-width='1'/%3e%3c/svg%3e",""+import.meta.url).href}}function qP(t){let e=t?.href??"",n=c_.get(e);return n===void 0&&(n=VP.split(UP).map((o,r)=>{if(r===0)return o;let i=/^inline-\d{2}\.svg/.exec(o)?.[0];if(!i)throw Error("unknown inline asset in the generated CSS");return D_(i,t)+o.slice(i.length)}).join(""),c_.set(e,n)),n}function KP(t){let e=n=>t?new URL("bpmn-font/font/".concat(n),t).href:"";return"@font-face{font-family:'bpmn';src:url('".concat(t?e("bpmn.woff2"):new URL("/assets/bpmn-DaJ2be00.woff2",""+import.meta.url).href,"') format('woff2'),url('").concat(t?e("bpmn.woff"):new URL("/assets/bpmn-DaGVGZ7K.woff",""+import.meta.url).href,"') format('woff'),url('").concat(t?e("bpmn.ttf"):new URL("/assets/bpmn-CZlEAdL6.ttf",""+import.meta.url).href,"') format('truetype');font-weight:normal;font-style:normal;}")}function YP(t){let e=new URL(t);if(!/^(https?|file):$/.test(e.protocol))throw Error("assetBase must be an absolute http(s) URL, got ".concat(t));if(e.search||e.hash)throw Error("assetBase must name a directory, without query or fragment, got ".concat(t));return e.pathname.endsWith("/")||(e.pathname+="/"),e}function XP(t){return t?new URL("bpmn-font/font/bpmn.woff2",t).href:new URL("/assets/bpmn-DaJ2be00.woff2",""+import.meta.url).href}function D_(t,e){if(e)return new URL("inline/".concat(t),e).href;let n=GP()[t];if(!n)throw Error("unknown inline asset ".concat(t));return n}function d_(t,e,n,o){let r=(t.ownerDocument??t).createElement("style");r.setAttribute(e,""),o&&r.setAttribute("nonce",o),r.textContent=n,t.appendChild(r)}function ZP(t,e,n){let o=t.getRootNode(),r=t.ownerDocument;Cu.has(r)||(Cu.add(r),r.head.querySelector("style[".concat(l_,"]"))||d_(r.head,l_,KP(n),e));let i=o instanceof ShadowRoot?o:r.head;Cu.has(i)||(Cu.add(i),(i instanceof ShadowRoot||!r.head.querySelector("style[".concat(p_,"]")))&&d_(i,p_,qP(n),e))}function QP(t){if(t.length===0)return null;let e=1/0,n=1/0,o=-1/0,r=-1/0;for(let i of t)e=Math.min(e,i.x),n=Math.min(n,i.y),o=Math.max(o,i.x+i.width),r=Math.max(r,i.y+i.height);return{x:e,y:n,width:o-e,height:r-n}}function ej(t){let e=t.find(o=>o.type==="bpmn:StartEvent");if(e)return e;let n=t.filter(o=>!tj.has(o.type));return n.length===0?null:n.reduce((o,r)=>r.x<o.x||r.x===o.x&&r.y<o.y?r:o)}function nj(t,e,n=0,o=!1){let r=QP(t),i=e.width-n-48;if(!r||i<=0||e.height<=0)return null;let a=Math.min(i/(r.width+2*Ga),e.height/(r.height+2*Ga));if(o||a>=.6){let h=Math.min(a,1),f=e.width/h,g=e.height/h;return{mode:"fit",scale:h,viewbox:{x:r.x-Ga-n/h,y:r.y+r.height/2-g/2,width:f,height:g}}}let s=JP,c=e.width/s,l=e.height/s,p=n/s,d=ej(t)??r,u=r.x-Ga-p;d.x+d.width>u+p+(c-p)*.5&&(u=d.x-p-(c-p)*.2);let m=Math.max(r.y-Ga,d.y+d.height/2-l/3);return m=Math.min(m,Math.max(r.y-Ga,r.y+r.height+Ga-l)),{mode:"anchor",viewbox:{x:u,y:m,width:c,height:l},scale:s}}function qr(){let t=Error("Operation aborted: superseded or canvas destroyed");return t.name="AbortError",t}function pj(t,e={}){return new lj(t,e)}function u_(t){return t instanceof Error?t.message:String(t)}function dj(t,e){return t.document.readyState==="complete"?new Promise(n=>t.setTimeout(n,50)):new Promise(n=>{let o=()=>{t.removeEventListener("load",o),n()};t.addEventListener("load",o),t.setTimeout(o,e)})}function uj(t,e,n){return new Promise(o=>{let r=new t.Image,i=t.setTimeout(()=>o(!1),n);r.onload=()=>{t.clearTimeout(i),o(!0)},r.onerror=()=>{t.clearTimeout(i),o(!1)},r.src=e})}function da(t){return typeof t=="object"&&!!t&&!Array.isArray(t)}function m_(t){return da(t)&&t.ok===!1}function ua(t,e,n){return n===void 0?{ok:!1,code:t,message:e}:{ok:!1,code:t,message:e,pointer:n}}function pa(t,e){return"".concat(t,"/").concat(String(e).replace(/~/g,"~0").replace(/\//g,"~1"))}function Sg(t,e){if(typeof t=="function")return ua("unsupported-extension","the F1 tree carries a non-data value (\xA74.1)",e)}function Mu(t,e,n,o){let r=Sg(e,n);if(r!==void 0)return{refused:r};if(!da(e))return{refused:ua("missing-$type","the F1 tree node at ".concat(n||"/"," is not an object"),n)};let i=e.$type;if(typeof i!="string"||i.length===0)return{refused:ua("missing-$type","the F1 tree node at ".concat(n||"/"," has no $type"),pa(n,"$type"))};let a={};for(let[c,l]of Object.entries(e)){if(c==="$type")continue;let p=pa(n,c),d=Sg(l,p);if(d!==void 0)return{refused:d};if(Array.isArray(l)){let u=[];for(let m=0;m<l.length;m+=1){let h=pa(p,m);if(da(l[m])){let f=Mu(t,l[m],h,o);if("refused"in f)return f;u.push(f.root)}else{let f=Sg(l[m],h);if(f!==void 0)return{refused:f};u.push(l[m])}}a[c]=u}else if(da(l)){let u=Mu(t,l,p,o);if("refused"in u)return u;a[c]=u.root}else a[c]=l}let s;try{s=t.create(i,a)}catch(c){return{refused:ua("unknown-type",c instanceof Error?c.message:String(c),pa(n,"$type"))}}return typeof e.id=="string"&&o.set(e.id,s),{root:s}}function Du(t,e,n,o){for(let r of e.$descriptor.properties){if(!r.isReference)continue;let i=pa(o,r.name),a=e[r.name],s=(c,l)=>{if(typeof c!="string")return c;let p=n.get(c);return p===void 0?ua("unresolved-reference",'the reference "'.concat(c,'" names no element of the document'),l):p};if(r.isMany){if(Array.isArray(a)){let c=[];for(let l=0;l<a.length;l+=1){let p=s(a[l],pa(i,l));if(m_(p))return p;c.push(p)}e[r.name]=c}}else if(a!==void 0){let c=s(a,i);if(m_(c))return c;e[r.name]=c}}for(let[r,i]of Object.entries(t)){if(r==="$type")continue;let a=e[r],s=i,c=pa(o,r);if(Array.isArray(s)&&Array.isArray(a)){for(let l=0;l<s.length;l+=1)if(da(s[l])&&s[l].$type!==void 0){let p=Du(s[l],a[l],n,pa(c,l));if(p!==void 0)return p}}else if(da(s)&&s.$type!==void 0){let l=Du(s,a,n,c);if(l!==void 0)return l}}}function mj(t){if(!da(t))return ua("missing-$type","the F1 document is not a JSON object");let e=new Ma,n=new Map,o=Mu(e,t,"",n);if("refused"in o)return o.refused;let r=Du(t,o.root,n,"");return r===void 0?{ok:!0,xml:"",warnings:[]}:r}async function hj(t){if(!da(t))return ua("missing-$type","the F1 document is not a JSON object");let e=new Ma,n=new Map,o=Mu(e,t,"",n);if("refused"in o)return o.refused;let r=Du(t,o.root,n,"");if(r!==void 0)return r;try{let{xml:i}=await e.toXML(o.root,{format:!0});return{ok:!0,xml:i,warnings:[]}}catch(i){return ua("unsupported-extension","the F1 tree cannot be serialized: ".concat(i instanceof Error?i.message:String(i)))}}function fj(t){return{source:"bpmn-canvas",validate(e){let n=t(e);return n.ok?(n.warnings??[]).map(o=>({code:o.code,message:o.message,...o.pointer===void 0?{}:{pointer:o.pointer},severity:"warning"})):[{code:n.code,message:n.message,...n.pointer===void 0?{}:{pointer:n.pointer},severity:"error"}]}}}function h_(t){return{code:t.code,path:"",message:t.message,severity:t.severity==="error"?"error":"warning",source:"bpmn-canvas",...t.ids===void 0?{}:{detail:{ids:t.ids}}}}async function $_(t,e,n){let o=new AbortController,r=pj(t,{xml:e.xml,readOnly:!0,styles:"auto",signal:o.signal,...e.assetBase===void 0?{}:{assetBase:e.assetBase},...e.watermark===void 0?{}:{watermark:e.watermark},onDiagnostic:i=>n(h_(i))});await r.ready;for(let i of r.getDiagnostics())n(h_(i));return()=>{o.abort(),r.destroy()}}var Q5,VD,qD,g_,YD,XD,ZD,Ml,n_,Bg,x_,lP,pP,__,yP,bP,CP,R_,B_,RP,BP,A_,zg,AP,Tu,PP,Og,go,$P,_g,LP,s_,IP,FP,WP,UP,VP,Cu,c_,l_,p_,JP,Ga,tj,oj,rj,ij,aj,sj,cj,lj,Eg,gj,P_,j_,As=Tn(()=>{"use strict";Jf();Mr();Q5=Object.defineProperty,VD=(t,e)=>{let n={};for(var o in t)Q5(n,o,{get:t[o],enumerable:!0});return e||Q5(n,Symbol.toStringTag,{value:"Module"}),n};Tg.prototype.get=function(t){return this.$model.properties.get(this,t)},Tg.prototype.set=function(t,e){this.$model.properties.set(this,t,e)};f_.prototype.createType=function(t){var e=this.model,n=this.properties,o=Object.create(Tg.prototype);A(t.properties,function(a){!a.isMany&&a.default!==void 0&&(o[a.name]=a.default)}),n.defineModel(o,e),n.defineDescriptor(o,t);var r=t.ns.name;function i(a){n.define(this,"$type",{value:r,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),A(a,jn(function(s,c){this.set(c,s)},this))}return i.prototype=o,i.hasType=o.$instanceOf=this.model.hasType,n.defineModel(i,e),n.defineDescriptor(i,t),i};qD=j(Object.create(null),{String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0}),g_=j(Object.create(null),{String:function(t){return t},Boolean:function(t){return t==="true"},Integer:function(t){return parseInt(t,10)},Real:function(t){return parseFloat(t)}});No.prototype.build=function(){return po(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},No.prototype.addProperty=function(t,e,n){typeof e=="boolean"&&(n=e,e=void 0),this.addNamedProperty(t,n!==!1);var o=this.properties;e===void 0?o.push(t):o.splice(e,0,t)},No.prototype.replaceProperty=function(t,e,n){var o=t.ns,r=this.properties,i=this.propertiesByName,a=t.name!==e.name;if(t.isId){if(!e.isId)throw Error("property <"+e.ns.name+"> must be id property to refine <"+t.ns.name+">");this.setIdProperty(e,!1)}if(t.isBody){if(!e.isBody)throw Error("property <"+e.ns.name+"> must be body property to refine <"+t.ns.name+">");this.setBodyProperty(e,!1)}var s=r.indexOf(t);if(s===-1)throw Error("property <"+o.name+"> not found in property list");r.splice(s,1),this.addProperty(e,n?void 0:s,a),i[o.name]=i[o.localName]=e},No.prototype.redefineProperty=function(t,e,n){var o=t.ns.prefix,r=e.split("#"),i=Un(r[0],o),a=Un(r[1],i.prefix).name,s=this.propertiesByName[a];if(s)this.replaceProperty(s,t,n);else throw Error("refined property <"+a+"> not found");delete t.redefines},No.prototype.addNamedProperty=function(t,e){var n=t.ns,o=this.propertiesByName;e&&(this.assertNotDefined(t,n.name),this.assertNotDefined(t,n.localName)),o[n.name]=o[n.localName]=t},No.prototype.removeNamedProperty=function(t){var e=t.ns,n=this.propertiesByName;delete n[e.name],delete n[e.localName]},No.prototype.setBodyProperty=function(t,e){if(e&&this.bodyProperty)throw Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+t.ns.name+">)");this.bodyProperty=t},No.prototype.setIdProperty=function(t,e){if(e&&this.idProperty)throw Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+t.ns.name+">)");this.idProperty=t},No.prototype.assertNotTrait=function(t){if((t.extends||[]).length)throw Error("cannot create <".concat(t.name,"> extending <").concat(t.extends,">"))},No.prototype.assertNotDefined=function(t,e){var n=t.name,o=this.propertiesByName[n];if(o)throw Error("property <"+n+"> already defined; override of <"+o.definedBy.ns.name+"#"+o.ns.name+"> by <"+t.definedBy.ns.name+"#"+t.ns.name+"> not allowed without redefines")},No.prototype.hasProperty=function(t){return this.propertiesByName[t]},No.prototype.addTrait=function(t,e){e&&this.assertNotTrait(t);var n=this.allTypesByName,o=this.allTypes,r=t.name;r in n||(A(t.properties,jn(function(i){i=j({},i,{name:i.ns.localName,inherited:e}),Object.defineProperty(i,"definedBy",{value:t});var a=i.replaces,s=i.redefines;a||s?this.redefineProperty(i,a||s,a):(i.isBody&&this.setBodyProperty(i),i.isId&&this.setIdProperty(i),this.addProperty(i))},this)),o.push(t),n[r]=t)};la.prototype.getPackage=function(t){return this.packageMap[t]},la.prototype.getPackages=function(){return this.packages},la.prototype.registerPackage=function(t){t=j({},t);var e=this.packageMap;t_(e,t,"prefix"),t_(e,t,"uri"),A(t.types,jn(function(n){this.registerType(n,t)},this)),e[t.uri]=e[t.prefix]=t,this.packages.push(t)},la.prototype.registerType=function(t,e){t=j({},t,{superClass:(t.superClass||[]).slice(),extends:(t.extends||[]).slice(),properties:(t.properties||[]).slice(),meta:j({},t.meta||{})});var n=Un(t.name,e.prefix),o=n.name,r=Object.create(null);A(t.properties,jn(function(i){var a=Un(i.name,n.prefix),s=a.name;xg(i.type)||(i.type=Un(i.type,a.prefix).name),j(i,{ns:a,name:s}),r[s]=i},this)),j(t,{ns:n,name:o,propertiesByName:r}),A(t.extends,jn(function(i){var a=Un(i,n.prefix),s=this.typeMap[a.name];s.traits=s.traits||[],s.traits.push(o)},this)),this.definePackage(t,e),this.typeMap[o]=t},la.prototype.mapTypes=function(t,e,n){var o=xg(t.name)?{name:t.name}:this.typeMap[t.name],r=this;function i(c,l){var p=Un(c,xg(c)?"":t.prefix);r.mapTypes(p,e,l)}function a(c){return i(c,!0)}function s(c){return i(c,!1)}if(!o)throw Error("unknown type <"+t.name+">");A(o.superClass,n?a:s),e(o,!n),A(o.traits,a)},la.prototype.getEffectiveDescriptor=function(t){var e=Un(t),n=new No(e);this.mapTypes(e,function(r,i){n.addTrait(r,i)});var o=n.build();return this.definePackage(o,o.allTypes[o.allTypes.length-1].$pkg),o},la.prototype.definePackage=function(t,e){this.properties.define(t,"$pkg",{value:e})};Ua.prototype.set=function(t,e,n){if(!Dn(e)||!e.length)throw TypeError("property name must be a non-empty string");var o=this.getProperty(t,e),r=o&&o.name;KD(n)?o?delete t[r]:delete t.$attrs[kg(e)]:o?r in t?t[r]=n:e_(t,o,n):t.$attrs[kg(e)]=n},Ua.prototype.get=function(t,e){var n=this.getProperty(t,e);if(!n)return t.$attrs[kg(e)];var o=n.name;return!t[o]&&n.isMany&&e_(t,n,[]),t[o]},Ua.prototype.define=function(t,e,n){if(!n.writable){var o=n.value;n=j({},n,{get:function(){return o}}),delete n.value}Object.defineProperty(t,e,n)},Ua.prototype.defineDescriptor=function(t,e){this.define(t,"$descriptor",{value:e})},Ua.prototype.defineModel=function(t,e){this.define(t,"$model",{value:e})},Ua.prototype.getProperty=function(t,e){var n=this.model,o=n.getPropertyDescriptor(t,e);if(o)return o;if(e.includes(":"))return null;let r=n.config.strict;if(r!==void 0){let i=TypeError("unknown property <".concat(e,"> on <").concat(t.$type,">"));if(r)throw i;typeof console<"u"&&console.warn(i)}return null};ar.prototype.create=function(t,e){var n=this.getType(t);if(!n)throw Error("unknown type <"+t+">");return new n(e)},ar.prototype.getType=function(t){var e=this.typeCache,n=Dn(t)?t:t.ns.name,o=e[n];return o||=(t=this.registry.getEffectiveDescriptor(n),e[n]=this.factory.createType(t)),o},ar.prototype.createAny=function(t,e,n){var o=Un(t),r={$type:t,$instanceOf:function(a){return a===this.$type},get:function(a){return this[a]},set:function(a,s){l0(this,[a],s)}},i={name:t,isGeneric:!0,ns:{prefix:o.prefix,localName:o.localName,uri:e}};return this.properties.defineDescriptor(r,i),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),A(n,function(a,s){We(a)&&a.value!==void 0?r[a.name]=a.value:r[s]=a}),r},ar.prototype.getPackage=function(t){return this.registry.getPackage(t)},ar.prototype.getPackages=function(){return this.registry.getPackages()},ar.prototype.getElementDescriptor=function(t){return t.$descriptor},ar.prototype.hasType=function(t,e){e===void 0&&(e=t,t=this);var n=t.$model.getElementDescriptor(t);return e in n.allTypesByName},ar.prototype.getPropertyDescriptor=function(t,e){return this.getElementDescriptor(t).propertiesByName[e]},ar.prototype.getTypeDescriptor=function(t){return this.registry.typeMap[t]};YD=String.fromCharCode,XD=Object.prototype.hasOwnProperty,ZD=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,Ml={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Ml).forEach(function(t){Ml[t.toUpperCase()]=Ml[t]});n_="non-whitespace outside of root node";Bg={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},x_="property";Dl.prototype.handleEnd=function(){},Dl.prototype.handleText=function(){},Dl.prototype.handleNode=function(){};Ag.prototype=Object.create(Dl.prototype),Ag.prototype.handleNode=function(){return this};ic.prototype=Object.create(Dl.prototype),ic.prototype.handleText=function(t){this.body=(this.body||"")+t};Al.prototype=Object.create(ic.prototype),Al.prototype.handleNode=function(t){if(this.element)throw ma("expected no sub nodes");return this.element=this.createReference(t),this},Al.prototype.handleEnd=function(){this.element.id=this.body},Al.prototype.createReference=function(t){return{property:this.property.ns.name,id:""}};Mg.prototype=Object.create(ic.prototype),Mg.prototype.handleEnd=function(){var t=this.body||"",e=this.element,n=this.propertyDesc;t=Cg(n.type,t),n.isMany?e.get(n.name).push(t):e.set(n.name,t)};Au.prototype=Object.create(ic.prototype),Au.prototype.handleNode=function(t){var e=this,n=this.element;return n?e=this.handleChild(t):(n=this.element=this.createElement(t),this.context.addElement(n)),e};no.prototype=Object.create(Au.prototype),no.prototype.addReference=function(t){this.context.addReference(t)},no.prototype.handleText=function(t){var e=this.element;if(!vi(e).bodyProperty)throw ma("unexpected body text <"+t+">");ic.prototype.handleText.call(this,t)},no.prototype.handleEnd=function(){var t=this.body,e=this.element,n=vi(e).bodyProperty;n&&t!==void 0&&(t=Cg(n.type,t),e.set(n.name,t))},no.prototype.createElement=function(t){var e=t.attributes,n=this.type,o=vi(n),r=this.context,i=new n({}),a=this.model,s;return A(e,function(c,l){var p=o.propertiesByName[l],d;p&&p.isReference?p.isMany?(d=c.split(" "),A(d,function(u){r.addReference({element:i,property:p.ns.name,id:u})})):r.addReference({element:i,property:p.ns.name,id:c}):(p?c=Cg(p.type,c):l==="xmlns"?l=":"+l:(s=Un(l,o.ns.prefix),a.getPackage(s.prefix)&&r.addWarning({message:"unknown attribute <"+l+">",element:i,property:l,value:c})),i.set(l,c))}),i},no.prototype.getPropertyForNode=function(t){var e=t.name,n=Un(e),o=this.type,r=this.model,i=vi(o),a=n.name,s=i.propertiesByName[a];if(s&&!s.isAttr){let l=oP(s);if(l){let p=t.attributes[l];if(p){let d=aP(p,t.ns,r),u=r.getType(d);return j({},s,{effectiveType:vi(u).name})}}return s}var c=r.getPackage(n.prefix);if(c){let l=w_(n,c),p=r.getType(l);if(s=ve(i.properties,function(d){return!d.isVirtual&&!d.isReference&&!d.isAttribute&&p.hasType(d.type)}),s)return j({},s,{effectiveType:vi(p).name})}else if(s=ve(i.properties,function(l){return!l.isReference&&!l.isAttribute&&l.type==="Element"}),s)return s;throw ma("unrecognized element <"+n.name+">")},no.prototype.toString=function(){return"ElementDescriptor["+vi(this.type).name+"]"},no.prototype.valueHandler=function(t,e){return new Mg(t,e)},no.prototype.referenceHandler=function(t){return new Al(t,this.context)},no.prototype.handler=function(t){return t==="Element"?new rc(this.model,t,this.context):new no(this.model,t,this.context)},no.prototype.handleChild=function(t){var e=this.getPropertyForNode(t),n,o=this.element,r;if(n=e.effectiveType||e.type,y_(n))return this.valueHandler(e,o);r=e.isReference?this.referenceHandler(e).handleNode(t):this.handler(n).handleNode(t);var i=r.element;return i!==void 0&&(e.isMany?o.get(e.name).push(i):o.set(e.name,i),e.isReference?(j(i,{element:o}),this.context.addReference(i)):i.$parent=o),r};Dg.prototype=Object.create(no.prototype),Dg.prototype.createElement=function(t){var e=t.name,n=Un(e),o=this.model,r=this.type,i=o.getPackage(n.prefix),a=i&&w_(n,i)||e;if(!r.hasType(a))throw ma("unexpected element <"+t.originalName+">");return no.prototype.createElement.call(this,t)};rc.prototype=Object.create(Au.prototype),rc.prototype.createElement=function(t){var e=t.name,n=Un(e).prefix,o=t.ns[n+"$uri"],r=t.attributes;return this.model.createAny(e,o,r)},rc.prototype.handleChild=function(t){var e=new rc(this.model,"Element",this.context).handleNode(t),n=this.element,o=e.element,r;return o!==void 0&&(r=n.$children=n.$children||[],r.push(o),o.$parent=n),e},rc.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};Pg.prototype.fromXML=function(t,e,n){var o=e.rootHandler;e instanceof no?(o=e,e={}):typeof e=="string"?(o=this.handler(e),e={}):typeof o=="string"&&(o=this.handler(o));var r=this.model,i=this.lax,a=new sP(j({},e,{rootHandler:o})),s=new b_({proxy:!0}),c=cP();o.context=a,c.push(o);function l(T,C,B){var D=C(),M=D.line,N=D.column,z=D.data;z.charAt(0)==="<"&&z.indexOf(" ")!==-1&&(z=z.slice(0,z.indexOf(" "))+">");var V="unparsable content "+(z?z+" ":"")+"detected\n line: "+M+"\n column: "+N+"\n nested error: "+T.message;if(B)return a.addWarning({message:V,error:T}),!0;throw ma(V)}function p(T,C){return l(T,C,!0)}function d(){for(var T=a.elementsById,C=a.references,B=0,D;D=C[B];B++){var M=D.element,N=T[D.id],z=vi(M).propertiesByName[D.property];if(N||a.addWarning({message:"unresolved reference <"+D.id+">",element:D.element,property:D.property,value:D.id}),z.isMany){var V=M.get(z.name),gt=V.indexOf(D);gt===-1&&(gt=V.length),N?V[gt]=N:V.splice(gt,1)}else M.set(z.name,N)}}function u(){c.pop().handleEnd()}var m=/^<\?xml /i,h=/ encoding="([^"]+)"/i,f=/^utf-8$/i;function g(T){if(m.test(T)){var C=h.exec(T),B=C&&C[1];B&&!f.test(B)&&a.addWarning({message:"unsupported document encoding <"+B+">, falling back to UTF-8"})}}function v(T,C){var B=c.peek();try{c.push(B.handleNode(T))}catch(D){l(D,C,i)&&c.push(new Ag)}}function k(T,C){try{c.peek().handleText(T)}catch(B){p(B,C)}}function _(T,C){T.trim()&&k(T,C)}var w=r.getPackages().reduce(function(T,C){return T[C.uri]=C.prefix,T},Object.entries(Bg).reduce(function(T,[C,B]){return T[B]=C,T},r.config&&r.config.nsMap||{}));return s.ns(w).on("openTag",function(T,C,B,D){var M=T.attrs||{},N=Object.keys(M).reduce(function(z,V){return z[V]=C(M[V]),z},{});v({name:T.name,originalName:T.originalName,attributes:N,ns:T.ns},D)}).on("question",g).on("closeTag",u).on("cdata",k).on("text",function(T,C,B){_(C(T),B)}).on("error",l).on("warn",p),new Promise(function(T,C){var B;try{s.parse(t),d()}catch(V){B=V}var D=o.element;!B&&!D&&(B=ma("failed to parse document as <"+o.type.$descriptor.name+">"));var M=a.warnings,N=a.references,z=a.elementsById;return B?(B.warnings=M,C(B)):T({rootElement:D,elementsById:z,references:N,warnings:M})})},Pg.prototype.handler=function(t){return new Dg(this.model,t)};lP='<?xml version="1.0" encoding="UTF-8"?>\n',pP=/<|>|'|"|&|\n\r|\n/g,__=/<|>|&/g;ir.prototype.mapDefaultPrefixes=function(t){this.defaultPrefixMap=t},ir.prototype.defaultUriByPrefix=function(t){return this.defaultPrefixMap[t]},ir.prototype.resolve=function(t){for(var e=this;e;){var n=t(e);if(n)return n;e=e.parent}},ir.prototype.eachScope=function(t){for(var e=this;e;)t(e),e=e.parent},ir.prototype.byUri=function(t){return this.resolve(function(e){return e.uriMap[t]})},ir.prototype.add=function(t,e){this.uriMap[t.uri]=t,e?this.wellknown.push(t):this.custom.push(t),this.mapPrefix(t.prefix,t.uri)},ir.prototype.uriByPrefix=function(t){var e=t||"xmlns";return this.resolve(function(n){return n.prefixMap[e]})},ir.prototype.mapPrefix=function(t,e){this.prefixMap[t||"xmlns"]=e},ir.prototype.getNSKey=function(t){return t.prefix===void 0?t.uri:t.uri+"|"+t.prefix},ir.prototype.logUsed=function(t){var e=t.uri,n=this.getNSKey(t),o=this.byUri(e);this.eachScope(function(r){r.used[n]=o})},ir.prototype.getUsed=function(t){return[].concat(this.wellknown,this.custom).filter(e=>{var n=this.getNSKey(e);return this.used[n]})};yP={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},bP={"<":"lt",">":"gt","&":"amp"};jg.prototype.build=function(t){return this.element=t,this},jg.prototype.serializeTo=function(t){t.appendIndent().append("<"+this.tagName+">"+C_(this.element.id)+"</"+this.tagName+">").appendNewLine()};Va.prototype.serializeValue=Va.prototype.serializeTo=function(t){t.append(this.escape?C_(this.value):this.value)},Va.prototype.build=function(t,e){return this.value=e,t.type==="String"&&e.search(__)!==-1&&(this.escape=!0),this};E_($g,Va),$g.prototype.serializeTo=function(t){t.appendIndent().append("<"+this.tagName+">"),this.serializeValue(t),t.append("</"+this.tagName+">").appendNewLine()};$e.prototype.build=function(t){return SP(this,t),this},$e.prototype.enter=function(t){this.element=t;var e=t.$descriptor,n=this.propertyDescriptor,o=e.isGeneric;if(this.otherAttrs=o?this.parseGenericNsAttributes(t):this.parseNsAttributes(t),this.ns=n?this.nsPropertyTagName(n):this.nsTagName(e),this.tagName=this.addTagName(this.ns),o)return this.collectGenericContainments(t);var r=gP(t);return this.parseAttributes(vP(r)),this.collectContainments(xP(r))},$e.prototype.exit=function(){this.parseGenericAttributes(this.element,this.otherAttrs)},$e.prototype.nsTagName=function(t){return hP(this.logNamespaceUsed(t.ns),t)},$e.prototype.nsPropertyTagName=function(t){return fP(this.logNamespaceUsed(t.ns),t)},$e.prototype.isLocalNs=function(t){return t.uri===this.ns.uri},$e.prototype.nsAttributeName=function(t){var e=Dn(t)?Un(t):t.ns;if(t.inherited)return{localName:e.localName};var n=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:e.localName}:j({localName:e.localName},n)},$e.prototype.parseGenericNsAttributes=function(t){return Object.entries(t).filter(([e,n])=>!e.startsWith("$")&&this.parseNsAttribute(t,e,n)).map(([e,n])=>({name:e,value:n}))},$e.prototype.collectGenericContainments=function(t){var e=this,n=[],o=t.$body;o&&n.push({create:function(){return new Va().build({type:"String"},o)}});var r=t.$children;return r&&A(r,function(i){n.push({create:function(){return new $e(e)},element:i})}),n},$e.prototype.parseNsAttribute=function(t,e,n){var o=t.$model,r=Un(e),i;if(r.prefix==="xmlns"&&(i={prefix:r.localName,uri:n}),!r.prefix&&r.localName==="xmlns"&&(i={uri:n}),!i)return{name:e,value:n};if(o&&o.getPackage(n))this.logNamespace(i,!0,!0);else{var a=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(a)}},$e.prototype.parseNsAttributes=function(t){var e=this,n=t.$attrs,o=[];return A(n,function(r,i){var a=e.parseNsAttribute(t,i,r);a&&o.push(a)}),o},$e.prototype.parseGenericAttributes=function(t,e){var n=this;A(e,function(o){try{n.addAttribute(n.nsAttributeName(o.name),o.value)}catch(r){typeof console<"u"&&console.warn("missing namespace information for <".concat(o.name,"=").concat(o.value,"> on"),t,r)}})},$e.prototype.collectContainments=function(t){var e=this,n=this.element,o=[];return A(t,function(r){var i=n.get(r.name),a=r.isReference;if(r.isMany||(i=[i]),r.isBody)o.push({create:function(){return new Va().build(r,i[0])}});else if(y_(r.type))A(i,function(c){o.push({create:function(){return new $g(e.addTagName(e.nsPropertyTagName(r))).build(r,c)}})});else if(a)A(i,function(c){o.push({create:function(){return new jg(e.addTagName(e.nsPropertyTagName(r))).build(c)}})});else{var s=k_(r);A(i,function(c){o.push({create:function(){return s?s===x_?new $e(e,r):new Ru(e,r,s):new $e(e)},element:c})})}}),o},$e.prototype.getNamespaces=function(t){var e=this.namespaces;if(!e){var n=this.getParentNamespaces();t||!n?this.namespaces=e=new ir(n):e=n}return e},$e.prototype.getParentNamespaces=function(){if(this.parentNamespaces!==void 0)return this.parentNamespaces;for(var t=null,e=this.parent;e;){if(e.namespaces){t=e.namespaces;break}if(e.parentNamespaces!==void 0){t=e.parentNamespaces;break}e=e.parent}return this.parentNamespaces=t},$e.prototype.logNamespace=function(t,e,n){var o=this.getNamespaces(n),r=t.uri,i=t.prefix;return(!o.byUri(r)||n)&&o.add(t,e),o.mapPrefix(i,r),t},$e.prototype.logNamespaceUsed=function(t,e){var n=this.getNamespaces(e),o=t.prefix,r=t.uri,i,a,s;if(!o&&!r)return{localName:t.localName};if(s=n.defaultUriByPrefix(o),r=r||s||n.uriByPrefix(o),!r)throw Error("no namespace uri given for prefix <"+o+">");if(t=n.byUri(r),!t&&!o&&(t=this.logNamespace({uri:r},s===r,!0)),!t){for(i=o,a=1;n.uriByPrefix(i);)i=o+"_"+a++;t=this.logNamespace({prefix:i,uri:r},s===r)}return o&&n.mapPrefix(o,r),t},$e.prototype.parseAttributes=function(t){var e=this,n=this.element;A(t,function(o){var r=n.get(o.name);if(o.isReference)if(!o.isMany)r=r.id;else{var i=[];A(r,function(a){i.push(a.id)}),r=i.join(" ")}e.addAttribute(e.nsAttributeName(o),r)})},$e.prototype.addTagName=function(t){var e=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(e),o_(t)},$e.prototype.addAttribute=function(t,e){var n=this.attrs;Dn(e)&&(e=T_(e));var o=cp(n,function(i){return i.name.localName===t.localName&&i.name.uri===t.uri&&i.name.prefix===t.prefix}),r={name:t,value:e};o===-1?n.push(r):n.splice(o,1,r)},$e.prototype.serializeAttributes=function(t){var e=this.attrs,n=this.namespaces;n&&(e=mP(n).concat(e)),A(e,function(o){t.append(" ").append(o_(o.name)).append('="').append(o.value).append('"')})},$e.prototype.serializeTo=function(t){kP(this,t)};E_(Ru,$e),Ru.prototype.parseNsAttributes=function(t){var e=$e.prototype.parseNsAttributes.call(this,t).filter(a=>a.name!==this.serialization),n=t.$descriptor;if(n.name===this.propertyDescriptor.type)return e;var o=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=t.$model.getPackage(o.uri),i=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(this.serialization),(o.prefix?o.prefix+":":"")+i+n.ns.localName),e},Ru.prototype.isLocalNs=function(t){return t.uri===(this.typeNs||this.ns).uri};Bu.prototype=Object.create(ar.prototype),Bu.prototype.fromXML=function(t,e,n){Dn(e)||(n=e,e="bpmn:Definitions");var o=new Pg(j({model:this,lax:!0},n)),r=o.handler(e);return o.fromXML(t,r)},Bu.prototype.toXML=function(t,e){var n=new EP(e);return new Promise(function(o,r){try{return o({xml:n.toXML(t)})}catch(i){return r(i)}})};CP={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};R_=["c","C"],B_=["v","V"],RP=["d","D"],BP=["x","X"],A_=["y","Y"],zg=["z","Z"];AP=100,Tu=t=>[...new Set(t)].slice(0,AP);PP=["bpmn:FlowNode","bpmn:SequenceFlow","bpmn:MessageFlow","bpmn:Participant","bpmn:Lane","bpmn:Association","bpmn:TextAnnotation","bpmn:Group","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:DataInputAssociation","bpmn:DataOutputAssociation"],Og=t=>PP.some(e=>t.$instanceOf(e)),go=t=>Array.isArray(t)?t:[];$P=t=>t.some(e=>e.destructive===!0);LP=0;s_="bpmn-canvas--colored",IP=Object.freeze({"--bpmn-canvas-icon-start":"eventLine","--bpmn-canvas-icon-end":"eventLine","--bpmn-canvas-icon-intermediate":"eventLine","--bpmn-canvas-icon-task":"taskLine","--bpmn-canvas-icon-subprocess":"taskLine","--bpmn-canvas-icon-external":"externalLine","--bpmn-canvas-icon-gateway":"gatewayLine","--bpmn-canvas-icon-data":"dataLine","--bpmn-canvas-icon-document":"docLine","--bpmn-canvas-icon-application":"appLine","--bpmn-canvas-icon-lane":"laneLine","--bpmn-canvas-icon-pool":"poolLine","--bpmn-canvas-icon-flow":"flow"});FP={__init__:["bpmnCanvasPalette"],bpmnCanvasPalette:["type",class{static $inject=["config.bpmnCanvas","canvas","eventBus","injector"];constructor(t,e,n,o){let r=t?.paletteColumns??"auto",i=o.get("palette",!1);if(i&&r!=="auto"){let d=i._toggleState.bind(i);i._toggleState=(u={})=>d("twoColumn"in u?u:{...u,twoColumn:r===2})}let a=t?.legend??t?.colored,s=!!t?.colored,c=[],l=null,p=()=>{if(l=e.getContainer()?.closest(".bpmn-canvas")??l,!l||!a||c.length>0)return;let d=HP(a);for(let[u,m]of Object.entries(d))l.style.setProperty(u,m);c=Object.keys(d),s&&l.classList.add(s_)};n.on("diagram.init",()=>{p(),queueMicrotask(p)}),n.on("import.done",p),n.on("diagram.destroy",()=>{if(l){for(let d of c)l.style.removeProperty(d);l.classList.remove(s_),c=[],l=null}})}}]},WP={__init__:["bpmnCanvasReadOnly"],bpmnCanvasReadOnly:["type",class{static $inject=["commandStack","injector"];enabled=!1;directEditing;contextPad;dragging;constructor(t,e){let n=t.execute.bind(t),o=t.undo.bind(t),r=t.redo.bind(t),i=t.canExecute.bind(t);t.execute=(s,c)=>{this.enabled||n(s,c)},t.undo=()=>{this.enabled||o()},t.redo=()=>{this.enabled||r()},t.canExecute=(s,c)=>!this.enabled&&i(s,c),this.directEditing=e.get("directEditing",!1)??null,this.contextPad=e.get("contextPad",!1)??null,this.dragging=e.get("dragging",!1)??null;let a=this.directEditing;if(a?.activate){let s=a.activate.bind(a);a.activate=(...c)=>this.enabled?void 0:s(...c)}}setReadOnly(t){this.enabled=t,t&&(this.directEditing?.cancel?.(),this.contextPad?.close?.(),this.dragging?.cancel?.())}isReadOnly(){return this.enabled}}]};UP="__ASSET__",VP="/**\n * Semantic tokens, copied from `@bpmn-io/theme` to style the components\n * according to this theme.\n *\n * Names and values of the tokens should stay intact with the `@bpmn-io/theme`\n * source of truth, to ensure matching styles and allow overrides with an\n * alternative theme.\n */\n.bio-theme-parent {\n --bio-surface: hsl(0, 0%, 100%);\n --bio-surface-overlay: hsl(0, 0%, 100%);\n --bio-surface-subtle: hsl(225, 10%, 97%);\n --bio-surface-medium: hsl(225, 10%, 95%);\n --bio-surface-inverted: hsl(0, 0%, 22%);\n --bio-surface-inverted-subtle: hsl(225, 10%, 35%);\n --bio-text: hsl(225, 10%, 15%);\n --bio-text-subtle: hsl(225, 10%, 35%);\n --bio-text-subtlest: hsl(225, 10%, 55%);\n --bio-text-on-inverted: hsl(0, 0%, 100%);\n --bio-border: hsl(225, 10%, 75%);\n --bio-border-disabled: hsl(225, 10%, 90%);\n --bio-primary: hsl(205, 100%, 40%);\n --bio-primary-surface: hsl(205, 100%, 95%);\n --bio-danger: hsl(360, 100%, 45%);\n --bio-danger-surface-subtle: hsl(360, 100%, 97%);\n --bio-selected-surface: var(--bio-surface-medium);\n --bio-selected-text: var(--bio-text);\n --bio-focus: hsl(205, 100%, 40%);\n --bio-focus-surface: hsl(205, 100%, 95%);\n --bio-canvas-accent: hsl(205, 100%, 40%);\n --bio-canvas-accent-subtle: hsl(205, 100%, 75%);\n --bio-shadow: hsla(0, 0%, 0%, 30%);\n --bio-shadow-subtle: hsla(0, 0%, 0%, 10%);\n --bio-radius-sm: 2px;\n --bio-radius-md: 3px;\n --bio-radius-lg: 4px;\n}\n\n/**\n * color definitions\n *\n * Colours resolve through the semantic tokens in `@bpmn-io/theme`; a handful of\n * values with no matching token stay literal.\n */\n.djs-parent {\n\n --button-border-radius: var(--bio-radius-md);\n --input-border-radius: var(--bio-radius-sm);\n --surface-border-radius: var(--bio-radius-lg);\n\n --canvas-fill-color: var(--bio-surface);\n\n --accent-color: var(--bio-canvas-accent);\n\n --bendpoint-fill-color: var(--bio-canvas-accent);\n --bendpoint-stroke-color: var(--canvas-fill-color);\n\n --context-pad-entry-background-color: var(--bio-surface);\n --context-pad-entry-hover-background-color: var(--bio-surface-medium);\n\n --element-dragger-color: var(--accent-color);\n --element-selected-outline-stroke-color: var(--accent-color);\n --element-selected-outline-secondary-stroke-color: var(--bio-canvas-accent-subtle);\n\n --lasso-fill-color: color-mix(in srgb, var(--bio-canvas-accent) 15%, transparent);\n --lasso-stroke-color: var(--element-selected-outline-stroke-color);\n\n --palette-entry-color: var(--bio-text);\n --palette-entry-hover-color: var(--bio-primary);\n --palette-entry-selected-color: var(--bio-primary);\n --palette-separator-color: var(--bio-border);\n --palette-toggle-hover-background-color: var(--bio-surface-medium);\n --palette-background-color: var(--bio-surface-subtle);\n --palette-border-color: var(--bio-border);\n\n --popup-font-family: \"IBM Plex Sans\", sans-serif;\n --popup-font-size: 14px;\n --popup-secondary-font-size: .9em;\n --popup-header-entry-selected-color: var(--bio-primary);\n --popup-header-font-weight: bolder;\n --popup-header-group-divider-color: var(--bio-border);\n --popup-background-color: var(--bio-surface-overlay);\n --popup-border-color: transparent;\n --popup-shadow-color: var(--bio-shadow);\n /* translucent, so the thumb darkens whatever it scrolls over */\n --popup-scrollbar-thumb-color: rgba(0, 0, 0, 0.2);\n --popup-button-background-color: var(--bio-surface-overlay);\n --popup-button-hover-background-color: var(--bio-surface-medium);\n --popup-disabled-color: var(--bio-text-subtle);\n --popup-description-color: var(--bio-text-subtle);\n --popup-no-results-color: var(--bio-text-subtlest);\n --popup-entry-title-color: var(--bio-text-subtlest);\n\n --popup-entry-selected-background-color: var(--bio-selected-surface);\n --popup-entry-selected-color: var(--bio-selected-text);\n --popup-search-border-color: var(--bio-border);\n --popup-search-focus-border-color: var(--bio-focus);\n --popup-search-focus-background-color: var(--bio-focus-surface);\n --popup-tab-color: var(--bio-text-subtlest);\n --popup-tab-hover-color: var(--bio-text);\n --popup-tab-active-color: var(--bio-text);\n --popup-tab-active-border-color: var(--bio-primary);\n --popup-tab-strip-border-color: var(--bio-border-disabled);\n --popup-tab-focus-border-color: var(--bio-focus);\n\n --resizer-fill-color: var(--bio-canvas-accent);\n --resizer-stroke-color: var(--canvas-fill-color);\n\n --search-font-family: \"IBM Plex Sans\", sans-serif;\n --search-font-size: 14px;\n --search-container-background-color: var(--bio-surface-overlay);\n --search-shadow-color: var(--bio-shadow);\n --search-input-border-color: var(--bio-border);\n --search-input-focus-border-color: var(--bio-focus);\n --search-input-focus-background-color: var(--bio-primary-surface);\n --search-result-hover-background-color: var(--bio-surface-medium);\n --search-result-secondary-color: var(--bio-text-subtlest);\n --search-preselected-background-color: color-mix(in srgb, var(--bio-canvas-accent) 15%, transparent);\n\n --shape-attach-allowed-stroke-color: var(--accent-color);\n --shape-connect-allowed-fill-color: var(--bio-surface-subtle);\n --shape-drop-allowed-fill-color: var(--bio-surface-subtle);\n --shape-drop-not-allowed-fill-color: var(--bio-danger-surface-subtle);\n --shape-resize-preview-stroke-color: var(--accent-color);\n\n --snap-line-stroke-color: color-mix(in srgb, var(--bio-canvas-accent) 30%, transparent);\n\n --space-tool-crosshair-stroke-color: var(--bio-text);\n\n --tooltip-error-background-color: var(--bio-danger-surface-subtle);\n --tooltip-error-border-color: var(--bio-danger);\n --tooltip-error-color: var(--bio-danger);\n\n --hover-tooltip-font-family: \"IBM Plex Sans\", sans-serif;\n --hover-tooltip-font-size: 12px;\n --hover-tooltip-secondary-font-size: 11px;\n --hover-tooltip-background-color: var(--bio-surface-inverted);\n --hover-tooltip-color: var(--bio-text-on-inverted);\n --hover-tooltip-shadow-color: var(--bio-shadow-subtle);\n\n --palette-tooltip-shortcut-background-color: var(--bio-surface-inverted-subtle);\n}\n\n/**\n * SVG styles\n */\n\n.djs-container svg.drop-not-ok {\n background: var(--shape-drop-not-allowed-fill-color) !important;\n}\n\n.djs-container svg.new-parent {\n background: var(--shape-drop-allowed-fill-color) !important;\n}\n\n.djs-container svg:focus {\n outline-offset: -1px;\n}\n\n/**\n * outline styles\n */\n\n.djs-outline,\n.djs-selection-outline {\n fill: none;\n shape-rendering: geometricPrecision;\n stroke-width: 2px;\n}\n\n.djs-outline {\n visibility: hidden;\n}\n\n.djs-selection-outline {\n stroke: var(--element-selected-outline-stroke-color);\n}\n\n.djs-element.selected .djs-outline {\n visibility: visible;\n\n stroke: var(--element-selected-outline-stroke-color);\n}\n\n.djs-connection.selected .djs-outline {\n display: none;\n}\n\n.djs-multi-select .djs-element.selected .djs-outline,\n.djs-dragging-active-lasso .djs-element.selected .djs-outline {\n stroke: var(--element-selected-outline-secondary-stroke-color);\n display: block;\n}\n\n.djs-outline-hidden .djs-outline {\n display: none !important;\n}\n\n.djs-shape.connect-ok .djs-visual > :nth-child(1) {\n fill: var(--shape-connect-allowed-fill-color) !important;\n}\n\n.djs-shape.connect-not-ok .djs-visual > :nth-child(1),\n.djs-shape.drop-not-ok .djs-visual > :nth-child(1) {\n fill: var(--shape-drop-not-allowed-fill-color) !important;\n}\n\n.djs-shape.new-parent .djs-visual > :nth-child(1) {\n fill: var(--shape-drop-allowed-fill-color) !important;\n}\n\n\n/* Override move cursor during drop and connect */\n.drop-not-ok,\n.connect-not-ok,\n.drop-not-ok *,\n.connect-not-ok * {\n cursor: not-allowed !important;\n}\n\n.drop-ok,\n.connect-ok,\n.drop-ok *,\n.connect-ok * {\n cursor: default !important;\n}\n\n.djs-element.attach-ok .djs-visual > :nth-child(1) {\n stroke-width: 5px !important;\n stroke: var(--shape-attach-allowed-stroke-color) !important;\n}\n\n.djs-frame.connect-not-ok .djs-visual > :nth-child(1),\n.djs-frame.drop-not-ok .djs-visual > :nth-child(1) {\n stroke-width: 3px !important;\n stroke: var(--shape-drop-not-allowed-fill-color) !important;\n fill: none !important;\n}\n\n/**\n* Selection box style\n*\n*/\n.djs-lasso-overlay {\n fill: var(--lasso-fill-color);\n stroke: var(--lasso-stroke-color);\n stroke-width: 2px;\n shape-rendering: geometricPrecision;\n pointer-events: none;\n}\n\n/**\n * Resize styles\n */\n.djs-resize-overlay {\n fill: none;\n\n stroke-dasharray: 5 1 3 1;\n stroke: var(--shape-resize-preview-stroke-color);\n\n pointer-events: none;\n}\n\n.djs-resizer-hit {\n fill: none;\n pointer-events: all;\n}\n\n.djs-resizer-visual {\n fill: var(--resizer-fill-color);\n stroke-width: 1px;\n stroke: var(--resizer-stroke-color);\n shape-rendering: geometricPrecision;\n}\n\n.djs-resizer:hover .djs-resizer-visual {\n stroke: var(--resizer-stroke-color);\n stroke-opacity: 1;\n}\n\n.djs-cursor-resize-ns,\n.djs-resizer-n,\n.djs-resizer-s {\n cursor: ns-resize;\n}\n\n.djs-cursor-resize-ew,\n.djs-resizer-e,\n.djs-resizer-w {\n cursor: ew-resize;\n}\n\n.djs-cursor-resize-nwse,\n.djs-resizer-nw,\n.djs-resizer-se {\n cursor: nwse-resize;\n}\n\n.djs-cursor-resize-nesw,\n.djs-resizer-ne,\n.djs-resizer-sw {\n cursor: nesw-resize;\n}\n\n.djs-shape.djs-resizing > .djs-outline {\n visibility: hidden !important;\n}\n\n.djs-shape.djs-resizing > .djs-resizer {\n visibility: hidden;\n}\n\n.djs-dragger > .djs-resizer {\n visibility: hidden;\n}\n\n/**\n * drag styles\n */\n.djs-dragger * {\n fill: none !important;\n stroke: var(--element-dragger-color) !important;\n}\n\n.djs-dragger tspan,\n.djs-dragger text {\n fill: var(--element-dragger-color) !important;\n stroke: none !important;\n}\n\n.djs-dragger marker circle,\n.djs-dragger marker path,\n.djs-dragger marker polygon,\n.djs-dragger marker polyline,\n.djs-dragger marker rect {\n fill: var(--element-dragger-color) !important;\n stroke: none !important;\n}\n\n.djs-dragger marker text,\n.djs-dragger marker tspan {\n fill: none !important;\n stroke: var(--element-dragger-color) !important;\n}\n\n.djs-dragging,\n.djs-dragging > * {\n opacity: 0.3 !important;\n pointer-events: none !important;\n}\n\n/**\n * no pointer events for visual\n */\n.djs-visual,\n.djs-outline {\n pointer-events: none;\n}\n\n.djs-element.attach-ok .djs-hit {\n stroke-width: 60px !important;\n}\n\n/**\n * all pointer events for hit shape\n */\n.djs-element > .djs-hit-all,\n.djs-element > .djs-hit-no-move {\n pointer-events: all;\n}\n\n.djs-element > .djs-hit-stroke,\n.djs-element > .djs-hit-click-stroke {\n pointer-events: stroke;\n}\n\n/**\n * shape / connection basic styles\n */\n.djs-connection .djs-visual {\n stroke-width: 2px;\n fill: none;\n}\n\n.djs-cursor-grab {\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n\n.djs-cursor-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n\n.djs-cursor-crosshair {\n cursor: crosshair;\n}\n\n.djs-cursor-move {\n cursor: move;\n}\n\n.djs-cursor-resize-ns {\n cursor: ns-resize;\n}\n\n.djs-cursor-resize-ew {\n cursor: ew-resize;\n}\n\n\n/**\n * snapping\n */\n.djs-snap-line {\n stroke: var(--snap-line-stroke-color);\n stroke-linecap: round;\n stroke-width: 2px;\n pointer-events: none;\n}\n\n/**\n * snapping\n */\n.djs-crosshair {\n stroke: var(--space-tool-crosshair-stroke-color);\n stroke-linecap: round;\n stroke-width: 1px;\n pointer-events: none;\n shape-rendering: geometricPrecision;\n stroke-dasharray: 5, 5;\n}\n\n/**\n * palette\n */\n\n.djs-palette {\n position: absolute;\n left: 20px;\n top: 20px;\n\n box-sizing: border-box;\n width: 48px;\n}\n\n.djs-palette .separator {\n margin: 5px;\n padding-top: 5px;\n\n border: none;\n border-bottom: solid 1px var(--palette-separator-color);\n\n clear: both;\n}\n\n.djs-palette .entry:before {\n vertical-align: initial;\n}\n\n.djs-palette .djs-palette-toggle {\n cursor: pointer;\n}\n\n.djs-palette .entry,\n.djs-palette .djs-palette-toggle {\n color: var(--palette-entry-color);\n font-size: 30px;\n\n text-align: center;\n}\n\n.djs-palette .entry {\n float: left;\n}\n\n.djs-palette .entry img {\n max-width: 100%;\n}\n\n.djs-palette .djs-palette-entries:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.djs-palette .djs-palette-toggle:hover {\n background: var(--palette-toggle-hover-background-color);\n}\n\n.djs-palette .entry:hover {\n color: var(--palette-entry-hover-color);\n}\n\n.djs-palette .highlighted-entry {\n color: var(--palette-entry-selected-color) !important;\n}\n\n.djs-palette .entry,\n.djs-palette .djs-palette-toggle {\n width: 46px;\n height: 46px;\n line-height: 46px;\n cursor: default;\n}\n\n/**\n * Palette open / two-column layout is controlled via\n * classes on the palette. Events to hook into palette\n * changed life-cycle are available in addition.\n */\n.djs-palette.two-column.open {\n width: 94px;\n}\n\n.djs-palette:not(.open) .djs-palette-entries {\n display: none;\n}\n\n.djs-palette:not(.open) {\n overflow: hidden;\n}\n\n.djs-palette.open .djs-palette-toggle {\n display: none;\n}\n\n.djs-hover-tooltip {\n position: fixed;\n z-index: 1000;\n\n display: flex;\n align-items: center;\n gap: 6px;\n\n padding: 6px 10px;\n border-radius: var(--surface-border-radius);\n\n background-color: var(--hover-tooltip-background-color);\n color: var(--hover-tooltip-color);\n\n font-family: var(--hover-tooltip-font-family);\n font-size: var(--hover-tooltip-font-size);\n line-height: 1.2;\n white-space: nowrap;\n\n pointer-events: none;\n box-shadow: 0 1px 4px var(--hover-tooltip-shadow-color);\n}\n\n.djs-hover-tooltip--right {\n transform: translateY(-50%);\n}\n\n.djs-hover-tooltip--top {\n transform: translate(-50%, -100%);\n}\n\n.djs-palette-tooltip-shortcut {\n padding: 1px 5px;\n\n border-radius: var(--button-border-radius);\n\n background-color: var(--palette-tooltip-shortcut-background-color);\n\n font-family: monospace;\n font-size: var(--hover-tooltip-secondary-font-size);\n line-height: 1.2;\n}\n\n/**\n * context-pad\n */\n.djs-context-pad {\n position: absolute;\n display: none;\n pointer-events: none;\n line-height: 1;\n width: 72px;\n z-index: 100;\n}\n\n.djs-context-pad .entry {\n width: 22px;\n height: 22px;\n text-align: center;\n display: inline-block;\n font-size: 22px;\n margin: 0 2px 2px 0;\n\n border-radius: 3px;\n\n cursor: default;\n\n background-color: var(--context-pad-entry-background-color);\n box-shadow: 0 0 2px 1px var(--context-pad-entry-background-color);\n pointer-events: all;\n vertical-align: middle;\n}\n\n.djs-context-pad .entry:hover {\n background: var(--context-pad-entry-hover-background-color);\n}\n\n.djs-context-pad.open {\n display: block;\n}\n\n/**\n * popup styles\n */\n.djs-popup {\n line-height: 1;\n box-sizing: border-box;\n background: var(--popup-background-color);\n overflow: hidden;\n position: fixed;\n z-index: 200;\n box-shadow: 0px 2px 6px var(--popup-shadow-color);\n border: solid 1px var(--popup-border-color);\n min-width: 120px;\n max-width: 300px;\n outline: none;\n font-size: var(--popup-font-size);\n font-family: var(--popup-font-family);\n}\n\n.djs-popup-search input {\n width: 100%;\n box-sizing: border-box;\n font-size: var(--popup-font-size);\n padding: 3px 6px 3px 28px;\n border-radius: var(--input-border-radius);\n border: solid 1px var(--popup-search-border-color);\n line-height: 21px;\n}\n\n.djs-popup-search input:focus {\n background-color: var(--popup-search-focus-background-color);\n border: solid 1px var(--popup-search-focus-border-color);\n outline: none;\n}\n\n.djs-popup-header {\n display: flex;\n align-items: stretch;\n line-height: 20px;\n margin: 10px 12px 10px 12px;\n}\n\n.djs-popup-header .entry {\n border-radius: 2px;\n}\n\n.djs-popup button.entry {\n padding: 0;\n background: transparent;\n border: 0;\n}\n\n.djs-popup-header .entry.active {\n color: var(--popup-header-entry-selected-color);\n}\n\n.djs-popup-header .entry.disabled {\n color: inherit;\n}\n\n.djs-popup-header-group {\n display: flex;\n flex-direction: row;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.djs-popup-header-group .entry {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.djs-popup-header-group + .djs-popup-header-group:before {\n content: '';\n width: 1px;\n height: 20px;\n background: var(--popup-header-group-divider-color);\n margin: 0 5px;\n}\n\n.djs-popup-search {\n position: relative;\n width: auto;\n margin: 10px 12px;\n}\n\n.djs-popup-tabs-container {\n position: relative;\n border-bottom: solid 1px var(--popup-tab-strip-border-color);\n}\n\n/**\n * The scroll control doubles as the edge fade: tabs scrolled past it fade out\n * rather than being cut off behind an opaque block.\n */\n.djs-popup-tabs-scroll {\n appearance: none;\n position: absolute;\n top: 0;\n bottom: 1px;\n width: 28px;\n display: flex;\n align-items: center;\n padding: 0;\n border: none;\n border-radius: 0;\n color: var(--popup-tab-color);\n cursor: pointer;\n}\n\n.djs-popup-tabs-scroll:hover {\n color: var(--popup-tab-hover-color);\n}\n\n.djs-popup-tabs-scroll-start {\n left: 0;\n justify-content: flex-start;\n background: linear-gradient(to left, transparent, var(--popup-background-color) 60%);\n}\n\n.djs-popup-tabs-scroll-end {\n right: 0;\n justify-content: flex-end;\n background: linear-gradient(to right, transparent, var(--popup-background-color) 60%);\n}\n\n.djs-popup-tabs-scroll-start svg {\n transform: rotate(180deg);\n}\n\n.djs-popup-tabs {\n display: flex;\n flex-wrap: nowrap;\n gap: 2px;\n overflow-x: auto;\n overflow-y: hidden;\n padding: 0 12px;\n\n /* keep scrolled-to tabs clear of the scroll controls */\n scroll-padding: 0 28px;\n scrollbar-width: none;\n}\n\n.djs-popup-tabs::-webkit-scrollbar {\n display: none;\n}\n\n.djs-popup-tab {\n appearance: none;\n background: transparent;\n border: none;\n border-bottom: solid 2px transparent;\n border-radius: 0;\n flex: 0 0 auto;\n padding: 6px 10px;\n font: inherit;\n font-size: var(--popup-font-size);\n color: var(--popup-tab-color);\n cursor: pointer;\n white-space: nowrap;\n}\n\n.djs-popup-tab:hover {\n color: var(--popup-tab-hover-color);\n}\n\n.djs-popup-tab:focus-visible {\n outline: solid 1px var(--popup-tab-focus-border-color);\n outline-offset: -2px;\n}\n\n.djs-popup-tab[aria-selected=\"true\"] {\n color: var(--popup-tab-active-color);\n border-bottom-color: var(--popup-tab-active-border-color);\n font-weight: var(--popup-header-font-weight);\n}\n\n.djs-popup-title {\n font-size: var(--popup-font-size);\n font-weight: var(--popup-header-font-weight);\n flex: 1;\n margin: 0;\n}\n\n.djs-popup-breadcrumbs {\n display: flex;\n line-height: 20px;\n margin: 10px 12px;\n}\n\n.djs-popup-breadcrumbs-item {\n display: inline-flex;\n min-width: 0;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n outline: none;\n appearance: none;\n color: var(--popup-description-color);\n font: inherit;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.djs-popup-breadcrumbs-item--separator::before {\n display: inline-block;\n content: '/';\n color: var(--popup-description-color);\n margin: 0 4px;\n}\n\n.djs-popup-breadcrumbs-item:hover {\n color: inherit;\n text-decoration: underline;\n}\n\n.djs-popup-breadcrumbs-item:focus-visible {\n outline: 1px solid var(--popup-search-focus-border-color);\n outline-offset: 2px;\n}\n\n.djs-popup-breadcrumbs-item--back {\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n padding: 2px 3px;\n margin-right: 6px;\n border: 1px solid var(--popup-search-border-color);\n border-radius: 4px;\n}\n\n.djs-popup-breadcrumbs-item--back:hover {\n background: var(--popup-button-hover-background-color);\n}\n\n.djs-popup-breadcrumbs-item--current {\n font-weight: var(--popup-header-font-weight);\n color: inherit;\n cursor: default;\n}\n\n.djs-popup-breadcrumbs-item--current:hover {\n text-decoration: none;\n}\n\n.djs-popup-entry-actions {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n gap: 6px;\n margin-left: 6px;\n}\n\n.djs-popup-entry-chevron {\n display: flex;\n align-items: center;\n color: var(--popup-description-color);\n}\n\n.djs-popup-search-icon {\n position: absolute;\n left: 8px;\n top: 7px;\n}\n\n.djs-popup-search-count {\n margin: 0 12px;\n font-size: var(--popup-secondary-font-size);\n color: var(--popup-description-color);\n}\n\n.djs-popup-results {\n margin: 7px 3px 7px 12px;\n list-style: none;\n max-height: 280px;\n overflow: auto;\n padding-right: 9px;\n}\n\n/**\n * The results list is focusable (as a listbox holding\n * `aria-activedescendant`) when there is no search field.\n * The active entry is indicated via `.entry.selected`, so we hide\n * the outline on the list container itself.\n */\n.djs-popup-results:focus {\n outline: none;\n}\n\n.djs-popup-group {\n margin: 0;\n padding: 0;\n width: 100%;\n}\n\n.djs-popup-body .entry,\n.djs-popup-body .entry-header {\n padding: 5px 7px;\n cursor: default;\n border-radius: 4px;\n}\n\n.djs-popup-body .entry-header {\n font-weight: var(--popup-header-font-weight);\n color: var(--popup-entry-title-color);\n padding-left: 0;\n}\n\n.djs-popup [class*=\"icon\"] .djs-popup-label,\n.djs-popup-label:not(:first-child) {\n margin-left: .5em;\n}\n\n.djs-popup [class*=\"icon\"]:before,\n.djs-popup-entry-icon {\n width: 1em;\n height: 1em;\n display: inline-block;\n font-size: 1.4em;\n vertical-align: middle;\n}\n\n.djs-popup-body .entry-header:not(:first-child) {\n margin-top: 8px;\n margin-bottom: 2px;\n}\n\n.djs-popup-body .entry {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n height: min-content;\n}\n\n.djs-popup .entry.selected {\n color: var(--popup-entry-selected-color);\n background-color: var(--popup-entry-selected-background-color);\n}\n\n.djs-popup .entry.disabled {\n color: var(--popup-disabled-color);\n cursor: not-allowed;\n}\n\n.djs-popup-body .entry:not(:first-child) {\n margin-top: 2px;\n}\n\n.djs-popup-entry-content {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.djs-popup-entry-description {\n font-size: var(--popup-secondary-font-size);\n margin-top: .25em;\n\n color: var(--popup-description-color);\n}\n\n.djs-popup-label,\n.djs-popup-entry-description {\n line-height: 1.4em;\n}\n\n.djs-popup .entry,\n.djs-popup .entry-header {\n margin: 1px;\n}\n\n.djs-popup-body {\n flex-direction: column;\n width: auto;\n}\n\n.djs-popup *::-webkit-scrollbar {\n width: 6px;\n}\n\n.djs-popup *::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: var(--popup-scrollbar-thumb-color);\n}\n\n.djs-popup *::-webkit-scrollbar-track {\n box-shadow: none;\n background: transparent;\n margin: 0;\n padding: 5px;\n}\n\n.djs-popup-no-results {\n padding: 0 12px 12px 12px;\n color: var(--popup-no-results-color);\n}\n\n.djs-popup-footer {\n display: flex;\n padding: 5px 12px 7px 12px;\n border-top: solid 1px var(--popup-border-color);\n}\n\n/**\n * The footer holds the keyboard/assistive-technology reachable documentation\n * link. Pointer interaction switches the popup to the per-entry\n * `.djs-popup-entry-docs` affordance instead.\n */\n.djs-popup--pointer .djs-popup-footer {\n display: none;\n}\n\n.djs-popup-entry-docs {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n visibility: hidden;\n padding: 2px 3px;\n color: var(--popup-description-color);\n background: var(--popup-button-background-color);\n border: 1px solid var(--popup-search-border-color);\n border-radius: 4px;\n cursor: pointer;\n transition: background-color .12s ease, border-color .12s ease, color .12s ease;\n}\n\n.djs-popup--pointer .djs-popup-body .entry:hover .djs-popup-entry-docs {\n visibility: visible;\n}\n\n.djs-popup-body .entry .djs-popup-entry-docs:hover {\n background: var(--popup-button-hover-background-color);\n}\n\n.djs-popup-entry-docs svg {\n vertical-align: middle;\n}\n\n.djs-popup-footer-docs {\n display: inline-flex;\n align-items: center;\n gap: 3px;\n font-size: var(--popup-secondary-font-size);\n color: var(--popup-description-color);\n text-decoration: none;\n}\n\n.djs-popup-footer-docs:hover {\n text-decoration: underline;\n}\n\n.djs-popup-footer-docs svg {\n vertical-align: middle;\n margin: 2px;\n}\n\n/**\n * palette styles\n */\n.djs-palette {\n background: var(--palette-background-color);\n border: solid 1px var(--palette-border-color);\n border-radius: var(--surface-border-radius);\n}\n\n/**\n * bendpoints\n */\n.djs-segment-dragger,\n.djs-bendpoint {\n display: none;\n}\n\n.djs-segment-dragger .djs-visual {\n display: none;\n\n fill: var(--bendpoint-fill-color);\n stroke: var(--bendpoint-stroke-color);\n stroke-width: 1px;\n stroke-opacity: 1;\n}\n\n.djs-segment-dragger:hover .djs-visual {\n display: block;\n}\n\n.djs-bendpoint .djs-visual {\n fill: var(--bendpoint-fill-color);\n stroke: var(--bendpoint-stroke-color);\n stroke-width: 1px;\n}\n\n.djs-segment-dragger:hover,\n.djs-bendpoints.hover .djs-segment-dragger,\n.djs-bendpoints.selected .djs-segment-dragger,\n.djs-bendpoint:hover,\n.djs-bendpoints.hover .djs-bendpoint,\n.djs-bendpoints.selected .djs-bendpoint {\n display: block;\n}\n\n.djs-drag-active .djs-bendpoints * {\n display: none;\n}\n\n.djs-bendpoints:not(.hover) .floating {\n display: none;\n}\n\n.djs-bendpoint.floating:not(.positioned) {\n display: none;\n}\n\n.djs-segment-dragger:hover .djs-visual,\n.djs-segment-dragger.djs-dragging .djs-visual,\n.djs-bendpoint:hover .djs-visual,\n.djs-bendpoint.floating .djs-visual {\n fill: var(--bendpoint-fill-color);\n stroke: var(--bendpoint-stroke-color);\n stroke-opacity: 1;\n}\n\n.djs-bendpoint.floating .djs-hit {\n pointer-events: none;\n}\n\n.djs-segment-dragger .djs-hit,\n.djs-bendpoint .djs-hit {\n fill: none;\n pointer-events: all;\n}\n\n.djs-segment-dragger.horizontal .djs-hit {\n cursor: ns-resize;\n}\n\n.djs-segment-dragger.vertical .djs-hit {\n cursor: ew-resize;\n}\n\n.djs-segment-dragger.djs-dragging .djs-hit {\n pointer-events: none;\n}\n\n.djs-updating,\n.djs-updating > * {\n pointer-events: none !important;\n}\n\n.djs-updating .djs-context-pad,\n.djs-updating .djs-outline,\n.djs-updating .djs-bendpoint,\n.djs-multi-select .djs-bendpoint,\n.djs-multi-select .djs-segment-dragger,\n.connect-ok .djs-bendpoint,\n.connect-not-ok .djs-bendpoint,\n.drop-ok .djs-bendpoint,\n.drop-not-ok .djs-bendpoint {\n display: none !important;\n}\n\n.djs-segment-dragger.djs-dragging,\n.djs-bendpoint.djs-dragging {\n display: block;\n opacity: 1.0;\n}\n\n\n/**\n * tooltips\n */\n.djs-tooltip-error {\n width: 160px;\n padding: 6px;\n\n background: var(--tooltip-error-background-color);\n border: solid 1px var(--tooltip-error-border-color);\n border-radius: var(--surface-border-radius);\n color: var(--tooltip-error-color);\n font-size: 12px;\n line-height: 16px;\n\n opacity: 0.75;\n}\n\n.djs-tooltip-error:hover {\n opacity: 1;\n}\n\n\n/**\n * search pad\n */\n.djs-search-open .djs-context-pad {\n display: none;\n}\n\n.djs-search-open .djs-connection.selected .djs-outline {\n display: block;\n}\n\n.djs-search-container {\n position: absolute;\n top: 20px;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n\n width: 25%;\n min-width: 300px;\n max-width: 400px;\n z-index: 10;\n\n font-family: var(--search-font-family);\n font-size: var(--search-font-size);\n border-radius: var(--surface-border-radius);\n box-shadow: 0px 2px 6px var(--search-shadow-color);\n}\n\n.djs-search-container:not(.open) {\n display: none;\n}\n\n.djs-search-input {\n position: relative;\n}\n\n.djs-search-input svg {\n position: absolute;\n left: 8px;\n top: 7px;\n}\n\n.djs-search-input input {\n font-size: var(--search-font-size);\n width: 100%;\n padding: 3px 6px 3px 28px;\n border: 1px solid var(--search-input-border-color);\n border-radius: var(--input-border-radius);\n box-sizing: border-box;\n line-height: 21px;\n}\n\n.djs-search-input input:focus {\n background-color: var(--search-input-focus-background-color);\n border: solid 1px var(--search-input-focus-border-color);\n outline: none;\n}\n\n.djs-search-results {\n position: relative;\n overflow-y: auto;\n max-height: 200px;\n background: var(--search-container-background-color);\n}\n\n.djs-search-result {\n padding: 6px 8px;\n}\n\n.djs-search-result-primary {\n margin: 0 0 3px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n\n.djs-search-result-secondary {\n font-family: monospace;\n margin: 0;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n color: var(--search-result-secondary-color);\n}\n\n.djs-search-result:hover {\n background: var(--search-result-hover-background-color);\n}\n\n.djs-search-result-selected {\n background: var(--search-result-hover-background-color);\n}\n\n.djs-search-result-selected:hover {\n background: var(--search-result-hover-background-color);\n}\n\n.djs-search-open .djs-element .djs-outline {\n fill: var(--search-preselected-background-color) !important;\n}\n\n/**\n * hidden styles\n */\n.djs-element-hidden,\n.djs-element-hidden .djs-hit,\n.djs-element-hidden .djs-outline,\n.djs-label-hidden .djs-label {\n display: none !important;\n}\n\n.djs-element .djs-hit-stroke,\n.djs-element .djs-hit-click-stroke,\n.djs-element .djs-hit-all {\n cursor: move;\n}\n/**\n * Semantic tokens, copied from `@bpmn-io/theme` to style the components\n * according to this theme.\n *\n * Names and values of the tokens should stay intact with the `@bpmn-io/theme`\n * source of truth, to ensure matching styles and allow overrides with an\n * alternative theme.\n */\n.bio-theme-parent {\n --bio-surface-subtle: hsl(225, 10%, 97%);\n --bio-text-on-primary: hsl(0, 0%, 100%);\n --bio-border: hsl(225, 10%, 75%);\n --bio-primary: hsl(205, 100%, 40%);\n --bio-focus: hsl(205, 100%, 40%);\n --bio-radius-md: 3px;\n --bio-radius-lg: 4px;\n}\n\n.bjs-container {\n --bjs-font-family: Arial, sans-serif;\n\n --accent-color: var(--bio-primary);\n\n --breadcrumbs-font-family: var(--bjs-font-family);\n --breadcrumbs-item-color: var(--accent-color);\n --breadcrumbs-background-color: var(--bio-surface-subtle);\n --breadcrumbs-border-color: var(--bio-border);\n --breadcrumbs-focus-outline-color: var(--bio-focus);\n --drilldown-fill-color: var(--bio-text-on-primary);\n --drilldown-background-color: var(--accent-color);\n --drilldown-focus-outline-color: var(--bio-focus);\n\n --button-border-radius: var(--bio-radius-md);\n --surface-border-radius: var(--bio-radius-lg);\n}\n\n.bjs-breadcrumbs {\n position: absolute;\n display: none;\n flex-wrap: wrap;\n align-items: center;\n top: 20px;\n left: 20px;\n padding: 5px 10px;\n margin: 0px;\n font-family: var(--breadcrumbs-font-family);\n font-size: 16px;\n line-height: normal;\n background-color: var(--breadcrumbs-background-color);\n border: solid 1px var(--breadcrumbs-border-color);\n border-radius: var(--surface-border-radius);\n row-gap: 5px;\n}\n\n.bjs-breadcrumbs-shown .bjs-breadcrumbs {\n display: flex;\n}\n\n.djs-palette-shown .bjs-breadcrumbs {\n left: 90px;\n}\n\n.djs-palette-shown.djs-palette-two-column .bjs-breadcrumbs {\n left: 140px;\n}\n\n.bjs-breadcrumbs li {\n display: inline-flex;\n align-items: center;\n}\n\n.bjs-breadcrumbs a.bjs-crumb {\n cursor: pointer;\n color: var(--breadcrumbs-item-color);\n text-decoration: none;\n}\n\n.bjs-breadcrumbs a.bjs-crumb:focus-visible {\n outline: solid 1px var(--breadcrumbs-focus-outline-color);\n outline-offset: 1px;\n}\n\n.bjs-breadcrumbs li:not(:first-child)::before {\n content: url('__ASSET__inline-01.svg');\n padding: 0 8px;\n height: 1em;\n}\n\n.bjs-breadcrumbs .bjs-crumb {\n display: inline-block;\n max-width: 200px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bjs-drilldown {\n width: 20px;\n height: 20px;\n\n padding: 0px;\n margin-left: -20px;\n\n cursor: pointer;\n border: none;\n border-radius: var(--button-border-radius);\n\n fill: var(--drilldown-fill-color);\n background-color: var(--drilldown-background-color);\n}\n\n.bjs-drilldown:focus-visible {\n outline: solid 1px var(--drilldown-focus-outline-color);\n outline-offset: 1px;\n}\n\n.bjs-drilldown-empty {\n display: none;\n}\n\n.selected .bjs-drilldown-empty {\n display: inherit;\n}\n\n[data-popup=\"align-elements\"] .djs-popup-results {\n display: flex;\n}\n\n[data-popup=\"align-elements\"] .djs-popup-body [data-group] + [data-group] {\n border-left: 1px solid var(--popup-border-color);\n}\n\n[data-popup=\"align-elements\"] [data-group=\"align\"] {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n}\n\n[data-popup=\"align-elements\"] .djs-popup-body .entry {\n padding: 6px 8px;\n}\n\n[data-popup=\"align-elements\"] .djs-popup-body .entry:not(:first-child) {\n margin-top: 0;\n}\n\n[data-popup=\"align-elements\"] .djs-popup-entry-icon {\n display: block;\n margin: 0;\n height: 20px;\n width: 20px;\n}\n\n[class^=\"bpmn-icon-\"]:before, [class*=\" bpmn-icon-\"]:before {\n font-family: \"bpmn\";\n font-style: normal;\n font-weight: normal;\n speak: never;\n\n display: inline-block;\n text-decoration: inherit;\n width: 1em;\n \n text-align: center;\n \n\n \n font-variant: normal;\n text-transform: none;\n\n \n line-height: 1em;\n\n \n \n \n\n \n \n\n \n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n \n \n}\n\n.bpmn-icon-trash:before { content: '\\e801'; } \n.bpmn-icon-gateway-parallel:before { content: '\\e804'; } \n.bpmn-icon-intermediate-event-catch-cancel:before { content: '\\e805'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\\e806'; } \n.bpmn-icon-start-event-compensation:before { content: '\\e807'; } \n.bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\\e808'; } \n.bpmn-icon-loop-marker:before { content: '\\e809'; } \n.bpmn-icon-parallel-mi-marker:before { content: '\\e80a'; } \n.bpmn-icon-start-event-non-interrupting-signal:before { content: '\\e80b'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\\e80c'; } \n.bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\\e80d'; } \n.bpmn-icon-intermediate-event-catch-compensation:before { content: '\\e80e'; } \n.bpmn-icon-gateway-xor:before { content: '\\e80f'; } \n.bpmn-icon-end-event-cancel:before { content: '\\e811'; } \n.bpmn-icon-intermediate-event-catch-condition:before { content: '\\e812'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\\e813'; } \n.bpmn-icon-start-event-condition:before { content: '\\e814'; } \n.bpmn-icon-start-event-non-interrupting-timer:before { content: '\\e815'; } \n.bpmn-icon-sequential-mi-marker:before { content: '\\e816'; } \n.bpmn-icon-user-task:before { content: '\\e817'; } \n.bpmn-icon-business-rule:before { content: '\\e818'; } \n.bpmn-icon-sub-process-marker:before { content: '\\e819'; } \n.bpmn-icon-start-event-parallel-multiple:before { content: '\\e81a'; } \n.bpmn-icon-start-event-error:before { content: '\\e81b'; } \n.bpmn-icon-intermediate-event-catch-signal:before { content: '\\e81c'; } \n.bpmn-icon-intermediate-event-catch-error:before { content: '\\e81d'; } \n.bpmn-icon-end-event-compensation:before { content: '\\e81e'; } \n.bpmn-icon-subprocess-collapsed:before { content: '\\e81f'; } \n.bpmn-icon-subprocess-expanded:before { content: '\\e820'; } \n.bpmn-icon-task:before { content: '\\e821'; } \n.bpmn-icon-end-event-error:before { content: '\\e822'; } \n.bpmn-icon-intermediate-event-catch-escalation:before { content: '\\e823'; } \n.bpmn-icon-intermediate-event-catch-timer:before { content: '\\e824'; } \n.bpmn-icon-start-event-escalation:before { content: '\\e825'; } \n.bpmn-icon-start-event-signal:before { content: '\\e826'; } \n.bpmn-icon-business-rule-task:before { content: '\\e827'; } \n.bpmn-icon-manual:before { content: '\\e828'; } \n.bpmn-icon-receive:before { content: '\\e829'; } \n.bpmn-icon-call-activity:before { content: '\\e82a'; } \n.bpmn-icon-start-event-timer:before { content: '\\e82b'; } \n.bpmn-icon-start-event-message:before { content: '\\e82c'; } \n.bpmn-icon-intermediate-event-none:before { content: '\\e82d'; } \n.bpmn-icon-intermediate-event-catch-link:before { content: '\\e82e'; } \n.bpmn-icon-end-event-escalation:before { content: '\\e82f'; } \n.bpmn-icon-bpmn-io:before { content: '\\e831'; } \n.bpmn-icon-gateway-complex:before { content: '\\e832'; } \n.bpmn-icon-gateway-eventbased:before { content: '\\e833'; } \n.bpmn-icon-gateway-none:before { content: '\\e834'; } \n.bpmn-icon-gateway-or:before { content: '\\e835'; } \n.bpmn-icon-end-event-terminate:before { content: '\\e836'; } \n.bpmn-icon-end-event-signal:before { content: '\\e837'; } \n.bpmn-icon-end-event-none:before { content: '\\e838'; } \n.bpmn-icon-end-event-multiple:before { content: '\\e839'; } \n.bpmn-icon-end-event-message:before { content: '\\e83a'; } \n.bpmn-icon-end-event-link:before { content: '\\e83b'; } \n.bpmn-icon-intermediate-event-catch-message:before { content: '\\e83c'; } \n.bpmn-icon-intermediate-event-throw-compensation:before { content: '\\e83d'; } \n.bpmn-icon-start-event-multiple:before { content: '\\e83e'; } \n.bpmn-icon-script:before { content: '\\e83f'; } \n.bpmn-icon-manual-task:before { content: '\\e840'; } \n.bpmn-icon-send:before { content: '\\e841'; } \n.bpmn-icon-service:before { content: '\\e842'; } \n.bpmn-icon-receive-task:before { content: '\\e843'; } \n.bpmn-icon-user:before { content: '\\e844'; } \n.bpmn-icon-start-event-none:before { content: '\\e845'; } \n.bpmn-icon-intermediate-event-throw-escalation:before { content: '\\e846'; } \n.bpmn-icon-intermediate-event-catch-multiple:before { content: '\\e847'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\\e848'; } \n.bpmn-icon-intermediate-event-throw-link:before { content: '\\e849'; } \n.bpmn-icon-start-event-non-interrupting-condition:before { content: '\\e84a'; } \n.bpmn-icon-data-object:before { content: '\\e84b'; } \n.bpmn-icon-script-task:before { content: '\\e84c'; } \n.bpmn-icon-send-task:before { content: '\\e84d'; } \n.bpmn-icon-data-store:before { content: '\\e84e'; } \n.bpmn-icon-start-event-non-interrupting-escalation:before { content: '\\e84f'; } \n.bpmn-icon-intermediate-event-throw-message:before { content: '\\e850'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\\e851'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\\e852'; } \n.bpmn-icon-intermediate-event-throw-multiple:before { content: '\\e853'; } \n.bpmn-icon-start-event-non-interrupting-message:before { content: '\\e854'; } \n.bpmn-icon-ad-hoc-marker:before { content: '\\e855'; } \n.bpmn-icon-service-task:before { content: '\\e856'; } \n.bpmn-icon-task-none:before { content: '\\e857'; } \n.bpmn-icon-compensation-marker:before { content: '\\e858'; } \n.bpmn-icon-start-event-non-interrupting-multiple:before { content: '\\e859'; } \n.bpmn-icon-intermediate-event-throw-signal:before { content: '\\e85a'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\\e85b'; } \n.bpmn-icon-participant:before { content: '\\e85c'; } \n.bpmn-icon-event-subprocess-expanded:before { content: '\\e85d'; } \n.bpmn-icon-lane-insert-below:before { content: '\\e85e'; } \n.bpmn-icon-space-tool:before { content: '\\e85f'; } \n.bpmn-icon-connection-multi:before { content: '\\e860'; } \n.bpmn-icon-lane:before { content: '\\e861'; } \n.bpmn-icon-lasso-tool:before { content: '\\e862'; } \n.bpmn-icon-lane-insert-above:before { content: '\\e863'; } \n.bpmn-icon-lane-divide-three:before { content: '\\e864'; } \n.bpmn-icon-lane-divide-two:before { content: '\\e865'; } \n.bpmn-icon-data-input:before { content: '\\e866'; } \n.bpmn-icon-data-output:before { content: '\\e867'; } \n.bpmn-icon-hand-tool:before { content: '\\e868'; } \n.bpmn-icon-group:before { content: '\\e869'; } \n.bpmn-icon-text-annotation:before { content: '\\e86b'; } \n.bpmn-icon-event-subprocess-collapsed:before { content: '\\e8c3'; } \n.bpmn-icon-transaction:before { content: '\\e8c4'; } \n.bpmn-icon-ad-hoc-subprocess:before { content: '\\e8c5'; } \n.bpmn-icon-screw-wrench:before { content: '\\e8db'; } \n.bpmn-icon-connection:before { content: '\\e8dc'; } \n.bpmn-icon-conditional-flow:before { content: '\\e8e0'; } \n.bpmn-icon-default-flow:before { content: '\\e8e1'; }\n.bpmn-canvas {\n /* Read by the canvas to detect styles that never arrived (diagnostic styles-missing). */\n --bpmn-canvas-styles: 1;\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 0;\n outline: none;\n}\n\n.bpmn-canvas:focus-visible {\n outline: 2px solid currentColor;\n outline-offset: -2px;\n}\n\n.bpmn-canvas--readonly .djs-palette,\n.bpmn-canvas--readonly .djs-context-pad {\n display: none;\n}\n\n/* Hidden only when the host asked for it and named its license (options.watermark). */\n.bpmn-canvas[data-bpmn-canvas-watermark=\"hidden\"] .bjs-powered-by {\n display: none !important;\n}\n\n/*\n * Legend palette (profile \"legend\" only). Every rule is scoped to entries whose data-action starts\n * with \"legend.\", so the default palette of the \"standard\" profile is never touched.\n * Icons are monochrome masks authored for this package; the colour comes from\n * --bpmn-canvas-legend-icon (default #333333), the hover ring from --bpmn-canvas-legend-accent.\n * Action ids are listed in the README (\"Legend profile\").\n */\n\n.djs-palette:has(.entry[data-action^=\"legend.\"]) {\n border-radius: 6px;\n}\n\n.djs-palette .entry[data-action^=\"legend.\"] {\n width: 40px;\n height: 40px;\n line-height: 40px;\n margin: 2px;\n border-radius: 4px;\n transition: box-shadow 0.12s ease;\n}\n\n.djs-palette .entry[data-action^=\"legend.\"]::before {\n content: \"\";\n display: block;\n width: 26px;\n height: 26px;\n margin: 7px;\n font: normal 0/0 sans-serif;\n background-color: var(--bpmn-canvas-legend-icon, #333333);\n -webkit-mask: var(--bpmn-canvas-legend-glyph) center / 26px 26px no-repeat;\n mask: var(--bpmn-canvas-legend-glyph) center / 26px 26px no-repeat;\n}\n\n.djs-palette .entry[data-action^=\"legend.\"]:hover,\n.djs-palette .highlighted-entry[data-action^=\"legend.\"] {\n box-shadow: 0 0 0 2px var(--bpmn-canvas-legend-accent, #4a6fa5);\n}\n\n.djs-palette .entry[data-action=\"legend.start\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-02.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.end\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-03.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.intermediate-event\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-04.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.task\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-05.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.subprocess\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-06.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.external-process\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-07.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.gateway-or\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-08.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.gateway-and\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-09.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.data-input\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-10.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.data-output\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-11.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.external-input\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-12.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.process-output\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-13.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.document\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-14.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.application\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-15.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.lane\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-16.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.sequence-flow\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-17.svg\");\n}\n\n/*\n * Navigation markers (collapsed sub-process [+], external process icon). diagram-js draws a transparent\n * hit rectangle over the whole element; without these rules it swallows every click and a marker can never\n * be the event target. With them, a click on the body targets the body, a click on the marker targets the marker.\n */\n.legend-marker {\n cursor: pointer;\n pointer-events: all;\n}\n\n.djs-element:has(.legend-marker) > .djs-hit-all {\n pointer-events: none;\n}\n\n.djs-element:has(.legend-marker) > .djs-visual,\n.djs-element:has(.legend-marker) > .djs-visual > * {\n pointer-events: auto;\n}\n\n.djs-element:has(.legend-marker) > .djs-visual > .legend-task {\n cursor: move;\n}\n\n/*\n * Token-driven palette colours. The variables --bpmn-canvas-icon-<group> are set per canvas instance from the\n * profile tokens (see src/internal/palette.ts). Without tokens every rule falls back to the neutral values\n * below, so a canvas without tokens renders as before. The standard profile is never touched: the upstream\n * rules are scoped to .bpmn-canvas--colored, which only the colored profile (with tokens) adds.\n */\n\n.djs-palette .entry[data-action=\"legend.start\"]::before {\n background-color: var(--bpmn-canvas-icon-start, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.end\"]::before {\n background-color: var(--bpmn-canvas-icon-end, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.intermediate-event\"]::before {\n background-color: var(--bpmn-canvas-icon-intermediate, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.task\"]::before {\n background-color: var(--bpmn-canvas-icon-task, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.subprocess\"]::before {\n background-color: var(--bpmn-canvas-icon-subprocess, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.external-process\"]::before {\n background-color: var(--bpmn-canvas-icon-external, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.gateway-or\"]::before {\n background-color: var(--bpmn-canvas-icon-gateway, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.gateway-and\"]::before {\n background-color: var(--bpmn-canvas-icon-gateway, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.data-input\"]::before {\n background-color: var(--bpmn-canvas-icon-data, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.data-output\"]::before {\n background-color: var(--bpmn-canvas-icon-data, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.external-input\"]::before {\n background-color: var(--bpmn-canvas-icon-external, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.process-output\"]::before {\n background-color: var(--bpmn-canvas-icon-external, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.document\"]::before {\n background-color: var(--bpmn-canvas-icon-document, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.application\"]::before {\n background-color: var(--bpmn-canvas-icon-application, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.lane\"]::before {\n background-color: var(--bpmn-canvas-icon-lane, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.sequence-flow\"]::before {\n background-color: var(--bpmn-canvas-icon-flow, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.start-event\"] {\n color: var(--bpmn-canvas-icon-start);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.intermediate-event\"] {\n color: var(--bpmn-canvas-icon-intermediate);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.end-event\"] {\n color: var(--bpmn-canvas-icon-end);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.exclusive-gateway\"] {\n color: var(--bpmn-canvas-icon-gateway);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.task\"] {\n color: var(--bpmn-canvas-icon-task);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.data-object\"] {\n color: var(--bpmn-canvas-icon-data);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.data-store\"] {\n color: var(--bpmn-canvas-icon-data);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.subprocess-expanded\"] {\n color: var(--bpmn-canvas-icon-subprocess);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.participant-expanded\"] {\n color: var(--bpmn-canvas-icon-pool);\n}\n\n\n/* Workshop primitives: menu and tabs. Themed by custom properties; neutral light defaults,\n a dark set under prefers-color-scheme, and system colours in forced-colors mode. */\n.bpmn-workshop,\n.bpmn-workshop-menu,\n.bpmn-workshop-tabs {\n --bpmn-workshop-bg: #ffffff;\n --bpmn-workshop-fg: #1f2328;\n --bpmn-workshop-muted: #57606a;\n --bpmn-workshop-border: #8c959f;\n --bpmn-workshop-accent: #0550ae;\n --bpmn-workshop-focus: #0969da;\n --bpmn-workshop-hover: #eaeef2;\n --bpmn-workshop-radius: 6px;\n}\n\n@media (prefers-color-scheme: dark) {\n .bpmn-workshop,\n .bpmn-workshop-menu,\n .bpmn-workshop-tabs {\n --bpmn-workshop-bg: #1f2328;\n --bpmn-workshop-fg: #e6edf3;\n --bpmn-workshop-muted: #9da7b3;\n --bpmn-workshop-border: #6e7681;\n --bpmn-workshop-accent: #79c0ff;\n --bpmn-workshop-focus: #58a6ff;\n --bpmn-workshop-hover: #30363d;\n }\n}\n\n.bpmn-workshop-menu {\n position: relative;\n display: inline-block;\n font: inherit;\n color: var(--bpmn-workshop-fg);\n}\n\n.bpmn-workshop-menu__trigger {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font: inherit;\n color: var(--bpmn-workshop-fg);\n background: var(--bpmn-workshop-bg);\n border: 1px solid var(--bpmn-workshop-border);\n border-radius: var(--bpmn-workshop-radius);\n padding: 4px 8px;\n cursor: pointer;\n}\n\n.bpmn-workshop-menu__trigger:disabled {\n color: var(--bpmn-workshop-muted);\n cursor: not-allowed;\n opacity: 0.7;\n}\n\n.bpmn-workshop-menu__popup {\n position: absolute;\n top: calc(100% + 2px);\n left: 0;\n z-index: 20;\n min-width: 100%;\n width: max-content;\n max-width: min(320px, 90vw);\n padding: 4px;\n background: var(--bpmn-workshop-bg);\n color: var(--bpmn-workshop-fg);\n border: 1px solid var(--bpmn-workshop-border);\n border-radius: var(--bpmn-workshop-radius);\n box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);\n}\n\n.bpmn-workshop-menu__popup[hidden] {\n display: none;\n}\n\n.bpmn-workshop-menu__item {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n width: 100%;\n font: inherit;\n text-align: left;\n color: inherit;\n background: transparent;\n border: 0;\n border-radius: calc(var(--bpmn-workshop-radius) - 2px);\n padding: 6px 8px;\n cursor: pointer;\n}\n\n.bpmn-workshop-menu__item:hover,\n.bpmn-workshop-menu__item:focus {\n background: var(--bpmn-workshop-hover);\n}\n\n.bpmn-workshop-menu__item[aria-disabled=\"true\"] {\n color: var(--bpmn-workshop-muted);\n cursor: not-allowed;\n}\n\n.bpmn-workshop-menu__mark {\n display: inline-flex;\n width: 16px;\n flex: none;\n color: var(--bpmn-workshop-accent);\n}\n\n.bpmn-workshop-menu__text {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.bpmn-workshop-menu__desc {\n font-size: 0.85em;\n color: var(--bpmn-workshop-muted);\n white-space: normal;\n}\n\n.bpmn-workshop-tabs {\n display: flex;\n gap: 2px;\n min-width: 0;\n overflow-x: auto;\n border-bottom: 1px solid var(--bpmn-workshop-border);\n font: inherit;\n color: var(--bpmn-workshop-fg);\n}\n\n.bpmn-workshop-tabs__tab {\n flex: 0 1 auto;\n min-width: 0;\n max-width: 220px;\n font: inherit;\n color: var(--bpmn-workshop-muted);\n background: transparent;\n border: 0;\n border-bottom: 2px solid transparent;\n border-radius: var(--bpmn-workshop-radius) var(--bpmn-workshop-radius) 0 0;\n padding: 6px 10px;\n cursor: pointer;\n}\n\n.bpmn-workshop-tabs__tab[aria-selected=\"true\"] {\n color: var(--bpmn-workshop-fg);\n border-bottom-color: var(--bpmn-workshop-accent);\n font-weight: 600;\n}\n\n.bpmn-workshop-tabs__tab:hover {\n background: var(--bpmn-workshop-hover);\n}\n\n.bpmn-workshop-tabs__label {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bpmn-workshop-menu__trigger:focus-visible,\n.bpmn-workshop-menu__item:focus-visible,\n.bpmn-workshop-tabs__tab:focus-visible {\n outline: 2px solid var(--bpmn-workshop-focus);\n outline-offset: 1px;\n}\n\n@media (forced-colors: active) {\n .bpmn-workshop-menu__trigger,\n .bpmn-workshop-menu__popup {\n border-color: CanvasText;\n }\n .bpmn-workshop-menu__item:focus,\n .bpmn-workshop-tabs__tab[aria-selected=\"true\"] {\n forced-color-adjust: none;\n background: Highlight;\n color: HighlightText;\n }\n .bpmn-workshop-tabs {\n border-bottom-color: CanvasText;\n }\n}\n\n/* Shell of the BPMN workshop: toolbar, buttons, notices, panel, canvas and the busy veil.\n Themed by the same custom properties as the primitives (see workshop.css). */\n.bpmn-workshop {\n --bw-bg: var(--bpmn-workshop-bg, #ffffff);\n --bw-fg: var(--bpmn-workshop-fg, #1f2328);\n --bw-border: var(--bpmn-workshop-border, #6b7280);\n --bw-muted: var(--bpmn-workshop-muted, #4b5563);\n --bw-accent: var(--bpmn-workshop-accent, #0b5cad);\n --bw-focus: var(--bpmn-workshop-focus, #0b5cad);\n display: flex;\n flex-direction: column;\n min-height: 0;\n width: 100%;\n height: 100%;\n background: var(--bw-bg);\n color: var(--bw-fg);\n font: inherit;\n}\n\n.bpmn-workshop__toolbar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n padding: 4px 6px;\n border-bottom: 1px solid var(--bw-border);\n}\n\n.bpmn-workshop__button {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n min-height: 28px;\n min-width: 28px;\n padding: 2px 6px;\n border: 1px solid transparent;\n border-radius: var(--bpmn-workshop-radius, 6px);\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.bpmn-workshop__button:hover:not(:disabled) {\n border-color: var(--bw-border);\n background: color-mix(in srgb, var(--bw-fg) 8%, transparent);\n}\n\n.bpmn-workshop__button:focus-visible {\n outline: 2px solid var(--bw-focus);\n outline-offset: 1px;\n}\n\n.bpmn-workshop__button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.bpmn-workshop__notices {\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding: 4px 6px;\n border-bottom: 1px solid var(--bw-border);\n}\n\n.bpmn-workshop__notice {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 2px 6px;\n border-left: 3px solid var(--bw-accent);\n font-size: 0.9em;\n}\n\n.bpmn-workshop__notice--error {\n border-left-color: #b42318;\n}\n\n.bpmn-workshop__notice--warning {\n border-left-color: #a15c00;\n}\n\n.bpmn-workshop__panel {\n position: relative;\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.bpmn-workshop__panel:focus-visible {\n outline: 2px solid var(--bw-focus);\n outline-offset: -2px;\n}\n\n.bpmn-workshop__canvas {\n position: absolute;\n inset: 0;\n}\n\n.bpmn-workshop__veil {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n padding-top: 12px;\n background: color-mix(in srgb, var(--bw-bg) 55%, transparent);\n pointer-events: all;\n}\n\n.bpmn-workshop__busy {\n padding: 4px 10px;\n border: 1px solid var(--bw-border);\n border-radius: 999px;\n background: var(--bw-bg);\n color: var(--bw-fg);\n font-size: 0.9em;\n}\n\n/* While busy the palette is hidden and nothing can be picked. */\n.bpmn-workshop--busy .djs-palette,\n.bpmn-workshop--busy .djs-context-pad {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n .bpmn-workshop {\n --bw-bg: var(--bpmn-workshop-bg, #0d1117);\n --bw-fg: var(--bpmn-workshop-fg, #e6edf3);\n --bw-border: var(--bpmn-workshop-border, #8b949e);\n --bw-muted: var(--bpmn-workshop-muted, #9aa4ae);\n --bw-accent: var(--bpmn-workshop-accent, #58a6ff);\n --bw-focus: var(--bpmn-workshop-focus, #58a6ff);\n }\n}\n",Cu=new WeakSet,c_=new Map;l_="data-bpmn-canvas-font",p_="data-bpmn-canvas-styles";JP=.85,Ga=24;tj=new Set(["bpmn:Participant","bpmn:Lane","label"]);oj=".bjs-drilldown, [data-marker='sub-process'], [data-marker='process-icon'], .legend-marker",rj={standard:56,legend:112,colored:56},ij=1.15,aj=.87,sj=.2,cj=4,lj=class{ready;instanceId=zP();root;host;options;modeler;_state="loading";destroyed=!1;epoch=0;navSeq=0;queue=Promise.resolve();loading=0;touched=!1;inputXml="";baseRevision;revisionCounter=0;lastRevision;activeId;diagrams=[];planeIds=new Map;diagnostics=[];hostReadOnly;lossyGate=!1;inLayout=!1;wheelListener;wheelCapture=!1;drilldownListener;abortListener;profileId;tokens;fitMode;fittedOnce=!1;resizeObserver;lastSize="";lastHistory="";watermarkRefusal;assetProblems=[];assetBase;assetsChecked=!1;history={past:[],future:[]};capturing=!1;constructor(t,e){this.host=t,this.options=e,this.hostReadOnly=e.readOnly===!0,this.profileId=e.profile??"standard",this.tokens=e.profile==="colored"?e.coloredTokens:e.legendTokens,this.fitMode=e.fitMode??"readable",this.baseRevision=e.revision,this.root=t.ownerDocument.createElement("div"),this.root.className="bpmn-canvas",this.root.dataset.bpmnCanvasInstance=this.instanceId,e.watermark?.hidden===!0&&(String(e.watermark.license??"").trim()===""?this.watermarkRefusal={code:"watermark-refused",severity:"warning",message:"The bpmn.io logo stays visible: hiding it needs watermark.license, the reference of the license that allows it."}:this.root.dataset.bpmnCanvasWatermark="hidden"),t.appendChild(this.root);let n=[];if(e.assetBase!==void 0)try{this.assetBase=YP(e.assetBase)}catch(i){n.push({code:"asset-load-failed",severity:"error",message:"assetBase is not usable (".concat(u_(i),"); fonts and images are looked up next to the bundle instead.")})}if((e.styles??"auto")==="auto")try{ZP(t,e.styleNonce,this.assetBase)}catch(i){n.push({code:"styles-missing",severity:"error",message:"The canvas styles could not be installed (".concat(u_(i),"). Set assetBase to the absolute URL of the package's dist/assets/ directory.")})}e.signal&&(e.signal.aborted?this.destroy():(this.abortListener=()=>this.destroy(),e.signal.addEventListener("abort",this.abortListener,{once:!0})));let o=++this.epoch;if(this.queue=this.init(),this.watermarkRefusal){let i=this.watermarkRefusal;Promise.resolve().then(()=>{this.destroyed||this.emit(i)})}for(let i of n)Promise.resolve().then(()=>this.reportAsset(i));let r=e.xml===void 0?this.queue:this.enqueue(o,()=>this.applyXml(e.xml,e.revision,o));this.ready=r.then(()=>{},()=>{})}get state(){return this._state}setState(t){this._state!==t&&(this._state=t,this.options.onStateChange?.(t))}emit(t){this.options.onDiagnostic?.(t)}reportAsset(t){if(this.destroyed)return;this.assetProblems.push(t),this.emit(t);let e=this.root.ownerDocument,n=this.root.querySelector(":scope > .bpmn-canvas__asset-notice");n||(n=e.createElement("div"),n.className="bpmn-canvas__asset-notice",n.setAttribute("role","alert"),Object.assign(n.style,{position:"absolute",left:"8px",right:"8px",top:"8px",zIndex:"10",pointerEvents:"none",padding:"8px 10px",background:"#fff4e5",color:"#5f3700",border:"1px solid #e0a050",borderRadius:"4px",font:"13px/1.4 system-ui, sans-serif"}),this.root.style.position="relative",this.root.append(n));let o=e.createElement("div");o.textContent="BPMN canvas: ".concat(t.message),n.append(o),this.root.getBoundingClientRect().height<64&&(this.root.style.minHeight="120px")}scheduleAssetCheck(){this.assetsChecked||(this.assetsChecked=!0,this.checkAssets().catch(()=>{}))}async checkAssets(){let t=this.root.ownerDocument,e=t.defaultView,n=t.fonts;if(!e||!n)return;let o=this.options.styles==="external",r=()=>e.getComputedStyle(this.root).getPropertyValue("--bpmn-canvas-styles").trim()==="1";if(r()||await dj(e,5e3),this.destroyed||this.assetProblems.some(l=>l.code==="styles-missing"))return;if(!r()){this.reportAsset({code:"styles-missing",severity:"error",message:o?'the stylesheet is not applied: load styles.css from the package, or use styles: "auto".':"the styles are not applied: a Content-Security-Policy may block them (pass styleNonce)."});return}let i=!1;try{let l=await n.load("14px bpmn");i=l.length>0&&l.every(p=>p.status==="loaded")}catch{i=!1}if(this.destroyed)return;let a=o?"next to styles.css":this.assetBase?"under ".concat(this.assetBase.href):"next to the bundle";if(!i){let l="";try{l=o?"":XP(this.assetBase)}catch{}this.reportAsset({code:"asset-load-failed",severity:"error",message:"the BPMN icon font did not load ".concat(l?"from ".concat(l):a,", so palette and marker icons are missing. Set assetBase, or allow it in font-src.")})}if(o)return;let s="";try{s=D_("inline-01.svg",this.assetBase)}catch{}let c=s!==""&&await uj(e,s,8e3);this.destroyed||c||this.reportAsset({code:"asset-load-failed",severity:"error",message:"the images did not load ".concat(s?"from ".concat(s):a,", so palette icons are missing. Set assetBase, or allow it in img-src.")})}assertLive(t){if(this.destroyed||t!==this.epoch)throw qr()}enqueue(t,e){let n=this.queue.then(()=>(this.assertLive(t),e()));return this.queue=n.then(()=>{},()=>{}),n.catch(()=>{}),n}tokensFor(t){return this.tokens}async init(){try{let[t,e,n]=await Promise.all([i_(),a_(this.profileId,this.tokensFor(this.profileId)),this.layoutModules()]);if(this.destroyed)return;this.createModeler(t,e,n),this.setupResizeObserver()}catch(t){if(this.destroyed)return;let e={code:"import-failed",severity:"error",message:"Engine failed to load: ".concat(String(t?.message??t))};this.diagnostics=[e],this.setState("error"),this.emit(e)}}createModeler(t,e,n){let o=this.options.zoomLimits,r=new t.Modeler({container:this.root,additionalModules:[WP,FP,...e.modelerModules,...n],bpmnCanvas:OP(this.instanceId,e,this.options.paletteColumns),...o?{zoomScroll:{...o.min===void 0?{}:{minZoom:o.min},...o.max===void 0?{}:{maxZoom:o.max}}}:{}});this.modeler=r;let i=r.get("eventBus");return i.on("commandStack.changed",a=>this.onStackChanged(a.trigger)),i.on("element.click",a=>this.onElementClick(a)),i.on("root.set",a=>this.onRootSet(a.element)),i.on("keyboard.keydown",2e3,a=>{let s=a.keyEvent;if(!s)return;let c=r.get("commandStack");if(du(s)&&!c.canUndo()&&this.history.past.length>0)return this.undo(),!0;if(uu(s)&&!c.canRedo()&&this.history.future.length>0)return this.redo(),!0}),this.setupDrilldown(r),this.setupWheel(r),this.applyReadOnly(),r}async layoutModules(){try{return[(await Er(()=>Promise.resolve().then(()=>(J5(),Z5)),[])).BpmnCanvasLayoutModule]}catch{return[]}}removeWheel(){this.wheelListener&&this.root.removeEventListener("wheel",this.wheelListener,{capture:this.wheelCapture}),this.wheelListener=void 0}setupWheel(t){this.removeWheel();let e=this.options.wheel??"zoom";if(e==="zoom")return;let n=t.get("zoomScroll");if(e==="page-scroll"){if(!n)return;n.toggle(!1),this.wheelListener=o=>{if(!o.ctrlKey&&!o.metaKey)return;o.preventDefault();let r=this.root.getBoundingClientRect();n.stepZoom(o.deltaY<0?1:-1,{x:o.clientX-r.left,y:o.clientY-r.top})},this.wheelCapture=!1,this.root.addEventListener("wheel",this.wheelListener,{passive:!1})}else this.wheelListener=o=>{if(o.ctrlKey||o.metaKey||o.deltaY===0)return;o.preventDefault(),o.stopPropagation();let r=this.root.getBoundingClientRect();this.zoomBy(o.deltaY<0?ij:aj,{x:o.clientX-r.left,y:o.clientY-r.top})},this.wheelCapture=!0,this.root.addEventListener("wheel",this.wheelListener,{passive:!1,capture:!0})}setupResizeObserver(){typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(([t])=>{let e=t?.contentRect;if(this.destroyed||!e||e.width===0||e.height===0)return;let n="".concat(Math.round(e.width),"x").concat(Math.round(e.height));n!==this.lastSize&&(this.lastSize=n,this.modeler&&this.diagrams.length!==0&&(this.modeler.get("canvas").resized(),(!this.fittedOnce||this.fitMode==="whole")&&this.applyFit(this.fitMode)))}),this.resizeObserver.observe(this.root))}removeDrilldown(){this.drilldownListener&&this.root.removeEventListener("click",this.drilldownListener,{capture:!0}),this.drilldownListener=void 0}setupDrilldown(t){this.removeDrilldown(),(this.options.drilldown??"native")==="event"&&(this.drilldownListener=e=>{let n=e.target?.closest?.(".bjs-drilldown");if(!n)return;e.preventDefault(),e.stopPropagation();let o=n.closest("[data-container-id]")?.getAttribute("data-container-id"),r=o?t.get("elementRegistry").get(o):void 0;r&&this.onElementClick({element:r,originalEvent:e})},this.root.addEventListener("click",this.drilldownListener,{capture:!0}))}onRootSet(t){if(this.destroyed||this.loading>0||!this.modeler)return;let e=t?.businessObject?.id,n=[...this.planeIds].find(([,o])=>o===e)?.[0];n&&n!==this.activeId&&(this.activeId=n,this.resetHistory(),this.options.onChange?.({revision:this.lastRevision??"".concat(this.instanceId,":").concat(this.revisionCounter),baseRevision:this.baseRevision,cause:"diagram-switch",diagramId:n}))}onElementClick(t){let e=t.element,n=e?.businessObject;if(!e||!n||!e.parent||!this.options.onElementClick)return;let o=t.originalEvent?.target,r=typeof n.calledElement=="string"&&n.calledElement?n.calledElement:void 0;this.options.onElementClick({id:e.id,type:e.type,name:typeof n.name=="string"?n.name:"",...r===void 0?{}:{calledElement:r},marker:!!o?.closest?.(oj)})}emitHistory(){if(this.destroyed||this.capturing||!this.options.onHistoryChange)return;let t={canUndo:this.canUndo(),canRedo:this.canRedo()},e="".concat(t.canUndo).concat(t.canRedo);e!==this.lastHistory&&(this.lastHistory=e,this.options.onHistoryChange(t))}onStackChanged(t){if(this.destroyed||this.capturing||(this.loading===0&&t==="execute"&&(this.history.future=[]),this.emitHistory(),this.loading>0||t==="clear"||!this.activeId))return;this.touched=!0;let e=this.inLayout?"layout":t==="undo"?"undo":t==="redo"?"redo":"edit";this.lastRevision="".concat(this.instanceId,":").concat(++this.revisionCounter),this.options.onChange?.({revision:this.lastRevision,baseRevision:this.baseRevision,cause:e,diagramId:this.activeId})}isEffectivelyReadOnly(){return this.hostReadOnly||this.lossyGate}applyReadOnly(){let t=this.isEffectivelyReadOnly();this.root.classList.toggle("bpmn-canvas--readonly",t),this.modeler?.get("bpmnCanvasReadOnly")?.setReadOnly(t)}async applyXml(t,e,n){let o=this.modeler;if(!o)return{applied:!1,reason:"invalid"};this.loading++;try{let r=[];MP(t)&&r.push({code:"comments-present",severity:"warning",destructive:!0,message:"XML comments are dropped on save."});let i;try{let l=await o.get("moddle").fromXML(t);i=l.rootElement,r.push(...DP(l.warnings),...jP(i))}catch(l){return this.reject(n,t,[{code:"invalid-xml",severity:"error",message:String(l?.message??l).split("\n")[0]??"invalid XML"}])}if(this.assertLive(n),(i.diagrams??[]).length===0)return this.reject(n,t,r);let a=this.activeId,s=a!==void 0&&(i.diagrams??[]).some(l=>l.id===a)?a:void 0;try{await o.importXML(t,s)}catch(l){return this.assertLive(n),this.setState("error"),this.reject(n,t,[...r,{code:"import-failed",severity:"error",message:String(l?.message??l).split("\n")[0]??"import failed"}])}this.assertLive(n),this.inputXml=t,this.touched=!1,this.baseRevision=e,this.lastRevision=void 0,this.diagnostics=r;let c=(i.diagrams??[]).filter(l=>typeof l.id=="string"&&l.id!=="");this.diagrams=c.map(l=>({id:l.id,name:NP(l)})),this.planeIds=new Map(c.map(l=>[l.id,l.plane.bpmnElement?.id??""])),this.activeId=s??this.diagrams[0]?.id,this.history={past:[],future:[]},this.lossyGate=$P(r)&&this.options.allowLossyEdit!==!0,this.applyReadOnly(),this.fittedOnce=!1,this.initialFit(),this.setState("ready"),this.emitHistory();for(let l of r)this.emit(l);return this.scheduleAssetCheck(),this.lossyGate&&this.emit({code:"read-only-lossy",severity:"warning",message:"The document would lose content on save, so it is open read-only. Set allowLossyEdit to edit anyway."}),{applied:!0}}finally{this.loading--}}reject(t,e,n){this.assertLive(t),this.diagrams.length===0&&(this.inputXml=e,this.diagnostics=n,this.setState("error"));for(let o of n)this.emit(o);return{applied:!1,reason:"invalid"}}setXml(t,e={}){if(this.destroyed)return Promise.reject(qr());let n=e.revision;if(n!==void 0&&(n===this.baseRevision||n===this.lastRevision))return Promise.resolve({applied:!1,reason:"echo"});let o=++this.epoch;return this.enqueue(o,()=>this.applyXml(t,n,o))}async getXml(){let t=this.epoch;await this.queue,this.assertLive(t);let e=this.modeler;if(!e||this.diagrams.length===0)return this.inputXml;let n=e.get("directEditing");if(n?.isActive()&&n.complete(),!this.touched)return this.inputXml;let o;try{o=await this.saveLive(e,t)}catch(r){this.assertLive(t);let i={code:"save-failed",severity:"error",message:String(r?.message??r)};throw this.emit(i),r}return this.assertLive(t),o}getDiagrams(){return this.diagrams}getActiveDiagramId(){return this.activeId}selectDiagram(t){if(this.destroyed)return Promise.reject(qr());let e=this.epoch,n=++this.navSeq;return this.enqueue(e,async()=>{if(n!==this.navSeq)throw qr();let o=this.modeler;if(!o||!this.diagrams.some(i=>i.id===t)){let i=Error('Unknown diagram id "'.concat(t,'"'));throw i.name="UnknownDiagramError",i}if(t===this.activeId)return;let r=o.get("directEditing");r?.isActive()&&r.complete(),this.loading++;try{await o.open(t)}finally{this.loading--}if(this.assertLive(e),n!==this.navSeq)throw qr();this.activeId=t,this.history={past:[],future:[]},this.applyFit(this.fitMode),this.emitHistory(),this.options.onChange?.({revision:this.lastRevision??"".concat(this.instanceId,":").concat(this.revisionCounter),baseRevision:this.baseRevision,cause:"diagram-switch",diagramId:t})})}getDiagnostics(){return[...this.watermarkRefusal?[this.watermarkRefusal]:[],...this.assetProblems,...this.diagnostics]}setReadOnly(t){this.destroyed||(this.hostReadOnly=t,this.applyReadOnly())}isReadOnly(){return this.isEffectivelyReadOnly()}getReadOnlyReason(){return this.hostReadOnly?"host":this.lossyGate?"lossy":void 0}initialFit(){let t=this.root.getBoundingClientRect();t.width>0&&t.height>0&&this.applyFit(this.fitMode)}applyFit(t,e){let n=this.modeler;if(this.destroyed||!n||this.diagrams.length===0)return;let o=n.get("canvas");try{let r=[];for(let l of n.get("elementRegistry").getAll())if(l.type!=="bpmn:Process"&&l.type!=="bpmn:Collaboration"){if(typeof l.x=="number"&&typeof l.y=="number"&&typeof l.width=="number"&&typeof l.height=="number")r.push({x:l.x,y:l.y,width:l.width,height:l.height,type:l.type});else if(Array.isArray(l.waypoints))for(let p of l.waypoints)r.push({x:p.x,y:p.y,width:1,height:1,type:l.type})}let i=this.root.querySelector(".djs-palette")?.getBoundingClientRect(),a=this.root.getBoundingClientRect().left,s=i&&i.width>0?i.right-a+8:0,c=nj(r,o.getSize(),e??Math.max(s,rj[this.profileId]),t==="whole");c?o.viewbox(c.viewbox):o.zoom("fit-viewport","auto"),this.fittedOnce=!0}catch{}}fit(t={}){this.applyFit(t.mode??"whole",t.inset)}setFitMode(t){if(this.destroyed||(this.fitMode=t,!this.modeler||this.diagrams.length===0))return;let e=this.root.ownerDocument.defaultView,n=()=>{!this.destroyed&&this.modeler&&(this.modeler.get("canvas").resized(),this.applyFit(t))};e?.requestAnimationFrame?e.requestAnimationFrame(n):n()}zoomLimits(){return{min:this.options.zoomLimits?.min??sj,max:this.options.zoomLimits?.max??cj}}getZoom(){let t=this.modeler&&this.diagrams.length>0?this.modeler.get("canvas").zoom():1;return typeof t=="number"?t:1}zoomTo(t,e="auto"){if(this.destroyed||!this.modeler||this.diagrams.length===0)return;let{min:n,max:o}=this.zoomLimits();this.modeler.get("canvas").zoom(Math.min(o,Math.max(n,t)),e)}zoomBy(t,e="auto"){this.zoomTo(this.getZoom()*t,e)}setProfile(t,e){if(this.destroyed)return Promise.reject(qr());let n=this.epoch;return this.enqueue(n,async()=>{let o;try{o=await this.prepareSwitch(n,t,e)}catch(u){throw this.assertLive(n),u}this.assertLive(n);let{engine:r,next:i,layout:a,old:s,hadDocument:c,xml:l,view:p,captured:d}=o;c&&(this.history={past:[...d.past,...this.history.past],future:d.future.length>0?d.future:this.history.future},this.capHistory()),this.loading++;try{this.removeWheel(),this.removeDrilldown(),s?.destroy(),this.modeler=void 0,this.profileId=t,this.tokens=e;let u=this.createModeler(r,i,a);if(c){if(await u.importXML(l,this.activeId),this.destroyed)throw qr();p&&u.get("canvas").viewbox({x:p.x,y:p.y,width:p.width,height:p.height})}}catch(u){throw this.destroyed||u?.name==="AbortError"?qr():(this.setState("error"),this.emit({code:"import-failed",severity:"error",message:"Profile switch failed: ".concat(String(u?.message??u))}),u)}finally{this.loading--}if(this.destroyed)throw qr();c&&this.activeId&&(this.inputXml=l,this.touched=!1,this.emitHistory(),this.options.onChange?.({revision:this.lastRevision??"".concat(this.instanceId,":").concat(this.revisionCounter),baseRevision:this.baseRevision,cause:"profile-switch",diagramId:this.activeId}))})}async prepareSwitch(t,e,n){let[o,r,i]=await Promise.all([i_(),a_(e,n),this.layoutModules()]);this.assertLive(t);let a=this.modeler,s=!!a&&this.diagrams.length>0,c=this.inputXml,l,p={past:[],future:[]};if(a&&s){let d=a.get("directEditing");d?.isActive()&&d.complete(),this.touched&&(c=await this.saveLive(a,t)),this.assertLive(t),l=a.get("canvas").viewbox(),p=await this.captureHistory(a,t),this.assertLive(t)}return{engine:o,next:r,layout:i,old:a,hadDocument:s,xml:c,view:l,captured:p}}stack(){return this.modeler?.get("commandStack")}canUndo(){return(this.stack()?.canUndo()??!1)||this.history.past.length>0}canRedo(){return(this.stack()?.canRedo()??!1)||this.history.future.length>0}undo(){if(this.destroyed)return;let t=this.stack();t?.canUndo()?t.undo():this.history.past.length>0&&!this.isEffectivelyReadOnly()&&this.moveHistory("undo").catch(()=>{})}redo(){if(this.destroyed)return;let t=this.stack();t?.canRedo()?t.redo():this.history.future.length>0&&!this.isEffectivelyReadOnly()&&this.moveHistory("redo").catch(()=>{})}resetHistory(){(this.history.past.length!==0||this.history.future.length!==0)&&(this.history={past:[],future:[]},this.emitHistory())}capHistory(){let{past:t,future:e}=this.history;for(;t.length+e.length>Eg;)t.length>=e.length?t.pop():e.pop()}async saveLive(t,e){let n;try{n=(await t.saveXML({format:!0})).xml}catch(o){throw this.assertLive(e),o}return this.assertLive(e),n}async captureHistory(t,e){let n=t.get("commandStack");if(!n.canUndo()&&!n.canRedo())return{past:[],future:[]};let o=t.get("bpmnCanvasReadOnly"),r=o?.isReadOnly()??!1,i=()=>this.saveLive(t,e);this.capturing=!0,this.loading++,o?.setReadOnly(!1);let a=0;try{let s=[];for(;n.canUndo()&&s.length<Eg;)n.undo(),a--,s.push(await i()),this.assertLive(e);for(;a<0;)n.redo(),a++;let c=[];for(;n.canRedo()&&c.length<Eg;)n.redo(),a++,c.push(await i()),this.assertLive(e);for(;a>0;)n.undo(),a--;return{past:s,future:c}}finally{try{for(;!this.destroyed&&a<0;)n.redo(),a++;for(;!this.destroyed&&a>0;)n.undo(),a--}finally{o?.setReadOnly(r),this.loading--,this.capturing=!1}}}moveHistory(t){let e=this.epoch;return this.enqueue(e,async()=>{let n=this.modeler;if(!n||this.diagrams.length===0||this.isEffectivelyReadOnly())return;let o=t==="undo"?this.history.past[0]:this.history.future[0];if(o===void 0)return;let r=await this.saveLive(n,e);this.assertLive(e);let i=await this.captureHistory(n,e);this.assertLive(e);let a=n.get("canvas").viewbox();this.loading++;try{try{await n.importXML(o,this.activeId)}catch{this.assertLive(e),await n.importXML(o)}}finally{this.loading--}this.assertLive(e),n.get("canvas").viewbox({x:a.x,y:a.y,width:a.width,height:a.height}),t==="undo"?(this.history.past.shift(),this.history.future=[r,...i.future,...this.history.future]):(this.history.future.shift(),this.history.past=[r,...i.past,...this.history.past]),this.capHistory(),this.inputXml=o,this.touched=!1,this.lastRevision="".concat(this.instanceId,":").concat(++this.revisionCounter),this.emitHistory(),this.activeId&&this.options.onChange?.({revision:this.lastRevision,baseRevision:this.baseRevision,cause:t,diagramId:this.activeId})})}autoLayout(){if(this.destroyed)return Promise.reject(qr());let t=this.epoch;return this.enqueue(t,async()=>{let e=this.modeler,n=e?.get("bpmnCanvasLayout");if(!e||!n||this.diagrams.length===0)return this.emit({code:"layout-unsupported",severity:"warning",message:"No document is displayed, so there is nothing to lay out."}),{changed:0,skipped:[]};if(this.isEffectivelyReadOnly())return this.emit({code:"layout-unsupported",severity:"warning",message:"The canvas is read-only."}),{changed:0,skipped:[]};this.inLayout=!0;try{let o=await n.run(()=>!this.destroyed&&t===this.epoch);return this.assertLive(t),(o.changed===0||o.skipped.length>0)&&this.emit({code:"layout-unsupported",severity:"warning",ids:o.skipped,message:o.changed===0?"Nothing could be laid out.":"".concat(o.skipped.length," element(s) were not placed.")}),o}catch(o){throw this.assertLive(t),o?.name==="AbortError"||this.emit({code:"layout-failed",severity:"error",message:String(o?.message??o)}),o}finally{this.inLayout=!1}})}destroy(){if(!this.destroyed){this.destroyed=!0,this.history={past:[],future:[]},this.epoch++,this.navSeq++,this.options.signal&&this.abortListener&&this.options.signal.removeEventListener("abort",this.abortListener),this.removeWheel(),this.removeDrilldown(),this.resizeObserver?.disconnect(),this.resizeObserver=void 0;try{this.modeler?.destroy()}finally{this.modeler=void 0,this.root.remove(),this.setState("destroyed")}}}};Eg=100;gj=VD({port:()=>P_,renderBpmn:()=>$_,toXml:()=>j_}),P_=fj(t=>mj(t)),j_=hj});var qg={};Ci(qg,{port:()=>k$,renderDossier:()=>B$,renderMarkdownToSafeHtml:()=>lE});function O_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function yj(t){if(Array.isArray(t))return t}function bj(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(p){l=!0,r=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}function vj(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xj(t,e){return yj(t)||bj(t,e)||kj(t,e)||vj()}function kj(t,e){if(t){if(typeof t=="string")return O_(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O_(t,e):void 0}}function _n(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);var n=[...arguments].slice(1);return nE(t,e,n)}}function Aj(t){return function(){return oE(t,[...arguments])}}function ke(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ol;if(z_&&z_(t,null),!sc(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){let i=n(r);i!==r&&(wj(e)||(e[o]=i),r=i)}t[r]=!0}return t}function Mj(t){for(let e=0;e<t.length;e++)Co(t,e)||(t[e]=null);return t}function Ho(t){let e=ac(null);for(let o of tE(t)){var n=xj(o,2);let r=n[0],i=n[1];Co(t,r)&&(e[r]=sc(i)?Mj(i):i&&typeof i=="object"&&i.constructor===Object?Ho(i):i)}return e}function Dj(t){switch(typeof t){case"string":return t;case"number":return Rj(t);case"boolean":return Bj(t);case"bigint":return H_?H_(t):"0";case"symbol":return F_?F_(t):"Symbol()";case"undefined":return $l(t);case"function":case"object":{if(t===null)return $l(t);let e=t,n=sr(e,"toString");if(typeof n=="function"){let o=n(e);return typeof o=="string"?o:$l(o)}return $l(t)}default:return $l(t)}}function sr(t,e){for(;t!==null;){let o=Ej(t,e);if(o){if(o.get)return _n(o.get);if(typeof o.value=="function")return _n(o.value)}t=_j(t)}function n(){return null}return n}function Pj(t){try{return oo(t,""),!0}catch{return!1}}function iE(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yj(),e=S=>iE(S);if(e.version="3.4.15",e.removed=[],!t||!t.document||t.document.nodeType!==Io.document||!t.Element)return e.isSupported=!1,e;let n=t.document,o=n,r=o.currentScript;t.DocumentFragment;let i=t.HTMLTemplateElement,a=t.Node,s=t.Element,c=t.NodeFilter;t.NamedNodeMap===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;let l=t.DOMParser,p=t.trustedTypes,d=s.prototype,u=sr(d,"cloneNode"),m=sr(d,"remove"),h=sr(d,"removeAttributeNode"),f=sr(d,"nextSibling"),g=sr(d,"childNodes"),v=sr(d,"parentNode"),k=sr(d,"shadowRoot"),_=sr(d,"attributes"),w=a&&a.prototype?sr(a.prototype,"nodeType"):null,T=a&&a.prototype?sr(a.prototype,"nodeName"):null,C=a&&a.prototype?sr(a.prototype,"ownerDocument"):null,B=function(S){return w?w(S):S.nodeType},D=function(S){return T?T(S):S.nodeName};if(typeof i=="function"){let S=n.createElement("template");S.content&&S.content.ownerDocument&&(n=S.content.ownerDocument)}let M,N="",z,V=!1,gt=0,ht=function(){if(gt>0)throw qa('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Rt=function(S){ht(),gt++;try{return M.createHTML(S)}finally{gt--}},Pe=function(S){ht(),gt++;try{return M.createScriptURL(S)}finally{gt--}},Pt=function(){return V||=(z=Xj(p,r),!0),z},Et=n,St=Et.implementation,pt=Et.createNodeIterator,Ot=Et.createDocumentFragment,U=Et.getElementsByTagName,G=o.importNode,nt=X_();e.isSupported=typeof tE=="function"&&typeof v=="function"&&St&&St.createHTMLDocument!==void 0;let Yt=Oj,fe=zj,R=Lj,x=Nj,b=Ij,L=Hj,H=Fj,ot=Gj,bt=q_,vt=null,de=ke({},[...W_,...Ig,...Hg,...Fg,...G_]),Gt=null,Xt=ke({},[...U_,...Wg,...V_,...Pu]),_e=Object.seal(ac(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oe=null,q=null,st=Object.seal(ac(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),wt=!0,se=!0,ze=!1,ce=!0,Re=!1,te=!0,Qe=!1,Kn=!1,Le=null,qt=null,ee=!1,xo=!1,Po=!1,ti=!1,$=!0,X=!1,mt="user-content-",ct=!0,xt=!1,Vt={},At=null,be=ke({},"annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")),Ve=null,Mn=ke({},["audio","video","img","source","image","track"]),Sn=null,ro=ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),io="http://www.w3.org/1998/Math/MathML",ao="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml",je=me,Yn=!1,vc=null,Ql=ke({},[io,ao,me],Ng),tp=Ln(["mi","mo","mn","ms","mtext"]),xc=ke({},tp),P=Ln(["annotation-xml"]),O=ke({},P),W=ke({},["title","style","font","a","script"]),I=null,it=["application/xhtml+xml","text/html"],Q=null,rt=null,lt=n.createElement("form"),zt=function(S){return S instanceof RegExp||S instanceof Function},Ee=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rt&&rt===S)return;(!S||typeof S!="object")&&(S={}),S=Ho(S),I=it.indexOf(S.PARSER_MEDIA_TYPE)===-1?"text/html":S.PARSER_MEDIA_TYPE,Q=I==="application/xhtml+xml"?Ng:Ol,vt=ha(S,"ALLOWED_TAGS",de,{transform:Q}),Gt=ha(S,"ALLOWED_ATTR",Xt,{transform:Q}),vc=ha(S,"ALLOWED_NAMESPACES",Ql,{transform:Ng}),Sn=ha(S,"ADD_URI_SAFE_ATTR",ro,{transform:Q,base:ro}),Ve=ha(S,"ADD_DATA_URI_TAGS",Mn,{transform:Q,base:Mn}),At=ha(S,"FORBID_CONTENTS",be,{transform:Q}),Oe=ha(S,"FORBID_TAGS",Ho({}),{transform:Q}),q=ha(S,"FORBID_ATTR",Ho({}),{transform:Q}),Vt=Co(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?Ho(S.USE_PROFILES):S.USE_PROFILES:!1,wt=S.ALLOW_ARIA_ATTR!==!1,se=S.ALLOW_DATA_ATTR!==!1,ze=S.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=S.SAFE_FOR_TEMPLATES||!1,te=S.SAFE_FOR_XML!==!1,Qe=S.WHOLE_DOCUMENT||!1,xo=S.RETURN_DOM||!1,Po=S.RETURN_DOM_FRAGMENT||!1,ti=S.RETURN_TRUSTED_TYPE||!1,ee=S.FORCE_BODY||!1,$=S.SANITIZE_DOM!==!1,X=S.SANITIZE_NAMED_PROPS||!1,ct=S.KEEP_CONTENT!==!1,xt=S.IN_PLACE||!1,bt=Pj(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:q_,je=typeof S.NAMESPACE=="string"?S.NAMESPACE:me,xc=Gg(S,"MATHML_TEXT_INTEGRATION_POINTS",()=>ke({},tp)),O=Gg(S,"HTML_INTEGRATION_POINTS",()=>ke({},P));let F=Gg(S,"CUSTOM_ELEMENT_HANDLING",()=>ac(null));if(_e=ac(null),Co(F,"tagNameCheck")&&zt(F.tagNameCheck)&&(_e.tagNameCheck=F.tagNameCheck),Co(F,"attributeNameCheck")&&zt(F.attributeNameCheck)&&(_e.attributeNameCheck=F.attributeNameCheck),Co(F,"allowCustomizedBuiltInElements")&&typeof F.allowCustomizedBuiltInElements=="boolean"&&(_e.allowCustomizedBuiltInElements=F.allowCustomizedBuiltInElements),qn(_e),Re&&(se=!1),Po&&(xo=!0),Vt&&(vt=ke({},G_),Gt=ac(null),Vt.html===!0&&(ke(vt,W_),ke(Gt,U_)),Vt.svg===!0&&(ke(vt,Ig),ke(Gt,Wg),ke(Gt,Pu)),Vt.svgFilters===!0&&(ke(vt,Hg),ke(Gt,Wg),ke(Gt,Pu)),Vt.mathMl===!0&&(ke(vt,Fg),ke(Gt,V_),ke(Gt,Pu))),st.tagCheck=null,st.attributeCheck=null,Co(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?st.tagCheck=S.ADD_TAGS:sc(S.ADD_TAGS)&&(vt===de&&(vt=Ho(vt)),ke(vt,S.ADD_TAGS,Q))),Co(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?st.attributeCheck=S.ADD_ATTR:sc(S.ADD_ATTR)&&(Gt===Xt&&(Gt=Ho(Gt)),ke(Gt,S.ADD_ATTR,Q))),Co(S,"ADD_FORBID_CONTENTS")&&sc(S.ADD_FORBID_CONTENTS)&&(At===be&&(At=Ho(At)),ke(At,S.ADD_FORBID_CONTENTS,Q)),ct&&(vt["#text"]=!0),Qe&&ke(vt,["html","head","body"]),vt.table&&(ke(vt,["tbody"]),delete Oe.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw qa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let K=M;M=S.TRUSTED_TYPES_POLICY;try{N=Rt("")}catch(yt){throw M=K,yt}}else S.TRUSTED_TYPES_POLICY===null?(M=void 0,N=""):(M===void 0&&(M=Pt()),M&&typeof N=="string"&&(N=Rt("")));Ln&&Ln(S),rt=S},Bt=ke({},[...Ig,...Hg,...jj]),qe=ke({},[...Fg,...$j]),tn=function(S,F,K){return F.namespaceURI===me?S==="svg":F.namespaceURI===io?S==="svg"&&(K==="annotation-xml"||xc[K]):!!Bt[S]},so=function(S,F,K){return F.namespaceURI===me?S==="math":F.namespaceURI===ao?S==="math"&&O[K]:!!qe[S]},fr=function(S,F,K){return F.namespaceURI===ao&&!O[K]||F.namespaceURI===io&&!xc[K]?!1:!qe[S]&&(W[S]||!Bt[S])},co=function(S){let F=v(S);(!F||!F.tagName)&&(F={namespaceURI:je,tagName:"template"});let K=Ol(S.tagName),yt=Ol(F.tagName);return vc[S.namespaceURI]?S.namespaceURI===ao?tn(K,F,yt):S.namespaceURI===io?so(K,F,yt):S.namespaceURI===me?fr(K,F,yt):!!(I==="application/xhtml+xml"&&vc[S.namespaceURI]):!1},Fe=function(S){Pl(e.removed,{element:S});try{v(S).removeChild(S)}catch{if(m(S),!v(S))throw qa("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Si=function(S,F,K){try{h(S,F)}catch{try{S.removeAttribute(K)}catch{}}},ep=function(S){np(S);let F=g(S);if(F){let yt=[];Ka(F,Kt=>{Pl(yt,Kt)}),Ka(yt,Kt=>{try{m(Kt)}catch{}})}let K=_(S);if(K)for(let yt=K.length-1;yt>=0;--yt){let Kt=K[yt],Qt=Kt&&Kt.name;typeof Qt=="string"&&Si(S,Kt,Qt)}},as=function(S,F,K){if(!K)try{K=F.getAttributeNode(S)}catch{K=null}Pl(e.removed,{attribute:K||null,from:F});try{K?h(F,K):F.removeAttribute(S)}catch{try{F.removeAttribute(S)}catch{}}if(S==="is")if(xo||Po)try{Fe(F)}catch{}else try{F.setAttribute(S,"")}catch{}},NS=function(S){let F=_(S);if(F)for(let K=F.length-1;K>=0;--K){let yt=F[K],Kt=yt&&yt.name;typeof Kt!="string"||Gt[Q(Kt)]||Si(S,yt,Kt)}},np=function(S){let F=[S];for(;F.length>0;){let K=F.pop();B(K)===Io.element&&NS(K);let yt=g(K);if(yt)for(let Kt=yt.length-1;Kt>=0;--Kt)F.push(yt[Kt])}},Ky=function(S,F){return te?S==="patchsrc"||S==="for"&&F!=="label"&&F!=="output":!1},IS=function(S){if(!te)return;let F=[S];for(;F.length>0;){let K=F.pop(),yt=B(K);if(yt===Io.processingInstruction||yt===Io.comment&&oo(Y_,K.data)){try{m(K)}catch{}continue}if(yt===Io.element){let Qt=K,Be=Q(D(K));try{Qt.hasAttribute&&Qt.hasAttribute("patchsrc")&&Qt.removeAttribute("patchsrc"),Qt.hasAttribute&&Qt.hasAttribute("for")&&Ky("for",Be)&&Qt.removeAttribute("for")}catch{}}let Kt=g(K);if(Kt)for(let Qt=Kt.length-1;Qt>=0;--Qt)F.push(Kt[Qt])}},Yy=function(S){let F=null,K=null;if(ee)S="<remove></remove>"+S;else{let Qt=N_(S,/^[\r\n\t ]+/);K=Qt&&Qt[0]}I==="application/xhtml+xml"&&je===me&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");let yt=M?Rt(S):S;if(je===me)try{F=new l().parseFromString(yt,I)}catch{}if(!F||!F.documentElement){F=St.createDocument(je,"template",null);try{F.documentElement.innerHTML=Yn?N:yt}catch{}}let Kt=F.body||F.documentElement;return S&&K&&Kt.insertBefore(n.createTextNode(K),Kt.childNodes[0]||null),je===me?U.call(F,Qe?"html":"body")[0]:Qe?F.documentElement:Kt},Xy=function(S){let F=C?C(S):S.ownerDocument;return pt.call(F||S,S,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},op=function(S){return S=jl(S,Yt," "),S=jl(S,fe," "),S=jl(S,R," "),S},om=function(S){S.normalize();let F=C?C(S):S.ownerDocument,K=pt.call(F||S,S,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),yt=K.nextNode();for(;yt;)yt.data=op(yt.data),yt=K.nextNode();let Kt=S.querySelectorAll?.call(S,"template");Kt&&Ka(Kt,Qt=>{ss(Qt.content)&&om(Qt.content)})},rp=function(S){let F=T?T(S):null;return typeof F!="string"||Q(F)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==_(S)||typeof S.removeAttribute!="function"||typeof S.removeAttributeNode!="function"||typeof S.getAttributeNode!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==w(S)||S.childNodes!==g(S)},ss=function(S){if(!w||typeof S!="object"||!S)return!1;try{return w(S)===Io.documentFragment}catch{return!1}},kc=function(S){if(!w||typeof S!="object"||!S)return!1;try{return typeof w(S)=="number"}catch{return!1}};function Rr(S,F,K){S.length!==0&&Ka(S,yt=>{yt.call(e,F,K,rt)})}let HS=function(S,F){return!!(te&&S.hasChildNodes()&&!kc(S.firstElementChild)&&oo(K_,S.textContent)&&oo(K_,S.innerHTML)||te&&S.namespaceURI===me&&qj[F]&&(kc(S.firstElementChild)||typeof S.textContent=="string"&&oo(Kj[F],S.textContent))||S.nodeType===Io.processingInstruction||te&&S.nodeType===Io.comment&&oo(Y_,S.data))},ip=function(S,F){return S instanceof RegExp?oo(S,F):S instanceof Function&&!!S(F,...[...arguments].slice(2))},FS=function(S,F,K){if(!Oe[F]&&e0(F)&&ip(_e.tagNameCheck,F))return!1;if(ct&&!At[F]){let yt=v(S),Kt=g(S);if(Kt&&yt){let Qt=Kt.length;for(let Be=Qt-1;Be>=0;--Be){let Br=S===K?u(Kt[Be],!0):Kt[Be];yt.insertBefore(Br,f(S))}}}return Fe(S),!0},Zy=function(S,F,K,yt){return S.length===0?F:F===K||F===yt?Ho(F):F},Jy=function(S,F){return S===F||v(S)!==null?!1:(xt&&np(S),!0)},Qy=function(S,F){if(Rr(nt.beforeSanitizeElements,S,null),Jy(S,F))return!0;if(rp(S))return Fe(S),!0;let K=Q(D(S));if(vt=Zy(nt.uponSanitizeElement,vt,de,Le),Rr(nt.uponSanitizeElement,S,{tagName:K,allowedTags:vt}),Jy(S,F))return!0;if(HS(S,K))return Fe(S),!0;if(Oe[K]||!(st.tagCheck instanceof Function&&st.tagCheck(K))&&!vt[K]){let yt=FS(S,K,F);return yt===!1&&Rr(nt.afterSanitizeElements,S,null),yt}if(B(S)===Io.element&&!co(S)||(K==="noscript"||K==="noembed"||K==="noframes")&&oo(Uj,S.innerHTML))return Fe(S),!0;if(Re&&S.nodeType===Io.text){let yt=op(S.textContent);S.textContent!==yt&&(Pl(e.removed,{element:S.cloneNode()}),S.textContent=yt)}return Rr(nt.afterSanitizeElements,S,null),!1},t0=function(S,F,K){if(q[F]||Ky(F,S)||$&&(F==="id"||F==="name")&&(K in n||K in lt))return!1;let yt=Gt[F]||st.attributeCheck instanceof Function&&st.attributeCheck(F,S);return se&&oo(x,F)||wt&&oo(b,F)?!0:yt?Sn[F]||oo(bt,jl(K,H,""))||(F==="src"||F==="xlink:href"||F==="href")&&S!=="script"&&I_(K,"data:")===0&&Ve[S]||ze&&!oo(L,jl(K,H,""))?!0:!K:e0(S)&&ip(_e.tagNameCheck,S)&&ip(_e.attributeNameCheck,F,S)||F==="is"&&_e.allowCustomizedBuiltInElements&&ip(_e.tagNameCheck,K)},WS=ke({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),e0=function(S){return!WS[Ol(S)]&&oo(ot,S)},GS=function(S,F,K,yt){if(M&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!K)switch(p.getAttributeType(S,F)){case"TrustedHTML":return Rt(yt);case"TrustedScriptURL":return Pe(yt)}return yt},US=function(S,F,K,yt){try{return K?S.setAttributeNS(K,F,yt):S.setAttribute(F,yt),!rp(S)||(Fe(S),!1)}catch{return as(F,S),!1}},n0=function(S){Rr(nt.beforeSanitizeAttributes,S,null);let F=S.attributes;if(!F||rp(S))return;Gt=Zy(nt.uponSanitizeAttribute,Gt,Xt,qt);let K={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Gt,forceKeepAttr:void 0},yt=F.length,Kt=Q(S.nodeName);for(;yt--;){let Qt=F[yt],Be=Qt.name,Br=Qt.namespaceURI,Ti=Qt.value,Xn=Q(Be),gr=Ti,lo=Be==="value"?gr:Cj(gr),o0=!1;K.attrName=Xn,K.attrValue=lo,K.keepAttr=!0,K.forceKeepAttr=void 0,Rr(nt.uponSanitizeAttribute,S,K),lo=K.attrValue,X&&(Xn==="id"||Xn==="name")&&I_(lo,mt)!==0&&(as(Be,S,Qt),lo=mt+lo,o0=!0),te&&oo(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,lo)||Xn==="attributename"&&N_(lo,"href")?as(Be,S,Qt):K.forceKeepAttr||(K.keepAttr?!ce&&oo(Vj,lo)?as(Be,S,Qt):(Re&&(lo=op(lo)),t0(Kt,Xn,lo)?(lo=GS(Kt,Xn,Br,lo),lo!==gr&&US(S,Be,Br,lo)&&o0&&L_(e.removed)):as(Be,S,Qt)):as(Be,S,Qt))}Rr(nt.afterSanitizeAttributes,S,null)},ap=function(S){let F=null,K=Xy(S);for(Rr(nt.beforeSanitizeShadowDOM,S,null);F=K.nextNode();)if(Rr(nt.uponSanitizeShadowNode,F,null),Qy(F,S),n0(F),ss(F.content)&&ap(F.content),B(F)===Io.element){let yt=k(F);ss(yt)&&(rm(yt),ap(yt))}Rr(nt.afterSanitizeShadowDOM,S,null)},rm=function(S){let F=[{node:S,shadow:null}];for(;F.length>0;){let K=F.pop();if(K.shadow){ap(K.shadow);continue}let yt=K.node,Kt=B(yt)===Io.element,Qt=g(yt);if(Qt)for(let Be=Qt.length-1;Be>=0;--Be)F.push({node:Qt[Be],shadow:null});if(Kt){let Be=T?T(yt):null;if(typeof Be=="string"&&Q(Be)==="template"){let Br=yt.content;ss(Br)&&F.push({node:Br,shadow:null})}}if(Kt){let Be=k(yt);ss(Be)&&F.push({node:null,shadow:Be},{node:Be,shadow:null})}}};return e.sanitize=function(S){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,yt=null,Kt=null,Qt=null;if(Yn=!S,Yn&&(S="<!-->"),typeof S!="string"&&!kc(S)&&(S=Dj(S),typeof S!="string"))throw qa("dirty is not a string, aborting");if(!e.isSupported)return S;Kn?(vt=Le,Gt=qt):Ee(F),(nt.uponSanitizeElement.length>0||nt.uponSanitizeAttribute.length>0)&&(vt=Ho(vt)),nt.uponSanitizeAttribute.length>0&&(Gt=Ho(Gt)),e.removed=[];let Be=xt&&typeof S!="string"&&kc(S);if(Be){IS(S);let Xn=D(S);if(typeof Xn=="string"){let gr=Q(Xn);if(!vt[gr]||Oe[gr])throw ep(S),qa("root node is forbidden and cannot be sanitized in-place")}if(rp(S))throw ep(S),qa("root node is clobbered and cannot be sanitized in-place");try{rm(S)}catch(gr){throw ep(S),gr}}else if(kc(S))K=Yy("<!---->"),yt=K.ownerDocument.importNode(S,!0),yt.nodeType===Io.element&&yt.nodeName==="BODY"||yt.nodeName==="HTML"?K=yt:K.appendChild(yt),rm(K);else{if(!xo&&!Re&&!Qe&&S.indexOf("<")===-1)return M&&ti?Rt(S):S;if(K=Yy(S),!K)return xo?null:ti?N:""}K&&ee&&Fe(K.firstChild);let Br=Be?S:K;try{let Xn=Xy(Br);for(;Kt=Xn.nextNode();)Qy(Kt,Br),n0(Kt),ss(Kt.content)&&ap(Kt.content)}catch(Xn){throw Be&&(ep(S),Ka(e.removed,gr=>{gr.element&&np(gr.element)})),Xn}if(Be)return Ka(e.removed,Xn=>{Xn.element&&np(Xn.element)}),Re&&om(S),S;if(xo){if(Re&&om(K),Po)for(Qt=Ot.call(K.ownerDocument);K.firstChild;)Qt.appendChild(K.firstChild);else Qt=K;return(Gt.shadowroot||Gt.shadowrootmode)&&(Qt=G.call(o,Qt,!0)),Qt}let Ti=Qe?K.outerHTML:K.innerHTML;return Qe&&vt["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&oo(Wj,K.ownerDocument.doctype.name)&&(Ti="<!DOCTYPE "+K.ownerDocument.doctype.name+">\n"+Ti),Re&&(Ti=op(Ti)),M&&ti?Rt(Ti):Ti},e.setConfig=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ee(S),Kn=!0,Le=vt,qt=Gt},e.clearConfig=function(){rt=null,Kn=!1,Le=null,qt=null,M=z,N=""},e.isValidAttribute=function(S,F,K){rt||Ee({});let yt=Q(S),Kt=Q(F);return t0(yt,Kt,K)},e.addHook=function(S,F){typeof F=="function"&&Co(nt,S)&&Pl(nt[S],F)},e.removeHook=function(S,F){if(Co(nt,S)){if(F!==void 0){let K=Sj(nt[S],F);return K===-1?void 0:Tj(nt[S],K,1)[0]}return L_(nt[S])}},e.removeHooks=function(S){Co(nt,S)&&(nt[S]=[])},e.removeAllHooks=function(){nt=X_()},e}function Yr(t,e,n,o=[]){(!t||typeof t!="object"||Array.isArray(t))&&sn(e,"invalid_evidence","Expected a closed object");let r=t;for(let i of Object.keys(r))[...n,...o].includes(i)||sn("".concat(e,".").concat(i),"invalid_evidence","Unknown evidence field");for(let i of n)Object.hasOwn(r,i)||sn("".concat(e,".").concat(i),"invalid_evidence","Missing evidence field");return r}function yo(t,e,n=!1){return(typeof t!="string"||!n&&!t.trim())&&sn(e,"invalid_evidence","Expected a non-empty string"),t}function fa(t,e){return Array.isArray(t)||sn(e,"invalid_evidence","Expected an array"),t}function Jj(t,e){let n=o=>new DataView(t.buffer,t.byteOffset,t.byteLength).getUint32(o);if(e==="image/png"){if(t.length>=33&&[137,80,78,71,13,10,26,10].every((o,r)=>t[r]===o)&&n(8)===13&&n(12)===1229472850)return[n(16),n(20)]}else if(t[0]===255&&t[1]===216){let o=2;for(;o+4<t.length&&t[o]===255;){let r=t[o+1],i=t[o+2]<<8|t[o+3];if(i<2||o+2+i>t.length)break;if([192,193,194,195,197,198,199,201,202,203,205,206,207].includes(r)&&i>=8)return[t[o+7]<<8|t[o+8],t[o+5]<<8|t[o+6]];o+=i+2}}}function t$(t){let e=new Uint8Array(Math.ceil((t.length+9)/64)*64);e.set(t),e[t.length]=128;let n=new DataView(e.buffer),o=t.length*8;n.setUint32(e.length-8,Math.floor(o/4294967296)),n.setUint32(e.length-4,o>>>0);let r=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],i=new Int32Array(64);for(let a=0;a<e.length;a+=64){for(let f=0;f<16;f++)i[f]=n.getInt32(a+f*4);for(let f=16;f<64;f++){let g=i[f-15],v=i[f-2];i[f]=i[f-16]+(Kr(g,7)^Kr(g,18)^g>>>3)+i[f-7]+(Kr(v,17)^Kr(v,19)^v>>>10)}let[s,c,l,p,d,u,m,h]=r;for(let f=0;f<64;f++){let g=h+(Kr(d,6)^Kr(d,11)^Kr(d,25))+(d&u^~d&m)+Qj[f]+i[f]|0,v=(Kr(s,2)^Kr(s,13)^Kr(s,22))+(s&c^s&l^c&l)|0;h=m,m=u,u=d,d=p+g|0,p=l,l=c,c=s,s=g+v|0}[s,c,l,p,d,u,m,h].forEach((f,g)=>{r[g]=r[g]+f|0})}return r.map(a=>(a>>>0).toString(16).padStart(8,"0")).join("")}function e$(t){if(t.length%4||/[^A-Za-z0-9+/]/.test(t.replace(/={1,2}$/,"")))throw Error("Invalid base64");let e=atob(t);if(btoa(e)!==t)throw Error("Non-canonical base64");let n=new Uint8Array(e.length);for(let o=0;o<n.length;o++)n[o]=e.charCodeAt(o);return n}function r$(t,e){let n=new Map;return{sources:fa(t,"$.sources").map((o,r)=>{let i="$.sources[".concat(r,"]"),a=Yr(o,i,["id","title","origin","mediaType","encoding","data","sha256","size"],["width","height","alt"]);for(let d of["id","title","mediaType","sha256"])yo(a[d],"".concat(i,".").concat(d));e(a.id,"".concat(i,".id"));let s=a.origin,c=s&&Object.hasOwn(s,"uri")?["uri"]:["repo","revision","path"];Yr(s,"".concat(i,".origin"),c);for(let d of c)yo(s[d],"".concat(i,".origin.").concat(d));a.encoding!=="base64"&&sn("".concat(i,".encoding"),"source_encoding","Only original base64 bytes are accepted");let l=a.mediaType;!Z_(l)&&!["image/png","image/jpeg"].includes(l)&&sn("".concat(i,".mediaType"),"unsupported_media","Unsupported media for source ".concat(a.id));let p;try{p=e$(yo(a.data,"".concat(i,".data"),!0))}catch{return sn("".concat(i,".data"),"source_encoding","Invalid base64 for source ".concat(a.id))}if((!Number.isSafeInteger(a.size)||a.size!==p.length)&&sn("".concat(i,".size"),"source_size","Byte size mismatch for source ".concat(a.id)),(!/^[a-f0-9]{64}$/.test(a.sha256)||t$(p)!==a.sha256)&&sn("".concat(i,".sha256"),"source_digest","SHA-256 mismatch for source ".concat(a.id)),Z_(l)){try{n.set(a.id,o$(n$(p)).length)}catch{sn("".concat(i,".data"),"source_encoding","Invalid UTF-8 for source ".concat(a.id))}for(let d of["width","height","alt"])a[d]!==void 0&&sn("".concat(i,".").concat(d),"invalid_evidence","Image metadata on text")}else{yo(a.alt,"".concat(i,".alt"));let d=Jj(p,l);(!d||!Number.isSafeInteger(a.width)||!Number.isSafeInteger(a.height)||d[0]<=0||d[1]<=0||d[0]!==a.width||d[1]!==a.height)&&sn(i,"image_metadata","Image dimensions/signature mismatch for source ".concat(a.id))}return a}),lineCounts:n}}function i$(t,e){try{let{schemaVersion:n,sources:o,citations:r,evidenceGroups:i,annexes:a,...s}=t,c=new Map,l=(M,N)=>{if(!M||typeof M!="object"||Array.isArray(M))return M;let{citationRefs:z,...V}=M;return z!==void 0&&c.set(N,Ug(z,"".concat(N,".citationRefs"))),V};Array.isArray(s.sections)&&(s.sections=s.sections.map((M,N)=>{let z=l(M,"$.sections[".concat(N,"]"));return z?.kind==="optionSet"&&Array.isArray(z.options)?{...z,options:z.options.map((V,gt)=>l(V,"$.sections[".concat(N,"].options[").concat(gt,"]")))}:z}));let p=e(s);if(!p.ok)return p;let d=p.value,u=new Set,m=new Set([d.ref]),h=(M,N)=>{u.has(M)&&sn(N,"duplicate_id","Duplicate id ".concat(M)),u.add(M)};d.sections.forEach(M=>{h(M.id,"$.sections"),m.add(M.id),m.add(M.targetRef),M.kind==="optionSet"&&M.options.forEach(N=>{h(N.id,"$.sections.options"),m.add(N.id),m.add(N.targetRef)})});let{sources:f,lineCounts:g}=r$(o,h),v=new Map(f.map(M=>[M.id,M])),k=fa(r,"$.citations").map((M,N)=>{let z="$.citations[".concat(N,"]"),V=Yr(M,z,["id","sourceId","label","locator"]);for(let Rt of["id","sourceId","label"])yo(V[Rt],"".concat(z,".").concat(Rt));h(V.id,"".concat(z,".id"));let gt=v.get(V.sourceId)??sn("".concat(z,".sourceId"),"unresolved_source","Unknown source ".concat(V.sourceId)),ht=V.locator;return ht?.kind==="lines"?(Yr(ht,"".concat(z,".locator"),["kind","start","end"]),g.has(gt.id)||sn("".concat(z,".locator"),"citation_media","Source ".concat(gt.id," is not text")),(!Number.isSafeInteger(ht.start)||!Number.isSafeInteger(ht.end)||ht.start<1||ht.end<ht.start||ht.end>g.get(gt.id))&&sn("".concat(z,".locator"),"citation_range","Invalid inclusive line range for ".concat(gt.id))):ht?.kind==="image"?(Yr(ht,"".concat(z,".locator"),["kind","caption"]),yo(ht.caption,"".concat(z,".locator.caption")),gt.mediaType.startsWith("image/")||sn("".concat(z,".locator"),"citation_media","Source ".concat(gt.id," is not an image"))):sn("".concat(z,".locator"),"invalid_evidence","Unknown citation locator"),V}),_=new Set(k.map(M=>M.id)),w=(M,N,z,V)=>{let gt=Ug(M,N);for(let ht of gt)z.has(ht)||sn(N,V,"Unresolved reference ".concat(ht));return gt};for(let[M,N]of c)w(N,"".concat(M,".citationRefs"),_,"unresolved_citation");let T=fa(i,"$.evidenceGroups").map((M,N)=>{let z="$.evidenceGroups[".concat(N,"]"),V=Yr(M,z,["id","summary","citationRefs","sourceRefs"]);return h(yo(V.id,"".concat(z,".id")),"".concat(z,".id")),yo(V.summary,"".concat(z,".summary")),w(V.citationRefs,"".concat(z,".citationRefs"),_,"unresolved_citation"),w(V.sourceRefs,"".concat(z,".sourceRefs"),new Set(v.keys()),"unresolved_source"),V}),C=fa(a,"$.annexes").map((M,N)=>{let z="$.annexes[".concat(N,"]"),V=Yr(M,z,["id","title","summary","blocks","backRefs"]);return h(yo(V.id,"".concat(z,".id")),"".concat(z,".id")),yo(V.title,"".concat(z,".title")),yo(V.summary,"".concat(z,".summary")),w(V.backRefs,"".concat(z,".backRefs"),m,"unresolved_target"),fa(V.blocks,"".concat(z,".blocks")).forEach((gt,ht)=>{let Rt="".concat(z,".blocks[").concat(ht,"]"),Pe=gt?.kind;if(Pe==="text"||Pe==="code"){let Pt=Yr(gt,Rt,["kind","text"],Pe==="code"?["language"]:[]);yo(Pt.text,"".concat(Rt,".text"),!0),Pt.language!==void 0&&yo(Pt.language,"".concat(Rt,".language"))}else if(Pe==="table"){let Pt=Yr(gt,Rt,["kind","columns","rows"]),Et=Ug(Pt.columns,"".concat(Rt,".columns"));Et.length||sn(Rt,"invalid_evidence","A table needs columns"),fa(Pt.rows,"".concat(Rt,".rows")).forEach((St,pt)=>{let Ot=fa(St,"".concat(Rt,".rows[").concat(pt,"]"));Ot.forEach((U,G)=>yo(U,"".concat(Rt,".rows[").concat(pt,"][").concat(G,"]"),!0)),Ot.length!==Et.length&&sn(Rt,"invalid_evidence","Table row width mismatch")})}else if(Pe==="references"){let Pt=Yr(gt,Rt,["kind","citationRefs"]);w(Pt.citationRefs,"".concat(Rt,".citationRefs"),_,"unresolved_citation")}else sn("".concat(Rt,".kind"),"invalid_evidence","Unsupported annex block (no decisions or active content)")}),V}),B=(M,N)=>c.has(N)?{...M,citationRefs:c.get(N)}:M,D=d.sections.map((M,N)=>B(M.kind==="optionSet"?{...M,options:M.options.map((z,V)=>B(z,"$.sections[".concat(N,"].options[").concat(V,"]")))}:M,"$.sections[".concat(N,"]")));return{ok:!0,value:{...d,schemaVersion:2,sections:D,sources:f,citations:k,evidenceGroups:T,annexes:C}}}catch(n){if(n instanceof aE)return{ok:!1,issues:[n.issue]};throw n}}function g$(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Q_(t){let e=[],n=r=>(e.push(r),"\0".concat(e.length-1,"\0")),o=g$(t);return o=o.replace(/`([^`]+)`/g,(r,i)=>n("<code>".concat(i,"</code>"))),o=o.replace(/\[([^\]]*)\]\((https:\/\/[^)\s]+)\)/g,(r,i,a)=>{let s=a.replace(/"/g,"%22");return n('<a href="'.concat(s,'">').concat(i,"</a>"))}),o=o.replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>"),o=o.replace(/\*([^*]+)\*/g,"<em>$1</em>"),o.replace(/\u0000(\d+)\u0000/g,(r,i)=>e[Number(i)]??"")}function ju(t,e){return t[e]??""}function Vg(t){return/^- /.test(t)}function y$(t){let e=t.replace(/\r\n?/g,"\n").split("\n"),n=[],o=0;for(;o<e.length;){let r=ju(e,o);if(r.trim()===""){o+=1;continue}if(Vg(r)){let a=[];for(;o<e.length&&Vg(ju(e,o));)a.push("<li>".concat(Q_(ju(e,o).slice(2)),"</li>")),o+=1;n.push("<ul>\n".concat(a.join("\n"),"\n</ul>"));continue}let i=[];for(;o<e.length;){let a=ju(e,o);if(a.trim()===""||Vg(a))break;i.push(Q_(a)),o+=1}n.push("<p>".concat(i.join("\n"),"</p>"))}return n.join("\n")}function b$(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function v$(t){let e=t.startsWith("$")?t.slice(1):t,n=[];for(let o of e.matchAll(/([^.[\]]+)|\[(\d+)\]/g)){let r=o[1]??o[2];r!==void 0&&n.push(b$(r))}return n.length===0?"":"/".concat(n.join("/"))}function x$(t){return{source:"focus",validate(e){let n=t(e);return n.ok?[]:n.issues.map(o=>({code:o.code,message:o.message,pointer:v$(o.path),severity:"error"}))}}}function He(t){return typeof t=="string"&&t.length>0?t:void 0}function lE(t){return Zj.sanitize(t,{ALLOWED_TAGS:w$,ALLOWED_ATTR:_$,ALLOW_DATA_ATTR:!1,ALLOWED_URI_REGEXP:E$})}function S$(t){let e=document.createElement("div");return e.className="st-dossier__prose",e.innerHTML=lE(y$(t)),e}function Vn(t,e,n){let o=document.createElement(t);return o.className=e,o.textContent=n,o}function T$(t,e){return t.some(n=>typeof n=="object"&&!!n&&n.name==="choose-option"&&n.targetRef===e&&n.enabled===!1)}function C$(t,e){let n=He(t.id)??"",o=He(t.label)??"";if(e){let s=Vn("div","st-dossier__option st-dossier__option--disabled",o);return s.setAttribute("data-option-disabled",n),s}let r=document.createElement("button");r.type="button",r.className="st-dossier__option",r.setAttribute("data-option-id",n),r.append(Vn("span","st-dossier__optionLabel",o));let i=He(t.body);i!==void 0&&r.append(Vn("span","st-dossier__optionBody",i));let a=He(t.annotation);return a!==void 0&&a!=="none"&&r.append(Vn("span","st-dossier__optionAnnotation",a)),r}function R$(t,e){let n=He(t.kind)??"";if(n==="prose")return S$(He(t.markdown)??"");if(n==="question"){let o=document.createElement("div");o.className="st-dossier__question",o.setAttribute("data-st-question",He(t.id)??"");let r=Vn("h3","st-dossier__questionText",He(t.question)??"");r.setAttribute("data-st-question-text",""),o.append(r);let i=He(t.state);if(i!==void 0){let a=Vn("span","st-dossier__state",i);a.setAttribute("data-st-question-state",i),o.append(a)}return o}if(n==="optionSet"){let o=document.createElement("div");o.className="st-dossier__options",o.setAttribute("data-st-option-set",He(t.id)??"");let r=He(t.title);r!==void 0&&o.append(Vn("h4","st-dossier__optionsTitle",r));let i=Array.isArray(t.options)?t.options:[];for(let a of i)if(typeof a=="object"&&a){let s=a;o.append(C$(s,T$(e,He(s.id)??"")))}return o}if(n==="outcome"){let o=document.createElement("div");o.className="st-dossier__outcome",o.setAttribute("data-st-outcome",He(t.id)??"");let r=Vn("p","st-dossier__outcomeText",He(t.statement)??"");r.setAttribute("data-st-outcome-statement",""),o.append(r);let i=He(t.modality);return i!==void 0&&o.append(Vn("span","st-dossier__modality",i)),o}if(n==="amendmentTrace"){let o=document.createElement("ol");o.className="st-dossier__trace",o.setAttribute("data-st-trace",He(t.id)??"");let r=Array.isArray(t.steps)?t.steps:[];for(let i of r)if(typeof i=="object"&&i){let a=i,s=He(a.at)??"",c=He(a.author)??"",l=Vn("li","st-dossier__traceStep",He(a.summary)??"");l.setAttribute("data-st-trace-step","".concat(s," ").concat(c).trim()),o.append(l)}return o}if(n==="diagram"){let o=document.createElement("figure");o.className="st-dossier__diagram",o.setAttribute("data-st-diagram",He(t.id)??"");let r=He(t.alt);r!==void 0&&o.append(Vn("figcaption","st-dossier__diagramAlt",r));let i=Vn("pre","st-dossier__diagramSource",He(t.source)??"");return i.setAttribute("data-st-diagram-source",""),o.append(i),o}return Vn("div","st-dossier__unknownSection",n)}function B$(t,e,n){let o=e??{},r=Array.isArray(o.sections)?o.sections:[],i=Array.isArray(o.interactions)?o.interactions:[],a=document.createElement("article");a.className="st-dossier",a.setAttribute("data-st-dossier","");let s=document.createElement("header");s.className="st-dossier__header";let c=He(o.subject);c!==void 0&&s.append(Vn("p","st-dossier__subject",c)),s.append(Vn("h2","st-dossier__title",He(o.title)??"")),s.setAttribute("data-st-dossier-title",""),a.append(s);for(let u of r)typeof u=="object"&&u&&a.append(R$(u,i));let l=Array.isArray(o.amendmentTrace)?o.amendmentTrace:[];if(l.length>0){let u=document.createElement("footer");u.className="st-dossier__traceFooter",u.setAttribute("data-st-trace-footer","");for(let m of l)if(typeof m=="object"&&m){let h=m,f=Vn("p","st-dossier__traceEntry",He(h.summary)??"");f.setAttribute("data-st-trace-at",He(h.at)??""),u.append(f)}a.append(u)}let p=He((o.provenance??{}).source);if(p!==void 0){let u=Vn("p","st-dossier__provenance",p);u.setAttribute("data-st-provenance",p),a.append(u)}let d=u=>{let m=u.target;if(!(m instanceof Element))return;let h=m.closest("[data-option-id]");h!==null&&t.contains(h)&&n(h.getAttribute("data-option-id")??"")};return t.addEventListener("click",d),t.replaceChildren(a),()=>{t.removeEventListener("click",d),t.replaceChildren()}}var tE,z_,wj,_j,Ej,Ln,qn,ac,eE,nE,oE,Ka,Sj,L_,Pl,Tj,sc,Ol,Ng,N_,jl,I_,Cj,Rj,Bj,H_,F_,Co,$l,oo,qa,W_,Ig,Hg,jj,Fg,$j,G_,U_,Wg,V_,Pu,Oj,zj,Lj,Nj,Ij,q_,Hj,Fj,Wj,Gj,K_,Y_,Uj,Vj,Io,rE,qj,Kj,Yj,Xj,X_,ha,Gg,Zj,aE,sn,Ug,Qj,Kr,n$,o$,Z_,$u,cn,Ro,zl,sE,a$,s$,c$,cE,l$,p$,d$,u$,J_,m$,h$,f$,k$,w$,_$,E$,Kg=Tn(()=>{"use strict";tE=Object.entries,z_=Object.setPrototypeOf,wj=Object.isFrozen,_j=Object.getPrototypeOf,Ej=Object.getOwnPropertyDescriptor,Ln=Object.freeze,qn=Object.seal,ac=Object.create,eE=typeof Reflect<"u"&&Reflect,nE=eE.apply,oE=eE.construct;Ln||=function(t){return t},qn||=function(t){return t},nE||=function(t,e){var n=[...arguments].slice(2);return t.apply(e,n)},oE||=function(t){return new t(...[...arguments].slice(1))};Ka=_n(Array.prototype.forEach),Sj=_n(Array.prototype.lastIndexOf),L_=_n(Array.prototype.pop),Pl=_n(Array.prototype.push),Tj=_n(Array.prototype.splice),sc=Array.isArray,Ol=_n(String.prototype.toLowerCase),Ng=_n(String.prototype.toString),N_=_n(String.prototype.match),jl=_n(String.prototype.replace),I_=_n(String.prototype.indexOf),Cj=_n(String.prototype.trim),Rj=_n(Number.prototype.toString),Bj=_n(Boolean.prototype.toString),H_=typeof BigInt>"u"?null:_n(BigInt.prototype.toString),F_=typeof Symbol>"u"?null:_n(Symbol.prototype.toString),Co=_n(Object.prototype.hasOwnProperty),$l=_n(Object.prototype.toString),oo=_n(RegExp.prototype.test),qa=Aj(TypeError);W_=Ln("a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")),Ig=Ln("svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")),Hg=Ln(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),jj=Ln(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Fg=Ln("math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")),$j=Ln(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G_=Ln(["#text"]),U_=Ln("accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")),Wg=Ln("accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")),V_=Ln("accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")),Pu=Ln(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Oj=qn(/{{[\w\W]*|^[\w\W]*}}/g),zj=qn(/<%[\w\W]*|^[\w\W]*%>/g),Lj=qn(/\${[\w\W]*/g),Nj=qn(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ij=qn(/^aria-[\-\w]+$/),q_=qn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hj=qn(/^(?:\w+script|data):/i),Fj=qn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wj=qn(/^html$/i),Gj=qn(/^[a-z][.\w]*(-[.\w]+)+$/i),K_=qn(/<[/\w!]/g),Y_=qn(/<[/\w]/g),Uj=qn(/<\/no(script|embed|frames)/i),Vj=qn(/\/>/i),Io={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},rE=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],qj=Ln(ke({},rE)),Kj=(function(){let t={};return Ka(rE,e=>{t[e]=qn(RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),Ln(t)})(),Yj=function(){return typeof window>"u"?null:window},Xj=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));let r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},X_=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ha=function(t,e,n,o){return Co(t,e)&&sc(t[e])?ke(o.base?Ho(o.base):{},t[e],o.transform):n},Gg=function(t,e,n){let o=Co(t,e)?t[e]:void 0;return o&&typeof o=="object"?Ho(o):n()};Zj=iE(),aE=class extends Error{issue;constructor(t){super(t.message),this.issue=t}},sn=(t,e,n)=>{throw new aE({path:t,code:e,message:n})};Ug=(t,e)=>fa(t,e).map((n,o)=>yo(n,"".concat(e,"[").concat(o,"]")));Qj=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Kr=(t,e)=>t>>>e|t<<32-e;n$=t=>new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(t),o$=t=>t.split(/\r\n|\n|\r/),Z_=t=>/^text\/[a-z0-9.+-]+$/.test(t)||["application/json","application/yaml","application/x-yaml","application/x-ndjson"].includes(t);$u=t=>typeof t=="object"&&!!t&&!Array.isArray(t),cn=(t,e,n)=>({path:t,code:e,message:n}),Ro=(t,e,n,o,r,i)=>{if(!$u(t)){i.push(cn(e,"invalid_type","expected an object"));return}let a=new Set(n);for(let s of Object.keys(t))a.has(s)||i.push(cn("".concat(e,".").concat(s),"unknown_field","field not in the closed schema"));for(let s of o)t[s]===void 0&&i.push(cn("".concat(e,".").concat(s),"missing_field","required field is missing"));for(let s of r)t[s]!==void 0&&typeof t[s]!="string"&&i.push(cn("".concat(e,".").concat(s),"invalid_type","expected a string"));return t},zl=(t,e,n,o)=>{(typeof t!="string"||!n.includes(t))&&o.push(cn(e,"invalid_enum","expected one of: ".concat(n.join(" | "))))},sE=["ref","subject","title","hash","cursor","sections","interactions","provenance","amendmentTrace"],a$=["ref","subject","title","hash","cursor"],s$=[...sE,"readability"],c$=(t,e,n)=>{let o=n.length,r=Ro(t,e,["kind","id","targetRef","label","body","annotation","annotationComment","consequence"],["kind","id","targetRef","label","annotation"],["id","targetRef","label","body","annotationComment","consequence"],n);if(r!==void 0&&(r.kind!=="option"&&n.push(cn("".concat(e,".kind"),"invalid_discriminator",'expected "option"')),zl(r.annotation,"".concat(e,".annotation"),["none","accept","reject","comment"],n),n.length===o))return{kind:"option",id:r.id,targetRef:r.targetRef,label:r.label,...typeof r.body=="string"?{body:r.body}:{},annotation:r.annotation,...typeof r.annotationComment=="string"?{annotationComment:r.annotationComment}:{},...typeof r.consequence=="string"?{consequence:r.consequence}:{}}},cE=(t,e,n)=>{let o=n.length,r=Ro(t,e,["at","author","summary"],["at","author","summary"],["at","author","summary"],n);if(r!==void 0&&n.length===o)return{at:r.at,author:r.author,summary:r.summary}},l$=(t,e,n)=>{if(!$u(t)){n.push(cn(e,"invalid_type","expected an object"));return}let o=t.kind;if(o!=="prose"&&o!=="question"&&o!=="optionSet"&&o!=="outcome"&&o!=="amendmentTrace"&&o!=="diagram"){n.push(cn("".concat(e,".kind"),o===void 0?"missing_field":"unknown_node_kind","unknown section kind ".concat(typeof o=="string"?'"'.concat(o,'"'):" discriminant")));return}let r=n.length;switch(o){case"prose":{let i=Ro(t,e,["kind","id","targetRef","markdown","questionId"],["kind","id","targetRef","markdown"],["id","targetRef","markdown","questionId"],n);return i===void 0||n.length!==r?void 0:{kind:"prose",id:i.id,targetRef:i.targetRef,markdown:i.markdown,...typeof i.questionId=="string"?{questionId:i.questionId}:{}}}case"question":{let i=Ro(t,e,["kind","id","targetRef","question","recommendedAnswer","answer","state","context","readingTimeMinutes","recommendedOptionId"],["kind","id","targetRef","question","state"],["id","targetRef","question","recommendedAnswer","answer","context","recommendedOptionId"],n);return i===void 0||(zl(i.state,"".concat(e,".state"),["open","answered","validated"],n),i.readingTimeMinutes!==void 0&&(typeof i.readingTimeMinutes!="number"||!Number.isFinite(i.readingTimeMinutes))&&n.push(cn("".concat(e,".readingTimeMinutes"),"invalid_type","expected a finite number")),n.length!==r)?void 0:{kind:"question",id:i.id,targetRef:i.targetRef,question:i.question,...typeof i.recommendedAnswer=="string"?{recommendedAnswer:i.recommendedAnswer}:{},...typeof i.answer=="string"?{answer:i.answer}:{},state:i.state,...typeof i.context=="string"?{context:i.context}:{},...typeof i.recommendedOptionId=="string"?{recommendedOptionId:i.recommendedOptionId}:{},...typeof i.readingTimeMinutes=="number"?{readingTimeMinutes:i.readingTimeMinutes}:{}}}case"optionSet":{let i=Ro(t,e,["kind","id","targetRef","title","options","questionId"],["kind","id","targetRef","options"],["id","targetRef","title","questionId"],n);if(i===void 0)return;let a=[];return Array.isArray(i.options)?i.options.forEach((s,c)=>{let l=c$(s,"".concat(e,".options[").concat(c,"]"),n);l!==void 0&&a.push(l)}):n.push(cn("".concat(e,".options"),"invalid_type","expected an array")),n.length===r?{kind:"optionSet",id:i.id,targetRef:i.targetRef,...typeof i.title=="string"?{title:i.title}:{},options:a,...typeof i.questionId=="string"?{questionId:i.questionId}:{}}:void 0}case"outcome":{let i=Ro(t,e,["kind","id","targetRef","modality","statement","questionId"],["kind","id","targetRef","modality","statement"],["id","targetRef","statement","questionId"],n);return i===void 0||(zl(i.modality,"".concat(e,".modality"),["decision","orientation","amendment","comment"],n),n.length!==r)?void 0:{kind:"outcome",id:i.id,targetRef:i.targetRef,modality:i.modality,statement:i.statement,...typeof i.questionId=="string"?{questionId:i.questionId}:{}}}case"amendmentTrace":{let i=Ro(t,e,["kind","id","targetRef","steps"],["kind","id","targetRef","steps"],["id","targetRef"],n);if(i===void 0)return;let a=[];return Array.isArray(i.steps)?i.steps.forEach((s,c)=>{let l=cE(s,"".concat(e,".steps[").concat(c,"]"),n);l!==void 0&&a.push(l)}):n.push(cn("".concat(e,".steps"),"invalid_type","expected an array")),n.length===r?{kind:"amendmentTrace",id:i.id,targetRef:i.targetRef,steps:a}:void 0}case"diagram":{let i=Ro(t,e,["kind","id","targetRef","syntax","source","alt","scene"],["kind","id","targetRef","syntax","source","alt"],["id","targetRef","source","alt"],n);return i===void 0||(zl(i.syntax,"".concat(e,".syntax"),["mermaid","plantuml"],n),i.scene!==void 0&&!$u(i.scene)&&n.push(cn("".concat(e,".scene"),"invalid_type","expected a diagram-core SemanticDocument object")),n.length!==r)?void 0:{kind:"diagram",id:i.id,targetRef:i.targetRef,syntax:i.syntax,source:i.source,alt:i.alt,...i.scene===void 0?{}:{scene:i.scene}}}}},p$=(t,e,n)=>{let o=n.length,r=Ro(t,e,["name","targetRef","label","enabled"],["name","targetRef","label","enabled"],["name","targetRef","label"],n);if(r!==void 0&&(r.enabled!==!1&&n.push(cn("".concat(e,".enabled"),"enabled_action","snapshot interactions must stay disabled (enabled:false)")),n.length===o))return{name:r.name,targetRef:r.targetRef,label:r.label,enabled:!1}},d$=(t,e,n)=>{let o=n.length,r=Ro(t,e,["term","definition"],["term","definition"],["term","definition"],n);if(r!==void 0&&n.length===o)return{term:r.term,definition:r.definition}},u$=(t,e,n)=>{let o=n.length,r=Ro(t,e,["ownerRequestQuote","noOwnerRequest","stakes","stakesLevel","readingBudgetMinutes","glossary"],[],["ownerRequestQuote","stakes"],n);if(r===void 0)return;r.stakesLevel!==void 0&&zl(r.stakesLevel,"".concat(e,".stakesLevel"),["low","medium","high"],n),r.noOwnerRequest!==void 0&&typeof r.noOwnerRequest!="boolean"&&n.push(cn("".concat(e,".noOwnerRequest"),"invalid_type","expected a boolean")),r.readingBudgetMinutes!==void 0&&(typeof r.readingBudgetMinutes!="number"||!Number.isFinite(r.readingBudgetMinutes))&&n.push(cn("".concat(e,".readingBudgetMinutes"),"invalid_type","expected a finite number"));let i;if(r.glossary!==void 0&&(i=[],Array.isArray(r.glossary)?r.glossary.forEach((a,s)=>{let c=d$(a,"".concat(e,".glossary[").concat(s,"]"),n);c!==void 0&&i.push(c)}):n.push(cn("".concat(e,".glossary"),"invalid_type","expected an array"))),n.length===o)return{...typeof r.ownerRequestQuote=="string"?{ownerRequestQuote:r.ownerRequestQuote}:{},...typeof r.noOwnerRequest=="boolean"?{noOwnerRequest:r.noOwnerRequest}:{},...typeof r.stakes=="string"?{stakes:r.stakes}:{},...r.stakesLevel===void 0?{}:{stakesLevel:r.stakesLevel},...typeof r.readingBudgetMinutes=="number"?{readingBudgetMinutes:r.readingBudgetMinutes}:{},...i===void 0?{}:{glossary:i}}},J_=t=>{let e=[],n=Ro(t,"$",[...s$],[...sE],[...a$],e);if(n===void 0)return{ok:!1,issues:e};let o=[];Array.isArray(n.sections)?n.sections.forEach((l,p)=>{let d=l$(l,"$.sections[".concat(p,"]"),e);d!==void 0&&o.push(d)}):e.push(cn("$.sections","invalid_type","expected an array"));let r=[];Array.isArray(n.interactions)?n.interactions.forEach((l,p)=>{let d=p$(l,"$.interactions[".concat(p,"]"),e);d!==void 0&&r.push(d)}):e.push(cn("$.interactions","invalid_type","expected an array"));let i,a=Ro(n.provenance,"$.provenance",["source","readAt","comprehensionEvidence"],["source","readAt"],["source","readAt"],e);if(a!==void 0){let l;if(a.comprehensionEvidence!==void 0){let p=e.length,d=Ro(a.comprehensionEvidence,"$.provenance.comprehensionEvidence",["subject","dossierHash","signature"],["subject","dossierHash"],["subject","dossierHash","signature"],e);d!==void 0&&e.length===p&&(l={subject:d.subject,dossierHash:d.dossierHash,...typeof d.signature=="string"?{signature:d.signature}:{}})}i={source:a.source,readAt:a.readAt,...l===void 0?{}:{comprehensionEvidence:l}}}let s=[];Array.isArray(n.amendmentTrace)?n.amendmentTrace.forEach((l,p)=>{let d=cE(l,"$.amendmentTrace[".concat(p,"]"),e);d!==void 0&&s.push(d)}):e.push(cn("$.amendmentTrace","invalid_type","expected an array"));let c;return n.readability!==void 0&&(c=u$(n.readability,"$.readability",e)),e.length>0||i===void 0||n.readability!==void 0&&c===void 0||typeof n.ref!="string"||typeof n.subject!="string"||typeof n.title!="string"||typeof n.hash!="string"||typeof n.cursor!="string"?{ok:!1,issues:e}:{ok:!0,value:{ref:n.ref,subject:n.subject,title:n.title,hash:n.hash,cursor:n.cursor,sections:o,interactions:r,provenance:i,amendmentTrace:s,...c===void 0?{}:{readability:c}}}},m$=t=>$u(t)&&Object.hasOwn(t,"schemaVersion")?t.schemaVersion===2?i$(t,J_):{ok:!1,issues:[cn("$.schemaVersion","unsupported_version","Supported explicit version: 2; omit schemaVersion for legacy v1")]}:J_(t),h$=t=>{let e=[],n=new Map,o=(a,s)=>{let c=n.get(a);c===void 0?n.set(a,s):e.push(cn(s,"duplicate_id",'node id "'.concat(a,'" already used at ').concat(c)))};t.sections.forEach((a,s)=>{let c="$.sections[".concat(s,"]");o(a.id,"".concat(c,".id")),a.kind==="optionSet"&&a.options.forEach((l,p)=>{o(l.id,"".concat(c,".options[").concat(p,"].id"))})});let r=new Set([t.ref]);for(let a of t.sections)if(r.add(a.id),r.add(a.targetRef),a.kind==="optionSet")for(let s of a.options)r.add(s.id),r.add(s.targetRef);t.interactions.forEach((a,s)=>{r.has(a.targetRef)||e.push(cn("$.interactions[".concat(s,"].targetRef"),"unresolved_target",'interaction target "'.concat(a.targetRef,'" resolves to no node')))});let i=t.provenance.comprehensionEvidence;return i!==void 0&&i.dossierHash!==t.hash&&e.push(cn("$.provenance.comprehensionEvidence.dossierHash","evidence_mismatch","comprehension evidence does not match the snapshot hash")),e},f$=t=>{let e=m$(t);if(!e.ok)return e;let n=h$(e.value);return n.length>0?{ok:!1,issues:n}:e};k$=x$(f$);w$=["p","ul","li","code","a","strong","em"],_$=["href"],E$=/^https:\/\/[^\s"'<>]+$/i});var pE={};Ci(pE,{default:()=>A$});var A$,dE=Tn(()=>{"use strict";A$="/* Generated by packages/themes/scripts/build-css.mjs. */\n/* Theme: Sent Tech Forge (forge) */\n/* Dark mode: 3 blocks (light + auto + explicit) */\n[data-st-theme=\"forge\"] {\n color-scheme: light;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-foundation-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-foundation-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: #ffffff;\n --st-semantic-surface-subtle: #f8fafc;\n --st-semantic-surface-raised: #ffffff;\n --st-semantic-surface-inverse: #0f172a;\n --st-semantic-surface-overlay: rgb(15 23 42 / 0.48);\n --st-semantic-text-primary: #0f172a;\n --st-semantic-text-secondary: #475569;\n --st-semantic-text-muted: #64748b;\n --st-semantic-text-inverse: #ffffff;\n --st-semantic-text-link: oklch(50% 0.134 242.749);\n --st-semantic-border-subtle: #e2e8f0;\n --st-semantic-border-strong: #94a3b8;\n --st-semantic-border-interactive: oklch(50% 0.134 242.749);\n --st-semantic-action-primary: hsl(215 70% 25%);\n --st-semantic-action-primaryHover: oklch(32% 0.11 242);\n --st-semantic-action-primaryText: hsl(0 0% 100%);\n --st-semantic-action-secondary: #f8fafc;\n --st-semantic-action-secondaryHover: #e2e8f0;\n --st-semantic-action-secondaryText: #0f172a;\n --st-semantic-action-danger: #dc2626;\n --st-semantic-feedback-success: #16a34a;\n --st-semantic-feedback-warning: #d97706;\n --st-semantic-feedback-error: #dc2626;\n --st-semantic-feedback-info: #2563eb;\n --st-semantic-status-pending: #d97706;\n --st-semantic-status-processing: #2563eb;\n --st-semantic-status-completed: #16a34a;\n --st-semantic-status-failed: #dc2626;\n --st-semantic-data-category1: #4E79A7;\n --st-semantic-data-category2: #F28E2B;\n --st-semantic-data-category3: #E15759;\n --st-semantic-data-category4: #76B7B2;\n --st-semantic-data-category5: #59A14F;\n --st-semantic-data-category6: #EDC948;\n --st-semantic-data-category7: #B07AA1;\n --st-semantic-data-category8: #FF9DA7;\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: hsl(215 70% 25%);\n --st-component-button-primaryText: hsl(0 0% 100%);\n --st-component-button-secondaryBackground: #f8fafc;\n --st-component-button-secondaryBorder: #e2e8f0;\n --st-component-button-secondaryHoverBackground: #e2e8f0;\n --st-component-button-secondaryText: #0f172a;\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(32% 0.11 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(50% 0.134 242.749);\n --st-component-link-hoverText: hsl(215 70% 25%);\n --st-component-link-disabledText: #64748b;\n --st-component-link-focusRing: oklch(50% 0.134 242.749);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: hsl(215 70% 25%);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: #64748b;\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: #ffffff;\n --st-component-alert-text: #0f172a;\n --st-component-alert-border: #e2e8f0;\n --st-component-alert-infoBorder: #2563eb;\n --st-component-alert-successBorder: #16a34a;\n --st-component-alert-warningBorder: #d97706;\n --st-component-alert-errorBorder: #dc2626;\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid #e2e8f0;\n --st-component-alert-borderRight: 1px solid #e2e8f0;\n --st-component-alert-borderBottom: 1px solid #e2e8f0;\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: #0f172a;\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: #f8fafc;\n --st-component-tag-neutralText: #475569;\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, #2563eb 14%, white);\n --st-component-badge-infoText: #2563eb;\n --st-component-card-background: #ffffff;\n --st-component-card-border: #e2e8f0;\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: #ffffff;\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: #ffffff;\n --st-component-menu-border: #e2e8f0;\n --st-component-menu-text: #0f172a;\n --st-component-menu-itemHoverBackground: #f8fafc;\n --st-component-menu-dangerText: #dc2626;\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: #64748b;\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-popover-background: #ffffff;\n --st-component-popover-border: #e2e8f0;\n --st-component-popover-text: #0f172a;\n --st-component-popover-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: #ffffff;\n --st-component-dropdown-border: #e2e8f0;\n --st-component-dropdown-text: #0f172a;\n --st-component-dropdown-optionHoverBackground: #f8fafc;\n --st-component-dropdown-selectedBackground: hsl(215 70% 25%);\n --st-component-dropdown-selectedText: hsl(0 0% 100%);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-input-background: #ffffff;\n --st-component-input-border: #e2e8f0;\n --st-component-input-focusRing: oklch(50% 0.134 242.749);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: #0f172a;\n --st-component-field-helpText: #475569;\n --st-component-field-errorText: #dc2626;\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: #ffffff;\n --st-component-control-text: #0f172a;\n --st-component-control-placeholderText: #64748b;\n --st-component-control-border: #e2e8f0;\n --st-component-control-hoverBorder: #94a3b8;\n --st-component-control-hoverBackground: #f8fafc;\n --st-component-control-focusRing: oklch(50% 0.134 242.749);\n --st-component-control-invalidBorder: #dc2626;\n --st-component-control-disabledBackground: #f8fafc;\n --st-component-control-disabledText: #64748b;\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderRight: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderBottom: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderLeft: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: #94a3b8;\n --st-component-control-anatomy-states-focus-border: oklch(50% 0.134 242.749);\n --st-component-control-anatomy-states-disabled-bg: #f8fafc;\n --st-component-control-anatomy-states-disabled-text: #64748b;\n --st-component-selection-checkedBackground: hsl(215 70% 25%);\n --st-component-selection-checkedText: hsl(0 0% 100%);\n --st-component-selection-border: #e2e8f0;\n --st-component-selection-switchTrack: #94a3b8;\n --st-component-selection-switchTrackChecked: hsl(215 70% 25%);\n --st-component-selection-switchThumb: #ffffff;\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: #0f172a;\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: #0f172a;\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(15 23 42 / 0.48);\n --st-component-overlay-surface: #ffffff;\n --st-component-overlay-border: #e2e8f0;\n --st-component-overlay-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(15 23 42 / 0.48);\n --st-component-drawer-surface: #ffffff;\n --st-component-drawer-border: #e2e8f0;\n --st-component-drawer-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: #f8fafc;\n --st-component-emptyState-border: #e2e8f0;\n --st-component-emptyState-titleText: #0f172a;\n --st-component-emptyState-messageText: #475569;\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: hsl(215 70% 25%);\n --st-component-loadingState-track: #f8fafc;\n --st-component-loadingState-text: #475569;\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: #0f172a;\n --st-component-tooltip-text: #ffffff;\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: #ffffff;\n --st-component-toast-text: #0f172a;\n --st-component-toast-border: #e2e8f0;\n --st-component-toast-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: #2563eb;\n --st-component-toast-successBorder: #16a34a;\n --st-component-toast-warningBorder: #d97706;\n --st-component-toast-errorBorder: #dc2626;\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: #f8fafc;\n --st-component-dataTable-rowBackground: #ffffff;\n --st-component-dataTable-rowHoverBackground: #f8fafc;\n --st-component-dataTable-border: #e2e8f0;\n --st-component-dataTable-text: #0f172a;\n --st-component-dataTable-captionText: #475569;\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: #0f172a;\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: #475569;\n --st-component-tabs-border: #e2e8f0;\n --st-component-tabs-indicator: hsl(215 70% 25%);\n --st-component-tabs-panelBackground: #ffffff;\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: #0f172a;\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: #ffffff;\n --st-component-pagination-border: #e2e8f0;\n --st-component-pagination-text: #0f172a;\n --st-component-pagination-activeBackground: hsl(215 70% 25%);\n --st-component-pagination-activeText: hsl(0 0% 100%);\n --st-component-pagination-disabledText: #64748b;\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: #e2e8f0;\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: #ffffff;\n --st-component-paginationNav-border: #e2e8f0;\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: #0f172a;\n --st-component-paginationNav-hoverBackground: #f8fafc;\n --st-component-paginationNav-activeBackground: hsl(215 70% 25%);\n --st-component-paginationNav-activeText: hsl(0 0% 100%);\n --st-component-paginationNav-disabledText: #64748b;\n --st-component-paginationNav-ellipsisText: #64748b;\n --st-component-breadcrumb-text: #475569;\n --st-component-breadcrumb-currentText: #0f172a;\n --st-component-breadcrumb-separator: #64748b;\n --st-component-breadcrumb-linkText: oklch(50% 0.134 242.749);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: #ffffff;\n --st-component-sideNav-border: #e2e8f0;\n --st-component-sideNav-itemText: #475569;\n --st-component-sideNav-activeBackground: #f8fafc;\n --st-component-sideNav-activeText: #0f172a;\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, hsl(215 70% 25%) 12%, transparent);\n --st-component-selectableRow-selectedAccent: hsl(215 70% 25%);\n --st-component-selectableRow-selectedText: color-mix(in oklch, hsl(215 70% 25%) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, hsl(215 70% 25%) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: hsl(215 70% 25%);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, hsl(215 70% 25%) 70%, white);\n --st-component-chat-userBubbleBackground: hsl(215 70% 25%);\n --st-component-chat-userBubbleText: hsl(0 0% 100%);\n --st-component-chat-assistantBubbleBackground: #f8fafc;\n --st-component-chat-assistantBubbleText: #0f172a;\n --st-component-chat-composerSurface: #ffffff;\n --st-component-chat-toolCallSurface: #f8fafc;\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: #0f172a;\n --st-component-graph-panelText: #ffffff;\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: #4E79A7;\n --st-component-graph-community2: #F28E2B;\n --st-component-graph-community3: #E15759;\n --st-component-graph-community4: #76B7B2;\n}\n\n\n@media (prefers-color-scheme: dark) {\n color-scheme: dark;\n :root:not([data-color-mode=\"light\"]) {\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: hsl(215 70% 55%);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: hsl(0 0% 100%);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: hsl(215 70% 55%);\n --st-component-button-primaryText: hsl(0 0% 100%);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: hsl(215 70% 55%);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: hsl(215 70% 55%);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: hsl(215 70% 55%);\n --st-component-dropdown-selectedText: hsl(0 0% 100%);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: hsl(215 70% 55%);\n --st-component-selection-checkedText: hsl(0 0% 100%);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: hsl(215 70% 55%);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: hsl(215 70% 55%);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: hsl(215 70% 55%);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: hsl(215 70% 55%);\n --st-component-pagination-activeText: hsl(0 0% 100%);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: hsl(215 70% 55%);\n --st-component-paginationNav-activeText: hsl(0 0% 100%);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, hsl(215 70% 55%) 12%, transparent);\n --st-component-selectableRow-selectedAccent: hsl(215 70% 55%);\n --st-component-selectableRow-selectedText: color-mix(in oklch, hsl(215 70% 55%) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, hsl(215 70% 55%) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: hsl(215 70% 55%);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, hsl(215 70% 55%) 70%, white);\n --st-component-chat-userBubbleBackground: hsl(215 70% 55%);\n --st-component-chat-userBubbleText: hsl(0 0% 100%);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n\n}\n\n:root[data-color-mode=\"dark\"] {\n color-scheme: dark;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: hsl(215 70% 55%);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: hsl(0 0% 100%);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: hsl(215 70% 55%);\n --st-component-button-primaryText: hsl(0 0% 100%);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: hsl(215 70% 55%);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: hsl(215 70% 55%);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: hsl(215 70% 55%);\n --st-component-dropdown-selectedText: hsl(0 0% 100%);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: hsl(215 70% 55%);\n --st-component-selection-checkedText: hsl(0 0% 100%);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: hsl(215 70% 55%);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: hsl(215 70% 55%);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: hsl(215 70% 55%);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: hsl(215 70% 55%);\n --st-component-pagination-activeText: hsl(0 0% 100%);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: hsl(215 70% 55%);\n --st-component-paginationNav-activeText: hsl(0 0% 100%);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, hsl(215 70% 55%) 12%, transparent);\n --st-component-selectableRow-selectedAccent: hsl(215 70% 55%);\n --st-component-selectableRow-selectedText: color-mix(in oklch, hsl(215 70% 55%) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, hsl(215 70% 55%) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: hsl(215 70% 55%);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, hsl(215 70% 55%) 70%, white);\n --st-component-chat-userBubbleBackground: hsl(215 70% 55%);\n --st-component-chat-userBubbleText: hsl(0 0% 100%);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n"});var uE={};Ci(uE,{default:()=>M$});var M$,mE=Tn(()=>{"use strict";M$="/* Generated by packages/themes/scripts/build-css.mjs. */\n/* Theme: Entropic (entropic) */\n/* Dark mode: 3 blocks (light + auto + explicit) */\n[data-st-theme=\"entropic\"] {\n color-scheme: light;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-foundation-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-foundation-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: #ffffff;\n --st-semantic-surface-subtle: #f8fafc;\n --st-semantic-surface-raised: #ffffff;\n --st-semantic-surface-inverse: #0f172a;\n --st-semantic-surface-overlay: rgb(15 23 42 / 0.48);\n --st-semantic-text-primary: #0f172a;\n --st-semantic-text-secondary: #475569;\n --st-semantic-text-muted: #64748b;\n --st-semantic-text-inverse: #ffffff;\n --st-semantic-text-link: oklch(50% 0.134 242.749);\n --st-semantic-border-subtle: #e2e8f0;\n --st-semantic-border-strong: #94a3b8;\n --st-semantic-border-interactive: oklch(50% 0.134 242.749);\n --st-semantic-action-primary: oklch(50% 0.134 242.749);\n --st-semantic-action-primaryHover: oklch(32% 0.11 242);\n --st-semantic-action-primaryText: #ffffff;\n --st-semantic-action-secondary: #f8fafc;\n --st-semantic-action-secondaryHover: #e2e8f0;\n --st-semantic-action-secondaryText: #0f172a;\n --st-semantic-action-danger: #dc2626;\n --st-semantic-feedback-success: #16a34a;\n --st-semantic-feedback-warning: #d97706;\n --st-semantic-feedback-error: #dc2626;\n --st-semantic-feedback-info: #2563eb;\n --st-semantic-status-pending: #d97706;\n --st-semantic-status-processing: #2563eb;\n --st-semantic-status-completed: #16a34a;\n --st-semantic-status-failed: #dc2626;\n --st-semantic-data-category1: #4E79A7;\n --st-semantic-data-category2: #F28E2B;\n --st-semantic-data-category3: #E15759;\n --st-semantic-data-category4: #76B7B2;\n --st-semantic-data-category5: #59A14F;\n --st-semantic-data-category6: #EDC948;\n --st-semantic-data-category7: #B07AA1;\n --st-semantic-data-category8: #FF9DA7;\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(50% 0.134 242.749);\n --st-component-button-primaryText: #ffffff;\n --st-component-button-secondaryBackground: #f8fafc;\n --st-component-button-secondaryBorder: #e2e8f0;\n --st-component-button-secondaryHoverBackground: #e2e8f0;\n --st-component-button-secondaryText: #0f172a;\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(32% 0.11 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(50% 0.134 242.749);\n --st-component-link-hoverText: oklch(50% 0.134 242.749);\n --st-component-link-disabledText: #64748b;\n --st-component-link-focusRing: oklch(50% 0.134 242.749);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(50% 0.134 242.749);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: #64748b;\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: #ffffff;\n --st-component-alert-text: #0f172a;\n --st-component-alert-border: #e2e8f0;\n --st-component-alert-infoBorder: #2563eb;\n --st-component-alert-successBorder: #16a34a;\n --st-component-alert-warningBorder: #d97706;\n --st-component-alert-errorBorder: #dc2626;\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid #e2e8f0;\n --st-component-alert-borderRight: 1px solid #e2e8f0;\n --st-component-alert-borderBottom: 1px solid #e2e8f0;\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: #0f172a;\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: #f8fafc;\n --st-component-tag-neutralText: #475569;\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, #2563eb 14%, white);\n --st-component-badge-infoText: #2563eb;\n --st-component-card-background: #ffffff;\n --st-component-card-border: #e2e8f0;\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: #ffffff;\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: #ffffff;\n --st-component-menu-border: #e2e8f0;\n --st-component-menu-text: #0f172a;\n --st-component-menu-itemHoverBackground: #f8fafc;\n --st-component-menu-dangerText: #dc2626;\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: #64748b;\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-popover-background: #ffffff;\n --st-component-popover-border: #e2e8f0;\n --st-component-popover-text: #0f172a;\n --st-component-popover-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: #ffffff;\n --st-component-dropdown-border: #e2e8f0;\n --st-component-dropdown-text: #0f172a;\n --st-component-dropdown-optionHoverBackground: #f8fafc;\n --st-component-dropdown-selectedBackground: oklch(50% 0.134 242.749);\n --st-component-dropdown-selectedText: #ffffff;\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-input-background: #ffffff;\n --st-component-input-border: #e2e8f0;\n --st-component-input-focusRing: oklch(50% 0.134 242.749);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: #0f172a;\n --st-component-field-helpText: #475569;\n --st-component-field-errorText: #dc2626;\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: #ffffff;\n --st-component-control-text: #0f172a;\n --st-component-control-placeholderText: #64748b;\n --st-component-control-border: #e2e8f0;\n --st-component-control-hoverBorder: #94a3b8;\n --st-component-control-hoverBackground: #f8fafc;\n --st-component-control-focusRing: oklch(50% 0.134 242.749);\n --st-component-control-invalidBorder: #dc2626;\n --st-component-control-disabledBackground: #f8fafc;\n --st-component-control-disabledText: #64748b;\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderRight: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderBottom: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderLeft: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: #94a3b8;\n --st-component-control-anatomy-states-focus-border: oklch(50% 0.134 242.749);\n --st-component-control-anatomy-states-disabled-bg: #f8fafc;\n --st-component-control-anatomy-states-disabled-text: #64748b;\n --st-component-selection-checkedBackground: oklch(50% 0.134 242.749);\n --st-component-selection-checkedText: #ffffff;\n --st-component-selection-border: #e2e8f0;\n --st-component-selection-switchTrack: #94a3b8;\n --st-component-selection-switchTrackChecked: oklch(50% 0.134 242.749);\n --st-component-selection-switchThumb: #ffffff;\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: #0f172a;\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: #0f172a;\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(15 23 42 / 0.48);\n --st-component-overlay-surface: #ffffff;\n --st-component-overlay-border: #e2e8f0;\n --st-component-overlay-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(15 23 42 / 0.48);\n --st-component-drawer-surface: #ffffff;\n --st-component-drawer-border: #e2e8f0;\n --st-component-drawer-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: #f8fafc;\n --st-component-emptyState-border: #e2e8f0;\n --st-component-emptyState-titleText: #0f172a;\n --st-component-emptyState-messageText: #475569;\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(50% 0.134 242.749);\n --st-component-loadingState-track: #f8fafc;\n --st-component-loadingState-text: #475569;\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: #0f172a;\n --st-component-tooltip-text: #ffffff;\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: #ffffff;\n --st-component-toast-text: #0f172a;\n --st-component-toast-border: #e2e8f0;\n --st-component-toast-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: #2563eb;\n --st-component-toast-successBorder: #16a34a;\n --st-component-toast-warningBorder: #d97706;\n --st-component-toast-errorBorder: #dc2626;\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: #f8fafc;\n --st-component-dataTable-rowBackground: #ffffff;\n --st-component-dataTable-rowHoverBackground: #f8fafc;\n --st-component-dataTable-border: #e2e8f0;\n --st-component-dataTable-text: #0f172a;\n --st-component-dataTable-captionText: #475569;\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: #0f172a;\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: #475569;\n --st-component-tabs-border: #e2e8f0;\n --st-component-tabs-indicator: oklch(50% 0.134 242.749);\n --st-component-tabs-panelBackground: #ffffff;\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: #0f172a;\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: #ffffff;\n --st-component-pagination-border: #e2e8f0;\n --st-component-pagination-text: #0f172a;\n --st-component-pagination-activeBackground: oklch(50% 0.134 242.749);\n --st-component-pagination-activeText: #ffffff;\n --st-component-pagination-disabledText: #64748b;\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: #e2e8f0;\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: #ffffff;\n --st-component-paginationNav-border: #e2e8f0;\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: #0f172a;\n --st-component-paginationNav-hoverBackground: #f8fafc;\n --st-component-paginationNav-activeBackground: oklch(50% 0.134 242.749);\n --st-component-paginationNav-activeText: #ffffff;\n --st-component-paginationNav-disabledText: #64748b;\n --st-component-paginationNav-ellipsisText: #64748b;\n --st-component-breadcrumb-text: #475569;\n --st-component-breadcrumb-currentText: #0f172a;\n --st-component-breadcrumb-separator: #64748b;\n --st-component-breadcrumb-linkText: oklch(50% 0.134 242.749);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: #ffffff;\n --st-component-sideNav-border: #e2e8f0;\n --st-component-sideNav-itemText: #475569;\n --st-component-sideNav-activeBackground: #f8fafc;\n --st-component-sideNav-activeText: #0f172a;\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(50% 0.134 242.749) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(50% 0.134 242.749);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(50% 0.134 242.749) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(50% 0.134 242.749) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(50% 0.134 242.749);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(50% 0.134 242.749) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(50% 0.134 242.749);\n --st-component-chat-userBubbleText: #ffffff;\n --st-component-chat-assistantBubbleBackground: #f8fafc;\n --st-component-chat-assistantBubbleText: #0f172a;\n --st-component-chat-composerSurface: #ffffff;\n --st-component-chat-toolCallSurface: #f8fafc;\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: #0f172a;\n --st-component-graph-panelText: #ffffff;\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: #4E79A7;\n --st-component-graph-community2: #F28E2B;\n --st-component-graph-community3: #E15759;\n --st-component-graph-community4: #76B7B2;\n}\n\n\n@media (prefers-color-scheme: dark) {\n color-scheme: dark;\n :root:not([data-color-mode=\"light\"]) {\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: oklch(62% 0.15 242.749);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: oklch(17% 0.012 250);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(62% 0.15 242.749);\n --st-component-button-primaryText: oklch(17% 0.012 250);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: oklch(62% 0.15 242.749);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(62% 0.15 242.749);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: oklch(62% 0.15 242.749);\n --st-component-dropdown-selectedText: oklch(17% 0.012 250);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: oklch(62% 0.15 242.749);\n --st-component-selection-checkedText: oklch(17% 0.012 250);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: oklch(62% 0.15 242.749);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(62% 0.15 242.749);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: oklch(62% 0.15 242.749);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: oklch(62% 0.15 242.749);\n --st-component-pagination-activeText: oklch(17% 0.012 250);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: oklch(62% 0.15 242.749);\n --st-component-paginationNav-activeText: oklch(17% 0.012 250);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(62% 0.15 242.749) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(62% 0.15 242.749);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(62% 0.15 242.749) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(62% 0.15 242.749) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(62% 0.15 242.749);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(62% 0.15 242.749) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(62% 0.15 242.749);\n --st-component-chat-userBubbleText: oklch(17% 0.012 250);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n\n}\n\n:root[data-color-mode=\"dark\"] {\n color-scheme: dark;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: oklch(62% 0.15 242.749);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: oklch(17% 0.012 250);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(62% 0.15 242.749);\n --st-component-button-primaryText: oklch(17% 0.012 250);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: oklch(62% 0.15 242.749);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(62% 0.15 242.749);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: oklch(62% 0.15 242.749);\n --st-component-dropdown-selectedText: oklch(17% 0.012 250);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: oklch(62% 0.15 242.749);\n --st-component-selection-checkedText: oklch(17% 0.012 250);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: oklch(62% 0.15 242.749);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(62% 0.15 242.749);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: oklch(62% 0.15 242.749);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: oklch(62% 0.15 242.749);\n --st-component-pagination-activeText: oklch(17% 0.012 250);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: oklch(62% 0.15 242.749);\n --st-component-paginationNav-activeText: oklch(17% 0.012 250);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(62% 0.15 242.749) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(62% 0.15 242.749);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(62% 0.15 242.749) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(62% 0.15 242.749) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(62% 0.15 242.749);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(62% 0.15 242.749) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(62% 0.15 242.749);\n --st-component-chat-userBubbleText: oklch(17% 0.012 250);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n"});function Ll(t){return typeof t=="function"}function z$(t){for(var e=0;e<t.length;e++)t[e]()}function FE(){var t,e;return{promise:new Promise((n,o)=>{t=n,e=o}),resolve:t,reject:e}}function W$(t){throw Error("https://svelte.dev/e/lifecycle_outside_component")}function G$(){throw Error("https://svelte.dev/e/async_derived_orphan")}function U$(t,e,n){throw Error("https://svelte.dev/e/each_key_duplicate")}function V$(t){throw Error("https://svelte.dev/e/effect_in_teardown")}function q$(){throw Error("https://svelte.dev/e/effect_in_unowned_derived")}function K$(t){throw Error("https://svelte.dev/e/effect_orphan")}function Y$(){throw Error("https://svelte.dev/e/effect_update_depth_exceeded")}function X$(){throw Error("https://svelte.dev/e/hydration_failed")}function Z$(t){throw Error("https://svelte.dev/e/props_invalid_value")}function J$(){throw Error("https://svelte.dev/e/state_descriptors_fixed")}function Q$(){throw Error("https://svelte.dev/e/state_prototype_fixed")}function tO(){throw Error("https://svelte.dev/e/state_unsafe_mutation")}function eO(){throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function nO(){console.warn("https://svelte.dev/e/derived_inert")}function Qu(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function oO(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ki(t){Ce=t}function Mo(t){if(t===null)throw Qu(),uc;return ye=t}function tm(){return Mo(Jr(ye))}function ie(t){if(Ce){if(Jr(ye)!==null)throw Qu(),uc;ye=t}}function rO(t=1){if(Ce){for(var e=t,n=ye;e--;)n=Jr(n);ye=n}}function Vu(t=!0){for(var e=0,n=ye;;){if(n.nodeType===8){var o=n.data;if(o==="]"){if(e===0)return n;--e}else(o==="["||o==="[!"||o[0]==="["&&!isNaN(Number(o.slice(1))))&&(e+=1)}var r=Jr(n);t&&n.remove(),n=r}}function UE(t){if(!t||t.nodeType!==8)throw Qu(),uc;return t.data}function VE(t){return t===this.v}function qE(t,e){return t==t?t!==e||typeof t=="object"&&!!t||typeof t=="function":e==e}function KE(t){return!qE(t,this.v)}function mc(t){Do=t}function rs(t,e=!1,n){Do={p:Do,i:!1,c:null,e:null,s:t,x:null,r:ae,l:null}}function is(t){var e=Do,n=e.e;if(n!==null){e.e=null;for(var o of n)hS(o)}return t!==void 0&&(e.x=t),e.i=!0,Do=e.p,t??{}}function Xl(){return!0}function YE(){var t=Ya;Ya=[],z$(t)}function va(t){if(Ya.length===0&&!Gl){var e=Ya;queueMicrotask(()=>{e===Ya&&YE()})}Ya.push(t)}function iO(){for(;Ya.length>0;)YE()}function XE(t){var e=ae;if(e===null)return we.f|=Uu,t;if(!(e.f&32768)&&!(e.f&4))throw t;ya(t,e)}function ya(t,e){for(;e!==null;){if(e.f&128){if(!(e.f&32768))throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}function En(t,e){t.f=t.f&aO|e}function Cy(t){t.f&512||t.deps===null?En(t,dr):En(t,es)}function ZE(t){if(t!==null)for(let e of t)e.f&2&&e.f&65536&&(e.f^=Yl,ZE(e.deps))}function JE(t,e,n){t.f&2048?e.add(t):t.f&4096&&n.add(t),ZE(t.deps),En(t,dr)}function sO(t){var e=Ou;try{return Ou=!1,[t(),Ou]}finally{Ou=e}}function ns(t){var e=Gl;Gl=!0;try{var n;for(t&&(ue!==null&&!ue.is_fork&&ue.flush(),n=t());;){if(iO(),ue===null)return n;ue.flush()}}finally{Gl=e}}function lO(){try{Y$()}catch(t){ya(t,py)}}function bE(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var o=t[n++];if(!(o.f&24576)&&Zl(o)&&(xi=new Set,fc(o),o.deps===null&&o.first===null&&o.nodes===null&&o.teardown===null&&o.ac===null&&gS(o),xi?.size>0)){Ja.clear();for(let r of xi){if(r.f&24576)continue;let i=[r],a=r.parent;for(;a!==null;)xi.has(a)&&(xi.delete(a),i.push(a)),a=a.parent;for(let s=i.length-1;s>=0;s--){let c=i[s];c.f&24576||fc(c)}}xi.clear()}}xi=null}}function QE(t){ue.schedule(t)}function tS(t,e){if(!(t.f&32&&t.f&1024)){t.f&2048?e.d.push(t):t.f&4096&&e.m.push(t),En(t,dr);for(var n=t.first;n!==null;)tS(n,e),n=n.next}}function eS(t){En(t,dr);for(var e=t.first;e!==null;)eS(e),e=e.next}function pO(t){let e=0,n=os(0),o;return()=>{Py()&&(E(n),nm(()=>(e===0&&(o=Jl(()=>t(()=>Ul(n)))),e+=1,()=>{va(()=>{--e,e===0&&(o?.(),o=void 0,Ul(n))})})))}}function uO(t,e,n,o){new mO(t,e,n,o)}function hO(t,e,n,o){let r=Xl()?ql:Ry;var i=t.filter(u=>!u.settled);if(n.length===0&&i.length===0){o(e.map(r));return}var a=ae,s=fO(),c=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(u=>u.promise)):null;function l(u){if(!(a.f&16384)){s();try{o(u)}catch(m){ya(m,a)}qu()}}var p=nS();if(n.length===0){c.then(()=>l(e.map(r))).finally(p);return}function d(){Promise.all(n.map(u=>gO(u))).then(u=>l([...e.map(r),...u])).catch(u=>ya(u,a)).finally(p)}c?c.then(()=>{s(),d(),qu()}):d()}function fO(){var t=ae,e=we,n=Do,o=ue;return function(r=!0){Zr(t),hr(e),mc(n),r&&!(t.f&16384)&&(o?.activate(),o?.apply())}}function qu(t=!0){Zr(null),hr(null),mc(null),t&&ue?.deactivate()}function nS(){var t=ae,e=t.b,n=ue,o=e.is_rendered();return e.update_pending_count(1,n),n.increment(o,t),()=>{e.update_pending_count(-1,n),n.decrement(o,t)}}function ql(t){var e=2|Xr;return ae!==null&&(ae.f|=gc),{ctx:Do,deps:null,effects:null,equals:VE,f:e,fn:t,reactions:null,rv:0,v:Nn,wv:0,parent:ae,ac:null}}function gO(t,e,n){let o=ae;o===null&&G$();var r=void 0,i=os(Nn),a=!we,s=new Set;return EO(()=>{var c=ae,l=FE();r=l.promise;try{Promise.resolve(t()).then(l.resolve,m=>{m!==Ju&&l.reject(m)}).finally(qu)}catch(m){l.reject(m),qu()}var p=ue;if(a){if(c.f&32768)var d=nS();if(o.b.is_rendered())p.async_deriveds.get(c)?.reject(zu);else for(let m of s.values())m.reject(zu);s.add(l),p.async_deriveds.set(c,l)}let u=(m,h=void 0)=>{d?.(),s.delete(l),h!==zu&&(p.activate(),h?(i.f|=Uu,hc(i,h)):(i.f&8388608&&(i.f^=Uu),hc(i,m)),p.deactivate())};l.promise.then(u,m=>u(null,m||"unknown"))}),mS(()=>{for(let c of s)c.reject(zu)}),new Promise(c=>{function l(p){function d(){p===r?c(i):l(r)}p.then(d,d)}l(r)})}function Jt(t){let e=ql(t);return vS(e),e}function Ry(t){let e=ql(t);return e.equals=KE,e}function yO(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)vo(e[n])}}function By(t){var e,n=ae,o=t.parent;if(!Ei&&o!==null&&o.f&24576)return nO(),t.v;Zr(o);try{t.f&=~Yl,yO(t),e=_S(t)}finally{Zr(n)}return e}function oS(t){var e=By(t);!t.equals(e)&&(t.wv=kS(),(!ue?.is_fork||t.deps===null)&&(ue===null?t.v=e:(ue.capture(t,e,!0),ly?.capture(t,e,!0)),t.deps===null))?En(t,dr):Ei||(Tr===null?Cy(t):(Py()||ue?.is_fork)&&Tr.set(t,e))}function bO(t){if(t.effects!==null)for(let e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(Ju),e.teardown=O$,e.ac=null,Kl(e,0),Oy(e))}function rS(t){if(t.effects!==null)for(let e of t.effects)e.teardown&&fc(e)}function os(t,e){return{f:0,v:t,reactions:null,equals:VE,rv:0,wv:0}}function ln(t,e){let n=os(t,e);return vS(n),n}function aS(t,e=!1,n=!0){let o=os(t);return e||(o.equals=KE),o}function Zt(t,e,n=!1){return we!==null&&(!Cr||we.f&131072)&&Xl()&&we.f&4325394&&(mr===null||!Vl.call(mr,t))&&tO(),hc(t,n?Xa(e):e,Iu)}function hc(t,e,n=null){if(!t.equals(e)){Ja.set(t,Ei?e:t.v);var o=yc.ensure();if(o.capture(t,e),t.f&2){let r=t;t.f&2048&&By(r),Tr===null&&Cy(r)}t.wv=kS(),sS(t,Xr,n),Xl()&&ae!==null&&ae.f&1024&&!(ae.f&96)&&(cr===null?RO([t]):cr.push(t)),!o.is_fork&&Ku.size>0&&!iS&&vO()}return e}function vO(){iS=!1;for(let t of Ku){t.f&1024&&En(t,es);let e;try{e=Zl(t)}catch{e=!0}e&&fc(t)}Ku.clear()}function Ul(t){Zt(t,t.v+1)}function sS(t,e,n){var o=t.reactions;if(o!==null)for(var r=Xl(),i=o.length,a=0;a<i;a++){var s=o[a],c=s.f;if(r||s!==ae){var l=(c&Xr)===0;if(l&&En(s,e),c&131072)Ku.add(s);else if(c&2){var p=s;Tr?.delete(p),c&65536||(c&512&&(ae===null||!(ae.f&2097152))&&(s.f|=Yl),sS(p,es,n))}else if(l){var d=s;c&16&&xi!==null&&xi.add(d),n===null?QE(d):n.push(d)}}}}function Xa(t){if(typeof t!="object"||!t||ba in t)return t;let e=_y(t);if(e!==j$&&e!==$$)return t;var n=new Map,o=IE(t),r=ln(0),i=null,a=ts,s=c=>{if(ts===a)return c();var l=we,p=ts;hr(null),kE(a);var d=c();return hr(l),kE(p),d};return o&&n.set("length",ln(t.length,i)),new Proxy(t,{defineProperty(c,l,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&J$();var d=n.get(l);return d===void 0?s(()=>{var u=ln(p.value,i);return n.set(l,u),u}):Zt(d,p.value,!0),!0},deleteProperty(c,l){var p=n.get(l);if(p===void 0){if(l in c){let d=s(()=>ln(Nn,i));n.set(l,d),Ul(r)}}else Zt(p,Nn),Ul(r);return!0},get(c,l,p){if(l===ba)return t;var d=n.get(l),u=l in c;if(d===void 0&&(!u||wi(c,l)?.writable)&&(d=s(()=>ln(Xa(u?c[l]:Nn),i)),n.set(l,d)),d!==void 0){var m=E(d);return m===Nn?void 0:m}return Reflect.get(c,l,p)},getOwnPropertyDescriptor(c,l){var p=Reflect.getOwnPropertyDescriptor(c,l);if(p&&"value"in p){var d=n.get(l);d&&(p.value=E(d))}else if(p===void 0){var u=n.get(l),m=u?.v;if(u!==void 0&&m!==Nn)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return p},has(c,l){if(l===ba)return!0;var p=n.get(l),d=p!==void 0&&p.v!==Nn||Reflect.has(c,l);return(p!==void 0||ae!==null&&(!d||wi(c,l)?.writable))&&(p===void 0&&(p=s(()=>ln(d?Xa(c[l]):Nn,i)),n.set(l,p)),E(p)===Nn)?!1:d},set(c,l,p,d){var u=n.get(l),m=l in c;if(o&&l==="length")for(var h=p;h<u.v;h+=1){var f=n.get(h+"");f===void 0?h in c&&(f=s(()=>ln(Nn,i)),n.set(h+"",f)):Zt(f,Nn)}if(u===void 0)(!m||wi(c,l)?.writable)&&(u=s(()=>ln(void 0,i)),Zt(u,Xa(p)),n.set(l,u));else{m=u.v!==Nn;var g=s(()=>Xa(p));Zt(u,g)}var v=Reflect.getOwnPropertyDescriptor(c,l);if(v?.set&&v.set.call(d,p),!m){if(o&&typeof l=="string"){var k=n.get("length"),_=Number(l);Number.isInteger(_)&&_>=k.v&&Zt(k,_+1)}Ul(r)}return!0},ownKeys(c){E(r);var l=Reflect.ownKeys(c).filter(u=>{var m=n.get(u);return m===void 0||m.v!==Nn});for(var[p,d]of n)d.v!==Nn&&!(p in c)&&l.push(p);return l},setPrototypeOf(){Q$()}})}function uy(){if(vE===void 0){vE=window,cS=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;lS=wi(e,"firstChild").get,pS=wi(e,"nextSibling").get,hE(t)&&(t[ay]=void 0,t[GE]=null,t[sy]=void 0,t.__e=void 0),hE(n)&&(n[cy]=void 0)}}function ur(t=""){return document.createTextNode(t)}function pr(t){return lS.call(t)}function Jr(t){return pS.call(t)}function Te(t,e){if(!Ce)return pr(t);var n=pr(ye);if(n===null)n=ye.appendChild(ur());else if(e&&n.nodeType!==3){var o=ur();return n?.before(o),Mo(o),o}return e&&My(n),Mo(n),n}function bo(t,e=!1){if(!Ce){var n=pr(t);return n instanceof Comment&&n.data===""?Jr(n):n}if(e){if(ye?.nodeType!==3){var o=ur();return ye?.before(o),Mo(o),o}My(ye)}return ye}function Se(t,e=1,n=!1){let o=Ce?ye:t;for(var r;e--;)r=o,o=Jr(o);if(!Ce)return o;if(n){if(o?.nodeType!==3){var i=ur();return o===null?r?.after(i):o.before(i),Mo(i),i}My(o)}return Mo(o),o}function dS(t){t.textContent=""}function uS(){return!1}function Ay(t,e,n){let o=n?{is:n}:void 0;return document.createElementNS(e??"http://www.w3.org/1999/xhtml",t,o)}function My(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Dy(t){var e=we,n=ae;hr(null),Zr(null);try{return t()}finally{hr(e),Zr(n)}}function xO(t){ae===null&&(we===null&&K$(t),q$()),Ei&&V$(t)}function kO(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Qr(t,e){var n=ae;n!==null&&n.f&8192&&(t|=Ey);var o={ctx:Do,deps:null,nodes:null,f:t|Xr|512,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};ue?.register_created_effect(o);var r=o;if(t&4)dc===null?yc.ensure().schedule(o):dc.push(o);else if(e!==null){try{fc(o)}catch(a){throw vo(o),a}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&!(r.f&524288)&&(r=r.first,t&16&&t&65536&&r!==null&&(r.f|=Sy))}if(r!==null&&(r.parent=n,n!==null&&kO(r,n),we!==null&&we.f&2&&!(t&64))){var i=we;(i.effects??=[]).push(r)}return o}function Py(){return we!==null&&!Cr}function mS(t){let e=Qr(8,null);return En(e,dr),e.teardown=t,e}function em(t){xO("$effect");var e=ae.f;if(!we&&e&32&&!(e&32768)){var n=Do;(n.e??=[]).push(t)}else return hS(t)}function hS(t){return Qr(4|N$,t)}function wO(t){yc.ensure();let e=Qr(64|gc,t);return()=>{vo(e)}}function _O(t){yc.ensure();let e=Qr(64|gc,t);return(n={})=>new Promise(o=>{n.outro?Qa(e,()=>{vo(e),o(void 0)}):(vo(e),o(void 0))})}function jy(t){return Qr(4,t)}function EO(t){return Qr(I$|gc,t)}function nm(t,e=0){return Qr(8|e,t)}function pe(t,e=[],n=[],o=[]){hO(o,e,n,r=>{Qr(8,()=>t(...r.map(E)))})}function $y(t,e=0){return Qr(16|e,t)}function lr(t){return Qr(32|gc,t)}function fS(t){var e=t.teardown;if(e!==null){let n=Ei,o=we;xE(!0),hr(null);try{e.call(null)}finally{xE(n),hr(o)}}}function Oy(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){let r=n.ac;r!==null&&Dy(()=>{r.abort(Ju)});var o=n.next;n.f&64?n.parent=null:vo(n,e),n=o}}function SO(t){for(var e=t.first;e!==null;){var n=e.next;e.f&32||vo(e),e=n}}function vo(t,e=!0){var n=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(TO(t.nodes.start,t.nodes.end),n=!0),En(t,fE),Oy(t,e&&!n),Kl(t,0);var o=t.nodes&&t.nodes.t;if(o!==null)for(let i of o)i.stop();fS(t),t.f^=fE,t.f|=L$;var r=t.parent;r!==null&&r.first!==null&&gS(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function TO(t,e){for(;t!==null;){var n=t===e?null:Jr(t);t.remove(),t=n}}function gS(t){var e=t.parent,n=t.prev,o=t.next;n!==null&&(n.next=o),o!==null&&(o.prev=n),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=n))}function Qa(t,e,n=!0){var o=[];yS(t,o,!0);var r=()=>{n&&vo(t),e&&e()},i=o.length;if(i>0){var a=()=>--i||r();for(var s of o)s.out(a)}else r()}function yS(t,e,n){if(!(t.f&8192)){t.f^=Ey;var o=t.nodes&&t.nodes.t;if(o!==null)for(let s of o)(s.is_global||n)&&e.push(s);for(var r=t.first;r!==null;){var i=r.next;if(!(r.f&64)){var a=!!(r.f&65536)||!!(r.f&32)&&!!(t.f&16);yS(r,e,a?n:!1)}r=i}}}function zy(t){bS(t,!0)}function bS(t,e){if(t.f&8192){t.f^=Ey,t.f&1024||(En(t,Xr),yc.ensure().schedule(t));for(var n=t.first;n!==null;){var o=n.next,r=!!(n.f&65536)||!!(n.f&32);bS(n,r?e:!1),n=o}var i=t.nodes&&t.nodes.t;if(i!==null)for(let a of i)(a.is_global||e)&&a.in()}}function Ly(t,e){if(t.nodes)for(var n=t.nodes.start,o=t.nodes.end;n!==null;){var r=n===o?null:Jr(n);e.append(n),n=r}}function xE(t){Ei=t}function hr(t){we=t}function Zr(t){ae=t}function vS(t){we!==null&&(mr===null?mr=[t]:mr.push(t))}function RO(t){cr=t}function kE(t){ts=t}function kS(){return++xS}function Zl(t){var e=t.f;if(e&2048)return!0;if(e&2&&(t.f&=~Yl),e&4096){for(var n=t.deps,o=n.length,r=0;r<o;r++){var i=n[r];if(Zl(i)&&oS(i),i.wv>t.wv)return!0}e&512&&Tr===null&&En(t,dr)}return!1}function wS(t,e,n=!0){var o=t.reactions;if(o!==null&&(mr===null||!Vl.call(mr,t)))for(var r=0;r<o.length;r++){var i=o[r];i.f&2?wS(i,e,!1):e===i&&(n?En(i,Xr):i.f&1024&&En(i,es),QE(i))}}function _S(t){var e=Ao,n=Fo,o=cr,r=we,i=mr,a=Do,s=Cr,c=ts,l=t.f;Ao=null,Fo=0,cr=null,we=l&96?null:t,mr=null,mc(t.ctx),Cr=!1,ts=++Za,t.ac!==null&&(Dy(()=>{t.ac.abort(Ju)}),t.ac=null);try{t.f|=gE;var p=t.fn,d=p();t.f|=WE;var u=t.deps,m=ue?.is_fork;if(Ao!==null){var h;if(m||Kl(t,Fo),u!==null&&Fo>0)for(u.length=Fo+Ao.length,h=0;h<Ao.length;h++)u[Fo+h]=Ao[h];else t.deps=u=Ao;if(Py()&&t.f&512)for(h=Fo;h<u.length;h++)(u[h].reactions??=[]).push(t)}else!m&&u!==null&&Fo<u.length&&(Kl(t,Fo),u.length=Fo);if(Xl()&&cr!==null&&!Cr&&u!==null&&!(t.f&6146))for(h=0;h<cr.length;h++)wS(cr[h],t);if(r!==null&&r!==t){if(Za++,r.deps!==null)for(let f=0;f<n;f+=1)r.deps[f].rv=Za;if(e!==null)for(let f of e)f.rv=Za;cr!==null&&(o===null?o=cr:o.push(...cr))}return t.f&8388608&&(t.f^=Uu),d}catch(f){return XE(f)}finally{t.f^=gE,Ao=e,Fo=n,cr=o,we=r,mr=i,mc(a),Cr=s,ts=c}}function BO(t,e){let n=e.reactions;if(n!==null){var o=P$.call(n,t);if(o!==-1){var r=n.length-1;r===0?n=e.reactions=null:(n[o]=n[r],n.pop())}}if(n===null&&e.f&2&&(Ao===null||!Vl.call(Ao,e))){var i=e;i.f&512&&(i.f^=512,i.f&=~Yl),i.v!==Nn&&Cy(i),bO(i),Kl(i,0)}}function Kl(t,e){var n=t.deps;if(n!==null)for(var o=e;o<n.length;o++)BO(t,n[o])}function fc(t){var e=t.f;if(!(e&16384)){En(t,dr);var n=ae,o=Hu;ae=t,Hu=!0;try{e&16777232?SO(t):Oy(t),fS(t);var r=_S(t);t.teardown=typeof r=="function"?r:null,t.wv=xS}finally{Hu=o,ae=n}}}function E(t){var e=!!(t.f&2);if(CO?.add(t),we!==null&&!Cr&&!(ae!==null&&ae.f&16384)&&(mr===null||!Vl.call(mr,t))){var n=we.deps;if(we.f&2097152)t.rv<Za&&(t.rv=Za,Ao===null&&n!==null&&n[Fo]===t?Fo++:Ao===null?Ao=[t]:Ao.push(t));else{(we.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[we]:Vl.call(o,we)||o.push(we)}}if(Ei&&Ja.has(t))return Ja.get(t);if(e){var r=t;if(Ei){var i=r.v;return(!(r.f&1024)&&r.reactions!==null||SS(r))&&(i=By(r)),Ja.set(r,i),i}var a=!(r.f&512)&&!Cr&&we!==null&&(Hu||!!(we.f&512)),s=(r.f&WE)===0;Zl(r)&&(a&&(r.f|=512),oS(r)),a&&!s&&(rS(r),ES(r))}if(Tr?.has(t))return Tr.get(t);if(t.f&8388608)throw t.v;return t.v}function ES(t){if(t.f|=512,t.deps!==null)for(let e of t.deps)(e.reactions??=[]).push(t),e.f&2&&!(e.f&512)&&(rS(e),ES(e))}function SS(t){if(t.v===Nn)return!0;if(t.deps===null)return!1;for(let e of t.deps)if(Ja.has(e)||e.f&2&&SS(e))return!0;return!1}function Jl(t){var e=Cr;try{return Cr=!0,t()}finally{Cr=e}}function AO(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(ba in t)my(t);else if(!Array.isArray(t))for(let e in t){let n=t[e];typeof n=="object"&&n&&ba in n&&my(n)}}}function my(t,e=new Set){if(typeof t=="object"&&t&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{my(t[o],e)}catch{}let n=_y(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let o=HE(n);for(let r in o){let i=o[r].get;if(i)try{i.call(t)}catch{}}}}}function MO(t,e,n,o={}){function r(i){if(o.capture||fy.call(e,i),!i.cancelBubble)return Dy(()=>n?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?va(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function wE(t,e,n,o,r){var i={capture:o,passive:r},a=MO(t,e,n,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&mS(()=>{e.removeEventListener(t,a,i)})}function Lu(t,e,n){(e[Il]??={})[t]=n}function DO(t){for(var e=0;e<t.length;e++)TS.add(t[e]);for(var n of hy)n(t)}function fy(t){var e=this,n=e.ownerDocument,o=t.type,r=t.composedPath?.()||[],i=r[0]||t.target;_E=t;var a=0,s=_E===t&&t[Il];if(s){var c=r.indexOf(s);if(c!==-1&&(e===document||e===window)){t[Il]=e;return}var l=r.indexOf(e);if(l===-1)return;c<=l&&(a=c)}if(i=r[a]||t.target,i!==e){Gu(t,"currentTarget",{configurable:!0,get(){return i||n}});var p=we,d=ae;hr(null),Zr(null);try{for(var u,m=[];i!==null;){var h=i.assignedSlot||i.parentNode||i.host||null;try{var f=i[Il]?.[o];f!=null&&(!i.disabled||t.target===i)&&f.call(i,t)}catch(g){u?m.push(g):u=g}if(t.cancelBubble||h===e||h===null)break;i=h}if(u){for(let g of m)queueMicrotask(()=>{throw g});throw u}}finally{t[Il]=e,delete t.currentTarget,hr(p),Zr(d)}}}function jO(t){return PO?.createHTML(t)??t}function CS(t){var e=Ay("template");return e.innerHTML=jO(t.replaceAll("<!>","<!---->")),e.content}function _i(t,e){var n=ae;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function Go(t,e){var n=!!(e&1),o=!!(e&2),r,i=!t.startsWith("<!>");return()=>{if(Ce)return _i(ye,null),ye;r===void 0&&(r=CS(i?t:"<!>"+t),n||(r=pr(r)));var a=o||cS?document.importNode(r,!0):r.cloneNode(!0);if(n){var s=pr(a),c=a.lastChild;_i(s,c)}else _i(a,a);return a}}function $O(t,e,n="svg"){var o=!t.startsWith("<!>"),r=!!(e&1),i="<".concat(n,">").concat(o?t:"<!>"+t,"</").concat(n,">"),a;return()=>{if(Ce)return _i(ye,null),ye;if(!a){var s=pr(CS(i));if(r)for(a=document.createDocumentFragment();pr(s);)a.appendChild(pr(s));else a=pr(s)}var c=a.cloneNode(!0);if(r){var l=pr(c),p=c.lastChild;_i(l,p)}else _i(c,c);return c}}function De(t,e){return $O(t,e,"svg")}function lc(){if(Ce)return _i(ye,null),ye;var t=document.createDocumentFragment(),e=document.createComment(""),n=ur();return t.append(e,n),_i(e,n),t}function It(t,e){if(Ce){var n=ae;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=ye),tm()}else t!==null&&t.before(e)}function zO(t){return OO.includes(t)}function bn(t,e){var n=e==null?"":typeof e=="object"?"".concat(e):e;n!==(t[cy]??=t.nodeValue)&&(t[cy]=n,t.nodeValue="".concat(n))}function RS(t,e){return BS(t,e)}function LO(t,e){uy(),e.intro=e.intro??!1;let n=e.target,o=Ce,r=ye;try{for(var i=pr(n);i&&(i.nodeType!==8||i.data!=="[");)i=Jr(i);if(!i)throw uc;ki(!0),Mo(i);let a=BS(t,{...e,anchor:i});return ki(!1),a}catch(a){if(a instanceof Error&&a.message.split("\n").some(s=>s.startsWith("https://svelte.dev/e/")))throw a;return a!==uc&&console.warn("Failed to hydrate: ",a),e.recover===!1&&X$(),uy(),dS(n),ki(!1),RS(t,e)}finally{ki(o),Mo(r)}}function BS(t,{target:e,anchor:n,props:o={},events:r,context:i,intro:a=!0,transformError:s}){uy();var c=void 0,l=_O(()=>{var p=n??e.appendChild(ur());uO(p,{pending:()=>{}},m=>{rs({});var h=Do;if(i&&(h.c=i),r&&(o.$$events=r),Ce&&_i(m,null),c=t(m,o)||{},Ce&&(ae.nodes.end=ye,ye===null||ye.nodeType!==8||ye.data!=="]"))throw Qu(),uc;is()},s);var d=new Set,u=m=>{for(var h=0;h<m.length;h++){var f=m[h];if(!d.has(f)){d.add(f);var g=zO(f);for(let _ of[e,document]){var v=Nu.get(_);v===void 0&&(v=new Map,Nu.set(_,v));var k=v.get(f);k===void 0?(_.addEventListener(f,fy,{passive:g}),v.set(f,1)):v.set(f,k+1)}}}};return u(Zu(TS)),hy.add(u),()=>{for(var m of d)for(let g of[e,document]){var h=Nu.get(g),f=h.get(m);--f==0?(g.removeEventListener(m,fy),h.delete(m),h.size===0&&Nu.delete(g)):h.set(m,f)}hy.delete(u),p!==n&&p.parentNode?.removeChild(p)}});return gy.set(c,l),c}function NO(t,e){let n=gy.get(t);return n?(gy.delete(t),n(e)):Promise.resolve()}function Ny(t){Do===null&&W$("onMount"),em(()=>{let e=Jl(t);if(typeof e=="function")return e})}function nn(t,e,n=!1){var o;Ce&&(o=ye,tm());var r=new IO(t),i=n?Sy:0;function a(s,c){if(Ce){var l=UE(o);if(s!==parseInt(l.substring(1))){var p=Vu();Mo(p),r.anchor=p,ki(!1),r.ensure(s,c),ki(!0);return}}r.ensure(s,c)}$y(()=>{var s=!1;e((c,l=0)=>{s=!0,a(l,c)}),s||a(-1,null)},i)}function HO(t,e){return e}function FO(t,e,n){for(var o=[],r=e.length,i,a=e.length,s=0;s<r;s++){let d=e[s];Qa(d,()=>{if(i){if(i.pending.delete(d),i.done.add(d),i.pending.size===0){var u=t.outrogroups;yy(t,Zu(i.done)),u.delete(i),u.size===0&&(t.outrogroups=null)}}else--a},!1)}if(a===0){var c=o.length===0&&n!==null;if(c){var l=n,p=l.parentNode;dS(p),p.append(l),t.items.clear()}yy(t,e,!c)}else i={pending:new Set(e),done:new Set},(t.outrogroups??=new Set).add(i)}function yy(t,e,n=!0){var o;if(t.pending.size>0){o=new Set;for(let a of t.pending.values())for(let s of a)o.add(t.items.get(s).e)}for(var r=0;r<e.length;r++){var i=e[r];o?.has(i)?(i.f|=Wl,Ly(i,document.createDocumentFragment())):vo(e[r],n)}}function Bo(t,e,n,o,r,i=null){var a=t,s=new Map;if(e&4){var c=t;a=Ce?Mo(pr(c)):c.appendChild(ur())}Ce&&tm();var l=null,p=Ry(()=>{var v=n();return IE(v)?v:v==null?[]:Zu(v)}),d,u=new Map,m=!0;function h(v){g.effect.f&16384||(g.pending.delete(v),g.fallback=l,WO(g,d,a,e,o),l!==null&&(d.length===0?l.f&33554432?(l.f^=Wl,Hl(l,null,a)):zy(l):Qa(l,()=>{l=null})))}function f(v){g.pending.delete(v)}var g={effect:$y(()=>{d=E(p);var v=d.length;let k=!1;Ce&&UE(a)==="[!"!=(v===0)&&(a=Vu(),Mo(a),ki(!1),k=!0);for(var _=new Set,w=ue,T=uS(),C=0;C<v;C+=1){Ce&&ye.nodeType===8&&ye.data==="]"&&(a=ye,k=!0,ki(!1));var B=d[C],D=o(B,C),M=m?null:s.get(D);M?(M.v&&hc(M.v,B),M.i&&hc(M.i,C),T&&w.unskip_effect(M.e)):(M=GO(s,m?a:EE??=ur(),B,D,C,r,e,n),m||(M.e.f|=Wl),s.set(D,M)),_.add(D)}if(v===0&&i&&!l&&(m?l=lr(()=>i(a)):(l=lr(()=>i(EE??=ur())),l.f|=Wl)),v>_.size&&U$("","",""),Ce&&v>0&&Mo(Vu()),!m)if(u.set(w,_),T){for(let[N,z]of s)_.has(N)||w.skip_effect(z.e);w.oncommit(h),w.ondiscard(f)}else h(w);k&&ki(!0),E(p)}),flags:e,items:s,pending:u,outrogroups:null,fallback:l};m=!1,Ce&&(a=ye)}function Nl(t){for(;t!==null&&!(t.f&32);)t=t.next;return t}function WO(t,e,n,o,r){var i=!!(o&8),a=e.length,s=t.items,c=Nl(t.effect.first),l,p=null,d,u=[],m=[],h,f,g,v;if(i)for(v=0;v<a;v+=1)h=e[v],f=r(h,v),g=s.get(f).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(v=0;v<a;v+=1){if(h=e[v],f=r(h,v),g=s.get(f).e,t.outrogroups!==null)for(let N of t.outrogroups)N.pending.delete(g),N.done.delete(g);if(g.f&8192&&(zy(g),i&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=Wl,g===c)Hl(g,null,n);else{var k=p?p.next:c;g===t.effect.last&&(t.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),ga(t,p,g),ga(t,g,k),Hl(g,k,n),p=g,u=[],m=[],c=Nl(p.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(u.length<m.length){var _=m[0],w;p=_.prev;var T=u[0],C=u[u.length-1];for(w=0;w<u.length;w+=1)Hl(u[w],_,n);for(w=0;w<m.length;w+=1)l.delete(m[w]);ga(t,T.prev,C.next),ga(t,p,T),ga(t,C,_),c=_,p=C,--v,u=[],m=[]}else l.delete(g),Hl(g,c,n),ga(t,g.prev,g.next),ga(t,g,p===null?t.effect.first:p.next),ga(t,p,g),p=g;continue}for(u=[],m=[];c!==null&&c!==g;)(l??=new Set).add(c),m.push(c),c=Nl(c.next);if(c===null)continue}g.f&33554432||u.push(g),p=g,c=Nl(g.next)}if(t.outrogroups!==null){for(let N of t.outrogroups)N.pending.size===0&&(yy(t,Zu(N.done)),t.outrogroups?.delete(N));t.outrogroups.size===0&&(t.outrogroups=null)}if(c!==null||l!==void 0){var B=[];if(l!==void 0)for(g of l)g.f&8192||B.push(g);for(;c!==null;)!(c.f&8192)&&c!==t.fallback&&B.push(c),c=Nl(c.next);var D=B.length;if(D>0){var M=o&4&&a===0?n:null;if(i){for(v=0;v<D;v+=1)B[v].nodes?.a?.measure();for(v=0;v<D;v+=1)B[v].nodes?.a?.fix()}FO(t,B,M)}}i&&va(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function GO(t,e,n,o,r,i,a,s){var c=a&1?a&16?os(n):aS(n,!1,!1):null,l=a&2?os(r):null;return{v:c,i:l,e:lr(()=>(i(e,c??n,l??r,s),()=>{t.delete(o)}))}}function Hl(t,e,n){if(t.nodes)for(var o=t.nodes.start,r=t.nodes.end,i=e&&!(e.f&33554432)?e.nodes.start:n;o!==null;){var a=Jr(o);if(i.before(o),o===r)return;o=a}}function ga(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function bc(t,e){jy(()=>{var n=t.getRootNode(),o=n.host?n:n.head??n.ownerDocument.head;if(!o.querySelector("#"+e.hash)){let r=Ay("style");r.id=e.hash,r.textContent=e.code,o.appendChild(r)}})}function xa(t,e,n){jy(()=>{var o=Jl(()=>e(t,n?.())||{});if(n&&o?.update){var r=!1,i={};nm(()=>{var a=n();AO(a),r&&qE(i,a)&&(i=a,o.update(a))}),r=!0}if(o?.destroy)return()=>o.destroy()})}function AS(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=AS(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Qs(){for(var t,e,n=0,o="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=AS(t))&&(o&&(o+=" "),o+=e);return o}function MS(t){return typeof t=="object"?Qs(t):t??""}function UO(t,e,n){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),n){for(var r of Object.keys(n))if(n[r])o=o?o+" "+r:r;else if(o.length)for(var i=r.length,a=0;(a=o.indexOf(r,a))>=0;){var s=a+i;(a===0||SE.includes(o[a-1]))&&(s===o.length||SE.includes(o[s]))?o=(a===0?"":o.substring(0,a))+o.substring(s+1):a=s}}return o===""?null:o}function TE(t,e=!1){var n=e?" !important;":";",o="";for(var r of Object.keys(t)){var i=t[r];i!=null&&i!==""&&(o+=" "+r+": "+i+n)}return o}function Xg(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function VO(t,e){if(e){var n="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,a=0,s=!1,c=[];o&&c.push(...Object.keys(o).map(Xg)),r&&c.push(...Object.keys(r).map(Xg));var l=0,p=-1;let f=t.length;for(var d=0;d<f;d++){var u=t[d];if(s?u==="/"&&t[d-1]==="*"&&(s=!1):i?i===u&&(i=!1):u==="/"&&t[d+1]==="*"?s=!0:u==='"'||u==="'"?i=u:u==="("?a++:u===")"&&a--,!s&&i===!1&&a===0){if(u===":"&&p===-1)p=d;else if(u===";"||d===f-1){if(p!==-1){var m=Xg(t.substring(l,p).trim());if(!c.includes(m)){u!==";"&&d++;var h=t.substring(l,d).trim();n+=" "+h+";"}}l=d+1,p=-1}}}}return o&&(n+=TE(o)),r&&(n+=TE(r,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function pc(t,e,n,o,r,i){var a=t[ay];if(Ce||a!==n||a===void 0){var s=UO(n,o,i);(!Ce||s!==t.getAttribute("class"))&&(s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s)),t[ay]=n}else if(i&&r!==i)for(var c in i){var l=!!i[c];(r==null||l!==!!r[c])&&t.classList.toggle(c,l)}return i}function Zg(t,e={},n,o){for(var r in n){var i=n[r];e[r]!==i&&(n[r]==null?t.style.removeProperty(r):t.style.setProperty(r,i,o))}}function qO(t,e,n,o){var r=t[sy];if(Ce||r!==e){var i=VO(e,o);(!Ce||i!==t.getAttribute("style"))&&(i==null?t.removeAttribute("style"):t.style.cssText=i),t[sy]=e}else o&&(Array.isArray(o)?(Zg(t,n?.[0],o[0]),Zg(t,n?.[1],o[1],"important")):Zg(t,n,o));return o}function Y(t,e,n,o){var r=ZO(t);Ce&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===XO)||r[e]!==(r[e]=n)&&(e==="loading"&&(t[H$]=n),n==null?t.removeAttribute(e):typeof n!="string"&&JO(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function ZO(t){return t[GE]??={[KO]:t.nodeName.includes("-"),[YO]:t.namespaceURI===D$}}function JO(t){var e=t.getAttribute("is")||t.nodeName,n=CE.get(e);if(n)return n;CE.set(e,n=[]);for(var o,r=t,i=Element.prototype;i!==r;){for(var a in o=HE(r),o)o[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&n.push(a);r=_y(r)}return n}function Jg(t,e){return t===e||t?.[ba]===e}function DS(t={},e,n,o){var r=Do.r,i=ae;return jy(()=>{var a,s;return nm(()=>{a=s,s=o?.()||[],Jl(()=>{Jg(n(...s),t)||(e(t,...s),a&&Jg(n(...a),t)&&e(null,...a))})}),()=>{let c=i;for(;c!==r&&c.parent!==null&&c.parent.f&33554432;)c=c.parent;let l=()=>{s&&Jg(n(...s),t)&&e(null,...s)},p=c.teardown;c.teardown=()=>{l(),p?.()}}}),t}function tz(...t){return new Proxy({props:t},QO)}function Wo(t,e,n,o){var r=!0,i=!!(n&8),a=!!(n&16),s=o,c=!0,l=void 0,p=()=>a&&r?(l??=ql(o),E(l)):(c&&(c=!1,s=a?Jl(o):o),s);let d;if(i){var u=ba in t||Ty in t;d=wi(t,e)?.set??(u&&e in t?w=>t[e]=w:void 0)}var m,h=!1;i?[m,h]=sO(()=>t[e]):m=t[e],m===void 0&&o!==void 0&&(m=p(),d&&(r&&Z$(e),d(m)));var f=r?()=>{var w=t[e];return w===void 0?p():(c=!0,w)}:()=>{var w=t[e];return w!==void 0&&(s=void 0),w===void 0?s:w};if(r&&!(n&4))return f;if(d){var g=t.$$legacy;return(function(w,T){return arguments.length>0?((!r||!T||g||h)&&d(T?f():w),w):f()})}var v=!1,k=(n&1?ql:Ry)(()=>(v=!1,f()));i&&E(k);var _=ae;return(function(w,T){if(arguments.length>0){let C=T?E(k):r&&i?Xa(w):w;return Zt(k,C),v=!0,s!==void 0&&(s=C),w}return Ei&&v||_.f&16384?k.v:E(k)})}function ez(t){return new nz(t)}function Fu(t,e,n,o){let r=n[t]?.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!n[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e==null?e:+e;default:return e}}function oz(t){let e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Iy(t,e,n,o,r,i){let a=class extends PS{constructor(){super(t,n,r),this.$$p_d=e}static get observedAttributes(){return Wu(e).map(s=>(e[s].attribute||s).toLowerCase())}};return Wu(e).forEach(s=>{Gu(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(c){c=Fu(s,c,e),this.$$d[s]=c;var l=this.$$c;l&&(wi(l,s)?.get?l[s]=c:l.$set({[s]:c}))}})}),o.forEach(s=>{Gu(a.prototype,s,{get(){return this.$$c?.[s]}})}),i&&(a=i(a)),t.element=a,a}function sz(t,e){rs(e,!0),bc(t,az);let n=Wo(e,"items",19,()=>[]),o=()=>["st-chartDataList",e.class].filter(Boolean).join(" ");var r=lc(),i=bo(r),a=s=>{var c=iz();Bo(c,21,n,HO,(l,p)=>{var d=rz(),u=Te(d,!0);ie(d),pe(()=>bn(u,E(p))),It(l,d)}),ie(c),pe(l=>{pc(c,1,l,"svelte-1ec57ko"),Y(c,"aria-label","Data values for ".concat(e.label))},[()=>MS(o())]),It(s,c)};nn(i,s=>{n().length>0&&s(a)}),It(t,r),is()}function cz(t,e){if(!t||t.length===0)return[];let{xScale:n,yScale:o,plotLeft:r,plotTop:i,plotWidth:a,plotHeight:s}=e,c=[];return t.forEach((l,p)=>{switch(l.kind){case"region":if(!Qg(l.from)||!Qg(l.to))return;if(l.axis==="x"){let d=n(l.from),u=n(l.to);if(d===null||u===null)return;let m=r+Math.min(d,u);c.push({kind:"region",key:p,axis:"x",x:m,y:i,width:Math.max(Math.abs(u-d),.5),height:s,label:l.label})}else{let d=o(l.from),u=o(l.to);if(d===null||u===null)return;let m=i+Math.min(d,u);c.push({kind:"region",key:p,axis:"y",x:r,y:m,width:a,height:Math.max(Math.abs(u-d),.5),label:l.label})}return;case"line":if(!Qg(l.value))return;if(l.axis==="x"){let d=n(l.value);if(d===null)return;let u=r+d;c.push({kind:"line",key:p,axis:"x",x1:u,y1:i,x2:u,y2:i+s,label:l.label})}else{let d=o(l.value);if(d===null)return;let u=i+d;c.push({kind:"line",key:p,axis:"y",x1:r,y1:u,x2:r+a,y2:u,label:l.label})}return;case"shape":{if(!l.points||l.points.length<2)return;let d=[];for(let h of l.points){let f=n(h.x),g=o(h.y);if(f===null||g===null)return;d.push({x:r+f,y:i+g})}let u=d.reduce((h,f)=>h+f.x,0)/d.length,m=d.reduce((h,f)=>h+f.y,0)/d.length;c.push({kind:"shape",key:p,points:d,label:l.label,labelX:u,labelY:m});return}case"point":{let d=n(l.x),u=o(l.y);if(d===null||u===null)return;c.push({kind:"point",key:p,x:r+d,y:i+u,label:l.label,marker:l.marker??"circle"});return}case"label":{let d=n(l.x),u=o(l.y);if(d===null||u===null)return;c.push({kind:"label",key:p,x:r+d,y:i+u,text:l.text,anchor:l.anchor??"middle"});return}}}),c}function lz(t){if(!t||t.length===0)return[];let e=[];for(let n of t){let o=n.kind==="label"?n.text:n.label;o&&e.push("Annotation: ".concat(o))}return e}function pz(t){return t.map(e=>"".concat(e.x.toFixed(2),",").concat(e.y.toFixed(2))).join(" ")}function dz(t){return t===!0?{enabled:!0}:t&&typeof t=="object"?{enabled:!0,format:t.format,position:t.position}:{enabled:!1}}function uz(t,e,n){return Number.isFinite(t)?e.format?e.format(t):n(t):""}function mz(t,e){return t==null?-1:e.indexOf(t)}function hz(t,e,n){return t===void 0?e??-1:mz(t,n)}function fz(t,e,n){if(n<=0)return null;let o=r=>Math.min(n-1,Math.max(0,r));switch(t){case"ArrowRight":case"ArrowDown":return{kind:"move",index:o(e+1)};case"ArrowLeft":case"ArrowUp":return{kind:"move",index:o(e-1)};case"Home":return{kind:"move",index:0};case"End":return{kind:"move",index:n-1};case"Enter":case" ":case"Spacebar":return{kind:"select"};case"Escape":case"Esc":return{kind:"escape"};default:return null}}function gz(t,e,n){return t===(e>=0&&e<n?e:0)?0:-1}function yz(t,e){return"".concat(t,", ").concat(e)}function tL(t,e){rs(e,!0),bc(t,Qz);let n=Wo(e,"width",3,480),o=Wo(e,"height",3,240),r=Wo(e,"orientation",3,"vertical"),i=Wo(e,"selectedKeys",19,()=>[]),a=Wo(e,"scale",3,"linear"),s=Wo(e,"invertAxis",3,!1),c={top:12,right:16,bottom:32,left:44};function l(P,O,W=5){if(!Number.isFinite(P)||!Number.isFinite(O)||P===O)return[Number.isFinite(O)?O:0];let I=(O-P)/Math.max(W-1,1),it=10**Math.floor(Math.log10(I)),Q=I/it,rt;rt=Q<1.5?1*it:Q<3?2*it:Q<7?5*it:10*it;let lt=Math.floor(P/rt)*rt,zt=Math.ceil(O/rt)*rt,Ee=[];for(let Bt=lt;Bt<=zt+rt/2;Bt+=rt)Ee.push(Number(Bt.toFixed(10)));return Ee}let p=P=>Array.from(new Set(P.filter(Number.isFinite).map(O=>Number(O.toFixed(10))))).sort((O,W)=>O-W);function d(P,O,W=5){return!Number.isFinite(P)||!Number.isFinite(O)||P>=O?l(P,O,W):p([P,...l(P,O,W).filter(I=>I>P&&I<O),O])}function u(...P){let O=1/0;for(let W of P)Number.isFinite(W)&&W>0&&W<O&&(O=W);return Number.isFinite(O)?O:1}function m(P,O){let W=P>0?P:1,I=O>W?O:W*10,it=Math.floor(Math.log10(W)),Q=Math.ceil(Math.log10(I)),rt=[];for(let lt=it;lt<=Q;lt++)rt.push(Number((10**lt).toFixed(10)));return rt.length?rt:[W]}function h(P,O){return!Number.isFinite(P)||!Number.isFinite(O)||P<=0||P>=O?m(P,O):p([P,...m(P,O).filter(W=>W>P&&W<O),O])}function f(P){return P&&Number.isFinite(P[0])&&Number.isFinite(P[1])&&P[0]<P[1]?P:null}function g(P){return P&&Number.isFinite(P[0])&&Number.isFinite(P[1])&&P[0]>0&&P[0]<P[1]?P:null}function v(P){return Number.isFinite(P)?Math.min(1,Math.max(0,P)):0}function k(P){return Math.abs(P)>=1e3?"".concat((P/1e3).toFixed(P%1e3==0?0:1),"k"):Number.isInteger(P)?String(P):P.toFixed(1)}function _(P,O){return"".concat(P,"--").concat(O??"neutral")}function w(P,O,W,I,it,Q,rt="y"){let lt=P,zt=O,Ee=Bt=>{Bt!==void 0&&Number.isFinite(Bt)&&(Bt<lt&&(lt=Bt),Bt>zt&&(zt=Bt))};for(let Bt of W??[])(Bt.axis??"y")===rt&&Ee(Bt.value);for(let Bt of I??[])Ee(Bt.from),Ee(Bt.to);it&&Ee(it.value);for(let Bt of Q)Ee(Bt);return[lt,zt]}function T(P,O,W){let I=[];for(let it of P??[])Number.isFinite(it.value)&&I.push(it.label?"R\xE9f\xE9rence: ".concat(it.label," = ").concat(it.value):"R\xE9f\xE9rence: ".concat(it.value));for(let it of O??[]){if(!Number.isFinite(it.from)||!Number.isFinite(it.to))continue;let Q=Math.min(it.from,it.to),rt=Math.max(it.from,it.to);I.push(it.label?"Bande: ".concat(it.label," (").concat(Q,"\u2013").concat(rt,")"):"Bande: ".concat(Q,"\u2013").concat(rt))}return W&&Number.isFinite(W.value)&&I.push(W.label?"Objectif: ".concat(W.label," = ").concat(W.value):"Objectif: ".concat(W.value)),I}let C=ln(null),B=Jt(()=>new Set(i())),D=Jt(()=>E(B).size>0),M=Jt(()=>typeof e.onSelect=="function"),N=Jt(()=>a()==="log"),z=Jt(()=>E(N)?g(e.domain):f(e.domain)),V=Jt(()=>e.goalLine&&Number.isFinite(e.goalLine.value)?e.goalLine:null),gt=Jt(()=>r()==="vertical"?"y":"x"),ht=Jt(()=>{let P=e.data.map(Q=>Q.value),O=e.data.flatMap(Q=>[Q.errorLow,Q.errorHigh].filter(rt=>rt!==void 0&&Number.isFinite(rt))),W,I;if(E(N)){let Q=[...(e.referenceLines??[]).filter(lt=>(lt.axis??"y")===E(gt)).map(lt=>lt.value),...(e.bands??[]).flatMap(lt=>[lt.from,lt.to]),...E(V)?[E(V).value]:[],...O];E(z)?(W=E(z)[0],I=E(z)[1]):(W=u(...P,...Q),I=Math.max(W,...P.filter(lt=>lt>0),...Q.filter(lt=>lt>0)));let rt=E(z)?h(W,I):m(W,I);return{ticks:rt,domainMin:rt[0],domainMax:rt[rt.length-1],plotWidth:Math.max(n()-c.left-c.right,1),plotHeight:Math.max(o()-c.top-c.bottom,1)}}W=E(z)?E(z)[0]:Math.min(0,...P),I=E(z)?E(z)[1]:Math.max(0,...P),E(z)||([W,I]=w(W,I,e.referenceLines,e.bands,E(V),O,E(gt)));let it=E(z)?d(W,I,5):l(W,I,5);return{ticks:it,domainMin:it[0],domainMax:it[it.length-1],plotWidth:Math.max(n()-c.left-c.right,1),plotHeight:Math.max(o()-c.top-c.bottom,1)}}),Rt=Jt(()=>P=>{let{domainMin:O,domainMax:W}=E(ht),I;if(E(N)){let it=Math.log10(O),Q=Math.log10(W);I=Q===it?0:(Math.log10(P>0?P:O)-it)/(Q-it)}else I=W===O?0:(P-O)/(W-O);return v(s()?1-I:I)}),Pe=Jt(()=>E(N)?E(ht).domainMin:Math.min(E(ht).domainMax,Math.max(E(ht).domainMin,0))),Pt=Jt(()=>{let{plotWidth:P,plotHeight:O}=E(ht);if(e.data.length===0)return[];if(r()==="vertical"){let rt=P/e.data.length,lt=rt*.62,zt=Bt=>O*(1-E(Rt)(Bt)),Ee=zt(E(Pe));return e.data.map((Bt,qe)=>{let tn=zt(Bt.value),so=Math.min(tn,Ee),fr=Math.abs(Ee-tn);return{x:c.left+rt*qe+(rt-lt)/2,y:c.top+so,width:lt,height:Math.max(fr,.5),cx:c.left+rt*(qe+.5),cy:c.top+tn,datum:Bt,tone:Bt.tone??"category1"}})}let W=O/e.data.length,I=W*.62,it=rt=>P*E(Rt)(rt),Q=it(E(Pe));return e.data.map((rt,lt)=>{let zt=it(rt.value),Ee=Math.min(zt,Q),Bt=Math.abs(zt-Q),qe=c.top+W*lt+(W-I)/2;return{x:c.left+Ee,y:qe,width:Math.max(Bt,.5),height:I,cx:c.left+zt,cy:c.top+W*(lt+.5),datum:rt,tone:rt.tone??"category1"}})}),Et=Jt(()=>r()==="vertical"),St=Jt(()=>P=>{let{plotWidth:O,plotHeight:W}=E(ht);return E(Et)?c.top+W*(1-E(Rt)(P)):c.left+O*E(Rt)(P)}),pt=Jt(()=>(e.bands??[]).filter(P=>Number.isFinite(P.from)&&Number.isFinite(P.to)).map((P,O)=>{let W=E(St)(P.from),I=E(St)(P.to);return E(Et)?{key:O,x:c.left,y:Math.min(W,I),width:E(ht).plotWidth,height:Math.max(Math.abs(I-W),.5),label:P.label,tone:P.tone}:{key:O,x:Math.min(W,I),y:c.top,width:Math.max(Math.abs(I-W),.5),height:E(ht).plotHeight,label:P.label,tone:P.tone}})),Ot=Jt(()=>(e.referenceLines??[]).filter(P=>Number.isFinite(P.value)).map((P,O)=>{let W=E(St)(P.value);return E(Et)?{key:O,x1:c.left,x2:c.left+E(ht).plotWidth,y1:W,y2:W,label:P.label,tone:P.tone}:{key:O,x1:W,x2:W,y1:c.top,y2:c.top+E(ht).plotHeight,label:P.label,tone:P.tone}})),U=Jt(()=>E(V)?{p:E(St)(E(V).value),label:E(V).label,value:E(V).value}:null),G=Jt(()=>{let P=[];for(let O of E(Pt)){let{errorLow:W,errorHigh:I}=O.datum,it=W!==void 0&&Number.isFinite(W),Q=I!==void 0&&Number.isFinite(I);if(!it&&!Q)continue;let rt=it?W:O.datum.value,lt=Q?I:O.datum.value,zt=E(St)(rt),Ee=E(St)(lt);if(E(Et)){let Bt=O.x+O.width/2;P.push({key:O.datum.label,stem:{x1:Bt,y1:zt,x2:Bt,y2:Ee},capLow:{x1:Bt-4,y1:zt,x2:Bt+4,y2:zt},capHigh:{x1:Bt-4,y1:Ee,x2:Bt+4,y2:Ee}})}else{let Bt=O.y+O.height/2;P.push({key:O.datum.label,stem:{x1:zt,y1:Bt,x2:Ee,y2:Bt},capLow:{x1:zt,y1:Bt-4,x2:zt,y2:Bt+4},capHigh:{x1:Ee,y1:Bt-4,x2:Ee,y2:Bt+4}})}}return P}),nt=Jt(()=>P=>{let O=E(Pt).find(W=>W.datum.label===String(P));return O?E(Et)?O.cx-c.left:O.cy-c.top:null}),Yt=Jt(()=>P=>Number.isFinite(P)?E(St)(P)-(E(Et)?c.top:c.left):null),fe=Jt(()=>P=>!P||E(Et)?P:P.map(O=>{switch(O.kind){case"line":return{...O,axis:O.axis==="x"?"y":"x"};case"region":return{...O,axis:O.axis==="x"?"y":"x"};case"point":return{...O,x:O.y,y:typeof O.x=="number"?O.x:NaN};case"label":return{...O,x:O.y,y:typeof O.x=="number"?O.x:NaN};case"shape":return{...O,points:O.points.map(W=>({x:W.y,y:typeof W.x=="number"?W.x:NaN}))}}})),R=Jt(()=>P=>E(Et)?E(nt)(P):typeof P=="number"?E(Yt)(P):null),x=Jt(()=>P=>E(Et)?E(Yt)(P):E(nt)(P)),b=Jt(()=>cz(E(fe)(e.annotations),{xScale:E(R),yScale:E(x),plotLeft:c.left,plotTop:c.top,plotWidth:E(ht).plotWidth,plotHeight:E(ht).plotHeight})),L=Jt(()=>E(b).filter(P=>P.kind==="region")),H=Jt(()=>E(b).filter(P=>P.kind!=="region")),ot=Jt(()=>dz(e.dataLabels)),bt=Jt(()=>E(ot).enabled?E(Pt).map(P=>{let O=uz(P.datum.value,E(ot),k),W=E(ot).position??"outside",I=W==="inside"||W==="center";if(E(Et)){let rt=P.cx,lt=I?P.y+P.height/2:P.cy-6;return{key:P.datum.label,x:rt,y:lt,text:O,anchor:"middle",baseline:I?"middle":"auto"}}let it=P.cy,Q=I?P.x+P.width/2:P.cx+4;return{key:P.datum.label,x:Q,y:it,text:O,anchor:I?"middle":"start",baseline:"middle"}}):[]),vt=Jt(()=>[...e.data.map(P=>"".concat(P.label,": ").concat(P.value)),...T(e.referenceLines,e.bands,E(V)),...lz(e.annotations)]),de=Jt(()=>{let{ticks:P,plotWidth:O,plotHeight:W}=E(ht);return r()==="vertical"?P.map(I=>({value:I,x1:c.left,x2:c.left+O,y:c.top+W*(1-E(Rt)(I)),x:void 0,y1:void 0,y2:void 0})):P.map(I=>({value:I,x:c.left+O*E(Rt)(I),y1:c.top,y2:c.top+W,x1:void 0,x2:void 0,y:void 0}))}),Gt=Jt(()=>E(Pt).map(P=>P.datum.label));function Xt(P){e.onHoverKeyChange?.(P==null?null:E(Gt)[P]??null)}function _e(){Zt(C,null),Xt(null)}function Oe(P){let O=P.target;if(!(O instanceof Element)){Zt(C,null),Xt(null);return}let W=Number(O.getAttribute("data-chart-index")),I=Number.isInteger(W)?W:null;Zt(C,I,!0),Xt(I)}let q=Jt(()=>hz(e.hoverKey,E(C),E(Gt))),st=ln(-1),wt=[],se=Jt(()=>(e.keyboardNav===!0||e.onSelectKey!==void 0)&&E(Pt).length>0);function ze(P){Zt(st,P,!0),wt[P]?.focus(),Xt(P)}function ce(P,O){let W=fz(P.key,O,E(Pt).length);W&&(P.preventDefault(),W.kind==="move"?ze(W.index):W.kind==="select"?e.onSelectKey?.(E(Pt)[O].datum.label):(Zt(st,-1),Xt(null),e.onSelectKey?.(null),P.currentTarget.blur()))}let Re=()=>["st-barChart",e.class].filter(Boolean).join(" ");var te=Jz(),Qe=Te(te),Kn=Te(Qe),Le=Te(Kn),qt=P=>{var O=lc();Bo(bo(O),17,()=>E(de),W=>W.value,(W,I)=>{var it=bz(),Q=bo(it),rt=Se(Q),lt=Te(rt,!0);ie(rt),pe(zt=>{Y(Q,"x1",E(I).x1),Y(Q,"x2",E(I).x2),Y(Q,"y1",E(I).y),Y(Q,"y2",E(I).y),Y(rt,"x",c.left-6),Y(rt,"y",E(I).y),bn(lt,zt)},[()=>k(E(I).value)]),It(W,it)}),It(P,O)},ee=P=>{var O=lc();Bo(bo(O),17,()=>E(de),W=>W.value,(W,I)=>{var it=vz(),Q=bo(it),rt=Se(Q),lt=Te(rt,!0);ie(rt),pe(zt=>{Y(Q,"x1",E(I).x),Y(Q,"x2",E(I).x),Y(Q,"y1",E(I).y1),Y(Q,"y2",E(I).y2),Y(rt,"x",E(I).x),Y(rt,"y",o()-c.bottom+16),bn(lt,zt)},[()=>k(E(I).value)]),It(W,it)}),It(P,O)};nn(Le,P=>{r()==="vertical"?P(qt):P(ee,-1)});var xo=Se(Le),Po=Se(xo),ti=Se(Po);Bo(ti,19,()=>E(Pt),P=>P.datum.label,(P,O)=>{var W=lc(),I=bo(W),it=rt=>{var lt=xz(),zt=Te(lt,!0);ie(lt),pe(()=>{Y(lt,"x",E(O).x+E(O).width/2),Y(lt,"y",o()-c.bottom+16),bn(zt,E(O).datum.label)}),It(rt,lt)},Q=rt=>{var lt=kz(),zt=Te(lt,!0);ie(lt),pe(()=>{Y(lt,"x",c.left-6),Y(lt,"y",E(O).y+E(O).height/2),bn(zt,E(O).datum.label)}),It(rt,lt)};nn(I,rt=>{r()==="vertical"?rt(it):rt(Q,-1)}),It(P,W)});var $=Se(ti);Bo($,17,()=>E(pt),P=>P.key,(P,O)=>{var W=_z(),I=bo(W),it=Se(I),Q=rt=>{var lt=wz(),zt=Te(lt,!0);ie(lt),pe(()=>{Y(lt,"x",E(O).x+4),Y(lt,"y",E(O).y+11),bn(zt,E(O).label)}),It(rt,lt)};nn(it,rt=>{E(O).label&&rt(Q)}),pe(rt=>{pc(I,0,rt,"svelte-101a3kf"),Y(I,"x",E(O).x),Y(I,"y",E(O).y),Y(I,"width",E(O).width),Y(I,"height",E(O).height)},[()=>"st-barChart__band ".concat(_("st-barChart__band",E(O).tone))]),It(P,W)});var X=Se($);Bo(X,17,()=>E(Ot),P=>P.key,(P,O)=>{var W=Sz(),I=bo(W),it=Se(I),Q=rt=>{var lt=Ez(),zt=Te(lt,!0);ie(lt),pe(()=>{Y(lt,"x",E(Et)?c.left+E(ht).plotWidth-4:E(O).x1+4),Y(lt,"y",E(Et)?E(O).y1-4:c.top+11),Y(lt,"text-anchor",E(Et)?"end":"start"),bn(zt,E(O).label)}),It(rt,lt)};nn(it,rt=>{E(O).label&&rt(Q)}),pe(rt=>{pc(I,0,rt,"svelte-101a3kf"),Y(I,"x1",E(O).x1),Y(I,"x2",E(O).x2),Y(I,"y1",E(O).y1),Y(I,"y2",E(O).y2)},[()=>"st-barChart__refLine ".concat(_("st-barChart__refLine",E(O).tone))]),It(P,W)});var mt=Se(X),ct=P=>{var O=Rz();Bo(O,21,()=>E(L),W=>W.key,(W,I)=>{var it=lc(),Q=bo(it),rt=lt=>{var zt=Cz(),Ee=bo(zt),Bt=Se(Ee),qe=tn=>{var so=Tz(),fr=Te(so,!0);ie(so),pe(()=>{Y(so,"x",E(I).x+4),Y(so,"y",E(I).y+11),bn(fr,E(I).label)}),It(tn,so)};nn(Bt,tn=>{E(I).label&&tn(qe)}),pe(()=>{Y(Ee,"x",E(I).x),Y(Ee,"y",E(I).y),Y(Ee,"width",E(I).width),Y(Ee,"height",E(I).height)}),It(lt,zt)};nn(Q,lt=>{E(I).kind==="region"&<(rt)}),It(W,it)}),ie(O),It(P,O)};nn(mt,P=>{E(L).length>0&&P(ct)});var xt=Se(mt);Bo(xt,19,()=>E(Pt),P=>P.datum.label,(P,O,W)=>{let I=Jt(()=>E(B).has(E(O).datum.label));var it=Bz();let Q;pe(()=>{Q=pc(it,0,"st-barChart__bar st-barChart__bar--".concat(E(O).tone??""),"svelte-101a3kf",Q,{"st-barChart__bar--selected":E(I),"st-barChart__bar--dim":E(D)&&!E(I),"st-barChart__bar--interactive":E(M)}),Y(it,"x",E(O).x),Y(it,"y",E(O).y),Y(it,"width",E(O).width),Y(it,"height",E(O).height),Y(it,"data-chart-index",E(W))}),Lu("click",it,function(...rt){(E(M)?()=>e.onSelect?.(E(O).datum.label):void 0)?.apply(this,rt)}),It(P,it)});var Vt=Se(xt);Bo(Vt,17,()=>E(G),P=>P.key,(P,O)=>{var W=Az(),I=Te(W),it=Se(I),Q=Se(it);ie(W),pe(()=>{Y(I,"x1",E(O).stem.x1),Y(I,"y1",E(O).stem.y1),Y(I,"x2",E(O).stem.x2),Y(I,"y2",E(O).stem.y2),Y(it,"x1",E(O).capLow.x1),Y(it,"y1",E(O).capLow.y1),Y(it,"x2",E(O).capLow.x2),Y(it,"y2",E(O).capLow.y2),Y(Q,"x1",E(O).capHigh.x1),Y(Q,"y1",E(O).capHigh.y1),Y(Q,"x2",E(O).capHigh.x2),Y(Q,"y2",E(O).capHigh.y2)}),It(P,W)});var At=Se(Vt),be=P=>{var O=Pz(),W=bo(O),I=lt=>{var zt=Mz();pe(()=>{Y(zt,"x1",c.left),Y(zt,"x2",c.left+E(ht).plotWidth),Y(zt,"y1",E(U).p),Y(zt,"y2",E(U).p)}),It(lt,zt)},it=lt=>{var zt=Dz();pe(()=>{Y(zt,"x1",E(U).p),Y(zt,"x2",E(U).p),Y(zt,"y1",c.top),Y(zt,"y2",c.top+E(ht).plotHeight)}),It(lt,zt)};nn(W,lt=>{E(Et)?lt(I):lt(it,-1)});var Q=Se(W),rt=Te(Q,!0);ie(Q),pe(()=>{Y(Q,"x",E(Et)?c.left+E(ht).plotWidth-4:E(U).p+4),Y(Q,"y",E(Et)?E(U).p-4:c.top+11),Y(Q,"text-anchor",E(Et)?"end":"start"),bn(rt,E(U).label??"Objectif ".concat(E(U).value))}),It(P,O)};nn(At,P=>{E(U)&&P(be)});var Ve=Se(At),Mn=P=>{var O=Hz();Bo(O,21,()=>E(H),W=>W.key,(W,I)=>{var it=lc(),Q=bo(it),rt=Bt=>{var qe=$z(),tn=bo(qe),so=Se(tn),fr=co=>{var Fe=jz(),Si=Te(Fe,!0);ie(Fe),pe(()=>{Y(Fe,"x",E(I).axis==="x"?E(I).x1+4:c.left+E(ht).plotWidth-4),Y(Fe,"y",E(I).axis==="x"?c.top+11:E(I).y1-4),Y(Fe,"text-anchor",E(I).axis==="x"?"start":"end"),bn(Si,E(I).label)}),It(co,Fe)};nn(so,co=>{E(I).label&&co(fr)}),pe(()=>{Y(tn,"x1",E(I).x1),Y(tn,"y1",E(I).y1),Y(tn,"x2",E(I).x2),Y(tn,"y2",E(I).y2)}),It(Bt,qe)},lt=Bt=>{var qe=zz(),tn=bo(qe),so=Se(tn),fr=co=>{var Fe=Oz(),Si=Te(Fe,!0);ie(Fe),pe(()=>{Y(Fe,"x",E(I).labelX),Y(Fe,"y",E(I).labelY),bn(Si,E(I).label)}),It(co,Fe)};nn(so,co=>{E(I).label&&co(fr)}),pe(co=>Y(tn,"points",co),[()=>pz(E(I).points)]),It(Bt,qe)},zt=Bt=>{var qe=Nz(),tn=bo(qe),so=Se(tn),fr=co=>{var Fe=Lz(),Si=Te(Fe,!0);ie(Fe),pe(()=>{Y(Fe,"x",E(I).x),Y(Fe,"y",E(I).y-8),bn(Si,E(I).label)}),It(co,Fe)};nn(so,co=>{E(I).label&&co(fr)}),pe(()=>{Y(tn,"cx",E(I).x),Y(tn,"cy",E(I).y)}),It(Bt,qe)},Ee=Bt=>{var qe=Iz(),tn=Te(qe,!0);ie(qe),pe(()=>{Y(qe,"x",E(I).x),Y(qe,"y",E(I).y),Y(qe,"text-anchor",E(I).anchor),bn(tn,E(I).text)}),It(Bt,qe)};nn(Q,Bt=>{E(I).kind==="line"?Bt(rt):E(I).kind==="shape"?Bt(lt,1):E(I).kind==="point"?Bt(zt,2):Bt(Ee,-1)}),It(W,it)}),ie(O),It(P,O)};nn(Ve,P=>{E(H).length>0&&P(Mn)});var Sn=Se(Ve),ro=P=>{var O=Wz();Bo(O,21,()=>E(bt),W=>W.key,(W,I)=>{var it=Fz(),Q=Te(it,!0);ie(it),pe(()=>{Y(it,"x",E(I).x),Y(it,"y",E(I).y),Y(it,"text-anchor",E(I).anchor),Y(it,"dominant-baseline",E(I).baseline),bn(Q,E(I).text)}),It(W,it)}),ie(O),It(P,O)};nn(Sn,P=>{E(bt).length>0&&P(ro)});var io=Se(Sn),ao=P=>{let O=Jt(()=>E(Pt)[E(q)]);var W=Vz(),I=Te(W),it=rt=>{var lt=Gz();pe(()=>{Y(lt,"x1",E(O).cx),Y(lt,"x2",E(O).cx),Y(lt,"y1",c.top),Y(lt,"y2",c.top+E(ht).plotHeight)}),It(rt,lt)},Q=rt=>{var lt=Uz();pe(()=>{Y(lt,"x1",c.left),Y(lt,"x2",c.left+E(ht).plotWidth),Y(lt,"y1",E(O).cy),Y(lt,"y2",E(O).cy)}),It(rt,lt)};nn(I,rt=>{E(Et)?rt(it):rt(Q,-1)}),ie(W),It(P,W)};nn(io,P=>{E(q)>=0&&E(Pt)[E(q)]&&P(ao)}),ie(Kn);var me=Se(Kn,2),je=P=>{var O=Kz();Bo(O,23,()=>E(Pt),W=>W.datum.label,(W,I,it)=>{var Q=qz();DS(Q,(rt,lt)=>wt[lt]=rt,rt=>wt?.[rt],()=>[E(it)]),pe((rt,lt)=>{Y(Q,"x",E(I).x),Y(Q,"y",E(I).y),Y(Q,"width",E(I).width),Y(Q,"height",E(I).height),Y(Q,"tabindex",rt),Y(Q,"aria-label",lt)},[()=>gz(E(it),E(st),E(Pt).length),()=>yz(E(I).datum.label,E(I).datum.value)]),Lu("keydown",Q,rt=>ce(rt,E(it))),wE("focus",Q,()=>{Zt(st,E(it),!0),Xt(E(it))}),It(W,Q)}),ie(O),pe(()=>{Y(O,"viewBox","0 0 ".concat(n()??""," ").concat(o()??"")),Y(O,"aria-label","".concat(e.label," \u2014 points de donn\xE9es"))}),It(P,O)};nn(me,P=>{E(se)&&P(je)}),ie(Qe);var Yn=Se(Qe,2),vc=P=>{var O=Xz();Bo(O,21,()=>E(Pt),W=>W.datum.label,(W,I)=>{let it=Jt(()=>E(B).has(E(I).datum.label));var Q=Yz();let rt;var lt=Se(Te(Q));ie(Q),pe(()=>{rt=pc(Q,1,"st-barChart__filterChip st-barChart__filterChip--".concat(E(I).tone??""),"svelte-101a3kf",rt,{"st-barChart__filterChip--selected":E(it)}),Y(Q,"aria-pressed",E(it)),bn(lt," ".concat(E(I).datum.label??"",": ").concat(E(I).datum.value??""))}),Lu("click",Q,()=>e.onSelect?.(E(I).datum.label)),It(W,Q)}),ie(O),pe(()=>Y(O,"aria-label","Filtrer par ".concat(e.label))),It(P,O)};nn(Yn,P=>{E(M)&&P(vc)});var Ql=Se(Yn,2);sz(Ql,{get label(){return e.label},get items(){return E(vt)}});var tp=Se(Ql,2),xc=P=>{let O=Jt(()=>E(Pt)[E(q)]);var W=Zz(),I=Te(W),it=Te(I,!0);ie(I);var Q=Se(I,2),rt=Te(Q,!0);ie(Q),ie(W),pe(()=>{qO(W,"left: ".concat(E(O).cx/n()*100,"%; top: ").concat(E(O).cy/o()*100,"%")),bn(it,E(O).datum.label),bn(rt,E(O).datum.value)}),It(P,W)};nn(tp,P=>{E(q)>=0&&E(Pt)[E(q)]&&P(xc)}),ie(te),pe(P=>{pc(te,1,P,"svelte-101a3kf"),Y(Qe,"aria-label",e.label),Y(Kn,"viewBox","0 0 ".concat(n()??""," ").concat(o()??"")),Y(xo,"x1",c.left),Y(xo,"x2",c.left),Y(xo,"y1",c.top),Y(xo,"y2",o()-c.bottom),Y(Po,"x1",c.left),Y(Po,"x2",n()-c.right),Y(Po,"y1",o()-c.bottom),Y(Po,"y2",o()-c.bottom)},[()=>MS(Re())]),Lu("pointermove",Qe,Oe),wE("pointerleave",Qe,_e),It(t,te),is()}function jS(t,e){return{code:"engine-load-failed",path:"",message:"the ".concat(t," engine failed to load: ").concat(e),severity:"error",source:"host",detail:{chunk:t,cause:e}}}function eL(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function AE(t,e){return"".concat(t,"/").concat(eL(e))}function $S(t){let e;try{let n=JSON.stringify(t);if(typeof n!="string")return{ok:!1,kind:"not-json-value",message:"the envelope is not a JSON value (\xA74.3)"};e=n}catch(n){return{ok:!1,kind:"not-serializable",message:"the envelope is not JSON-serializable (\xA74.3): ".concat(n instanceof Error?n.message:String(n))}}return{ok:!0,value:JSON.parse(e),text:e}}function nL(t){let e=0;for(let n=0;n<t.length;n+=1){let o=t.charCodeAt(n);o<=127?e+=1:o<=2047?e+=2:o>=55296&&o<=56319?(e+=4,n+=1):e+=3}return e}function ME(t){let e=/^([0-9]+)\.([0-9]+)$/.exec(t);if(e!=null)return{major:Number(e[1]),minor:Number(e[2])}}function DE(t,e){return t.map(n=>{let o="".concat(e).concat(n.pointer);return n.keyword==="required"&&n.missingProperty!==void 0?o=AE(o,n.missingProperty):(n.keyword==="unevaluatedProperties"||n.keyword==="additionalProperties")&&n.additionalProperty!==void 0&&(o=AE(o,n.additionalProperty)),{code:"schema-violation",path:o,message:n.message,severity:"error",source:"catalog",detail:{keyword:n.keyword}}})}function oL(t){let{catalog:e,structure:n,ports:o}=t;return{validate(r){let i=$S(r);if(!i.ok)return[{code:"schema-violation",path:"",message:i.message,severity:"error",source:"catalog"}];let a=i.text,s=nL(a);if(s>1048576)return[{code:"payload-too-large",path:"",message:"the envelope is ".concat(s," UTF-8 bytes, over the ").concat(RE,"-byte budget (\xA74.3 item 3)"),severity:"error",source:"catalog",detail:{limitBytes:RE,actualBytes:s}}];let c=n.validateEnvelope(i.value);if(c.length>0)return DE(c,"");let l=i.value,p=l.catalogId;if(p!==void 0&&p!==e.catalogId)return[{code:"schema-violation",path:"/catalogId",message:"the envelope must name its catalogue (".concat(String(e.catalogId),")"),severity:"error",source:"catalog",detail:{expected:e.catalogId,found:p}}];if(l.mode==="preview")return[{code:"unsupported-mode",path:"/mode",message:'mode "preview" is reserved and not rendered by this catalogue (\xA710.3)',severity:"error",source:"catalog",detail:{mode:"preview"}}];let d=l.root,u=d.component;if(typeof u!="string"||!(u in e.components))return[{code:"unknown-component",path:"/root/component",message:"no catalogued component is named ".concat(String(u)),severity:"error",source:"catalog",detail:{component:u}}];let m=e.components[u];if(m===void 0)return[{code:"unknown-component",path:"/root/component",message:"no catalogued component is named ".concat(u),severity:"error",source:"catalog",detail:{component:u}}];let h=m["x-sentropic"];if(h?.status==="unknown")return[{code:"component-unavailable",path:"/root/component",message:"".concat(u,' is catalogued as a placeholder (x-sentropic.status "unknown") and cannot render'),severity:"error",source:"catalog",detail:{component:u}}];let f=l.contract,g=h?.contract;if(typeof g!="string")return[{code:"schema-violation",path:"/root/component",message:"the catalogued entry for ".concat(u," declares no x-sentropic contract"),severity:"error",source:"catalog"}];let v=ME(g),k=typeof f=="string"?ME(f):void 0;if(v===void 0||k===void 0)return[{code:"schema-violation",path:"/contract",message:'contract versions are "major.minor" strings (\xA74.4): envelope '.concat(String(f),", entry ").concat(g),severity:"error",source:"catalog"}];if(k.major!==v.major||k.minor>v.minor)return[{code:"unsupported-contract",path:"/contract",message:"the envelope targets contract ".concat(String(f)," but ").concat(u," is at ").concat(g," (\xA74.4: an envelope may be older, never newer)"),severity:"error",source:"catalog",detail:{expected:g,found:f}}];let _=n.validateComponent(u,d);if(_.length>0)return DE(_,"/root");let w=h?.engine;if(typeof w!="string"||!w.startsWith("lazy:"))return[];let T=w.slice(5),C=o?.[T],B="/root/".concat(BE);if(C===void 0)return[{code:"host-capability-missing",path:B,message:"the host did not inject the ".concat(T," semantic port (engine ").concat(w,"); the owning runtime validates this payload (\xA74.3 item 2)"),severity:"error",source:"host",detail:{chunk:T,engine:w}}];let D;try{D=C.validate(d[BE])}catch(M){return[{...jS(T,M instanceof Error?M.message:String(M)),path:B}]}return D.map(M=>({code:M.severity==="warning"?M.code:"semantic-invalid",path:"".concat(B).concat(M.pointer??""),message:M.message,severity:M.severity,source:C.source,detail:{code:M.code}}))}}}function In(t){return typeof t=="object"&&!!t&&!Array.isArray(t)}function ty(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function Yu(t,e){if(t===e)return!0;if(!In(t)&&!Array.isArray(t))return!1;if(Array.isArray(t))return!Array.isArray(e)||t.length!==e.length?!1:t.every((r,i)=>Yu(r,e[i]));if(!In(e))return!1;let n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(r=>Object.hasOwn(e,r)&&Yu(t[r],e[r]))}function sL(t,e){switch(t){case"object":return In(e);case"array":return Array.isArray(e);case"string":return typeof e=="string";case"number":return typeof e=="number";case"integer":return typeof e=="number"&&Number.isInteger(e);case"boolean":return typeof e=="boolean";case"null":return e===null;default:return!0}}function lL(t,e){let n=t.lastIndexOf("/");return n===-1?e:"".concat(t.slice(0,n+1)).concat(e)}function pL(t,e,n){if(!e.startsWith("/"))throw Error('the $ref "'.concat(n,'" must use a JSON pointer (URI fragments are not used by the registered documents)'));let o=t;for(let r of e.slice(1).split("/")){let i=r.replace(/~1/g,"/").replace(/~0/g,"~");if(Array.isArray(o)){let a=Number(i);if(!Number.isInteger(a)||a<0||a>=o.length)throw Error('the $ref "'.concat(n,'" does not resolve: no array item ').concat(i));o=o[a]}else{if(!In(o)||!Object.hasOwn(o,i))throw Error('the $ref "'.concat(n,'" does not resolve: no property "').concat(i,'"'));o=o[i]}}return o}function Fl(t,e){if(typeof t=="boolean")return;if(!In(t))throw Error("the ".concat(e," contains a schema that is neither a boolean nor an object"));for(let r of Object.keys(t))if(!(r.startsWith("x-")||iL.has(r)||rL.has(r)))throw aL.has(r)?Error("the ".concat(e,' uses "').concat(r,"\", outside the browser structure interpreter's keyword set (\xA76.4): extend src/structure/interpreter.ts and its oracle test")):Error("the ".concat(e,' uses unknown keyword "').concat(r,'": extend src/structure/interpreter.ts and its oracle test, or allowlist it as an annotation'));let n=t.items;if(Array.isArray(n))throw Error("the ".concat(e,' uses "items" in its legacy tuple form, which the browser structure interpreter does not implement'));if(n!==void 0&&!In(n)&&typeof n!="boolean")throw Error("the ".concat(e,' uses "items" in a non-schema form, which the browser structure interpreter does not implement'));for(let r of["additionalProperties","unevaluatedProperties","not"]){let i=t[r];if(i!==void 0&&!In(i)&&typeof i!="boolean")throw Error("the ".concat(e,' uses "').concat(r,'" in a non-schema form, which the browser structure interpreter does not implement'))}for(let r of["allOf","anyOf","oneOf"]){let i=t[r];if(i!==void 0&&!Array.isArray(i))throw Error("the ".concat(e,' uses "').concat(r,'" in a non-array form, which the browser structure interpreter does not implement'))}let o=[];for(let r of["$defs","properties","components"]){let i=t[r];if(In(i))for(let a of Object.values(i))o.push(["".concat(r," entry"),a])}n!==void 0&&o.push(["items",n]);for(let r of["additionalProperties","unevaluatedProperties","not"]){let i=t[r];(In(i)||typeof i=="boolean")&&o.push([r,i])}for(let r of["allOf","anyOf","oneOf"]){let i=t[r];if(Array.isArray(i))for(let a of i)o.push([r,a])}for(let[r,i]of o)Fl(i,"".concat(e," (").concat(r,")"))}function Sr(t,e,n,o,r,i){if(t===!0)return{ok:!0,evaluated:ey};if(t===!1||t==null)return i.push({pointer:n,message:"the schema is false here",keyword:"schema"}),{ok:!1,evaluated:ey};if(!In(t))return i.push({pointer:n,message:"the schema node is neither a boolean nor an object",keyword:"schema"}),{ok:!1,evaluated:ey};let a=!0,s=new Set,c=k=>{a=!1,i.push(k)},l=t.$ref,p=o;if(typeof l=="string"){let k=r.resolve(l,o),_=Sr(k.schema,e,n,k.baseId,r,i);for(let w of _.evaluated)s.add(w);_.ok||(a=!1)}let d=t.type;if(d!==void 0){let k=Array.isArray(d)?d:[d],_=k.filter(w=>typeof w=="string");k.length>0&&_.length===k.length&&!_.some(w=>sL(w,e))&&c({pointer:n,message:"must be ".concat(_.join(",")),keyword:"type"})}let u=t.enum;Array.isArray(u)&&!u.some(k=>Yu(k,e))&&c({pointer:n,message:"must be equal to one of the allowed values",keyword:"enum"}),Object.hasOwn(t,"const")&&!Yu(t.const,e)&&c({pointer:n,message:"must be equal to constant",keyword:"const"});let m=t.pattern;if(typeof m=="string"&&typeof e=="string"&&!new RegExp(m,"u").test(e)&&c({pointer:n,message:'must match pattern "'.concat(m,'"'),keyword:"pattern"}),In(e)){let k=Object.keys(e),_=t.required;if(Array.isArray(_))for(let B of _)typeof B=="string"&&!Object.hasOwn(e,B)&&c({pointer:n,message:"must have required property '".concat(B,"'"),keyword:"required",missingProperty:B});let w=In(t.properties)?t.properties:{};for(let[B,D]of Object.entries(w))Object.hasOwn(e,B)&&(s.add(B),Sr(D,e[B],"".concat(n,"/").concat(ty(B)),p,r,i).ok||(a=!1));let T=t.additionalProperties,C=new Set(Object.keys(w));if(T===!1)for(let B of k)C.has(B)||(s.add(B),c({pointer:n,message:"must NOT have additional properties",keyword:"additionalProperties",additionalProperty:B}));else if(In(T)||T===!0){let B=In(T);for(let D of k)C.has(D)||(s.add(D),!B)||Sr(T,e[D],"".concat(n,"/").concat(ty(D)),p,r,i).ok||(a=!1)}}if(Array.isArray(e)){let k=t.minItems;typeof k=="number"&&e.length<k&&c({pointer:n,message:"must NOT have fewer than ".concat(k," items"),keyword:"minItems"});let _=t.maxItems;typeof _=="number"&&e.length>_&&c({pointer:n,message:"must NOT have more than ".concat(_," items"),keyword:"maxItems"});let w=t.items;w!==void 0&&!Array.isArray(w)&&e.forEach((T,C)=>{Sr(w,T,"".concat(n,"/").concat(C),p,r,i).ok||(a=!1)})}let h=t.allOf;if(Array.isArray(h))for(let k of h){let _=Sr(k,e,n,p,r,i);for(let w of _.evaluated)s.add(w);_.ok||(a=!1)}let f=t.anyOf;if(Array.isArray(f)){let k=!1,_=[];for(let w of f){let T=[],C=Sr(w,e,n,p,r,T);if(_.push(T),C.ok){k=!0;for(let B of C.evaluated)s.add(B)}}if(!k){a=!1;for(let w of _)i.push(...w);i.push({pointer:n,message:"must match a schema in anyOf",keyword:"anyOf"})}}let g=t.oneOf;if(Array.isArray(g)){let k=[],_=[],w=0,T=-1;if(g.forEach((C,B)=>{let D=[],M=Sr(C,e,n,p,r,D);k.push(D),_.push(M.evaluated),M.ok&&(w+=1,T=B)}),w===1&&T>=0)for(let C of _[T]??[])s.add(C);else{a=!1;for(let C of k)i.push(...C);i.push({pointer:n,message:"must match exactly one schema in oneOf",keyword:"oneOf"})}}let v=t.not;if(v!==void 0&&Sr(v,e,n,p,r,[]).ok&&(i.push({pointer:n,message:"must NOT be valid",keyword:"not"}),a=!1),In(e)){let k=t.unevaluatedProperties;if(k!==void 0){let _=Object.keys(e).filter(w=>!s.has(w));if(k===!1)for(let w of _)c({pointer:n,message:"must NOT have unevaluated properties",keyword:"unevaluatedProperties",additionalProperty:w});else if((In(k)||k===!0)&&In(k))for(let w of _)Sr(k,e[w],"".concat(n,"/").concat(ty(w)),p,r,i).ok?s.add(w):a=!1}}return{ok:a,evaluated:s}}function dL(t){let e=new cL,n=e.register(t.catalog,"catalogue document");if(typeof t.catalog.catalogId!="string"||t.catalog.catalogId.length===0)throw Error("the catalogue document must carry its catalogId (\xA75.2: $id = catalogId)");let o=e.register(t.envelopeSchema,"envelope schema");return e.register(t.commonTypes,"A2UI common types"),e.register(OE,"built catalog.json stub"),Fl(t.catalog,"catalogue document"),Fl(t.envelopeSchema,"envelope schema"),Fl(t.commonTypes,"A2UI common types"),Fl(OE,"built catalog.json stub"),{validateEnvelope(r){let i=[];return Sr(t.envelopeSchema,r,"",o,e,i),i},validateComponent(r,i){let a=t.catalog.components[r];if(a===void 0)return[{pointer:"/component",message:"no catalogued component is named ".concat(r),keyword:"$compile"}];let s=[];return Sr(a,i,"",n,e,s),s}}}function uL(){return new Proxy({},{get(t,e){return OS.get(e)}})}function zE(){return ny===void 0&&(ny=oL({catalog:PE,envelopeSchema:jE,commonTypes:$E,ports:uL(),structure:dL({catalog:PE,envelopeSchema:jE,commonTypes:$E})})),ny}function mL(t,e){OS.set(t,e)}async function LE(t){let e=oy.get(t);if(e!==void 0)return e;let n=(t==="BpmnCanvas"?Er(()=>Promise.resolve().then(()=>(As(),Lg)).then(o=>o.t),[]):t==="DecisionDossier"?Er(()=>Promise.resolve().then(()=>(Kg(),qg)),[]):Promise.reject(Error("core components load no engine chunk"))).catch(o=>{throw oy.delete(t),o});return oy.set(t,n),n}function vL(t){return t.root??{}}function xL(t,e){return{code:"unknown-component",path:"/root/component",message:"<".concat("st-".concat(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),'> requires root.component "').concat(t,'", got "').concat(e,'"'),severity:"error",source:"catalog",detail:{expected:t,found:e}}}function kL(t,e){if(t==="BarChart")return!1;let n=by[t];return e.length>0&&e.every(o=>o.code==="host-capability-missing"&&o.detail?.chunk===n)}function wL(t){let e=t?.bpmn?.watermark;if(e===void 0)return;let{hidden:n,license:o}=e;if(n===!0&&typeof o=="string"&&o.trim()!=="")return{hidden:!0,license:o}}function Hy(t){let e=ln("idle"),n=ln(Xa([])),o=ln(null),r=new Set,i=!1,a=0;function s(u){if(Zt(e,u,!0),!i&&(u==="rendered"||u==="refused")){i=!0;for(let m of r)m()}}function c(u){return i?u():r.add(u),()=>r.delete(u)}function l(...u){Zt(n,[...u],!0)}function p(u){E(n).some(m=>m.code===u.code&&m.path===u.path&&m.message===u.message)||Zt(n,[...E(n),u],!0)}async function d(u,m){let h=++a;Zt(e,"rendering");try{let f=$S(u),g=zE().validate(f.ok?f.value:u);if(h!==a)return;let v=(f.ok?f.value:u)?.root?.component;if(typeof v=="string"&&v!==t){Zt(n,[xL(t,v)],!0),Zt(o,null),s("refused");return}let k=g.filter(w=>w.severity==="error");if(k.length>0&&!kL(t,k)){Zt(n,[...g],!0),Zt(o,null),s("refused");return}if(t!=="BarChart"&&k.length>0){let w=await LE(t);if(mL(by[t],w.port),h!==a)return;let T=zE().validate(f.ok?f.value:u);if(h!==a)return;if(T.filter(C=>C.severity==="error").length>0){Zt(n,[...T],!0),Zt(o,null),s("refused");return}Zt(n,[...T],!0)}else Zt(n,[...g],!0);if(!f.ok){Zt(o,null),s("refused");return}let _=vL(f.value);if(t==="BarChart"){let{component:w,id:T,...C}=_;Zt(o,{kind:"bar-chart",props:C},!0)}else if(t==="BpmnCanvas"){let{toXml:w}=await LE(t),T=await w(_.document);if(h!==a)return;if(!T.ok){Zt(n,[{code:"semantic-invalid",path:"/root/document",message:T.message,severity:"error",source:"bpmn-canvas",detail:{code:T.code}}],!0),Zt(o,null),s("refused");return}Zt(o,{kind:"bpmn",xml:T.xml,assetBase:typeof m?.assetBase=="string"?m.assetBase:void 0,watermark:wL(m)},!0)}else Zt(o,{kind:"dossier",document:_.document},!0);s("rendered")}catch(f){if(h!==a)return;let g=f instanceof Error?f.message:String(f),v=by[t];l(v===void 0?{code:"semantic-invalid",path:"",message:"the element failed to render the envelope: ".concat(g),severity:"error",source:"host",detail:{cause:g}}:jS(v,g)),s("refused")}}return{get state(){return E(e)},get diagnostics(){return E(n)},get payload(){return E(o)},ingest:d,onSettle:c,noteEngineDiagnostic:p}}function _L(t){let e=vy.get(t);if(e===void 0){let n;e={promise:new Promise(o=>{n=o}),resolve:n},vy.set(t,e),Xu.get(t)?.onSettle(n)}return e}function EL(t,e){Xu.set(t,e);let n=vy.get(t);n!==void 0&&e.onSettle(n.resolve)}function ry(t){let e=customElements.get(t);if(e===void 0)throw Error("the ".concat(t," element is not registered; import its module first"));let n=e.prototype;Object.defineProperty(n,"state",{get(){return Xu.get(this)?.state??"idle"}}),Object.defineProperty(n,"diagnostics",{get(){return Xu.get(this)?.diagnostics??[]}}),Object.defineProperty(n,"ready",{get(){return _L(this).promise}})}function iy(t){return'[data-st-theme="'.concat(t,'"]')}function TL(t,e){return t.replace(RegExp("(^|[\\s,>+~])\\:root(?=\\[data-color-mode=)","g"),"$1".concat(iy(e))).replace(RegExp("(^|[\\s,>+~])\\:root(?=\\:not\\()","g"),"$1".concat(iy(e))).replace(RegExp("(^|[\\s,>+~])\\:root(?=[\\s,{])","g"),"$1".concat(iy(e)))}function ky(t){return typeof t=="string"&&CL.includes(t)?t:"sent-tech"}async function BL(t){let e=xy.get(t);if(e!==void 0)return e;let n=await RL[t](),o=new CSSStyleSheet;return o.replaceSync(TL(n,t)),xy.set(t,o),o}async function NE(t,e){let n=await BL(e);t.adoptedStyleSheets=[...t.adoptedStyleSheets.filter(o=>o!==n),n]}function AL(t,e){let n=xy.get(e);t.adoptedStyleSheets=t.adoptedStyleSheets.filter(o=>o!==n)}function ML(t){return t==="light"||t==="dark"?t:void 0}function DL(t){let e=()=>{for(let o of[...t.querySelectorAll("style")]){let r=o.textContent??"";try{let i=new CSSStyleSheet;i.replaceSync(r),t.adoptedStyleSheets=[...t.adoptedStyleSheets.filter(a=>a!==i),i],o.remove()}catch{}}};e();let n=new MutationObserver(e);return n.observe(t,{childList:!0}),()=>n.disconnect()}function Fy(t,e){let n=t.getRootNode(),o=n instanceof ShadowRoot?n:void 0,r=o?.host;r instanceof HTMLElement&&EL(r,e.runtime);let i=ky(e.theme),a;return o!==void 0&&(NE(o,i),a=DL(o)),{update(s){let c=ky(s.theme);c!==i&&(o!==void 0&&(AL(o,i),NE(o,c)),i=c)},destroy(){a?.()}}}function Wy(t){return ky(t)}function Gy(t){return ML(t)}function zS(t){if(t===null||t.textContent===null)return;let e=t.textContent;try{return{value:JSON.parse(e),parsed:!0}}catch{return{value:e,parsed:!1}}}function LS(t){for(let e of t.children)if(e instanceof HTMLScriptElement&&e.type==="application/json")return zS(e)}function Uy(t){let e=t.getElementById("st-host-config");if(e===null)return;let n=zS(e);return n!==void 0&&n.parsed?n.value:void 0}function PL(t,e){let n=new MutationObserver(()=>{e(LS(t))});return n.observe(t,{childList:!0,subtree:!1}),()=>n.disconnect()}function Vy(t,e){let n=t.getRootNode(),o=n instanceof ShadowRoot&&n.host instanceof HTMLElement?n.host:void 0,r;if(o!==void 0){let i=LS(o);i!==void 0&&e.apply(i.value),r=PL(o,a=>{e.apply(a===void 0?void 0:a.value)})}return{destroy(){r?.()}}}function wy(t,e,n,o={}){let r={event:"intent",name:e,target:n,context:o};t.dispatchEvent(new CustomEvent("st-intent",{detail:r,bubbles:!0,composed:!0}))}function qy(t,e){rs(e,!0),bc(t,OL);var n=$L(),o=Te(n),r=Te(o);ie(o);var i=Se(o,2);Bo(i,21,()=>e.diagnostics,a=>a.code+"|"+a.path+"|"+a.message,(a,s)=>{var c=jL(),l=Te(c),p=Te(l,!0);ie(l);var d=Se(l,2),u=Te(d,!0);ie(d);var m=Se(d,2),h=Te(m,!0);ie(m),ie(c),pe(()=>{bn(p,E(s).code),bn(u,E(s).path||"(envelope)"),bn(h,E(s).message)}),It(a,c)}),ie(i),ie(n),pe(()=>bn(r,"The envelope does not render \u2014 ".concat(e.diagnostics.length??"","\n ").concat(e.diagnostics.length===1?"diagnostic":"diagnostics",":"))),It(t,n),is()}function NL(t,e){rs(e,!0),bc(t,LL);let n=Wo(e,"envelope",7),o=Wo(e,"hostConfig",7),r=Hy("BarChart"),i=ln(void 0),a=ln(void 0),s=ln(void 0),c=ln(!1);Ny(()=>{Zt(s,Uy(globalThis.document),!0),Zt(c,!0)});let l=Jt(()=>n()??E(a)),p=Jt(()=>o()??E(s));em(()=>{(E(l)!==void 0||E(c))&&r.ingest(E(l),E(p))});var d={get envelope(){return n()},set envelope(g){n(g),ns()},get hostConfig(){return o()},set hostConfig(g){o(g),ns()}},u=zL(),m=Te(u),h=g=>{qy(g,{get diagnostics(){return r.diagnostics}})},f=g=>{tL(g,tz(()=>r.payload.props,{onSelect:v=>{E(i)!==void 0&&wy(E(i),"select",v)},onSelectKey:v=>{v!==null&&E(i)!==void 0&&wy(E(i),"select",v)}}))};return nn(m,g=>{r.state==="refused"?g(h):r.payload?.kind==="bar-chart"&&g(f,1)}),ie(u),DS(u,g=>Zt(i,g),()=>E(i)),xa(u,(g,v)=>Fy?.(g,v),()=>({runtime:r,theme:E(p)?.theme,colorScheme:E(p)?.colorScheme})),xa(u,(g,v)=>Vy?.(g,v),()=>({apply:g=>Zt(a,g,!0)})),pe((g,v)=>{Y(u,"data-st-theme",g),Y(u,"data-color-mode",v)},[()=>Wy(E(p)?.theme),()=>Gy(E(p)?.colorScheme)]),It(t,u),is(d)}function IL(t,e){let n=e,o=0,r;async function i(){let a=++o,s=n.runtime.payload;if(s===null||s.kind!=="bpmn")return;let c=await Er(()=>Promise.resolve().then(()=>(As(),Lg)).then(l=>l.t),[]);a===o&&(r?.(),r=await c.renderBpmn(t,s,n.runtime.noteEngineDiagnostic),a!==o&&(r?.(),r=void 0))}return i(),{update(a){n=a,i()},destroy(){o++,r?.(),r=void 0}}}function HL(t,e){let n=e,o=0,r;async function i(){let a=++o,s=n.runtime.payload;if(s===null||s.kind!=="dossier")return;let c=await Er(()=>Promise.resolve().then(()=>(Kg(),qg)),[]);a===o&&(r?.(),r=c.renderDossier(t,s.document,l=>{wy(t,"choose-option",l)}),a!==o&&(r?.(),r=void 0))}return i(),{update(a){n=a,i()},destroy(){o++,r?.(),r=void 0}}}function UL(t,e){rs(e,!0),bc(t,GL);let n=Wo(e,"envelope",7),o=Wo(e,"hostConfig",7),r=Hy("BpmnCanvas"),i=ln(void 0),a=ln(void 0),s=ln(!1);Ny(()=>{Zt(a,Uy(globalThis.document),!0),Zt(s,!0)});let c=Jt(()=>n()??E(i)),l=Jt(()=>o()??E(a));em(()=>{(E(c)!==void 0||E(s))&&r.ingest(E(c),E(l))});var p={get envelope(){return n()},set envelope(f){n(f),ns()},get hostConfig(){return o()},set hostConfig(f){o(f),ns()}},d=WL(),u=Te(d),m=f=>{qy(f,{get diagnostics(){return r.diagnostics}})},h=f=>{var g=FL();xa(g,(v,k)=>IL?.(v,k),()=>({runtime:r})),It(f,g)};return nn(u,f=>{r.state==="refused"?f(m):r.payload?.kind==="bpmn"&&f(h,1)}),ie(d),xa(d,(f,g)=>Fy?.(f,g),()=>({runtime:r,theme:E(l)?.theme,colorScheme:E(l)?.colorScheme})),xa(d,(f,g)=>Vy?.(f,g),()=>({apply:f=>Zt(i,f,!0)})),pe((f,g)=>{Y(d,"data-st-theme",f),Y(d,"data-color-mode",g)},[()=>Wy(E(l)?.theme),()=>Gy(E(l)?.colorScheme)]),It(t,d),is(p)}function YL(t,e){rs(e,!0),bc(t,KL);let n=Wo(e,"envelope",7),o=Wo(e,"hostConfig",7),r=Hy("DecisionDossier"),i=ln(void 0),a=ln(void 0),s=ln(!1);Ny(()=>{Zt(a,Uy(globalThis.document),!0),Zt(s,!0)});let c=Jt(()=>n()??E(i)),l=Jt(()=>o()??E(a));em(()=>{(E(c)!==void 0||E(s))&&r.ingest(E(c),E(l))});var p={get envelope(){return n()},set envelope(f){n(f),ns()},get hostConfig(){return o()},set hostConfig(f){o(f),ns()}},d=qL(),u=Te(d),m=f=>{qy(f,{get diagnostics(){return r.diagnostics}})},h=f=>{var g=VL();xa(g,(v,k)=>HL?.(v,k),()=>({runtime:r})),It(f,g)};return nn(u,f=>{r.state==="refused"?f(m):r.payload?.kind==="dossier"&&f(h,1)}),ie(d),xa(d,(f,g)=>Fy?.(f,g),()=>({runtime:r,theme:E(l)?.theme,colorScheme:E(l)?.colorScheme})),xa(d,(f,g)=>Vy?.(f,g),()=>({apply:f=>Zt(i,f,!0)})),pe((f,g)=>{Y(d,"data-st-theme",f),Y(d,"data-color-mode",g)},[()=>Wy(E(l)?.theme),()=>Gy(E(l)?.colorScheme)]),It(t,d),is(p)}var uc,Nn,D$,IE,P$,Vl,Zu,Wu,Gu,wi,HE,j$,$$,_y,hE,O$,dr,Xr,es,Ey,L$,WE,fE,Sy,gc,N$,Wl,Yl,gE,I$,Uu,ba,Ty,H$,GE,ay,sy,cy,Ju,F$,Ce,ye,Do,Ya,aO,Ou,cc,ue,ly,Tr,py,Gl,Yg,dc,Iu,yE,cO,yc,xi,dO,mO,zu,Ku,Ja,iS,vE,cS,lS,pS,CO,Hu,Ei,we,Cr,ae,mr,Ao,Fo,cr,xS,Za,ts,Il,TS,hy,_E,PO,OO,Nu,gy,IO,EE,SE,KO,YO,XO,CE,QO,nz,PS,rz,iz,az,Qg,bz,vz,xz,kz,wz,_z,Ez,Sz,Tz,Cz,Rz,Bz,Az,Mz,Dz,Pz,jz,$z,Oz,zz,Lz,Nz,Iz,Hz,Fz,Wz,Gz,Uz,Vz,qz,Kz,Yz,Xz,Zz,Jz,Qz,RE,BE,PE,jE,$E,OE,rL,iL,aL,cL,ey,OS,ny,hL,fL,gL,yL,bL,Er,by,oy,Xu,vy,SL,CL,RL,xy,jL,$L,OL,zL,LL,FL,WL,GL,VL,qL,KL,Jf=Tn(()=>{typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");uc={},Nn=Symbol(),D$="http://www.w3.org/1999/xhtml",IE=Array.isArray,P$=Array.prototype.indexOf,Vl=Array.prototype.includes,Zu=Array.from,Wu=Object.keys,Gu=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,HE=Object.getOwnPropertyDescriptors,j$=Object.prototype,$$=Array.prototype,_y=Object.getPrototypeOf,hE=Object.isExtensible;O$=()=>{};dr=1024,Xr=2048,es=4096,Ey=8192,L$=16384,WE=32768,fE=1<<25,Sy=65536,gc=1<<19,N$=1<<20,Wl=1<<25,Yl=65536,gE=1<<21,I$=1<<22,Uu=1<<23,ba=Symbol("$state"),Ty=Symbol("legacy props"),H$=Symbol(""),GE=Symbol("attributes"),ay=Symbol("class"),sy=Symbol("style"),cy=Symbol("text"),Ju=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},F$=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");Ce=!1;Do=null;Ya=[];aO=~(Xr|es|dr);Ou=!1;cc=null,ue=null,ly=null,Tr=null,py=null,Gl=!1,Yg=!1,dc=null,Iu=null,yE=0,cO=1,yc=class dy{id=cO++;#t=!1;linked=!0;#e=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#s=new Set;#o=new Set;#i=new Set;#r=0;#a=new Map;#u=null;#c=[];#h=[];#m=new Set;#l=new Set;#p=new Map;#d=new Set;is_fork=!1;#b=!1;#k(){if(this.is_fork)return!0;for(let o of this.#a.keys()){for(var e=o,n=!1;e.parent!==null;){if(this.#p.has(e)){n=!0;break}e=e.parent}if(!n)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#d.delete(e)}unskip_effect(e,n=o=>this.schedule(o)){var o=this.#p.get(e);if(o){this.#p.delete(e);for(var r of o.d)En(r,Xr),n(r);for(r of o.m)En(r,es),n(r)}this.#d.add(e)}#g(){if(this.#t=!0,yE++>1e3&&(this.#f(),lO()),!this.#k()){for(let c of this.#m)this.#l.delete(c),En(c,Xr),this.schedule(c);for(let c of this.#l)En(c,es),this.schedule(c)}let e=this.#c;this.#c=[],this.apply();var n=dc=[],o=[],r=Iu=[];for(let c of e)try{this.#_(c,n,o)}catch(l){throw eS(c),l}if(ue=null,r.length>0){var i=dy.ensure();for(let c of r)i.schedule(c)}if(dc=null,Iu=null,this.#k()){this.#y(o),this.#y(n);for(let[c,l]of this.#p)tS(c,l);r.length>0&&ue.#g();return}let a=this.#w();if(a)a.#v(this);else{this.#m.clear(),this.#l.clear();for(let c of this.#s)c(this);this.#s.clear(),ly=this,bE(o),bE(n),ly=null,this.#u?.resolve();var s=ue;if(this.linked&&this.#r===0&&this.#f(),this.#c.length>0){s===null&&(s=this,this.#x());let c=s;c.#c.push(...this.#c.filter(l=>!c.#c.includes(l)))}s!==null&&s.#g()}}#_(e,n,o){e.f^=dr;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=dr:i&4?n.push(r):Zl(r)&&(i&16&&this.#l.add(r),fc(r));var s=r.first;if(s!==null){r=s;continue}}for(;r!==null;){var c=r.next;if(c!==null){r=c;break}r=r.parent}}}#w(){for(var e=this.#e;e!==null;){if(!e.is_fork){for(let[n,[,o]]of this.current)if(e.current.has(n)&&!o)return e}e=e.#e}return null}#v(e){for(let[o,r]of e.current)!this.previous.has(o)&&e.previous.has(o)&&this.previous.set(o,e.previous.get(o)),this.current.set(o,r);for(let[o,r]of e.async_deriveds){let i=this.async_deriveds.get(o);i&&r.promise.then(i.resolve)}let n=o=>{var r=o.reactions;if(r!==null)for(let s of r){var i=s.f;if(i&2)n(s);else{var a=s;i&4194320&&!this.async_deriveds.has(a)&&(this.#l.delete(a),En(a,Xr),this.schedule(a))}}};for(let o of this.current.keys())n(o);this.oncommit(()=>e.discard()),e.#f(),ue=this,this.#g()}#y(e){for(var n=0;n<e.length;n+=1)JE(e[n],this.#m,this.#l)}capture(e,n,o=!1){e.v!==Nn&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[n,o]),Tr?.set(e,n)),this.is_fork||(e.v=n)}activate(){ue=this}deactivate(){ue=null,Tr=null}flush(){try{Yg=!0,ue=this,this.#g()}finally{yE=0,py=null,dc=null,Iu=null,Yg=!1,ue=null,Tr=null,Ja.clear()}}discard(){for(let e of this.#o)e(this);this.#o.clear(),this.#i.clear(),this.#f()}register_created_effect(e){this.#h.push(e)}increment(e,n){if(this.#r+=1,e){let o=this.#a.get(n)??0;this.#a.set(n,o+1)}}decrement(e,n){if(--this.#r,e){let o=this.#a.get(n)??0;o===1?this.#a.delete(n):this.#a.set(n,o-1)}this.#b||(this.#b=!0,va(()=>{this.#b=!1,this.linked&&this.flush()}))}transfer_effects(e,n){for(let o of e)this.#m.add(o);for(let o of n)this.#l.add(o);e.clear(),n.clear()}oncommit(e){this.#s.add(e)}ondiscard(e){this.#o.add(e)}on_fork_commit(e){this.#i.add(e)}run_fork_commit_callbacks(){for(let e of this.#i)e(this);this.#i.clear()}settled(){return(this.#u??=FE()).promise}static ensure(){if(ue===null){let e=ue=new dy;e.#x(),!Yg&&!Gl&&va(()=>{e.#t||e.flush()})}return ue}apply(){Tr=null}schedule(e){if(py=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768))e.b.defer_effect(e);else{for(var n=e;n.parent!==null;){n=n.parent;var o=n.f;if(dc!==null&&n===ae&&(we===null||!(we.f&2)))return;if(o&96){if(!(o&1024))return;n.f^=dr}}this.#c.push(n)}}#x(){cc===null?cc=this:(cc.#n=this,this.#e=cc),cc=this}#f(){var e=this.#e,n=this.#n;e===null||(e.#n=n),n===null?cc=e:n.#e=e,this.linked=!1}};xi=null;dO=Sy|gc;mO=class{parent;is_pending=!1;transform_error;#t;#e=Ce?ye:null;#n;#s;#o;#i=null;#r=null;#a=null;#u=null;#c=0;#h=0;#m=!1;#l=new Set;#p=new Set;#d=null;#b=pO(()=>(this.#d=os(this.#c),()=>{this.#d=null}));constructor(t,e,n,o){this.#t=t,this.#n=e,this.#s=r=>{var i=ae;i.b=this,i.f|=128,n(r)},this.parent=ae.b,this.transform_error=o??this.parent?.transform_error??(r=>r),this.#o=$y(()=>{if(Ce){let r=this.#e;tm();let i=r.data==="[!";if(r.data.startsWith("[?")){let a=JSON.parse(r.data.slice(2));this.#g(a)}else i?this.#_():this.#k()}else this.#w()},dO),Ce&&(this.#t=ye)}#k(){try{this.#i=lr(()=>this.#s(this.#t))}catch(t){this.error(t)}}#g(t){let e=this.#n.failed;e&&(this.#a=lr(()=>{e(this.#t,()=>t,()=>()=>{})}))}#_(){let t=this.#n.pending;t&&(this.is_pending=!0,this.#r=lr(()=>t(this.#t)),va(()=>{var e=this.#u=document.createDocumentFragment(),n=ur();e.append(n),this.#i=this.#y(()=>lr(()=>this.#s(n))),this.#h===0&&(this.#t.before(e),this.#u=null,Qa(this.#r,()=>{this.#r=null}),this.#v(ue))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#h=0,this.#c=0,this.#i=lr(()=>{this.#s(this.#t)}),this.#h>0){var t=this.#u=document.createDocumentFragment();Ly(this.#i,t);let e=this.#n.pending;this.#r=lr(()=>e(this.#t))}else this.#v(ue)}catch(e){this.error(e)}}#v(t){this.is_pending=!1,t.transfer_effects(this.#l,this.#p)}defer_effect(t){JE(t,this.#l,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#y(t){var e=ae,n=we,o=Do;Zr(this.#o),hr(this.#o),mc(this.#o.ctx);try{return yc.ensure(),t()}catch(r){return XE(r),null}finally{Zr(e),hr(n),mc(o)}}#x(t,e){this.has_pending_snippet()?(this.#h+=t,this.#h===0&&(this.#v(e),this.#r&&Qa(this.#r,()=>{this.#r=null}),this.#u&&=(this.#t.before(this.#u),null))):this.parent&&this.parent.#x(t,e)}update_pending_count(t,e){this.#x(t,e),this.#c+=t,!(!this.#d||this.#m)&&(this.#m=!0,va(()=>{this.#m=!1,this.#d&&hc(this.#d,this.#c)}))}get_effect_pending(){return this.#b(),E(this.#d)}error(t){if(!this.#n.onerror&&!this.#n.failed)throw t;ue?.is_fork?(this.#i&&ue.skip_effect(this.#i),this.#r&&ue.skip_effect(this.#r),this.#a&&ue.skip_effect(this.#a),ue.on_fork_commit(()=>{this.#f(t)})):this.#f(t)}#f(t){this.#i&&=(vo(this.#i),null),this.#r&&=(vo(this.#r),null),this.#a&&=(vo(this.#a),null),Ce&&(Mo(this.#e),rO(),Mo(Vu()));var e=this.#n.onerror;let n=this.#n.failed;var o=!1,r=!1;let i=()=>{o?oO():(o=!0,r&&eO(),this.#a!==null&&Qa(this.#a,()=>{this.#a=null}),this.#y(()=>{this.#w()}))},a=s=>{try{r=!0,e?.(s,i),r=!1}catch(c){ya(c,this.#o&&this.#o.parent)}n&&(this.#a=this.#y(()=>{try{return lr(()=>{var c=ae;c.b=this,c.f|=128,n(this.#t,()=>s,()=>i)})}catch(c){return ya(c,this.#o.parent),null}}))};va(()=>{var s;try{s=this.transform_error(t)}catch(c){ya(c,this.#o&&this.#o.parent);return}typeof s=="object"&&s&&typeof s.then=="function"?s.then(a,c=>ya(c,this.#o&&this.#o.parent)):a(s)})}};zu=Symbol("obsolete");Ku=new Set,Ja=new Map,iS=!1;CO=null,Hu=!1,Ei=!1;we=null,Cr=!1;ae=null;mr=null;Ao=null,Fo=0,cr=null;xS=1,Za=0,ts=Za;Il=Symbol("events"),TS=new Set,hy=new Set;_E=null;PO=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});[..."allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];OO=["touchstart","touchmove"];Nu=new Map;gy=new WeakMap;IO=class{anchor;#t=new Map;#e=new Map;#n=new Map;#s=new Set;#o=!0;constructor(t,e=!0){this.anchor=t,this.#o=e}#i=t=>{if(this.#t.has(t)){var e=this.#t.get(t),n=this.#e.get(e);if(n)zy(n),this.#s.delete(e);else{var o=this.#n.get(e);o&&(this.#e.set(e,o.effect),this.#n.delete(e),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(let[r,i]of this.#t){if(this.#t.delete(r),r===t)break;let a=this.#n.get(i);a&&(vo(a.effect),this.#n.delete(i))}for(let[r,i]of this.#e){if(r===e||this.#s.has(r))continue;let a=()=>{if(Array.from(this.#t.values()).includes(r)){var s=document.createDocumentFragment();Ly(i,s),s.append(ur()),this.#n.set(r,{effect:i,fragment:s})}else vo(i);this.#s.delete(r),this.#e.delete(r)};this.#o||!n?(this.#s.add(r),Qa(i,a,!1)):a()}}};#r=t=>{this.#t.delete(t);let e=Array.from(this.#t.values());for(let[n,o]of this.#n)e.includes(n)||(vo(o.effect),this.#n.delete(n))};ensure(t,e){var n=ue,o=uS();if(e&&!this.#e.has(t)&&!this.#n.has(t))if(o){var r=document.createDocumentFragment(),i=ur();r.append(i),this.#n.set(t,{effect:lr(()=>e(i)),fragment:r})}else this.#e.set(t,lr(()=>e(this.anchor)));if(this.#t.set(n,t),o){for(let[a,s]of this.#e)a===t?n.unskip_effect(s):n.skip_effect(s);for(let[a,s]of this.#n)a===t?n.unskip_effect(s.effect):n.skip_effect(s.effect);n.oncommit(this.#i),n.ondiscard(this.#r)}else Ce&&(this.anchor=ye),this.#i(n)}};SE=[..." \n\r\f\xA0\v\uFEFF"];KO=Symbol("is custom element"),YO=Symbol("is html"),XO=F$?"link":"LINK";CE=new Map;QO={get(t,e){let n=t.props.length;for(;n--;){let o=t.props[n];if(Ll(o)&&(o=o()),typeof o=="object"&&o&&e in o)return o[e]}},set(t,e,n){let o=t.props.length;for(;o--;){let r=t.props[o];Ll(r)&&(r=r());let i=wi(r,e);if(i&&i.set)return i.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let o=t.props[n];if(Ll(o)&&(o=o()),typeof o=="object"&&o&&e in o){let r=wi(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===ba||e===Ty)return!1;for(let n of t.props)if(Ll(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){let e=[];for(let n of t.props)if(Ll(n)&&(n=n()),n){for(let o in n)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(n))e.includes(o)||e.push(o)}return e}};nz=class{#t;#e;constructor(t){var e=new Map,n=(r,i)=>{var a=aS(i,!1,!1);return e.set(r,a),a};let o=new Proxy({...t.props||{},$$events:{}},{get(r,i){return E(e.get(i)??n(i,Reflect.get(r,i)))},has(r,i){return i===Ty||(E(e.get(i)??n(i,Reflect.get(r,i))),Reflect.has(r,i))},set(r,i,a){return Zt(e.get(i)??n(i,a),a),Reflect.set(r,i,a)}});this.#e=(t.hydrate?LO:RS)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&ns(),this.#t=o.$$events;for(let r of Object.keys(this.#e))r!=="$set"&&r!=="$destroy"&&r!=="$on"&&Gu(this,r,{get(){return this.#e[r]},set(i){this.#e[r]=i},enumerable:!0});this.#e.$set=r=>{Object.assign(o,r)},this.#e.$destroy=()=>{NO(this.#e)}}$set(t){this.#e.$set(t)}$on(t,e){this.#t[t]=this.#t[t]||[];let n=(...o)=>e.call(this,...o);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(o=>o!==n)}}$destroy(){this.#e.$destroy()}};typeof HTMLElement=="function"&&(PS=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{let a=Ay("slot");r!=="default"&&(a.name=r),It(i,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=oz(this);for(let r of this.$$s)r in o&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),n.default=!0):n[r]=e(r));for(let r of this.attributes){let i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Fu(i,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ez({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=wO(()=>{nm(()=>{this.$$r=!0;for(let r of Wu(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];let i=Fu(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(let r in this.$$l)for(let i of this.$$l[r]){let a=this.$$c.$on(r,i);this.$$l_u.set(i,a)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Fu(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Wu(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});rz=Go("<li> </li>"),iz=Go("<ul></ul>"),az={hash:"svelte-1ec57ko",code:".st-chartDataList.svelte-1ec57ko {border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;}"};Qg=t=>typeof t=="number"&&Number.isFinite(t);bz=De('<line class="st-barChart__grid svelte-101a3kf"></line><text class="st-barChart__tickLabel svelte-101a3kf" text-anchor="end" dominant-baseline="middle"> </text>',1),vz=De('<line class="st-barChart__grid svelte-101a3kf"></line><text class="st-barChart__tickLabel svelte-101a3kf" text-anchor="middle"> </text>',1),xz=De('<text class="st-barChart__categoryLabel svelte-101a3kf" text-anchor="middle"> </text>'),kz=De('<text class="st-barChart__categoryLabel svelte-101a3kf" text-anchor="end" dominant-baseline="middle"> </text>'),wz=De('<text class="st-barChart__overlayLabel svelte-101a3kf"> </text>'),_z=De("<rect></rect><!>",1),Ez=De('<text class="st-barChart__overlayLabel svelte-101a3kf"> </text>'),Sz=De("<line></line><!>",1),Tz=De('<text class="st-barChart__annotationLabel svelte-101a3kf"> </text>'),Cz=De('<rect class="st-barChart__annotationRegion svelte-101a3kf"></rect><!>',1),Rz=De('<g class="st-barChart__annotations st-barChart__annotations--behind"></g>'),Bz=De('<rect rx="2"></rect>'),Az=De('<g class="st-barChart__errorBar"><line class="st-barChart__errorStem svelte-101a3kf"></line><line class="st-barChart__errorCap svelte-101a3kf"></line><line class="st-barChart__errorCap svelte-101a3kf"></line></g>'),Mz=De('<line class="st-barChart__goalLine svelte-101a3kf"></line>'),Dz=De('<line class="st-barChart__goalLine svelte-101a3kf"></line>'),Pz=De('<!><text class="st-barChart__goalLabel svelte-101a3kf"> </text>',1),jz=De('<text class="st-barChart__annotationLabel svelte-101a3kf"> </text>'),$z=De('<line class="st-barChart__annotationLine svelte-101a3kf"></line><!>',1),Oz=De('<text class="st-barChart__annotationLabel svelte-101a3kf" text-anchor="middle"> </text>'),zz=De('<polygon class="st-barChart__annotationShape svelte-101a3kf"></polygon><!>',1),Lz=De('<text class="st-barChart__annotationLabel svelte-101a3kf" text-anchor="middle"> </text>'),Nz=De('<circle class="st-barChart__annotationPoint svelte-101a3kf" r="4.5"></circle><!>',1),Iz=De('<text class="st-barChart__annotationText svelte-101a3kf"> </text>'),Hz=De('<g class="st-barChart__annotations st-barChart__annotations--above"></g>'),Fz=De('<text class="st-barChart__dataLabel svelte-101a3kf"> </text>'),Wz=De('<g class="st-barChart__dataLabels" aria-hidden="true"></g>'),Gz=De('<line class="st-barChart__crosshairLine svelte-101a3kf"></line>'),Uz=De('<line class="st-barChart__crosshairLine svelte-101a3kf"></line>'),Vz=De('<g class="st-barChart__crosshair" aria-hidden="true"><!></g>'),qz=De('<rect class="st-barChart__navDatum" role="img"></rect>'),Kz=De('<svg class="st-barChart__navLayer svelte-101a3kf" preserveAspectRatio="xMidYMid meet" width="100%" height="100%" role="group"></svg>'),Yz=Go('<button type="button"><span class="st-barChart__filterSwatch svelte-101a3kf" aria-hidden="true"></span> </button>'),Xz=Go('<div class="st-barChart__filters svelte-101a3kf" role="group"></div>'),Zz=Go('<div class="st-barChart__tooltip svelte-101a3kf" role="presentation"><span class="st-barChart__tooltipLabel svelte-101a3kf"> </span> <span class="st-barChart__tooltipValue svelte-101a3kf"> </span></div>'),Jz=Go('<div><div class="st-barChart__visual svelte-101a3kf" role="img"><svg preserveAspectRatio="xMidYMid meet" width="100%" height="100%" focusable="false" aria-hidden="true" class="svelte-101a3kf"><!><line class="st-barChart__axis svelte-101a3kf"></line><line class="st-barChart__axis svelte-101a3kf"></line><!><!><!><!><!><!><!><!><!><!></svg> <!></div> <!> <!> <!></div>'),Qz={hash:"svelte-101a3kf",code:".st-barChart.svelte-101a3kf {color:var(--st-semantic-text-secondary);display:block;font-family:inherit;position:relative;width:100%;}.st-barChart.svelte-101a3kf svg:where(.svelte-101a3kf) {display:block;overflow:visible;}.st-barChart__visual.svelte-101a3kf {display:block;}.st-barChart__grid.svelte-101a3kf {stroke:var(--st-component-barChart-gridStroke, var(--st-semantic-border-subtle));stroke-dasharray:2 3;stroke-width:1;opacity:0.7;}.st-barChart__axis.svelte-101a3kf {stroke:var(--st-component-barChart-axisStroke, var(--st-semantic-border-subtle));stroke-width:1;}.st-barChart__tickLabel.svelte-101a3kf,\n .st-barChart__categoryLabel.svelte-101a3kf {fill:var(--st-component-barChart-labelColor, var(--st-semantic-text-secondary));font-size:0.6875rem;}.st-barChart__bar.svelte-101a3kf {cursor:pointer;transition:opacity var(--st-motion-fast, 120ms) var(--st-motion-easing, ease);}.st-barChart__bar.svelte-101a3kf:hover {opacity:0.82;}\n\n /* Non-selected bars are dimmed while a selection is active. Floor kept high\n (0.6) so the colour stays distinguishable \u2014 opacity is never the sole cue;\n selection also adds a stroke (shape), and the values stay in the chips +\n ChartDataList. */.st-barChart__bar--dim.svelte-101a3kf {opacity:0.6;}\n /* Hover still lifts a dimmed bar so it stays explorable. */.st-barChart__bar--dim.svelte-101a3kf:hover {opacity:0.8;}\n\n /* Selected bar: full opacity + a contrast-safe accent stroke (two signals,\n never a font/size reflow). Outranks the dim rule. */.st-barChart__bar--selected.svelte-101a3kf,\n .st-barChart__bar--selected.svelte-101a3kf:hover {opacity:1;stroke:var(--st-semantic-border-interactive, var(--st-semantic-action-primary));stroke-width:2;paint-order:stroke;}.st-barChart__bar--category1.svelte-101a3kf {fill:var(--st-semantic-data-category1);}.st-barChart__bar--category2.svelte-101a3kf {fill:var(--st-semantic-data-category2);}.st-barChart__bar--category3.svelte-101a3kf {fill:var(--st-semantic-data-category3);}.st-barChart__bar--category4.svelte-101a3kf {fill:var(--st-semantic-data-category4);}.st-barChart__bar--category5.svelte-101a3kf {fill:var(--st-semantic-data-category5);}.st-barChart__bar--category6.svelte-101a3kf {fill:var(--st-semantic-data-category6);}.st-barChart__bar--category7.svelte-101a3kf {fill:var(--st-semantic-data-category7);}.st-barChart__bar--category8.svelte-101a3kf {fill:var(--st-semantic-data-category8);}\n\n /* Accessible filter chips \u2014 keyboard + screen-reader selection surface,\n rendered outside the aria-hidden SVG. */.st-barChart__filters.svelte-101a3kf {display:flex;flex-wrap:wrap;gap:var(--st-spacing-2, 0.5rem);margin-top:var(--st-spacing-2, 0.5rem);}.st-barChart__filterChip.svelte-101a3kf {align-items:center;background:var(--st-semantic-surface-subtle, #f8fafc);border:1px solid var(--st-semantic-border-interactive, #cbd5e1);border-radius:var(--st-radius-pill, 999px);color:var(--st-semantic-text-secondary, #475569);cursor:var(--st-cursor-interactive, pointer);display:inline-flex;font:inherit;font-size:0.8125rem;font-weight:500;gap:var(--st-spacing-1, 0.25rem);line-height:1;padding:0.3125rem var(--st-spacing-2, 0.5rem);transition:background-color var(--st-motion-fast, 120ms) var(--st-motion-easing, ease),\n color var(--st-motion-fast, 120ms) var(--st-motion-easing, ease),\n border-color var(--st-motion-fast, 120ms) var(--st-motion-easing, ease);}.st-barChart__filterChip.svelte-101a3kf:hover {background:var(--st-semantic-surface-hover, #eef2f7);}.st-barChart__filterChip.svelte-101a3kf:focus-visible {outline:2px solid var(--st-semantic-border-interactive, var(--st-semantic-action-primary));outline-offset:2px;}\n\n /* Selected chip: solid accent fill + matching text \u2014 signalled by colour AND\n by aria-pressed, never by opacity alone. */.st-barChart__filterChip--selected.svelte-101a3kf {background:var(--st-semantic-action-primary, #2563eb);border-color:var(--st-semantic-action-primary, #2563eb);color:var(--st-semantic-text-inverse, #fff);}\n\n /* Colour swatch echoing the bar tone, for quick visual mapping chip\u2194bar. */.st-barChart__filterSwatch.svelte-101a3kf {border-radius:var(--st-radius-sm, 0.25rem);display:inline-block;height:0.625rem;width:0.625rem;}.st-barChart__filterChip--category1.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category1);}.st-barChart__filterChip--category2.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category2);}.st-barChart__filterChip--category3.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category3);}.st-barChart__filterChip--category4.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category4);}.st-barChart__filterChip--category5.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category5);}.st-barChart__filterChip--category6.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category6);}.st-barChart__filterChip--category7.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category7);}.st-barChart__filterChip--category8.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category8);}.st-barChart__tooltip.svelte-101a3kf {background:var(--st-component-barChart-tooltipBackground, var(--st-semantic-surface-inverse));border-radius:var(--st-radius-sm, 0.25rem);color:var(--st-component-barChart-tooltipText, var(--st-semantic-text-inverse));display:inline-flex;flex-direction:column;font-size:0.75rem;gap:0.125rem;line-height:1.2;padding:0.375rem 0.5rem;pointer-events:none;position:absolute;transform:translate(-50%, calc(-100% - 8px));white-space:nowrap;z-index:1;}.st-barChart__tooltipLabel.svelte-101a3kf {font-weight:600;}.st-barChart__tooltipValue.svelte-101a3kf {opacity:0.85;}\n\n /* --- Analytical overlay layer --------------------------------------------\n Bands sit BELOW the bars via render order; fill uses color-mix (a\n semi-transparent tint of the tone token) instead of raw opacity, so the\n bars drawn on top keep full contrast. */.st-barChart__band.svelte-101a3kf {fill:color-mix(in srgb, var(--st-overlay-tone, var(--st-semantic-border-strong)) 12%, transparent);stroke:none;}.st-barChart__band--neutral.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-border-strong);}.st-barChart__band--success.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-success);}.st-barChart__band--warning.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-warning);}.st-barChart__band--error.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-error);}.st-barChart__band--info.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-info);}.st-barChart__refLine.svelte-101a3kf {stroke:var(--st-overlay-tone, var(--st-semantic-border-strong));stroke-width:1;stroke-dasharray:4 3;}.st-barChart__refLine--neutral.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-border-strong);}.st-barChart__refLine--success.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-success);}.st-barChart__refLine--warning.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-warning);}.st-barChart__refLine--error.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-error);}.st-barChart__refLine--info.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-info);}.st-barChart__overlayLabel.svelte-101a3kf {fill:var(--st-semantic-text-secondary);font-size:0.625rem;}\n\n /* Error bars \u2014 a value-axis whisker centred on each bar. */.st-barChart__errorStem.svelte-101a3kf,\n .st-barChart__errorCap.svelte-101a3kf {stroke:var(--st-semantic-text-primary);stroke-width:1.25;}\n\n /* Goal line \u2014 drawn ABOVE the bars, emphasised (thicker, solid accent). */.st-barChart__goalLine.svelte-101a3kf {stroke:var(--st-semantic-feedback-success);stroke-width:2.5;}.st-barChart__goalLabel.svelte-101a3kf {fill:var(--st-semantic-feedback-success);font-size:0.6875rem;font-weight:600;}\n\n @media (prefers-reduced-motion: reduce) {.st-barChart__bar.svelte-101a3kf,\n .st-barChart__filterChip.svelte-101a3kf {transition:none;}\n }\n\n /* --- Annotation layer ----------------------------------------------------\n Regions render BEHIND the bars; lines/shapes/points/labels render ABOVE. */.st-barChart__annotationRegion.svelte-101a3kf {fill:color-mix(in srgb, var(--st-semantic-feedback-info) 12%, transparent);stroke:none;}.st-barChart__annotationLine.svelte-101a3kf {stroke:var(--st-semantic-feedback-info);stroke-width:1.5;stroke-dasharray:4 3;}.st-barChart__annotationShape.svelte-101a3kf {fill:color-mix(in srgb, var(--st-semantic-feedback-info) 14%, transparent);stroke:var(--st-semantic-feedback-info);stroke-width:1.5;}.st-barChart__annotationPoint.svelte-101a3kf {fill:var(--st-semantic-feedback-info);stroke:var(--st-semantic-surface-default);stroke-width:1.5;}.st-barChart__annotationLabel.svelte-101a3kf,\n .st-barChart__annotationText.svelte-101a3kf {fill:var(--st-semantic-text-primary);font-size:0.625rem;font-weight:600;}\n\n /* Data labels \u2014 per-bar value, drawn on top. Token-only colour. */.st-barChart__dataLabel.svelte-101a3kf {fill:var(--st-semantic-text-primary);font-size:0.6875rem;font-weight:600;}\n\n /* --- Crosshair layer (FR-3) ----------------------------------------------\n A tokenised dashed line on the CATEGORY axis at the active (hovered/\n controlled) bar. Decorative (aria-hidden). */.st-barChart__crosshairLine.svelte-101a3kf {stroke:var(--st-semantic-border-strong);stroke-width:1;stroke-dasharray:3 3;opacity:0.7;}"};DO(["pointermove","click","keydown"]);RE=1048576,BE="document";PE={$defs:{CatalogComponentCommon:{properties:{weight:{description:"The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column.",type:"number"}},type:"object"},DecisionDossierDocument:{$defs:{amendmentStep:{additionalProperties:!1,properties:{at:{type:"string"},author:{type:"string"},summary:{type:"string"}},required:["at","author","summary"],type:"object"},amendmentTraceNode:{additionalProperties:!1,properties:{id:{type:"string"},kind:{const:"amendmentTrace"},steps:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/amendmentStep"},type:"array"},targetRef:{type:"string"}},required:["id","kind","steps","targetRef"],type:"object"},comprehensionEvidence:{additionalProperties:!1,properties:{dossierHash:{type:"string"},signature:{type:"string"},subject:{type:"string"}},required:["dossierHash","subject"],type:"object"},diagramNode:{additionalProperties:!1,properties:{alt:{type:"string"},id:{type:"string"},kind:{const:"diagram"},scene:{description:"diagram-core SemanticDocument, profile generic@1, without views, geometry or layout hints. Opaque JSON until the design-system publishes its authoritative schema; no Focus-specific scene model.",type:"object"},source:{type:"string"},syntax:{enum:["mermaid","plantuml"]},targetRef:{type:"string"}},required:["alt","id","kind","source","syntax","targetRef"],type:"object"},glossaryEntry:{additionalProperties:!1,properties:{definition:{type:"string"},term:{type:"string"}},required:["definition","term"],type:"object"},interaction:{additionalProperties:!1,properties:{enabled:{const:!1},label:{type:"string"},name:{type:"string"},targetRef:{type:"string"}},required:["enabled","label","name","targetRef"],type:"object"},optionNode:{additionalProperties:!1,properties:{annotation:{enum:["accept","comment","none","reject"]},annotationComment:{type:"string"},body:{type:"string"},consequence:{type:"string"},id:{type:"string"},kind:{const:"option"},label:{type:"string"},targetRef:{type:"string"}},required:["annotation","id","kind","label","targetRef"],type:"object"},optionSetNode:{additionalProperties:!1,properties:{id:{type:"string"},kind:{const:"optionSet"},options:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/optionNode"},type:"array"},questionId:{type:"string"},targetRef:{type:"string"},title:{type:"string"}},required:["id","kind","options","targetRef"],type:"object"},outcomeNode:{additionalProperties:!1,properties:{id:{type:"string"},kind:{const:"outcome"},modality:{enum:["amendment","comment","decision","orientation"]},questionId:{type:"string"},statement:{type:"string"},targetRef:{type:"string"}},required:["id","kind","modality","statement","targetRef"],type:"object"},proseNode:{additionalProperties:!1,properties:{id:{type:"string"},kind:{const:"prose"},markdown:{type:"string"},questionId:{type:"string"},targetRef:{type:"string"}},required:["id","kind","markdown","targetRef"],type:"object"},provenance:{additionalProperties:!1,properties:{comprehensionEvidence:{$ref:"#/$defs/DecisionDossierDocument/$defs/comprehensionEvidence"},readAt:{type:"string"},source:{type:"string"}},required:["readAt","source"],type:"object"},questionNode:{additionalProperties:!1,properties:{answer:{type:"string"},context:{type:"string"},id:{type:"string"},kind:{const:"question"},question:{type:"string"},readingTimeMinutes:{type:"number"},recommendedAnswer:{type:"string"},recommendedOptionId:{type:"string"},state:{enum:["answered","open","validated"]},targetRef:{type:"string"}},required:["id","kind","question","state","targetRef"],type:"object"},readability:{additionalProperties:!1,properties:{glossary:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/glossaryEntry"},type:"array"},noOwnerRequest:{type:"boolean"},ownerRequestQuote:{type:"string"},readingBudgetMinutes:{type:"number"},stakes:{type:"string"},stakesLevel:{enum:["high","low","medium"]}},type:"object"},section:{oneOf:[{$ref:"#/$defs/DecisionDossierDocument/$defs/proseNode"},{$ref:"#/$defs/DecisionDossierDocument/$defs/questionNode"},{$ref:"#/$defs/DecisionDossierDocument/$defs/optionSetNode"},{$ref:"#/$defs/DecisionDossierDocument/$defs/outcomeNode"},{$ref:"#/$defs/DecisionDossierDocument/$defs/amendmentTraceNode"},{$ref:"#/$defs/DecisionDossierDocument/$defs/diagramNode"}]}},$schema:"https://json-schema.org/draft/2020-12/schema",additionalProperties:!1,description:"Read-only decision-dossier snapshot published by @sentropic/focus. Closed: unknown fields refuse. Snapshot interactions are disabled metadata (enabled:false); live decisions, signatures and amendments require separately qualified runtime capabilities.",properties:{amendmentTrace:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/amendmentStep"},type:"array"},cursor:{type:"string"},hash:{type:"string"},interactions:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/interaction"},type:"array"},provenance:{$ref:"#/$defs/DecisionDossierDocument/$defs/provenance"},readability:{$ref:"#/$defs/DecisionDossierDocument/$defs/readability"},ref:{type:"string"},sections:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/section"},type:"array"},subject:{type:"string"},title:{type:"string"}},required:["amendmentTrace","cursor","hash","interactions","provenance","ref","sections","subject","title"],title:"DecisionDossierDocument",type:"object"},anyComponent:{oneOf:[{$ref:"#/components/BarChart"},{$ref:"#/components/BpmnCanvas"},{$ref:"#/components/DecisionDossier"}]},theme:{properties:{themeId:{type:"string"}},type:"object"}},$id:"https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json",$schema:"https://json-schema.org/draft/2020-12/schema",catalogId:"https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json",components:JSON.parse('{"BarChart":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"annotations":{"description":"Annotation overlay in data space (see ChartAnnotation).","items":{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"point","type":"string"},"label":{"type":"string"},"marker":{"description":"Marker glyph for a point annotation.","enum":["circle","diamond","square"],"type":"string"},"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["kind","x","y"],"type":"object"},{"additionalProperties":false,"properties":{"anchor":{"enum":["end","middle","start"],"type":"string"},"kind":{"const":"label","type":"string"},"text":{"type":"string"},"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["kind","text","x","y"],"type":"object"},{"additionalProperties":false,"properties":{"axis":{"enum":["x","y"],"type":"string"},"kind":{"const":"line","type":"string"},"label":{"type":"string"},"value":{"type":"number"}},"required":["axis","kind","value"],"type":"object"},{"additionalProperties":false,"properties":{"axis":{"enum":["x","y"],"type":"string"},"from":{"type":"number"},"kind":{"const":"region","type":"string"},"label":{"type":"string"},"to":{"type":"number"}},"required":["axis","from","kind","to"],"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"shape","type":"string"},"label":{"type":"string"},"points":{"items":{"additionalProperties":false,"properties":{"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"type":"array"}},"required":["kind","points"],"type":"object"}],"description":"Annotation overlay in data space, discriminated on `kind`. The `x` coordinate is categorical for this chart: it matches a bar by its `label` and is ignored otherwise; `y` and every value-axis number are numeric."},"type":"array"},"bands":{"description":"Shaded value-axis bands.","items":{"additionalProperties":false,"description":"A shaded band between two value-axis positions.","properties":{"from":{"description":"Band start in value-axis units.","type":"number"},"label":{"description":"Human-readable band label.","type":"string"},"to":{"description":"Band end in value-axis units.","type":"number"},"tone":{"description":"Feedback-token tone for the band.","enum":["error","info","neutral","success","warning"],"type":"string"}},"required":["from","to"],"type":"object"},"type":"array"},"component":{"const":"BarChart"},"data":{"description":"The bars, in draw order. Required.","items":{"additionalProperties":false,"description":"One bar: its label is also its selection key.","properties":{"errorHigh":{"description":"Upper error-bar extent (value-axis units). Drawn only when finite.","type":"number"},"errorLow":{"description":"Lower error-bar extent (value-axis units). Drawn only when finite.","type":"number"},"label":{"description":"The bar\'s category label; also its key for selection and hover.","type":"string"},"tone":{"description":"Explicit categorical tone; the palette default when absent.","enum":["category1","category2","category3","category4","category5","category6","category7","category8"],"type":"string"},"value":{"description":"The bar\'s value (value-axis units).","type":"number"}},"required":["label","value"],"type":"object"},"type":"array"},"dataLabels":{"anyOf":[{"type":"boolean"},{"additionalProperties":false,"properties":{"position":{"description":"Placement hint; the chart\'s default when absent.","enum":["auto","center","inside","outside","top"],"type":"string"}},"type":"object"}],"description":"Per-bar value labels; absent or false renders none."},"domain":{"description":"Fixed value-axis domain [min, max]; the auto data range when absent.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"goalLine":{"additionalProperties":false,"description":"A single goal line, emphasised above the bars.","properties":{"label":{"description":"Human-readable goal label.","type":"string"},"value":{"description":"Position of the goal line in value-axis units.","type":"number"}},"required":["value"],"type":"object"},"height":{"description":"Fixed pixel height; the component\'s default when absent.","type":"number"},"hoverKey":{"description":"Controlled synchronised hover key (a bar\'s label, or null for none).","type":["null","string"]},"invertAxis":{"description":"Inverts the value axis (high values toward the origin). Default false.","type":"boolean"},"keyboardNav":{"description":"Keyboard navigation of the data points (roving tabindex).","type":"boolean"},"label":{"description":"Human-readable chart label (also the accessible name). Required.","type":"string"},"orientation":{"description":"Bar direction; \\"vertical\\" by default.","enum":["horizontal","vertical"],"type":"string"},"referenceLines":{"description":"Reference lines on the value axis.","items":{"additionalProperties":false,"description":"A reference line on one axis (default axis: \\"y\\").","properties":{"axis":{"description":"Which axis the line spans; \\"y\\" by default.","enum":["x","y"],"type":"string"},"label":{"description":"Human-readable line label.","type":"string"},"tone":{"description":"Feedback-token tone for the line.","enum":["error","info","neutral","success","warning"],"type":"string"},"value":{"description":"Position of the line in value-axis units.","type":"number"}},"required":["value"],"type":"object"},"type":"array"},"scale":{"description":"Value-axis scale; \\"linear\\" by default, \\"log\\" needs positive values.","enum":["linear","log"],"type":"string"},"selectedKeys":{"description":"Keys of the currently selected bars (a bar\'s key is its label). Controlled.","items":{"type":"string"},"type":"array"},"showLegend":{"description":"Accepted for cross-chart parity; BarChart has no separate legend surface.","type":"boolean"},"width":{"description":"Fixed pixel width; the container\'s when absent.","type":"number"}},"required":["component","data","label"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-bar-chart","engine":"core","events":["select"],"example":{"component":"BarChart","data":[{"label":"Q1","value":12},{"label":"Q2","value":18},{"label":"Q3","value":9}],"dataLabels":true,"id":"root","label":"Revenue (M\u20AC)","referenceLines":[{"label":"Target","value":15}]},"fallback":"svg","parity":{"angular":{"comparedProps":17,"file":"packages/components-angular/src/BarChart.ts","status":"match","type":"BarChartProps"},"react":{"comparedProps":17,"file":"packages/components-react/src/BarChart.tsx","note":"Own members after subtracting React.HTMLAttributes<HTMLDivElement>; className is React\'s name for the class style hook.","status":"match","type":"BarChartProps"},"svelte":{"file":"packages/components-svelte/src/lib/BarChart.svelte","note":"Reference pilot (\xA73.1); not mechanically generatable (Svelte file), mirrored here member for member.","status":"source-of-truth","type":"BarChartProps"},"vue":{"comparedProps":17,"file":"packages/components-vue/src/BarChart.ts","status":"match","type":"BarChartProps"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/BarChart.json"}},"BpmnCanvas":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"component":{"const":"BpmnCanvas"},"document":{"additionalProperties":{},"description":"The F1 document to render: a structural envelope the engine\'s hydrate validates.","properties":{"$type":{"description":"F1 type discriminator, e.g. \\"bpmn:Definitions\\".","type":"string"}},"required":["$type"],"type":"object"}},"required":["component","document"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-bpmn-canvas","engine":"lazy:bpmn-canvas","events":[],"example":{"component":"BpmnCanvas","document":{"$type":"bpmn:Definitions","id":"definitions-1","targetNamespace":"https://example.com/bpmn"},"id":"root"},"fallback":"svg","parity":{"angular":{"file":"packages/components-angular","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"react":{"file":"packages/components-react","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"svelte":{"file":"packages/components-svelte","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"vue":{"file":"packages/components-vue","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/BpmnCanvas.json","semantic":{"runtimePackage":"@sentropic/bpmn-canvas","source":"bpmn-canvas"}}},"DecisionDossier":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"component":{"const":"DecisionDossier"},"document":{"$ref":"#/$defs/DecisionDossierDocument"}},"required":["component","document"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-decision-dossier","engine":"lazy:focus","events":["choose-option"],"example":{"component":"DecisionDossier","document":{"amendmentTrace":[],"cursor":"2026-10-30T10:00:00Z","hash":"b7d3f0c9","interactions":[],"provenance":{"readAt":"2026-10-30T10:00:00Z","source":"track"},"ref":"decision-1","sections":[{"id":"q1","kind":"question","question":"Which rendering contract do we adopt?","state":"open","targetRef":"decision-1"},{"id":"options-1","kind":"optionSet","options":[{"annotation":"none","id":"opt-json","kind":"option","label":"Adopt the JSON render standard","targetRef":"q1"},{"annotation":"none","id":"opt-status-quo","kind":"option","label":"Keep the status quo","targetRef":"q1"}],"targetRef":"q1","title":"Options"}],"subject":"Adopt the JSON render standard for design-system rendering","title":"Decision: adopt the JSON render standard"},"id":"root"},"fallback":"text","parity":{"angular":{"file":"packages/components-angular","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"react":{"file":"packages/components-react","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"svelte":{"file":"packages/components-svelte","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"vue":{"file":"packages/components-vue","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/DecisionDossier.json","semantic":{"runtimePackage":"@sentropic/focus@0.5.0","schemaId":"urn:sentropic:focus:DecisionDossierDocument:1.0.0","schemaSubpath":"schemas/decision-dossier-document.v1.schema.json","sha256":"725bc07e7c6b6ad51a1f720cc9fb02649d8f31bc54e71c61c350fd20058c8852","source":"focus"}}}}'),description:"A2UI v0.9.1 basic catalogue of the Sentropic design system elements (JSON render standard, spec/SPEC_EVOL_DS_JSON_RENDER_STANDARD.md \xA75.2). Each component carries its x-sentropic contract version, element name, engine, events, fallback and standalone schema id; semantic documents are validated by their owning runtimes (\xA74.3).",functions:{},title:"Sentropic design system elements catalogue"},jE={$id:"https://design-system.sent-tech.ca/catalogs/elements/v1/envelope.json",$schema:"https://json-schema.org/draft/2020-12/schema",description:"The render envelope of the JSON render standard (\xA74.2): one A2UI v0.9.1 component object under `root`, with the targeted component's contract version and an optional mode. The root interior is validated by the targeted component's catalogue entry, not by this schema.",properties:{catalogId:{type:"string"},contract:{pattern:"^[0-9]+\\.[0-9]+$",type:"string"},mode:{enum:["preview","snapshot"],type:"string"},root:{properties:{component:{type:"string"},id:{const:"root"}},required:["component","id"],type:"object"}},required:["contract","root"],title:"Sentropic render envelope",type:"object",unevaluatedProperties:!1},$E={$defs:{AccessibilityAttributes:{description:"Attributes to enhance accessibility when using assistive technologies like screen readers.",properties:{description:{$ref:"#/$defs/DynamicString",description:"Additional information provided by assistive technologies about an element such as instructions, format requirements, or result of an action. For example, a mute button might have a label of 'Mute' and a description of 'Silences notifications about this conversation'."},label:{$ref:"#/$defs/DynamicString",description:"A short string, typically 1 to 3 words, used by assistive technologies to convey the purpose or intent of an element. For example, an input field might have an accessible label of 'User ID' or a button might be labeled 'Submit'."}},type:"object"},Action:{description:"Defines an interaction handler that can either trigger a server-side event or execute a local client-side function.",oneOf:[{additionalProperties:!1,description:"Triggers a server-side event.",properties:{event:{additionalProperties:!1,description:"The event to dispatch to the server.",properties:{context:{additionalProperties:{$ref:"#/$defs/DynamicValue"},description:"A JSON object containing the key-value pairs for the action context. Values can be literals or paths. Use literal values unless the value must be dynamically bound to the data model. Do NOT use paths for static IDs.",type:"object"},name:{description:"The name of the action to be dispatched to the server.",type:"string"}},required:["name"],type:"object"}},required:["event"],type:"object"},{additionalProperties:!1,description:"Executes a local client-side function.",properties:{functionCall:{$ref:"#/$defs/FunctionCall"}},required:["functionCall"],type:"object"}]},CheckRule:{additionalProperties:!1,description:"A single validation rule applied to an input component.",properties:{condition:{$ref:"#/$defs/DynamicBoolean"},message:{description:"The error message to display if the check fails.",type:"string"}},required:["condition","message"],type:"object"},Checkable:{description:"Properties for components that support client-side checks.",properties:{checks:{description:"A list of checks to perform. These are function calls that must return a boolean indicating validity.",items:{$ref:"#/$defs/CheckRule"},type:"array"}},type:"object"},ChildList:{oneOf:[{description:"A static list of child component IDs.",items:{$ref:"#/$defs/ComponentId"},type:"array"},{additionalProperties:!1,description:"A template for generating a dynamic list of children from a data model list. The `componentId` is the component to use as a template.",properties:{componentId:{$ref:"#/$defs/ComponentId"},path:{description:"The path to the list of component property objects in the data model.",type:"string"}},required:["componentId","path"],type:"object"}]},ComponentCommon:{properties:{accessibility:{$ref:"#/$defs/AccessibilityAttributes"},id:{$ref:"#/$defs/ComponentId"}},required:["id"],type:"object"},ComponentId:{description:"The unique identifier for a component, used for both definitions and references within the same surface.",type:"string"},DataBinding:{additionalProperties:!1,properties:{path:{description:"A JSON Pointer path to a value in the data model.",type:"string"}},required:["path"],type:"object"},DynamicBoolean:{description:"A boolean value that can be a literal, a path, or a function call returning a boolean.",oneOf:[{type:"boolean"},{$ref:"#/$defs/DataBinding"},{allOf:[{$ref:"#/$defs/FunctionCall"},{properties:{returnType:{const:"boolean"}}}]}]},DynamicNumber:{description:"Represents a value that can be either a literal number, a path to a number in the data model, or a function call returning a number.",oneOf:[{type:"number"},{$ref:"#/$defs/DataBinding"},{allOf:[{$ref:"#/$defs/FunctionCall"},{properties:{returnType:{const:"number"}}}]}]},DynamicString:{description:"Represents a string",oneOf:[{type:"string"},{$ref:"#/$defs/DataBinding"},{allOf:[{$ref:"#/$defs/FunctionCall"},{properties:{returnType:{const:"string"}}}]}]},DynamicStringList:{description:"Represents a value that can be either a literal array of strings, a path to a string array in the data model, or a function call returning a string array.",oneOf:[{items:{type:"string"},type:"array"},{$ref:"#/$defs/DataBinding"},{allOf:[{$ref:"#/$defs/FunctionCall"},{properties:{returnType:{const:"array"}}}]}]},DynamicValue:{description:"A value that can be a literal, a path, or a function call returning any type.",oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{$ref:"#/$defs/DataBinding"},{$ref:"#/$defs/FunctionCall"}]},FunctionCall:{description:"Invokes a named function on the client.",oneOf:[{$ref:"catalog.json#/$defs/anyFunction"}],properties:{args:{additionalProperties:{anyOf:[{$ref:"#/$defs/DynamicValue"},{description:"A literal object argument (e.g. configuration).",type:"object"}]},description:"Arguments passed to the function.",type:"object"},call:{description:"The name of the function to call.",type:"string"},returnType:{default:"boolean",description:"The expected return type of the function call.",enum:["any","array","boolean","number","object","string","void"],type:"string"}},required:["call"],type:"object"}},$id:"https://a2ui.org/specification/v0_9_1/common_types.json",$schema:"https://json-schema.org/draft/2020-12/schema",description:"Common type definitions used across A2UI schemas.",title:"A2UI Common Types"},OE={$defs:{anyFunction:{not:{}}},$id:"https://a2ui.org/specification/v0_9_1/catalog.json",$schema:"https://json-schema.org/draft/2020-12/schema"},rL=new Set(["$ref","type","enum","const","pattern","properties","required","additionalProperties","unevaluatedProperties","items","minItems","maxItems","allOf","anyOf","oneOf","not"]),iL=new Set(["$schema","$id","$defs","$anchor","$dynamicAnchor","$comment","$vocabulary","title","description","default","examples","example","note","deprecated","readOnly","writeOnly","catalogId","components","functions","x-sentropic"]),aL=new Set(["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","maxProperties","minProperties","uniqueItems","contains","maxContains","minContains","patternProperties","dependentRequired","dependentSchemas","propertyNames","prefixItems","unevaluatedItems","if","then","else","definitions","$dynamicRef","$recursiveRef"]);cL=class{#t=new Map;register(t,e){if(!In(t)||typeof t.$id!="string"||t.$id.length===0)throw Error("the ".concat(e," must carry its $id so every $ref resolves without network access"));return this.#t.set(t.$id,t),t.$id}resolve(t,e){let n=t.indexOf("#"),o=n===-1?t:t.slice(0,n),r=n===-1?"":t.slice(n+1),i=e;o.length>0&&(i=/^[a-z][a-z0-9+.-]*:/i.test(o)?o:lL(e,o));let a=this.#t.get(i);if(a===void 0)throw Error('the $ref "'.concat(t,'" does not name a registered document (from ').concat(e,")"));return{schema:r.length===0?a:pL(a,r,t),baseId:i}}};ey=new Set;OS=new Map;hL=(function(){let t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"})(),fL=function(t){return"/"+t},gL={},yL=function(t){return t.pathname.endsWith(".css")},bL=function(t,e,n){if(e in t)return t[e];let o=n();if(!o){t[e]=void 0;return}let r=o.then(()=>{t[e]=void 0},i=>{throw t[e]=void 0,i});return t[e]=r,r},Er=function(t,e,n){let o=Promise.resolve();if(e&&e.length>0){let p=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))},d=function(u){return import.meta.resolve?new URL(import.meta.resolve(u)):new URL(u,import.meta.url)};var i=p,a=d;let s,c=document.querySelector("meta[property=csp-nonce]"),l=c?.nonce||c?.getAttribute("nonce");o=p(e.map(u=>{u=fL(u,n);let m=d(u),h=yL(m);return bL(gL,m.href,()=>{if(s===void 0){s={all:new Set,styles:new Set};let g=document.getElementsByTagName("link");for(let v=g.length-1;v>=0;v--){let k=g[v];s.all.add(k.href),k.rel==="stylesheet"&&s.styles.add(k.href)}}if((h?s.styles:s.all).has(m.href))return;let f=document.createElement("link");if(f.rel=h?"stylesheet":hL,h||(f.as="script"),f.crossOrigin="",f.href=m.href,l&&f.setAttribute("nonce",l),document.head.appendChild(f),h)return new Promise((g,v)=>{f.addEventListener("load",g),f.addEventListener("error",()=>v(Error("Unable to preload CSS for ".concat(m))))})})}).filter(u=>u!==void 0))}function r(s){let c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return o.then(s=>{for(let c of s||[])c.status==="rejected"&&r(c.reason);return t().catch(r)})},by={BpmnCanvas:"bpmn-canvas",DecisionDossier:"focus"},oy=new Map;Xu=new WeakMap,vy=new WeakMap;SL="/* Generated by packages/themes/scripts/build-css.mjs. */\n/* Theme: Sent Tech (sent-tech) */\n/* Dark mode: 3 blocks (light + auto + explicit) */\n[data-st-theme=\"sent-tech\"] {\n color-scheme: light;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-foundation-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-foundation-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: #ffffff;\n --st-semantic-surface-subtle: #f8fafc;\n --st-semantic-surface-raised: #ffffff;\n --st-semantic-surface-inverse: #0f172a;\n --st-semantic-surface-overlay: rgb(15 23 42 / 0.48);\n --st-semantic-text-primary: #0f172a;\n --st-semantic-text-secondary: #475569;\n --st-semantic-text-muted: #64748b;\n --st-semantic-text-inverse: #ffffff;\n --st-semantic-text-link: oklch(50% 0.134 242.749);\n --st-semantic-border-subtle: #e2e8f0;\n --st-semantic-border-strong: #94a3b8;\n --st-semantic-border-interactive: oklch(50% 0.134 242.749);\n --st-semantic-action-primary: oklch(50% 0.134 242.749);\n --st-semantic-action-primaryHover: oklch(32% 0.11 242);\n --st-semantic-action-primaryText: #ffffff;\n --st-semantic-action-secondary: #f8fafc;\n --st-semantic-action-secondaryHover: #e2e8f0;\n --st-semantic-action-secondaryText: #0f172a;\n --st-semantic-action-danger: #dc2626;\n --st-semantic-feedback-success: #16a34a;\n --st-semantic-feedback-warning: #d97706;\n --st-semantic-feedback-error: #dc2626;\n --st-semantic-feedback-info: #2563eb;\n --st-semantic-status-pending: #d97706;\n --st-semantic-status-processing: #2563eb;\n --st-semantic-status-completed: #16a34a;\n --st-semantic-status-failed: #dc2626;\n --st-semantic-data-category1: #4E79A7;\n --st-semantic-data-category2: #F28E2B;\n --st-semantic-data-category3: #E15759;\n --st-semantic-data-category4: #76B7B2;\n --st-semantic-data-category5: #59A14F;\n --st-semantic-data-category6: #EDC948;\n --st-semantic-data-category7: #B07AA1;\n --st-semantic-data-category8: #FF9DA7;\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(50% 0.134 242.749);\n --st-component-button-primaryText: #ffffff;\n --st-component-button-secondaryBackground: #f8fafc;\n --st-component-button-secondaryBorder: #e2e8f0;\n --st-component-button-secondaryHoverBackground: #e2e8f0;\n --st-component-button-secondaryText: #0f172a;\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(32% 0.11 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(50% 0.134 242.749);\n --st-component-link-hoverText: oklch(50% 0.134 242.749);\n --st-component-link-disabledText: #64748b;\n --st-component-link-focusRing: oklch(50% 0.134 242.749);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(50% 0.134 242.749);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: #64748b;\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: #ffffff;\n --st-component-alert-text: #0f172a;\n --st-component-alert-border: #e2e8f0;\n --st-component-alert-infoBorder: #2563eb;\n --st-component-alert-successBorder: #16a34a;\n --st-component-alert-warningBorder: #d97706;\n --st-component-alert-errorBorder: #dc2626;\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid #e2e8f0;\n --st-component-alert-borderRight: 1px solid #e2e8f0;\n --st-component-alert-borderBottom: 1px solid #e2e8f0;\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: #0f172a;\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: #f8fafc;\n --st-component-tag-neutralText: #475569;\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, #2563eb 14%, white);\n --st-component-badge-infoText: #2563eb;\n --st-component-card-background: #ffffff;\n --st-component-card-border: #e2e8f0;\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: #ffffff;\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: #ffffff;\n --st-component-menu-border: #e2e8f0;\n --st-component-menu-text: #0f172a;\n --st-component-menu-itemHoverBackground: #f8fafc;\n --st-component-menu-dangerText: #dc2626;\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: #64748b;\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-popover-background: #ffffff;\n --st-component-popover-border: #e2e8f0;\n --st-component-popover-text: #0f172a;\n --st-component-popover-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: #ffffff;\n --st-component-dropdown-border: #e2e8f0;\n --st-component-dropdown-text: #0f172a;\n --st-component-dropdown-optionHoverBackground: #f8fafc;\n --st-component-dropdown-selectedBackground: oklch(50% 0.134 242.749);\n --st-component-dropdown-selectedText: #ffffff;\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-input-background: #ffffff;\n --st-component-input-border: #e2e8f0;\n --st-component-input-focusRing: oklch(50% 0.134 242.749);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: #0f172a;\n --st-component-field-helpText: #475569;\n --st-component-field-errorText: #dc2626;\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: #ffffff;\n --st-component-control-text: #0f172a;\n --st-component-control-placeholderText: #64748b;\n --st-component-control-border: #e2e8f0;\n --st-component-control-hoverBorder: #94a3b8;\n --st-component-control-hoverBackground: #f8fafc;\n --st-component-control-focusRing: oklch(50% 0.134 242.749);\n --st-component-control-invalidBorder: #dc2626;\n --st-component-control-disabledBackground: #f8fafc;\n --st-component-control-disabledText: #64748b;\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderRight: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderBottom: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderLeft: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: #94a3b8;\n --st-component-control-anatomy-states-focus-border: oklch(50% 0.134 242.749);\n --st-component-control-anatomy-states-disabled-bg: #f8fafc;\n --st-component-control-anatomy-states-disabled-text: #64748b;\n --st-component-selection-checkedBackground: oklch(50% 0.134 242.749);\n --st-component-selection-checkedText: #ffffff;\n --st-component-selection-border: #e2e8f0;\n --st-component-selection-switchTrack: #94a3b8;\n --st-component-selection-switchTrackChecked: oklch(50% 0.134 242.749);\n --st-component-selection-switchThumb: #ffffff;\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: #0f172a;\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: #0f172a;\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(15 23 42 / 0.48);\n --st-component-overlay-surface: #ffffff;\n --st-component-overlay-border: #e2e8f0;\n --st-component-overlay-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(15 23 42 / 0.48);\n --st-component-drawer-surface: #ffffff;\n --st-component-drawer-border: #e2e8f0;\n --st-component-drawer-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: #f8fafc;\n --st-component-emptyState-border: #e2e8f0;\n --st-component-emptyState-titleText: #0f172a;\n --st-component-emptyState-messageText: #475569;\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(50% 0.134 242.749);\n --st-component-loadingState-track: #f8fafc;\n --st-component-loadingState-text: #475569;\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: #0f172a;\n --st-component-tooltip-text: #ffffff;\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: #ffffff;\n --st-component-toast-text: #0f172a;\n --st-component-toast-border: #e2e8f0;\n --st-component-toast-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: #2563eb;\n --st-component-toast-successBorder: #16a34a;\n --st-component-toast-warningBorder: #d97706;\n --st-component-toast-errorBorder: #dc2626;\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: #f8fafc;\n --st-component-dataTable-rowBackground: #ffffff;\n --st-component-dataTable-rowHoverBackground: #f8fafc;\n --st-component-dataTable-border: #e2e8f0;\n --st-component-dataTable-text: #0f172a;\n --st-component-dataTable-captionText: #475569;\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: #0f172a;\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: #475569;\n --st-component-tabs-border: #e2e8f0;\n --st-component-tabs-indicator: oklch(50% 0.134 242.749);\n --st-component-tabs-panelBackground: #ffffff;\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: #0f172a;\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: #ffffff;\n --st-component-pagination-border: #e2e8f0;\n --st-component-pagination-text: #0f172a;\n --st-component-pagination-activeBackground: oklch(50% 0.134 242.749);\n --st-component-pagination-activeText: #ffffff;\n --st-component-pagination-disabledText: #64748b;\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: #e2e8f0;\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: #ffffff;\n --st-component-paginationNav-border: #e2e8f0;\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: #0f172a;\n --st-component-paginationNav-hoverBackground: #f8fafc;\n --st-component-paginationNav-activeBackground: oklch(50% 0.134 242.749);\n --st-component-paginationNav-activeText: #ffffff;\n --st-component-paginationNav-disabledText: #64748b;\n --st-component-paginationNav-ellipsisText: #64748b;\n --st-component-breadcrumb-text: #475569;\n --st-component-breadcrumb-currentText: #0f172a;\n --st-component-breadcrumb-separator: #64748b;\n --st-component-breadcrumb-linkText: oklch(50% 0.134 242.749);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: #ffffff;\n --st-component-sideNav-border: #e2e8f0;\n --st-component-sideNav-itemText: #475569;\n --st-component-sideNav-activeBackground: #f8fafc;\n --st-component-sideNav-activeText: #0f172a;\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(50% 0.134 242.749) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(50% 0.134 242.749);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(50% 0.134 242.749) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(50% 0.134 242.749) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(50% 0.134 242.749);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(50% 0.134 242.749) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(50% 0.134 242.749);\n --st-component-chat-userBubbleText: #ffffff;\n --st-component-chat-assistantBubbleBackground: #f8fafc;\n --st-component-chat-assistantBubbleText: #0f172a;\n --st-component-chat-composerSurface: #ffffff;\n --st-component-chat-toolCallSurface: #f8fafc;\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: #0f172a;\n --st-component-graph-panelText: #ffffff;\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: #4E79A7;\n --st-component-graph-community2: #F28E2B;\n --st-component-graph-community3: #E15759;\n --st-component-graph-community4: #76B7B2;\n}\n\n\n@media (prefers-color-scheme: dark) {\n color-scheme: dark;\n :root:not([data-color-mode=\"light\"]) {\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: oklch(62% 0.15 242);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: oklch(17% 0.012 250);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(62% 0.15 242);\n --st-component-button-primaryText: oklch(17% 0.012 250);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: oklch(62% 0.15 242);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(62% 0.15 242);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: oklch(62% 0.15 242);\n --st-component-dropdown-selectedText: oklch(17% 0.012 250);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: oklch(62% 0.15 242);\n --st-component-selection-checkedText: oklch(17% 0.012 250);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: oklch(62% 0.15 242);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(62% 0.15 242);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: oklch(62% 0.15 242);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: oklch(62% 0.15 242);\n --st-component-pagination-activeText: oklch(17% 0.012 250);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: oklch(62% 0.15 242);\n --st-component-paginationNav-activeText: oklch(17% 0.012 250);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(62% 0.15 242) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(62% 0.15 242);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(62% 0.15 242) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(62% 0.15 242) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(62% 0.15 242);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(62% 0.15 242) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(62% 0.15 242);\n --st-component-chat-userBubbleText: oklch(17% 0.012 250);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n\n}\n\n:root[data-color-mode=\"dark\"] {\n color-scheme: dark;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: oklch(62% 0.15 242);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: oklch(17% 0.012 250);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(62% 0.15 242);\n --st-component-button-primaryText: oklch(17% 0.012 250);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: oklch(62% 0.15 242);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(62% 0.15 242);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: oklch(62% 0.15 242);\n --st-component-dropdown-selectedText: oklch(17% 0.012 250);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: oklch(62% 0.15 242);\n --st-component-selection-checkedText: oklch(17% 0.012 250);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: oklch(62% 0.15 242);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(62% 0.15 242);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: oklch(62% 0.15 242);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: oklch(62% 0.15 242);\n --st-component-pagination-activeText: oklch(17% 0.012 250);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: oklch(62% 0.15 242);\n --st-component-paginationNav-activeText: oklch(17% 0.012 250);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(62% 0.15 242) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(62% 0.15 242);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(62% 0.15 242) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(62% 0.15 242) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(62% 0.15 242);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(62% 0.15 242) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(62% 0.15 242);\n --st-component-chat-userBubbleText: oklch(17% 0.012 250);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n";CL=["sent-tech","forge","entropic"],RL={"sent-tech":async()=>SL,forge:async()=>(await Er(async()=>{let{default:t}=await Promise.resolve().then(()=>(dE(),pE));return{default:t}},[])).default,entropic:async()=>(await Er(async()=>{let{default:t}=await Promise.resolve().then(()=>(mE(),uE));return{default:t}},[])).default},xy=new Map;jL=Go('<li class="st-element__errorItem svelte-ia8wso" data-st-error-item=""><code class="st-element__errorCode svelte-ia8wso" data-st-error-code=""> </code> <span class="st-element__errorPath svelte-ia8wso" data-st-error-path=""> </span> <span class="st-element__errorMessage" data-st-error-message=""> </span></li>'),$L=Go('<div class="st-element__error svelte-ia8wso" role="alert" data-st-error=""><p class="st-element__errorTitle svelte-ia8wso" data-st-error-title=""> </p> <ul class="st-element__errorList svelte-ia8wso"></ul></div>'),OL={hash:"svelte-ia8wso",code:".st-element__error.svelte-ia8wso {border:1px solid var(--st-color-feedback-error-border, #dc2626);border-radius:8px;padding:12px;font-family:inherit;color:var(--st-color-feedback-error-text, #7f1d1d);background:var(--st-color-feedback-error-background, #fef2f2);}.st-element__errorTitle.svelte-ia8wso {margin:0 0 8px;font-weight:600;}.st-element__errorList.svelte-ia8wso {margin:0;padding:0;list-style:none;}.st-element__errorItem.svelte-ia8wso {display:grid;grid-template-columns:auto auto 1fr;gap:8px;margin:4px 0;font-size:0.875rem;}.st-element__errorCode.svelte-ia8wso {font-family:ui-monospace, monospace;}.st-element__errorPath.svelte-ia8wso {font-family:ui-monospace, monospace;opacity:0.8;}"};zL=Go('<div class="st-element__root svelte-17allio"><!></div>'),LL={hash:"svelte-17allio",code:".st-element__root.svelte-17allio {display:block;}"};customElements.define("st-bar-chart",Iy(NL,{envelope:{},hostConfig:{}},[],[],{mode:"open"}));FL=Go('<div class="st-element__body svelte-ji2uxk"></div>'),WL=Go('<div class="st-element__root svelte-ji2uxk"><!></div>'),GL={hash:"svelte-ji2uxk",code:".st-element__root.svelte-ji2uxk {display:block;}.st-element__body.svelte-ji2uxk {min-height:120px;}"};customElements.define("st-bpmn-canvas",Iy(UL,{envelope:{},hostConfig:{}},[],[],{mode:"open"}));VL=Go('<div class="st-element__body"></div>'),qL=Go('<div class="st-element__root svelte-2k2x7w"><!></div>'),KL={hash:"svelte-2k2x7w",code:".st-element__root.svelte-2k2x7w {display:block;}"};customElements.define("st-decision-dossier",Iy(YL,{envelope:{},hostConfig:{}},[],[],{mode:"open"})),ry("st-bar-chart"),ry("st-bpmn-canvas"),ry("st-decision-dossier")});Jf();export{Qs as n,Er as t};
|