@turmind/halo 2.1.1 → 2.1.2
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/admin-out/404.html +1 -1
- package/admin-out/_next/static/{0cRHmPZfENhrU7Hb0w3n_ → 1yjkA6O2OJ9CQ1XyyoazM}/_buildManifest.js +1 -1
- package/admin-out/_next/static/chunks/0.700b96fc96b80936.js +1 -0
- package/admin-out/_next/static/chunks/1160.e199e2decb964814.js +1 -0
- package/admin-out/_next/static/chunks/1208.0d86b06cbdf8a97e.js +38 -0
- package/admin-out/_next/static/chunks/1299.9ae1e73c8ca9cc34.js +23 -0
- package/admin-out/_next/static/chunks/1336.3eb7654fcfae2a58.js +1 -0
- package/admin-out/_next/static/chunks/1494.56493f36b01d2bda.js +1 -0
- package/admin-out/_next/static/chunks/1522.7d80e505c25fc865.js +1 -0
- package/admin-out/_next/static/chunks/1650.78e7ab21cb8bbb48.js +62 -0
- package/admin-out/_next/static/chunks/1690.20f8661b1877aa3d.js +1 -0
- package/admin-out/_next/static/chunks/1807.764b0338b13846a5.js +1 -0
- package/admin-out/_next/static/chunks/1989-669da2a252898797.js +1 -0
- package/admin-out/_next/static/chunks/199.fca450ee70f089fb.js +1 -0
- package/admin-out/_next/static/chunks/1b86ba38-4193816aebc732b9.js +1 -0
- package/admin-out/_next/static/chunks/{1d2d5650-d8d130c85727fdbb.js → 1d2d5650-c677408087984c7a.js} +1 -1
- package/admin-out/_next/static/chunks/2202.59a95bacad0d8c25.js +1 -0
- package/admin-out/_next/static/chunks/2204.93c869dacb19e384.js +1 -0
- package/admin-out/_next/static/chunks/2329.2f32de914b104261.js +148 -0
- package/admin-out/_next/static/chunks/2449.53d632fa8e412643.js +1 -0
- package/admin-out/_next/static/chunks/2477.79f2f92780311a37.js +94 -0
- package/admin-out/_next/static/chunks/2555.279979b7abe9d67f.js +104 -0
- package/admin-out/_next/static/chunks/2612.427656205dd7d7cc.js +1 -0
- package/admin-out/_next/static/chunks/2938.1555d68665415ace.js +1 -0
- package/admin-out/_next/static/chunks/295.0ef9b18be46f06e5.js +1 -0
- package/admin-out/_next/static/chunks/2979.d5a2293e776ec5de.js +1 -0
- package/admin-out/_next/static/chunks/3023.8f2b6311aae80029.js +36 -0
- package/admin-out/_next/static/chunks/3047.a49ae982be1f9fd4.js +226 -0
- package/admin-out/_next/static/chunks/304eda7d.2c6ab1276b03c10a.js +1 -0
- package/admin-out/_next/static/chunks/3483.cb8f5ba28c565e7f.js +1 -0
- package/admin-out/_next/static/chunks/391.71124432b84c926d.js +24 -0
- package/admin-out/_next/static/chunks/3986.a6181916d2c44515.js +1 -0
- package/admin-out/_next/static/chunks/4120.c271dfe3e1bc082e.js +1 -0
- package/admin-out/_next/static/chunks/4267.030877aaeac1bd71.js +1 -0
- package/admin-out/_next/static/chunks/4362.9d2ee4f9b6facc49.js +1 -0
- package/admin-out/_next/static/chunks/43ad6dab.4911ea318c123311.js +62 -0
- package/admin-out/_next/static/chunks/4480-6ceca99203a95c0e.js +1 -0
- package/admin-out/_next/static/chunks/4613.0985db499409cf22.js +1 -0
- package/admin-out/_next/static/chunks/4794.ba746110cfcbf536.js +1 -0
- package/admin-out/_next/static/chunks/4808.1cbe5b52fa01fc3d.js +1 -0
- package/admin-out/_next/static/chunks/4ec056c8.fe288ac8bd38a73b.js +160 -0
- package/admin-out/_next/static/chunks/5056.a87b1e056ba592b1.js +32 -0
- package/admin-out/_next/static/chunks/5058.8514aa6d6a947cce.js +1 -0
- package/admin-out/_next/static/chunks/545.e760052f10d36a9b.js +1 -0
- package/admin-out/_next/static/chunks/{510.e6c6faeb60ef3c33.js → 5510.f3889206b5768b33.js} +1 -1
- package/admin-out/_next/static/chunks/5593.d4c5f6a0862b4c6c.js +34 -0
- package/admin-out/_next/static/chunks/5700.4189184227fcf178.js +1 -0
- package/admin-out/_next/static/chunks/5741.dd7360163a2374cf.js +8 -0
- package/admin-out/_next/static/chunks/5850.b58c01f1e835d335.js +1 -0
- package/admin-out/_next/static/chunks/6066.1571d105977d528c.js +86 -0
- package/admin-out/_next/static/chunks/61527465.ae14a459dbfc381c.js +1 -0
- package/admin-out/_next/static/chunks/6203.672c38fcc2748c83.js +1 -0
- package/admin-out/_next/static/chunks/6390.4de9361c493b8d29.js +27 -0
- package/admin-out/_next/static/chunks/63c91ae9.ed896f9d6d01dfd4.js +1 -0
- package/admin-out/_next/static/chunks/6476.c7ec7d60350855c8.js +1 -0
- package/admin-out/_next/static/chunks/6574.30661d21e54bb004.js +1 -0
- package/admin-out/_next/static/chunks/6694.91c424de10ee2a24.js +79 -0
- package/admin-out/_next/static/chunks/6927.7f60d259473bb56a.js +193 -0
- package/admin-out/_next/static/chunks/7073.9d5f9dd7a77827b7.js +1 -0
- package/admin-out/_next/static/chunks/7250.a005173b9af23f14.js +1 -0
- package/admin-out/_next/static/chunks/7267.09e9b83beadc4847.js +1 -0
- package/admin-out/_next/static/chunks/72d2e465.c6751b76f1fa1cb3.js +1 -0
- package/admin-out/_next/static/chunks/7423.ce958b2d6a455a2f.js +1 -0
- package/admin-out/_next/static/chunks/7443.ee6684ba397e49da.js +41 -0
- package/admin-out/_next/static/chunks/7482.7f6f11637c008b77.js +1 -0
- package/admin-out/_next/static/chunks/7498.621ff3bc139607ad.js +1 -0
- package/admin-out/_next/static/chunks/7573.7f7f2a6fe7891e68.js +1 -0
- package/admin-out/_next/static/chunks/7613.fe24922a6a839656.js +1 -0
- package/admin-out/_next/static/chunks/7796.052a2a69f9bc0471.js +287 -0
- package/admin-out/_next/static/chunks/8148.156aea8f2a9ce398.js +115 -0
- package/admin-out/_next/static/chunks/8300.6c86a2236d42618f.js +64 -0
- package/admin-out/_next/static/chunks/8555.2e8d51736bfefd63.js +1 -0
- package/admin-out/_next/static/chunks/8558.baa0cf80a6964d20.js +286 -0
- package/admin-out/_next/static/chunks/8608.dba2a172fa47a740.js +77 -0
- package/admin-out/_next/static/chunks/8680.ed502a4a22357230.js +92 -0
- package/admin-out/_next/static/chunks/8698.28ca7821a30dba63.js +1 -0
- package/admin-out/_next/static/chunks/8712.e587efd8a6256aa9.js +1 -0
- package/admin-out/_next/static/chunks/8771.53592f31c08edafa.js +309 -0
- package/admin-out/_next/static/chunks/8878.330238d3d9f33faf.js +1 -0
- package/admin-out/_next/static/chunks/8892.9df3095f6c52e734.js +1 -0
- package/admin-out/_next/static/chunks/9104.6d57df418831714a.js +74 -0
- package/admin-out/_next/static/chunks/9121.574e833259fe9085.js +1 -0
- package/admin-out/_next/static/chunks/9142.0aac6a6c8e06bcaa.js +149 -0
- package/admin-out/_next/static/chunks/9180.3c809798364a0c62.js +1 -0
- package/admin-out/_next/static/chunks/92.788f49cdb265a668.js +217 -0
- package/admin-out/_next/static/chunks/9590.3e1a4754a7e66e84.js +93 -0
- package/admin-out/_next/static/chunks/9599.b2fd519c8a2951c9.js +1 -0
- package/admin-out/_next/static/chunks/9698-0157e7ac70c3f9fc.js +1 -0
- package/admin-out/_next/static/chunks/9837.92abff094b289f98.js +1 -0
- package/admin-out/_next/static/chunks/9839.73433bbeec6e1a51.js +1 -0
- package/admin-out/_next/static/chunks/9868.dcc9fd5f0041ffa8.js +1 -0
- package/admin-out/_next/static/chunks/9937.cff3c28655b07c61.js +24 -0
- package/admin-out/_next/static/chunks/a89fe872.304b3efb308b10a1.js +122 -0
- package/admin-out/_next/static/chunks/app/_not-found/page-e21cd35ca818a886.js +1 -0
- package/admin-out/_next/static/chunks/app/layout-0ed29966e0abc26b.js +1 -0
- package/admin-out/_next/static/chunks/app/page-30279944f9000c87.js +1 -0
- package/admin-out/_next/static/chunks/bf5d185f.735c9f3d05199f97.js +1 -0
- package/admin-out/_next/static/chunks/db534642.8e8a9023cd90863d.js +1 -0
- package/admin-out/_next/static/chunks/fcb912be.a7d93c5f2dd72e30.js +66 -0
- package/admin-out/_next/static/chunks/framework-98918e2142cd6d06.js +1 -0
- package/admin-out/_next/static/chunks/main-93c216652d4113b1.js +1 -0
- package/admin-out/_next/static/chunks/main-app-5e981adb363c52e5.js +1 -0
- package/admin-out/_next/static/chunks/pages/{_app-a3b7e86f97343e7a.js → _app-6fab9bb03f9f4fdf.js} +1 -1
- package/admin-out/_next/static/chunks/pages/_error-ada6d7affab6ebcc.js +1 -0
- package/admin-out/_next/static/chunks/webpack-7f8156dbbdb54868.js +1 -0
- package/admin-out/_next/static/css/46c83727621f8763.css +1 -0
- package/admin-out/index.html +1 -1
- package/admin-out/index.txt +5 -5
- package/bundled-docs/design/architecture.md +1 -1
- package/bundled-docs/design/storage.md +2 -2
- package/bundled-docs/guide/chat.md +1 -0
- package/bundled-docs/guide/workspace.md +1 -1
- package/bundled-docs/requirements/chat.md +1 -0
- package/bundled-docs/requirements/editor.md +1 -1
- package/bundled-docs/requirements/explorer.md +2 -0
- package/bundled-docs/requirements/source-control.md +2 -0
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/templates/models/aws-bedrock-claude-invoke.yaml +3 -3
- package/admin-out/_next/static/chunks/160.c52d3d6cf7bc8286.js +0 -1
- package/admin-out/_next/static/chunks/1b86ba38-c29611e086b2ce25.js +0 -1
- package/admin-out/_next/static/chunks/250.9094fea2325b09a3.js +0 -1
- package/admin-out/_next/static/chunks/304eda7d.f525962766560ba5.js +0 -1
- package/admin-out/_next/static/chunks/336.3171154ecc29c80a.js +0 -1
- package/admin-out/_next/static/chunks/362.a0c58d3bf9b1300b.js +0 -1
- package/admin-out/_next/static/chunks/398-9a8be186767b4504.js +0 -1
- package/admin-out/_next/static/chunks/449.c4b881b9ebdc556e.js +0 -1
- package/admin-out/_next/static/chunks/522.9e25c63e3082cb1c.js +0 -1
- package/admin-out/_next/static/chunks/58.d26b1c4f14404226.js +0 -1
- package/admin-out/_next/static/chunks/613.fb09e55e0a61d3fe.js +0 -1
- package/admin-out/_next/static/chunks/690.6a83d18b488a3e2e.js +0 -1
- package/admin-out/_next/static/chunks/698-19872069fed27164.js +0 -1
- package/admin-out/_next/static/chunks/73.05abce37d312e880.js +0 -1
- package/admin-out/_next/static/chunks/839.a2729fd33013d763.js +0 -1
- package/admin-out/_next/static/chunks/868.bbb91afd48c9eb58.js +0 -1
- package/admin-out/_next/static/chunks/892.a35118e09d8d8efd.js +0 -1
- package/admin-out/_next/static/chunks/989-71c38d29c6672b27.js +0 -1
- package/admin-out/_next/static/chunks/app/_not-found/page-4271518f2746cf73.js +0 -1
- package/admin-out/_next/static/chunks/app/layout-ea161287d934ba96.js +0 -1
- package/admin-out/_next/static/chunks/app/page-67334fcd2175c7ad.js +0 -1
- package/admin-out/_next/static/chunks/db534642.657a5bd93dc1e8c7.js +0 -1
- package/admin-out/_next/static/chunks/framework-c48c994d2190a38e.js +0 -1
- package/admin-out/_next/static/chunks/main-app-340a5b58ed229c4d.js +0 -1
- package/admin-out/_next/static/chunks/main-f1f665fbc24e1033.js +0 -1
- package/admin-out/_next/static/chunks/pages/_error-751fca0c729a7e01.js +0 -1
- package/admin-out/_next/static/chunks/webpack-662d2cae1104f635.js +0 -1
- package/admin-out/_next/static/css/3467b854242306b8.css +0 -1
- /package/admin-out/_next/static/{0cRHmPZfENhrU7Hb0w3n_ → 1yjkA6O2OJ9CQ1XyyoazM}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4267],{5734:(t,e,r)=>{r.d(e,{T:()=>M});var n=r(20940),i=r(96260),o=r(72304),u=r(34854),a=r(30707),s=r(58176),c=r(96584),l=r(16853),f=r(10970),h=r(62649),d=r(95733),A=r(63865),p=Object.prototype.hasOwnProperty;let v=function(t){if(null==t)return!0;if((0,f.A)(t)&&((0,l.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,h.A)(t)||(0,A.A)(t)||(0,c.A)(t)))return!t.length;var e=(0,s.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,d.A)(t))return!(0,a.A)(t).length;for(var r in t)if(p.call(t,r))return!1;return!0};var _=r(28586),b=r(80076),g=r(38482),y=r(77006),j=r(77073),O=r(29697);let w=function(t){return t!=t},m=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return -1},C=function(t,e){return!!(null==t?0:t.length)&&(e==e?m(t,e,0):(0,O.A)(t,w,0))>-1},E=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1};var P=r(17347),z=r(67367),N=r(38963),L=z.A&&1/(0,N.A)(new z.A([,-0]))[1]==1/0?function(t){return new z.A(t)}:function(){};let S=function(t,e,r){var n=-1,i=C,o=t.length,u=!0,a=[],s=a;if(r)u=!1,i=E;else if(o>=200){var c=e?null:L(t);if(c)return(0,N.A)(c);u=!1,i=P.A,s=new j.A}else s=e?[]:a;t:for(;++n<o;){var l=t[n],f=e?e(l):l;if(l=r||0!==l?l:0,u&&f==f){for(var h=s.length;h--;)if(s[h]===f)continue t;e&&s.push(f),a.push(l)}else i(s,f,r)||(s!==a&&s.push(f),a.push(l))}return a};var D=r(72745),x=(0,y.A)(function(t){return S((0,g.A)(t,1,D.A,!0))}),k=r(58356),F=r(24088);class M{constructor(t={}){this._isDirected=!Object.prototype.hasOwnProperty.call(t,"directed")||t.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=n.A(void 0),this._defaultEdgeLabelFn=n.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return i.A(t)||(t=n.A(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return o.A(this._nodes)}sources(){var t=this;return u.A(this.nodes(),function(e){return v(t._in[e])})}sinks(){var t=this;return u.A(this.nodes(),function(e){return v(t._out[e])})}setNodes(t,e){var r=arguments,n=this;return _.A(t,function(t){r.length>1?n.setNode(t,e):n.setNode(t)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?arguments.length>1&&(this._nodes[t]=e):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount),this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],_.A(this.children(t),t=>{this.setParent(t)}),delete this._children[t]),_.A(o.A(this._in[t]),e),delete this._in[t],delete this._preds[t],_.A(o.A(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(b.A(e))e="\0";else{e+="";for(var r=e;!b.A(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}}children(t){if(b.A(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return o.A(e)}else if("\0"===t)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return o.A(e)}successors(t){var e=this._sucs[t];if(e)return o.A(e)}neighbors(t){var e=this.predecessors(t);if(e)return x(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;_.A(this._nodes,function(r,n){t(n)&&e.setNode(n,r)}),_.A(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))});var n={};return this._isCompound&&_.A(e.nodes(),function(t){e.setParent(t,function t(i){var o=r.parent(i);return void 0===o||e.hasNode(o)?(n[i]=o,o):o in n?n[o]:t(o)}(t))}),e}setDefaultEdgeLabel(t){return i.A(t)||(t=n.A(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return k.A(this._edgeObjs)}setPath(t,e){var r=this,n=arguments;return F.A(t,function(t,i){return n.length>1?r.setEdge(t,i,e):r.setEdge(t,i),i}),this}setEdge(){var t,e,r,n,i=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,r=o.name,2==arguments.length&&(n=arguments[1],i=!0)):(t=o,e=arguments[1],r=arguments[3],arguments.length>2&&(n=arguments[2],i=!0)),t=""+t,e=""+e,b.A(r)||(r=""+r);var u=B(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,u))return i&&(this._edgeLabels[u]=n),this;if(!b.A(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=i?n:this._defaultEdgeLabelFn(t,e,r);var a=function(t,e,r,n){var i=""+e,o=""+r;if(!t&&i>o){var u=i;i=o,o=u}var a={v:i,w:o};return n&&(a.name=n),a}(this._isDirected,t,e,r);return t=a.v,e=a.w,Object.freeze(a),this._edgeObjs[u]=a,T(this._preds[e],t),T(this._sucs[t],e),this._in[e][u]=a,this._out[t][u]=a,this._edgeCount++,this}edge(t,e,r){var n=1==arguments.length?I(this._isDirected,arguments[0]):B(this._isDirected,t,e,r);return this._edgeLabels[n]}hasEdge(t,e,r){var n=1==arguments.length?I(this._isDirected,arguments[0]):B(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(t,e,r){var n=1==arguments.length?I(this._isDirected,arguments[0]):B(this._isDirected,t,e,r),i=this._edgeObjs[n];return i&&(t=i.v,e=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],$(this._preds[e],t),$(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this}inEdges(t,e){var r=this._in[t];if(r){var n=k.A(r);return e?u.A(n,function(t){return t.v===e}):n}}outEdges(t,e){var r=this._out[t];if(r){var n=k.A(r);return e?u.A(n,function(t){return t.w===e}):n}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}function T(t,e){t[e]?t[e]++:t[e]=1}function $(t,e){--t[e]||delete t[e]}function B(t,e,r,n){var i=""+e,o=""+r;if(!t&&i>o){var u=i;i=o,o=u}return i+"\x01"+o+"\x01"+(b.A(n)?"\0":n)}function I(t,e){return B(t,e.v,e.w,e.name)}M.prototype._nodeCount=0,M.prototype._edgeCount=0},5809:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(27523),i=r(72304);let o=function(t,e){return t&&(0,n.A)(t,e,i.A)}},6633:(t,e,r)=>{r.d(e,{A:()=>f});var n=r(24565),i=Object.prototype,o=i.hasOwnProperty,u=i.toString,a=n.A?n.A.toStringTag:void 0;let s=function(t){var e=o.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=u.call(t);return n&&(e?t[a]=r:delete t[a]),i};var c=Object.prototype.toString,l=n.A?n.A.toStringTag:void 0;let f=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?s(t):c.call(t)}},10970:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(96260),i=r(65100);let o=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,n.A)(t)}},13959:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(49206),i=r(16853);let o=function(t,e,r){var o=e(t);return(0,i.A)(t)?o:(0,n.A)(o,r(t))}},15586:(t,e,r)=>{r.d(e,{A:()=>f});var n=r(16853),i=r(29468),o=r(23501);function u(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var u=t.apply(this,n);return r.cache=o.set(i,u)||o,u};return r.cache=new(u.Cache||o.A),r}u.Cache=o.A;var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,c=function(t){var e=u(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,function(t,r,n,i){e.push(n?i.replace(s,"$1"):r||t)}),e}),l=r(72508);let f=function(t,e){return(0,n.A)(t)?t:(0,i.A)(t,e)?[t]:c((0,l.A)(t))}},16399:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},16853:(t,e,r)=>{r.d(e,{A:()=>n});let n=Array.isArray},17347:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){return t.has(e)}},18821:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(){return[]}},20285:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(62393),i=r(25081);let o=(0,n.A)(i.A,"Map")},20940:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return function(){return t}}},22149:(t,e,r)=>{r.d(e,{A:()=>i});var n=Function.prototype.toString;let i=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},23501:(t,e,r)=>{r.d(e,{A:()=>h});var n=(0,r(62393).A)(Object,"create"),i=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=function(){this.__data__=n?n(null):{},this.size=0},u.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e},u.prototype.get=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0},u.prototype.has=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)},u.prototype.set=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this};var a=r(75096),s=r(20285);let c=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},l=function(t,e){var r=t.__data__;return c(e)?r["string"==typeof e?"string":"hash"]:r.map};function f(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new u,map:new(s.A||a.A),string:new u}},f.prototype.delete=function(t){var e=l(this,t).delete(t);return this.size-=!!e,e},f.prototype.get=function(t){return l(this,t).get(t)},f.prototype.has=function(t){return l(this,t).has(t)},f.prototype.set=function(t,e){var r=l(this,t),n=r.size;return r.set(t,e),this.size+=+(r.size!=n),this};let h=f},23702:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(63198);let i=function(t){return"function"==typeof t?t:n.A}},24088:(t,e,r)=>{r.d(e,{A:()=>s});let n=function(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r};var i=r(44319),o=r(58009);let u=function(t,e,r,n,i){return i(t,function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)}),r};var a=r(16853);let s=function(t,e,r){var s=(0,a.A)(t)?n:u,c=arguments.length<3;return s(t,(0,o.A)(e,4),r,c,i.A)}},24565:(t,e,r)=>{r.d(e,{A:()=>n});let n=r(25081).A.Symbol},25081:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(89312),i="object"==typeof self&&self&&self.Object===Object&&self;let o=n.A||i||Function("return this")()},27523:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),u=o.length;u--;){var a=o[++n];if(!1===e(i[a],a,i))break}return t}},28586:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(16399),i=r(44319),o=r(23702),u=r(16853);let a=function(t,e){return((0,u.A)(t)?n.A:i.A)(t,(0,o.A)(e))}},28623:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},29468:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(16853),i=r(87696),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;let a=function(t,e){if((0,n.A)(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||(0,i.A)(t))||u.test(t)||!o.test(t)||null!=e&&t in Object(e)}},29697:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return -1}},30707:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(95733),i=(0,r(91365).A)(Object.keys,Object),o=Object.prototype.hasOwnProperty;let u=function(t){if(!(0,n.A)(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},34267:(t,e,r)=>{r.d(e,{T:()=>n.T});var n=r(5734)},34854:(t,e,r)=>{r.d(e,{A:()=>s});var n=r(44232),i=r(44319);let o=function(t,e){var r=[];return(0,i.A)(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r};var u=r(58009),a=r(16853);let s=function(t,e){return((0,a.A)(t)?n.A:o)(t,(0,u.A)(e,3))}},35288:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return null!=t&&"object"==typeof t}},35320:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(15586),i=r(92843);let o=function(t,e){e=(0,n.A)(e,t);for(var r=0,o=e.length;null!=t&&r<o;)t=t[(0,i.A)(e[r++])];return r&&r==o?t:void 0}},37948:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(44232),i=r(18821),o=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;let a=u?function(t){return null==t?[]:(t=Object(t),(0,n.A)(u(t),function(e){return o.call(t,e)}))}:i.A},38482:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(49206),i=r(24565),o=r(96584),u=r(16853),a=i.A?i.A.isConcatSpreadable:void 0;let s=function(t){return(0,u.A)(t)||(0,o.A)(t)||!!(a&&t&&t[a])},c=function t(e,r,i,o,u){var a=-1,c=e.length;for(i||(i=s),u||(u=[]);++a<c;){var l=e[a];r>0&&i(l)?r>1?t(l,r-1,i,o,u):(0,n.A)(u,l):o||(u[u.length]=l)}return u}},38963:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},40243:(t,e,r)=>{r.d(e,{A:()=>i});var n=/^(?:0|[1-9]\d*)$/;let i=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},41319:(t,e,r)=>{r.d(e,{A:()=>o});let n=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var i=Math.max;let o=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,u=-1,a=i(o.length-e,0),s=Array(a);++u<a;)s[u]=o[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=o[u];return c[e]=r(s),n(t,this,c)}}},44232:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var u=t[r];e(u,r,t)&&(o[i++]=u)}return o}},44319:(t,e,r)=>{r.d(e,{A:()=>u});var n,i=r(5809),o=r(10970);let u=(n=i.A,function(t,e){if(null==t)return t;if(!(0,o.A)(t))return n(t,e);for(var r=t.length,i=-1,u=Object(t);++i<r&&!1!==e(u[i],i,u););return t})},49206:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},49696:(t,e,r)=>{r.d(e,{A:()=>n});let n=r(25081).A.Uint8Array},50773:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return function(e){return null==e?void 0:e[t]}}},58009:(t,e,r)=>{r.d(e,{A:()=>W});var n=r(81014),i=r(77073);let o=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var u=r(17347);let a=function(t,e,r,n,a,s){var c=1&r,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=s.get(t),d=s.get(e);if(h&&d)return h==e&&d==t;var A=-1,p=!0,v=2&r?new i.A:void 0;for(s.set(t,e),s.set(e,t);++A<l;){var _=t[A],b=e[A];if(n)var g=c?n(b,_,A,e,t,s):n(_,b,A,t,e,s);if(void 0!==g){if(g)continue;p=!1;break}if(v){if(!o(e,function(t,e){if(!(0,u.A)(v,e)&&(_===t||a(_,t,r,n,s)))return v.push(e)})){p=!1;break}}else if(!(_===b||a(_,b,r,n,s))){p=!1;break}}return s.delete(t),s.delete(e),p};var s=r(24565),c=r(49696),l=r(66954);let f=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r};var h=r(38963),d=s.A?s.A.prototype:void 0,A=d?d.valueOf:void 0;let p=function(t,e,r,n,i,o,u){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!o(new c.A(t),new c.A(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,l.A)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=f;case"[object Set]":var d=1&n;if(s||(s=h.A),t.size!=e.size&&!d)break;var p=u.get(t);if(p)return p==e;n|=2,u.set(t,e);var v=a(s(t),s(e),n,i,o,u);return u.delete(t),v;case"[object Symbol]":if(A)return A.call(t)==A.call(e)}return!1};var v=r(82554),_=Object.prototype.hasOwnProperty;let b=function(t,e,r,n,i,o){var u=1&r,a=(0,v.A)(t),s=a.length;if(s!=(0,v.A)(e).length&&!u)return!1;for(var c=s;c--;){var l=a[c];if(!(u?l in e:_.call(e,l)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var d=!0;o.set(t,e),o.set(e,t);for(var A=u;++c<s;){var p=t[l=a[c]],b=e[l];if(n)var g=u?n(b,p,l,e,t,o):n(p,b,l,t,e,o);if(!(void 0===g?p===b||i(p,b,r,n,o):g)){d=!1;break}A||(A="constructor"==l)}if(d&&!A){var y=t.constructor,j=e.constructor;y!=j&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof j&&j instanceof j)&&(d=!1)}return o.delete(t),o.delete(e),d};var g=r(58176),y=r(16853),j=r(62649),O=r(63865),w="[object Arguments]",m="[object Array]",C="[object Object]",E=Object.prototype.hasOwnProperty;let P=function(t,e,r,i,o,u){var s=(0,y.A)(t),c=(0,y.A)(e),l=s?m:(0,g.A)(t),f=c?m:(0,g.A)(e);l=l==w?C:l,f=f==w?C:f;var h=l==C,d=f==C,A=l==f;if(A&&(0,j.A)(t)){if(!(0,j.A)(e))return!1;s=!0,h=!1}if(A&&!h)return u||(u=new n.A),s||(0,O.A)(t)?a(t,e,r,i,o,u):p(t,e,l,r,i,o,u);if(!(1&r)){var v=h&&E.call(t,"__wrapped__"),_=d&&E.call(e,"__wrapped__");if(v||_){var P=v?t.value():t,z=_?e.value():e;return u||(u=new n.A),o(P,z,r,i,u)}}return!!A&&(u||(u=new n.A),b(t,e,r,i,o,u))};var z=r(35288);let N=function t(e,r,n,i,o){return e===r||(null!=e&&null!=r&&((0,z.A)(e)||(0,z.A)(r))?P(e,r,n,i,t,o):e!=e&&r!=r)},L=function(t,e,r,i){var o=r.length,u=o,a=!i;if(null==t)return!u;for(t=Object(t);o--;){var s=r[o];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<u;){var c=(s=r[o])[0],l=t[c],f=s[1];if(a&&s[2]){if(void 0===l&&!(c in t))return!1}else{var h=new n.A;if(i)var d=i(l,f,c,t,e,h);if(!(void 0===d?N(f,l,3,i,h):d))return!1}}return!0};var S=r(28623);let D=function(t){return t==t&&!(0,S.A)(t)};var x=r(72304);let k=function(t){for(var e=(0,x.A)(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,D(i)]}return e},F=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},M=function(t){var e=k(t);return 1==e.length&&e[0][2]?F(e[0][0],e[0][1]):function(r){return r===t||L(r,t,e)}};var T=r(35320);let $=function(t,e,r){var n=null==t?void 0:(0,T.A)(t,e);return void 0===n?r:n};var B=r(72430),I=r(29468),U=r(92843),R=r(63198),V=r(50773);let G=function(t){return(0,I.A)(t)?(0,V.A)((0,U.A)(t)):function(e){return(0,T.A)(e,t)}},W=function(t){if("function"==typeof t)return t;if(null==t)return R.A;if("object"==typeof t){var e,r;return(0,y.A)(t)?(e=t[0],r=t[1],(0,I.A)(e)&&D(r)?F((0,U.A)(e),r):function(t){var n=$(t,e);return void 0===n&&n===r?(0,B.A)(t,e):N(r,n,3)}):M(t)}return G(t)}},58176:(t,e,r)=>{r.d(e,{A:()=>w});var n=r(62393),i=r(25081),o=(0,n.A)(i.A,"DataView"),u=r(20285),a=(0,n.A)(i.A,"Promise"),s=r(67367),c=(0,n.A)(i.A,"WeakMap"),l=r(6633),f=r(22149),h="[object Map]",d="[object Promise]",A="[object Set]",p="[object WeakMap]",v="[object DataView]",_=(0,f.A)(o),b=(0,f.A)(u.A),g=(0,f.A)(a),y=(0,f.A)(s.A),j=(0,f.A)(c),O=l.A;(o&&O(new o(new ArrayBuffer(1)))!=v||u.A&&O(new u.A)!=h||a&&O(a.resolve())!=d||s.A&&O(new s.A)!=A||c&&O(new c)!=p)&&(O=function(t){var e=(0,l.A)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,f.A)(r):"";if(n)switch(n){case _:return v;case b:return h;case g:return d;case y:return A;case j:return p}return e});let w=O},58356:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(80996),i=r(72304);let o=function(t){var e;return null==t?[]:(e=(0,i.A)(t),(0,n.A)(e,function(e){return t[e]}))}},62393:(t,e,r)=>{r.d(e,{A:()=>A});var n=r(96260),i=r(25081).A["__core-js_shared__"],o=function(){var t=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),u=r(28623),a=r(22149),s=/^\[object .+?Constructor\]$/,c=Object.prototype,l=Function.prototype.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let d=function(t){return!!(0,u.A)(t)&&(!o||!(o in t))&&((0,n.A)(t)?h:s).test((0,a.A)(t))},A=function(t,e){var r=null==t?void 0:t[e];return d(r)?r:void 0}},62649:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(25081),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,u=o&&o.exports===i?n.A.Buffer:void 0;let a=(u?u.isBuffer:void 0)||function(){return!1}},63198:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return t}},63865:(t,e,r)=>{r.d(e,{A:()=>l});var n=r(6633),i=r(65100),o=r(35288),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var a=r(70335),s=r(74993),c=s.A&&s.A.isTypedArray;let l=c?(0,a.A)(c):function(t){return(0,o.A)(t)&&(0,i.A)(t.length)&&!!u[(0,n.A)(t)]}},65100:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},66954:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){return t===e||t!=t&&e!=e}},67367:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(62393),i=r(25081);let o=(0,n.A)(i.A,"Set")},68984:(t,e,r)=>{r.d(e,{A:()=>l});let n=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};var i=r(96584),o=r(16853),u=r(62649),a=r(40243),s=r(63865),c=Object.prototype.hasOwnProperty;let l=function(t,e){var r=(0,o.A)(t),l=!r&&(0,i.A)(t),f=!r&&!l&&(0,u.A)(t),h=!r&&!l&&!f&&(0,s.A)(t),d=r||l||f||h,A=d?n(t.length,String):[],p=A.length;for(var v in t)(e||c.call(t,v))&&!(d&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||(0,a.A)(v,p)))&&A.push(v);return A}},70335:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return function(e){return t(e)}}},72304:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(68984),i=r(30707),o=r(10970);let u=function(t){return(0,o.A)(t)?(0,n.A)(t):(0,i.A)(t)}},72430:(t,e,r)=>{r.d(e,{A:()=>o});let n=function(t,e){return null!=t&&e in Object(t)};var i=r(93512);let o=function(t,e){return null!=t&&(0,i.A)(t,e,n)}},72508:(t,e,r)=>{r.d(e,{A:()=>f});var n=r(24565),i=r(80996),o=r(16853),u=r(87696),a=1/0,s=n.A?n.A.prototype:void 0,c=s?s.toString:void 0;let l=function t(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,i.A)(e,t)+"";if((0,u.A)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-a?"-0":r},f=function(t){return null==t?"":l(t)}},72745:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(10970),i=r(35288);let o=function(t){return(0,i.A)(t)&&(0,n.A)(t)}},74993:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(89312),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,u=o&&o.exports===i&&n.A.process;let a=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return u&&u.binding&&u.binding("util")}catch(t){}}()},75096:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(66954);let i=function(t,e){for(var r=t.length;r--;)if((0,n.A)(t[r][0],e))return r;return -1};var o=Array.prototype.splice;function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=function(){this.__data__=[],this.size=0},u.prototype.delete=function(t){var e=this.__data__,r=i(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)},u.prototype.get=function(t){var e=this.__data__,r=i(e,t);return r<0?void 0:e[r][1]},u.prototype.has=function(t){return i(this.__data__,t)>-1},u.prototype.set=function(t,e){var r=this.__data__,n=i(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};let a=u},77006:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(63198),i=r(41319),o=r(87663);let u=function(t,e){return(0,o.A)((0,i.A)(t,e,n.A),t+"")}},77073:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(23501);function i(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n.A;++e<r;)this.add(t[e])}i.prototype.add=i.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},i.prototype.has=function(t){return this.__data__.has(t)};let o=i},80076:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return void 0===t}},80996:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},81014:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(75096),i=r(20285),o=r(23501);function u(t){var e=this.__data__=new n.A(t);this.size=e.size}u.prototype.clear=function(){this.__data__=new n.A,this.size=0},u.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},u.prototype.get=function(t){return this.__data__.get(t)},u.prototype.has=function(t){return this.__data__.has(t)},u.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.A){var u=r.__data__;if(!i.A||u.length<199)return u.push([t,e]),this.size=++r.size,this;r=this.__data__=new o.A(u)}return r.set(t,e),this.size=r.size,this};let a=u},82554:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(13959),i=r(37948),o=r(72304);let u=function(t){return(0,n.A)(t,o.A,i.A)}},87663:(t,e,r)=>{r.d(e,{A:()=>s});var n=r(20940),i=r(92447),o=r(63198),u=i.A?function(t,e){return(0,i.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,n.A)(e),writable:!0})}:o.A,a=Date.now;let s=function(t){var e=0,r=0;return function(){var n=a(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(u)},87696:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(6633),i=r(35288);let o=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,n.A)(t)}},89312:(t,e,r)=>{r.d(e,{A:()=>n});let n="object"==typeof global&&global&&global.Object===Object&&global},91365:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){return function(r){return t(e(r))}}},92447:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(62393);let i=function(){try{var t=(0,n.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},92843:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(87696),i=1/0;let o=function(t){if("string"==typeof t||(0,n.A)(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},93512:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(15586),i=r(96584),o=r(16853),u=r(40243),a=r(65100),s=r(92843);let c=function(t,e,r){e=(0,n.A)(e,t);for(var c=-1,l=e.length,f=!1;++c<l;){var h=(0,s.A)(e[c]);if(!(f=null!=t&&r(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&(0,a.A)(l)&&(0,u.A)(h,l)&&((0,o.A)(t)||(0,i.A)(t))}},95733:(t,e,r)=>{r.d(e,{A:()=>i});var n=Object.prototype;let i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},96260:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(6633),i=r(28623);let o=function(t){if(!(0,i.A)(t))return!1;var e=(0,n.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},96584:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(6633),i=r(35288);let o=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,n.A)(t)};var u=Object.prototype,a=u.hasOwnProperty,s=u.propertyIsEnumerable;let c=o(function(){return arguments}())?o:function(t){return(0,i.A)(t)&&a.call(t,"callee")&&!s.call(t,"callee")}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4362],{18006:(e,t,r)=>{r.d(t,{b:()=>o});var a=r(41440),l=r(74037),n=r(19478),s=r(17119);function o(e){let{columns:t,rows:r,offset:o,limit:d,totalRows:i,hasMore:c,onPage:u}=e,x=(0,s.kj)(),m=o+r.length;return(0,a.jsxs)("div",{className:"flex h-full flex-col",children:[(0,a.jsxs)("div",{className:"min-h-0 flex-1 overflow-auto",children:[(0,a.jsxs)("table",{className:"min-w-full border-collapse text-xs",children:[(0,a.jsx)("thead",{className:"sticky top-0 z-10 bg-[var(--card)] shadow-[inset_0_-1px_0_var(--border)]",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-2 py-1.5 text-right text-[10px] font-medium text-[var(--muted-foreground)]",children:"#"}),t.map((e,t)=>(0,a.jsxs)("th",{className:"whitespace-nowrap px-3 py-1.5 text-left",children:[(0,a.jsx)("span",{className:"text-[10px] font-medium text-[var(--foreground)]",children:e.name}),e.type&&(0,a.jsx)("span",{className:"ml-1.5 text-[9px] font-normal text-[var(--muted-foreground)]",children:e.type})]},t))]})}),(0,a.jsx)("tbody",{children:r.map((e,r)=>(0,a.jsxs)("tr",{className:"odd:bg-[var(--card)]/40 hover:bg-[var(--secondary)]",children:[(0,a.jsx)("td",{className:"px-2 py-1 text-right text-[10px] text-[var(--muted-foreground)] tabular-nums",children:o+r+1}),t.map((t,r)=>{var l,n;let s=null===(n=null!=(l=e[r])?l:null)?"":"string"==typeof n?n:String(n),o=s.length>200;return(0,a.jsx)("td",{title:o?s:void 0,className:"whitespace-nowrap px-3 py-1 ".concat(null===e[r]?"italic text-[var(--muted-foreground)]":"text-[var(--foreground)]"),children:null===e[r]?"NULL":o?"".concat(s.slice(0,200),"…"):s},r)})]},r))})]}),0===r.length&&(0,a.jsx)("div",{className:"flex h-24 items-center justify-center text-xs text-[var(--muted-foreground)]",children:x("dataPreview.empty")})]}),(0,a.jsxs)("div",{className:"flex h-8 shrink-0 items-center justify-end gap-2 border-t border-[var(--border)] bg-[var(--card)] px-3",children:[(0,a.jsx)("span",{className:"text-[10px] tabular-nums text-[var(--muted-foreground)]",children:x("dataPreview.range",{from:0===i?0:o+1,to:m,total:c?"".concat(i,"+"):i})}),(0,a.jsx)("button",{onClick:()=>u(Math.max(o-d,0)),disabled:0===o,title:x("dataPreview.prev"),className:"rounded p-1 text-[var(--muted-foreground)] transition-colors enabled:hover:bg-[var(--secondary)] enabled:hover:text-[var(--foreground)] disabled:opacity-40",children:(0,a.jsx)(l.A,{className:"h-3.5 w-3.5"})}),(0,a.jsx)("button",{onClick:()=>u(o+d),disabled:!c&&o+d>=i,title:x("dataPreview.next"),className:"rounded p-1 text-[var(--muted-foreground)] transition-colors enabled:hover:bg-[var(--secondary)] enabled:hover:text-[var(--foreground)] disabled:opacity-40",children:(0,a.jsx)(n.A,{className:"h-3.5 w-3.5"})})]})]})}},19646:(e,t,r)=>{r.d(t,{w:()=>l});var a=r(54604);function l(e,t){let[r,l]=(0,a.useState)(null),[n,s]=(0,a.useState)(null),[o,d]=(0,a.useState)(!!e);return(0,a.useEffect)(()=>{if(!e){l(null),s(null),d(!1);return}let t=!1,r=new AbortController;return d(!0),s(null),e(r.signal).then(e=>{t||(l(e),d(!1))}).catch(e=>{t||e instanceof DOMException&&"AbortError"===e.name||(s(function(e){let t=e instanceof Error?e.message:String(e),r=t.indexOf("{");if(-1!==r)try{let e=JSON.parse(t.slice(r));if(e.error)return e.error}catch(e){}return t}(e)),d(!1))}),()=>{t=!0,r.abort()}},t),{data:r,error:n,loading:o}}},84362:(e,t,r)=>{r.r(t),r.d(t,{SqlitePreview:()=>u});var a=r(41440),l=r(54604);let n=(0,r(79020).A)("Table2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]);var s=r(37050),o=r(19646),d=r(18006),i=r(43672),c=r(17119);function u(e){var t;let{name:r,path:u,projectId:x,downloadUrl:m,onOpenAsText:h}=e,v=(0,c.kj)(),[f,p]=(0,l.useState)(null),[g,b]=(0,l.useState)(0),j=(0,o.w)(x?e=>i.FH.dataPreview.sqliteTables(u,x,e):null,[u,x]),w=null==(t=j.data)?void 0:t.tables;(0,l.useEffect)(()=>{!f&&(null==w?void 0:w.length)&&p(w[0].name)},[w,f]);let N=(0,o.w)(x&&f?e=>i.FH.dataPreview.sqliteRows(u,x,f,g,100,e):null,[u,x,f,g]),y=N.data;return(0,a.jsx)(s.no,{name:r,downloadUrl:m,onOpenAsText:h,loading:j.loading||N.loading,error:j.error||N.error,children:(0,a.jsxs)("div",{className:"flex h-full",children:[(0,a.jsxs)("div",{className:"w-44 shrink-0 overflow-y-auto border-r border-[var(--border)] bg-[var(--card)]/40 py-1",children:[(null==w?void 0:w.length)===0&&(0,a.jsx)("div",{className:"px-3 py-2 text-[10px] text-[var(--muted-foreground)]",children:v("dataPreview.noTables")}),null==w?void 0:w.map(e=>(0,a.jsxs)("button",{onClick:()=>{p(e.name),b(0)},className:"flex w-full items-center gap-1.5 px-3 py-1 text-left text-[11px] ".concat(e.name===f?"bg-[var(--secondary)] text-[var(--foreground)]":"text-[var(--muted-foreground)] hover:bg-[var(--secondary)]/60"),children:[(0,a.jsx)(n,{className:"h-3 w-3 shrink-0"}),(0,a.jsx)("span",{className:"truncate",children:e.name}),(0,a.jsx)("span",{className:"ml-auto text-[9px] tabular-nums text-[var(--muted-foreground)]",children:e.rowCount})]},e.name))]}),(0,a.jsx)("div",{className:"min-w-0 flex-1",children:y&&(0,a.jsx)(d.b,{columns:y.columns,rows:y.rows,offset:y.offset,limit:y.limit,totalRows:y.totalRows,onPage:b})})]})})}}}]);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5712],{73823:(t,e,a)=>{a.d(e,{DA:()=>P,FA:()=>R,I7:()=>F,Zk:()=>w,aP:()=>an,lC:()=>b,nM:()=>A,nq:()=>ai});var r,l=a(39020),i=a(7322),n=a(52361),s=a(55490),o=a(27058),h=a(92826),d=a(58442),c=a(88252),g=a(93962),y=a(36761);async function p(t){let e=t.getElementsByTagName("img");if(!e||0===e.length)return;let a=!u(t);await Promise.all([...e].map(t=>new Promise(e=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",a){let e=(0,h.D7)().fontSize?(0,h.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[a=h.UI.fontSize]=(0,o.I5)(e),r=5*a+"px";t.style.minWidth=r,t.style.maxWidth=r}else t.style.width="100%";e(t)}(0,c.K)(r,"setupImage"),setTimeout(()=>{t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})))}function u(t){return 3===t.nodeType?t.textContent?.trim()!=="":1===t.nodeType&&"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(u)}(0,c.K)(p,"configureLabelImages"),(0,c.K)(u,"hasTextBesidesImages");var f=(0,c.K)(async(t,e,a)=>{let r=(0,h.D7)(),l=t.insert("g").attr("class",a??"node default").attr("id",e.domId||e.id),n=l.insert("g").attr("class","label").attr("style",(0,o.KL)(e.labelStyle)),s=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),d=e.width?Math.max(e.width-2*(e.padding??0),32):(0,h.D7)().flowchart?.wrappingWidth??200,c=r.c4?.wrap??!0?d:1/0,y=await Promise.all(s.map(async t=>{let a=n.append("g").attr("class",t.cssClass),l=await (0,i.GZ)(a,(0,h.jZ)((0,o.Sm)(t.text??""),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:c,style:e.labelStyle},r);return(0,g.Lt)(l).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,g.Lt)(l).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:a,box:a.node().getBBox()}})),p=Math.max(...y.map(({box:t})=>t.width),0),u=0;for(let{el:t,box:e}of y)t.attr("transform",`translate(${p/2-e.x-e.width/2}, ${u-e.y})`),u+=e.height+3;let f=y.length>0?u-3:0;return n.insert("rect",":first-child"),n.attr("transform",`translate(${-p/2}, ${-f/2})`),{shapeSvg:l,bbox:n.node().getBBox(),halfPadding:(e.padding??0)/2,label:n}},"c4LabelHelper"),m=(0,c.K)((t,e)=>{let{x:a,y:r,width:l,height:i}=t;return l>=e?t:"left"in t?{x:a,y:r,width:e,height:i,top:r,left:a,bottom:r+i,right:a+e,toJSON:(0,c.K)(()=>({}),"toJSON")}:{x:a-(e-l)/2,y:r,width:e,height:i}},"withMinWidth"),w=(0,c.K)(async(t,e,a,{ignoreMinWidth:r=!1}={})=>{let l,n,s;if(void 0!==e.stereotype)return f(t,e,a);let d=e.useHtmlLabels||(0,h._3)((0,h.D7)()?.htmlLabels);l=a||"node default";let c=t.insert("g").attr("class",l).attr("id",e.domId||e.id),y=c.insert("g").attr("class","label").attr("style",(0,o.KL)(e.labelStyle));n=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let u=!!e.icon||!!e.img,w="markdown"===e.labelType,x=!n||e.width||r?0:e.minWidth??0,b=await (0,i.GZ)(y,(0,h.jZ)((0,o.Sm)(n),(0,h.D7)()),{useHtmlLabels:d,width:e.width||e.wrappingWidth||(0,h.D7)().flowchart?.wrappingWidth,minWidth:x,classes:w?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:u,markdown:w},(0,h.D7)()),$=(e?.padding??0)/2;if(d){let t=b.children[0],e=(0,g.Lt)(b);await p(t),s=m(s=await i.lT.measure(()=>t.getBoundingClientRect()),x),e.attr("width",s.width),e.attr("height",s.height)}else s=m(s=await i.lT.measure(()=>b.getBBox()),x);return d?y.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):y.attr("transform","translate(0, "+-s.height/2+")"),e.centerLabel&&y.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),y.insert("rect",":first-child"),{shapeSvg:c,bbox:s,halfPadding:$,label:y}},"labelHelper"),x=(0,c.K)(async(t,e,a)=>{let r,l=a.useHtmlLabels??(0,h.E)((0,h.D7)()),n=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),s=await (0,i.GZ)(n,(0,h.jZ)((0,o.Sm)(e),(0,h.D7)()),{useHtmlLabels:l,width:a.width||(0,h.D7)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),d=a.padding/2;if((0,h.E)((0,h.D7)())){let t=s.children[0],e=(0,g.Lt)(s);r=await i.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",r.width),e.attr("height",r.height)}else r=await i.lT.measure(()=>s.getBBox());return l?n.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"):n.attr("transform","translate(0, "+-r.height/2+")"),a.centerLabel&&n.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:t,bbox:r,halfPadding:d,label:n}},"insertLabel"),b=(0,c.K)((t,e,a)=>{if(a){t.width=a.width,t.height=a.height;return}let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),$=(0,c.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function k(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function M(t,e,a,r,l,i){let n=[],s=a-t,o=2*Math.PI/(s/i),h=e+(r-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,r=h+l*Math.sin(o*(a-t));n.push({x:a,y:r})}return n}function D(t,e,a,r,l,i){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:-i,y:-h})}return n}function S(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),r=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",r);let l=e.find(t=>"none"!==t.getAttribute("fill")),i=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,c.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");l&&Object.entries({fill:n(l,"fill"),"fill-opacity":n(l,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),i&&Object.entries({stroke:n(i,"stroke"),"stroke-width":n(i,"stroke-width")??"1","stroke-opacity":n(i,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(a),s}(0,c.K)(k,"createPathFromPoints"),(0,c.K)(M,"generateFullSineWavePoints"),(0,c.K)(D,"generateCirclePoints"),(0,c.K)(S,"mergePaths");var A=(0,c.K)((t,e)=>{var a,r,l=t.x,i=t.y,n=e.x-l,s=e.y-i,o=t.width/2,h=t.height/2;return Math.abs(s)*o>Math.abs(n)*h?(s<0&&(h=-h),a=0===s?0:h*n/s,r=h):(n<0&&(o=-o),a=o,r=0===n?0:o*s/n),{x:l+a,y:i+r}},"intersectRect");function K(t,e){return t.intersect(e)}function v(t,e,a,r){var l=t.x,i=t.y,n=l-r.x,s=i-r.y,o=Math.sqrt(e*e*s*s+a*a*n*n),h=Math.abs(e*a*n/o);r.x<l&&(h=-h);var d=Math.abs(e*a*s/o);return r.y<i&&(d=-d),{x:l+h,y:i+d}}function C(t,e,a){return v(t,e,e,a)}function L(t,e,a,r){{let l=e.y-t.y,i=t.x-e.x,n=e.x*t.y-t.x*e.y,s=l*a.x+i*a.y+n,o=l*r.x+i*r.y+n;if(0!==s&&0!==o&&N(s,o))return;let h=r.y-a.y,d=a.x-r.x,c=r.x*a.y-a.x*r.y,g=h*t.x+d*t.y+c,y=h*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&N(g,y))return;let p=l*d-h*i;if(0===p)return;return{x:(i*c-d*n)/p,y:(h*n-l*c)/p}}}function N(t,e){return t*e>0}function B(t,e,a){let r=t.x,l=t.y,i=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let o=r-t.width/2-n,h=l-t.height/2-s;for(let r=0;r<e.length;r++){let l=e[r],n=e[r<e.length-1?r+1:0],s=L(t,a,{x:o+l.x,y:h+l.y},{x:o+n.x,y:h+n.y});s&&i.push(s)}return i.length?(i.length>1&&i.sort(function(t,e){let r=t.x-a.x,l=t.y-a.y,i=Math.sqrt(r*r+l*l),n=e.x-a.x,s=e.y-a.y,o=Math.sqrt(n*n+s*s);return i<o?-1:+(i!==o)}),i[0]):t}(0,c.K)(K,"intersectNode"),(0,c.K)(v,"intersectEllipse"),(0,c.K)(C,"intersectCircle"),(0,c.K)(L,"intersectLine"),(0,c.K)(N,"sameSign"),(0,c.K)(B,"intersectPolygon");var F={node:K,circle:C,ellipse:v,polygon:B,rect:A},R=(0,c.K)((t,e,a,r,l)=>["M",t+l,e,"H",t+a-l,"A",l,l,"0 0 1",t+a,e+l,"V",e+r-l,"A",l,l,"0 0 1",t+a-l,e+r,"H",t+l,"A",l,l,"0 0 1",t,e+r-l,"V",e+l,"A",l,l,"0 0 1",t+l,e,"Z"].join(" "),"createRoundedRectPathD"),P=(0,c.K)(async(t,e,a,r=!1,l=!1)=>{let n=e||"";"object"==typeof n&&(n=n[0]);let s=(0,h.D7)(),o=(0,h.E)(s);return await (0,i.GZ)(t,n,{style:a,isTitle:r,useHtmlLabels:o,markdown:!1,isNode:l,width:1/0},s)},"createLabel");function X(t,e){let{labelStyles:a}=(0,l.GX)(e);e.labelStyle=a;let r=$(e),i=r;r||(i="anchor");let n=t.insert("g").attr("class",i).attr("id",e.domId||e.id),{cssStyles:s}=e,h=y.A.svg(n),c=(0,l.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let g=h.circle(0,0,2,c),p=n.insert(()=>g,":first-child");return p.attr("class","anchor").attr("style",(0,o.KL)(s)),b(e,p),e.intersect=function(t){return d.R.info("Circle intersect",e,1,t),F.circle(e,1,t)},n}function G(t,e,a,r,l,i,n){let s=Math.atan2(r-e,a-t),o=Math.sqrt(((a-t)/2/l)**2+((r-e)/2/i)**2);if(o>1)throw Error("The given radii are too small to create an arc between the points.");let h=Math.sqrt(1-o**2),d=(t+a)/2+h*i*Math.sin(s)*(n?-1:1),c=(e+r)/2-h*l*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/i,(t-d)/l),y=Math.atan2((r-c)/i,(a-d)/l)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let p=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+l*Math.cos(e),r=c+i*Math.sin(e);p.push({x:a,y:r})}return p}function I(t,e,a){let[r,l]=[e,a].sort((t,e)=>e-t);return l*(1-Math.sqrt(1-(t/r/2)**2))}async function W(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,o=(0,c.K)(t=>t+s,"calcTotalHeight"),h=(0,c.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:d,bbox:g}=await w(t,e,$(e)),p=o(e?.height?e?.height:g.height),[u,f]=h(p),m=I(p,u,f),x=(e?.width?e?.width:g.width)+2*n+m-m,{cssStyles:M}=e,D=[{x:x/2,y:-p/2},{x:-x/2,y:-p/2},...G(-x/2,-p/2,-x/2,p/2,u,f,!1),{x:x/2,y:p/2},...G(x/2,p/2,x/2,-p/2,u,f,!0)],S=y.A.svg(d),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=k(D),v=S.path(K,A),C=d.insert(()=>v,":first-child");return C.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",M),r&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",r),C.attr("transform",`translate(${u/2}, 0)`),b(e,C),e.intersect=function(t){return F.polygon(e,D,t)},d}async function H(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,$(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,g=Math.max(s.width+2*d,e.width??0,80),p=Math.max(Math.min(.08*g,12),5),u=Math.max(s.height+2*d+p,e.height??0),f=-u/2+p,m=u/2,x=.72*g,k=`M${-g/2},${f} L${-x/2},${m} A${x/2},${p} 0 0 0 ${x/2},${m} L${g/2},${f} A${g/2},${p} 0 0 0 ${-g/2},${f} Z`,{cssStyles:M}=e,D=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=y.A.svg(n).path(k,(0,l.Fr)(e,{}));D.node()?.appendChild(t),M&&D.attr("style",M)}else D.append("path").attr("d",k).attr("style",i);D.append("ellipse").attr("cx",0).attr("cy",f).attr("rx",g/2).attr("ry",p).attr("style",`fill:none;stroke:${h};stroke-width:1px`),b(e,D);let S=f+(m-f)/2;o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${S-s.height/2-(s.y-(s.top??0))})`);let A=(0,c.K)((t,e,a)=>Array.from({length:13},(r,l)=>{let i=Math.PI-l*Math.PI/12;return{x:t*Math.cos(i),y:e+a*p*Math.sin(i)}}),"arc"),K=[...A(g/2,f,-1),...A(x/2,m,1).reverse()];return e.intersect=function(t){return F.polygon(e,K,t)},n}function E(t){let{themeVariables:e}=(0,h.D7)(),a=e.clusterBkg,r=e.clusterBorder;return"flow"===t?{rx:10,fill:"none",stroke:e.flowContainerStroke||e.secondaryBorderColor,strokeWidth:.75,cssClass:"flow-collapsed"}:{rx:8,fill:a,stroke:r,cssClass:"collapsed-group"}}async function T(t,e){let a,r=E(e.metadata?.containerType),{fill:i,stroke:n}=r,{nodeStyles:d}=(0,l.GX)(e),{shapeSvg:c,bbox:g}=await w(t,e,$(e)),{theme:p,themeVariables:u}=(0,h.D7)();(0,s.XE)(c,e.colorIndex,p,u.borderColorArray);let f=e.padding??8,m=g.height,x=Math.max(g.width+2*f,80,e?.width??0),k=Math.max(m+8+20+2*f,e?.height??0),M=-x/2,D=-k/2,S=c.select(".label");if(S&&(e.useHtmlLabels??(0,h.E)((0,h.D7)())?S.attr("transform",`translate(${-g.width/2}, ${-g.height/2+-14})`):S.attr("transform",`translate(0, ${-g.height/2+-14})`)),"handDrawn"===e.look){let t=y.A.svg(c),s=(0,l.Fr)(e,{fill:i,stroke:n,...void 0===r.strokeWidth?{}:{strokeWidth:r.strokeWidth},..."none"===i?{fillWeight:0}:{fillStyle:"solid"}}),h=t.path(R(M,D,x,k,r.rx),s);(a=c.insert(()=>h,":first-child")).attr("class","basic label-container "+r.cssClass).attr("style",(0,o.KL)(e.cssStyles))}else(a=c.insert("rect",":first-child")).attr("class","basic label-container "+r.cssClass).attr("style",d).attr("rx",r.rx).attr("ry",r.rx).attr("x",M).attr("y",D).attr("width",x).attr("height",k).attr("fill",i).attr("stroke",n),void 0!==r.strokeWidth&&a.attr("stroke-width",r.strokeWidth+"px");let A=D+f+m+8;c.append("line").attr("class","collapsed-separator").attr("x1",M+8).attr("y1",A).attr("x2",M+x-8).attr("y2",A).attr("stroke",n).attr("stroke-dasharray","3, 3");let K=A+10;for(let t=-1;t<=1;t++)c.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",K).attr("r",2.5).attr("fill",n);return b(e,a),e.calcIntersect=function(t,e){return F.rect(t,e)},e.intersect=function(t){return F.rect(e,t)},c}function j(t,e,a,r){return t.insert("polygon",":first-child").attr("points",r.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}(0,c.K)(X,"anchor"),(0,c.K)(G,"generateArcPoints"),(0,c.K)(I,"calculateArcSagitta"),(0,c.K)(W,"bowTieRect"),(0,c.K)(H,"bucket"),(0,c.K)(E,"getCollapsedStyle"),(0,c.K)(T,"collapsedGroup"),(0,c.K)(j,"insertPolygonShape");var q=["right","left","up","down"],Z="point",_=(0,c.K)(t=>{let e=new Set;for(let a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e},"expandAndDeduplicateDirections"),z=(0,c.K)(t=>q.filter(e=>t.has(e)).join("|")||Z,"getDirectionKey"),O={"right|left|up|down":(0,c.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:0,y:0},{x:e,y:0},{x:r/2,y:2*a},{x:r-e,y:0},{x:r,y:0},{x:r,y:-t/3},{x:r+2*a,y:-t/2},{x:r,y:-2*t/3},{x:r,y:-t},{x:r-e,y:-t},{x:r/2,y:-t-2*a},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*a,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":(0,c.K)(({height:t,midpoint:e,width:a})=>[{x:e,y:0},{x:a-e,y:0},{x:a,y:-t/2},{x:a-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":(0,c.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:e,y:-t},{x:a-e,y:-t},{x:a,y:0}],"right|left|down"),"right|up|down":(0,c.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:a,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":(0,c.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:a,y:-t}],"left|up|down"),"right|left":(0,c.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:0},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:0},{x:r,y:-t/2},{x:r-e,y:-t},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":(0,c.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:r/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:r/2,y:-t},{x:r,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a},{x:r,y:-a}],"up|down"),"right|up":(0,c.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:0,y:-t}],"right|up"),"right|down":(0,c.K)(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":(0,c.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:a,y:-t}],"left|up"),"left|down":(0,c.K)(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:(0,c.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:-a},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:0},{x:r,y:-t/2},{x:r-e,y:-t},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t+a}],"right"),left:(0,c.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:0},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:(0,c.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:r/2,y:-t},{x:r,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a}],"up"),down:(0,c.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:r/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a},{x:r,y:-a}],"down"),[Z]:()=>[{x:0,y:0}]},V=(0,c.K)((t,e,a,r)=>{let l=_(t),i=(a.padding??0)/2,n=e.height+4*i,s=n/2,o=r??e.width+2*s+2*i;return(O[z(l)]??O[Z])({height:n,midpoint:s,padding:i,width:o})},"getArrowPoints");async function Y(t,e){let{shapeSvg:a,bbox:r}=await w(t,e,$(e)),l=e.padding??0,i=r.height+2*l,n=i/2,s=r.width+2*n+l,o=e.width??0,h=e.positioned&&(e.widthInColumns??1)>1&&o>s?o:s,d=V(e.directions??[],r,e,h),c=j(a,h,i,d);return c.attr("style",e.style??null),b(e,c),e.intersect=function(t){return F.polygon(e,d,t)},a}async function J(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,$(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,c=Math.max(s.width+2*d,e.width??0,90),g=Math.max(s.height+2*d+18,e.height??0),p=-g/2,{cssStyles:u}=e,f=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=y.A.svg(n).path(R(-c/2,p,c,g,12),(0,l.Fr)(e,{}));f.node()?.appendChild(t),u&&f.attr("style",u)}else f.append("rect").attr("x",-c/2).attr("y",p).attr("width",c).attr("height",g).attr("rx",12).attr("ry",12).attr("style",i);f.append("line").attr("x1",-c/2).attr("y1",p+18).attr("x2",c/2).attr("y2",p+18).attr("style",`stroke:${h};stroke-width:1px`);for(let t=0;t<3;t++)f.append("circle").attr("cx",-c/2+12+9*t).attr("cy",p+9).attr("r",2.5).attr("style",`fill:${h};stroke:none`);f.append("rect").attr("class","browser-address-bar").attr("x",-c/2+44).attr("y",p+4).attr("width",Math.max(c-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${h};stroke-width:1px;opacity:0.6`),b(e,f);let m=p+18+(g-18)/2;return o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${m-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return F.rect(e,t)},n}async function U(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?28:n,o="neo"===e.look?24:n,{shapeSvg:h,bbox:d}=await w(t,e,$(e)),c=(e?.width??d.width)+("neo"===e.look?2*s:s+12),g=(e?.height??d.height)+("neo"===e.look?2*o:o),p=-g,u=[{x:12,y:p},{x:c,y:p},{x:c,y:0},{x:0,y:0},{x:0,y:p+12},{x:12,y:p}],{cssStyles:f}=e;if("handDrawn"===e.look){let t=y.A.svg(h),r=(0,l.Fr)(e,{}),i=k(u),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${g/2})`),f&&a.attr("style",f)}else a=j(h,c,g,u);return i&&a.attr("style",i),b(e,a),e.intersect=function(t){return F.polygon(e,u,t)},h}function Q(t,e){let{nodeStyles:a}=(0,l.GX)(e);e.label="";let r=t.insert("g").attr("class",$(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,n=Math.max(28,e.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],o=y.A.svg(r),h=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");let d=k(s),c=o.path(d,h),g=r.insert(()=>c,":first-child");return i&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",i),a&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",a),e.width=28,e.height=28,e.intersect=function(t){return F.polygon(e,s,t)},r}async function tt(t,e,a){let r,{labelStyles:i,nodeStyles:n}=(0,l.GX)(e);e.labelStyle=i;let{shapeSvg:s,bbox:h,halfPadding:c}=await w(t,e,$(e),{ignoreMinWidth:!0}),g=a?.padding??c,p=Math.sqrt(h.width**2+h.height**2)/2,u="neo"===e.look?p+16:p+g,{cssStyles:f}=e;if("handDrawn"===e.look){let t=y.A.svg(s),a=(0,l.Fr)(e,{}),i=t.circle(0,0,2*u,a);(r=s.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,o.KL)(f))}else r=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0);return b(e,r),e.calcIntersect=function(t,e){let a=t.width/2;return F.circle(t,a,e)},e.intersect=function(t){return d.R.info("Circle intersect",e,u,t),F.circle(e,u,t)},s}async function te(t,e){let a=["node",e.cssClasses,e.class].filter(Boolean).join(" "),{shapeSvg:r,bbox:l,halfPadding:i}=await w(t,e,a),n=r.insert("rect",":first-child"),s=e.padding??0,o=e.positioned?e.width??0:l.width+s,h=e.positioned?e.height??0:l.height+s,d=e.positioned?-o/2:-l.width/2-i,c=e.positioned?-h/2:-l.height/2-i;return n.attr("class","basic cluster composite label-container").attr("style",e.style??null).attr("rx",e.rx??null).attr("ry",e.ry??null).attr("x",d).attr("y",c).attr("width",o).attr("height",h),b(e,n),e.intersect=function(t){return F.rect(e,t)},r}async function ta(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,$(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,c=Math.max(s.width+2*d,e.width??0,90),g=Math.max(s.height+2*d+20,e.height??0),p=-g/2,{cssStyles:u}=e,f=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=y.A.svg(n).path(R(-c/2,p,c,g,12),(0,l.Fr)(e,{}));f.node()?.appendChild(t),u&&f.attr("style",u)}else f.append("rect").attr("x",-c/2).attr("y",p).attr("width",c).attr("height",g).attr("rx",12).attr("ry",12).attr("style",i);f.append("text").attr("x",-c/2+12).attr("y",p+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${h}`).text(">_"),b(e,f);let m=p+20+(g-20)/2;return o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${m-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return F.rect(e,t)},n}function tr(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),r=2*t,l={x:r/2*e,y:r/2*a},i={x:-(r/2)*e,y:r/2*a},n={x:-(r/2)*e,y:-(r/2)*a},s={x:r/2*e,y:-(r/2)*a};return`M ${i.x},${i.y} L ${s.x},${s.y}
|
|
2
|
+
M ${l.x},${l.y} L ${n.x},${n.y}`}function tl(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a,e.label="";let i=t.insert("g").attr("class",$(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:s}=e,o=y.A.svg(i),h=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");let c=o.circle(0,0,2*n,h),g=tr(n),p=o.path(g,h),u=i.insert(()=>c,":first-child");return u.insert(()=>p),u.attr("class","outer-path"),s&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",s),r&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",r),b(e,u),e.intersect=function(t){return d.R.info("crossedCircle intersect",e,{radius:n,point:t}),F.circle(e,n,t)},i}function ti(t,e,a,r=100,l=0,i=180){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:-i,y:-h})}return n}async function tn(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,$(e)),o="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,d=n.width+o,c=n.height+h,g=Math.max(5,.1*c),{cssStyles:p}=e,u=[...ti(d/2,-c/2,g,30,-90,0),{x:-d/2-g,y:g},...ti(d/2+2*g,-g,g,20,-180,-270),...ti(d/2+2*g,g,g,20,-90,-180),{x:-d/2-g,y:-c/2},...ti(d/2,c/2,g,20,0,90)],f=[{x:d/2,y:-c/2-g},{x:-d/2,y:-c/2-g},...ti(d/2,-c/2,g,20,-90,0),{x:-d/2-g,y:-g},...ti(d/2+.1*d,-g,g,20,-180,-270),...ti(d/2+.1*d,g,g,20,-90,-180),{x:-d/2-g,y:c/2},...ti(d/2,c/2,g,20,0,90),{x:-d/2,y:c/2+g},{x:d/2,y:c/2+g}],m=y.A.svg(i),x=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let M=k(u).replace("Z",""),D=m.path(M,x),S=k(f),A=m.path(S,{...x}),K=i.insert("g",":first-child");return K.insert(()=>A,":first-child").attr("stroke-opacity",0),K.insert(()=>D,":first-child"),K.attr("class","text"),p&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",p),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${g}, 0)`),s.attr("transform",`translate(${-d/2+g-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),b(e,K),e.intersect=function(t){return F.polygon(e,f,t)},i}function ts(t,e,a,r=100,l=0,i=180){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:i,y:h})}return n}async function to(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,$(e)),o="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*o:o),c=n.height+("neo"===e.look?2*h:h),g=Math.max(5,.1*c),{cssStyles:p}=e,u=[...ts(d/2,-c/2,g,20,-90,0),{x:d/2+g,y:-g},...ts(d/2+2*g,-g,g,20,-180,-270),...ts(d/2+2*g,g,g,20,-90,-180),{x:d/2+g,y:c/2},...ts(d/2,c/2,g,20,0,90)],f=[{x:-d/2,y:-c/2-g},{x:d/2,y:-c/2-g},...ts(d/2,-c/2,g,20,-90,0),{x:d/2+g,y:-g},...ts(d/2+2*g,-g,g,20,-180,-270),...ts(d/2+2*g,g,g,20,-90,-180),{x:d/2+g,y:c/2},...ts(d/2,c/2,g,20,0,90),{x:d/2,y:c/2+g},{x:-d/2,y:c/2+g}],m=y.A.svg(i),x=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let M=k(u).replace("Z",""),D=m.path(M,x),S=k(f),A=m.path(S,{...x}),K=i.insert("g",":first-child");return K.insert(()=>A,":first-child").attr("stroke-opacity",0),K.insert(()=>D,":first-child"),K.attr("class","text"),p&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",p),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${-g}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),b(e,K),e.intersect=function(t){return F.polygon(e,f,t)},i}function th(t,e,a,r=100,l=0,i=180){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:-i,y:-h})}return n}async function td(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,$(e)),o="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*o:o),c=n.height+("neo"===e.look?2*h:h),g=Math.max(5,.1*c),{cssStyles:p}=e,u=[...th(d/2,-c/2,g,30,-90,0),{x:-d/2-g,y:g},...th(d/2+2*g,-g,g,20,-180,-270),...th(d/2+2*g,g,g,20,-90,-180),{x:-d/2-g,y:-c/2},...th(d/2,c/2,g,20,0,90)],f=[...th(-d/2+g+g/2,-c/2,g,20,-90,-180),{x:d/2-g/2,y:g},...th(-d/2-g/2,-g,g,20,0,90),...th(-d/2-g/2,g,g,20,-90,0),{x:d/2-g/2,y:-g},...th(-d/2+g+g/2,c/2,g,30,-180,-270)],m=[{x:d/2,y:-c/2-g},{x:-d/2,y:-c/2-g},...th(d/2,-c/2,g,20,-90,0),{x:-d/2-g,y:-g},...th(d/2+2*g,-g,g,20,-180,-270),...th(d/2+2*g,g,g,20,-90,-180),{x:-d/2-g,y:c/2},...th(d/2,c/2,g,20,0,90),{x:-d/2,y:c/2+g},{x:d/2-g-g/2,y:c/2+g},...th(-d/2+g+g/2,-c/2,g,20,-90,-180),{x:d/2-g/2,y:g},...th(-d/2-g/2,-g,g,20,0,90),...th(-d/2-g/2,g,g,20,-90,0),{x:d/2-g/2,y:-g},...th(-d/2+g+g/2,c/2,g,30,-180,-270)],x=y.A.svg(i),M=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=k(u).replace("Z",""),S=x.path(D,M),A=k(f).replace("Z",""),K=x.path(A,M),v=k(m),C=x.path(v,{...M}),L=i.insert("g",":first-child");return L.insert(()=>C,":first-child").attr("stroke-opacity",0),L.insert(()=>S,":first-child"),L.insert(()=>K,":first-child"),L.attr("class","text"),p&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",p),r&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",r),L.attr("transform",`translate(${g-g/4}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),b(e,L),e.intersect=function(t){return F.polygon(e,m,t)},i}async function tc(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,{shapeSvg:o,bbox:h}=await w(t,e,$(e)),d=Math.max(5,h.height+2*s,e?.height??0),c=d/2,g=Math.max(d/4,c-Math.sqrt(Math.max(0,c**2-(h.height/2)**2))),p=Math.max(20,h.width+2*n+2*g,(h.width+2*n)*1.25,e?.width??0),{cssStyles:u}=e,f=y.A.svg(o),m=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let x=p-c,M=d/4,S=[{x:x,y:0},{x:M,y:0},{x:0,y:d/2},{x:M,y:d},{x:x,y:d},...D(-x,-d/2,c,50,270,90)],A=k(S),K=f.path(A,m),v=o.insert(()=>K,":first-child");return v.attr("class","basic label-container outer-path"),u&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",u),r&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",r),v.attr("transform",`translate(${-p/2}, ${-d/2})`),b(e,v),e.intersect=function(t){return F.polygon(e,S,t)},o}async function tg(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,$(e)),o=e.padding??20,h=Math.max(n.width+2*o,e.width??0,100),d=Math.min(Math.max(.23*h,16),56),c=.27*d,g=Math.max(n.height+2*o,e.height?e.height-(2*d-c):0),p=Math.min(.177*h,.45*g),u=g+2*d-c,f=-u/2,m=f+2*d-c,x=i.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:k}=e;if("handDrawn"===e.look){let t=y.A.svg(i),a=(0,l.Fr)(e,{}),r=t.path(R(-h/2,m,h,g,p),a),n=t.circle(0,f+d,2*d,a);x.insert(()=>n,":first-child"),x.insert(()=>r,":first-child"),k&&x.attr("style",k)}else x.append("rect").attr("x",-h/2).attr("y",m).attr("width",h).attr("height",g).attr("rx",p).attr("ry",p).attr("style",r),x.append("circle").attr("cx",0).attr("cy",f+d).attr("r",d).attr("style",r);b(e,x);let M=m+g/2;s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${M-n.height/2-(n.y-(n.top??0))})`);let S=f+d,A=180*Math.asin(Math.min(1,(m-S)/d))/Math.PI,K=[...D(0,-S,d,24,180+A,-A),...D(-(-h/2+p),-(m+p),p,12,90,0),...D(-(-h/2+p),-(u/2-p),p,12,360,270),...D(-(h/2-p),-(u/2-p),p,12,270,180),...D(-(h/2-p),-(m+p),p,12,180,90)];return e.intersect=function(t){return F.polygon(e,K,t)},i}(0,c.K)(Y,"block_arrow"),(0,c.K)(J,"browser"),(0,c.K)(U,"card"),(0,c.K)(Q,"choice"),(0,c.K)(tt,"circle"),(0,c.K)(te,"composite"),(0,c.K)(ta,"consoleWindow"),(0,c.K)(tr,"createLine"),(0,c.K)(tl,"crossedCircle"),(0,c.K)(ti,"generateCirclePoints"),(0,c.K)(tn,"curlyBraceLeft"),(0,c.K)(ts,"generateCirclePoints"),(0,c.K)(to,"curlyBraceRight"),(0,c.K)(th,"generateCirclePoints"),(0,c.K)(td,"curlyBraces"),(0,c.K)(tc,"curvedTrapezoid"),(0,c.K)(tg,"person");var ty=(0,c.K)((t,e,a,r,l,i)=>`M${t},${e+i} a${l},${i} 0,0,0 ${a},0 a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r}`,"createCylinderPathD"),tp=(0,c.K)((t,e,a,r,l,i)=>`M${t},${e+i} M${t+a},${e+i} a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r}`,"createOuterCylinderPathD"),tu=(0,c.K)((t,e,a,r,l,i)=>`M${t-a/2},${-r/2} a${l},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tf(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?24:n,h="neo"===e.look?24:n,d=e.width??0;e.width&&(e.width=e.width-h,e.width<8&&(e.width=8)),e.height&&(e.height=e.height-s-d/2/(2.5+d/50)*3,e.height<8&&(e.height=8));let{shapeSvg:c,bbox:g,label:p}=await w(t,e,$(e)),u=Math.max(e.width??0,g.width)+h,f=u/2,m=f/(2.5+u/50),x=Math.max(e.height??0,g.height)+s+m,{cssStyles:k}=e;if("handDrawn"===e.look){let t=y.A.svg(c),r=tp(0,0,u,x,f,m),i=tu(0,m,u,x,f,m),n=(0,l.Fr)(e,{}),s=t.path(r,n),o=t.path(i,(0,l.Fr)(e,{fill:"none"}));a=c.insert(()=>o,":first-child"),(a=c.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=ty(0,0,u,x,f,m);a=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,o.KL)(k)).attr("style",i)}return a.attr("label-offset-y",m),a.attr("transform",`translate(${-u/2}, ${-(x/2+m)})`),b(e,a),p.attr("transform",`translate(${-(g.width/2)-(g.x-(g.left??0))}, ${-(g.height/2)+(e.padding??0)/1.5-(g.y-(g.top??0))})`),e.intersect=function(t){let a=F.rect(e,t),r=a.x-(e.x??0);if(0!=f&&(Math.abs(r)<(e.width??0)/2||Math.abs(r)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-m)){let l=m*m*(1-r*r/(f*f));l>0&&(l=Math.sqrt(l)),l=m-l,t.y-(e.y??0)>0&&(l=-l),a.y+=l}return a},c}async function tm(t,e,a){let r,{labelStyles:i,nodeStyles:n}=(0,l.GX)(e);e.labelStyle=i;let{shapeSvg:s,bbox:h}=await w(t,e,$(e)),d=Math.max(h.width+2*a.labelPaddingX,e?.width||0),c=Math.max(h.height+2*a.labelPaddingY,e?.height||0),g=-d/2,p=-c/2,{rx:u,ry:f}=e,{cssStyles:m}=e;if(a?.rx&&a.ry&&(u=a.rx,f=a.ry),"handDrawn"===e.look){let t=y.A.svg(s),a=(0,l.Fr)(e,{}),i=u||f?t.path(R(g,p,d,c,u||0),a):t.rectangle(g,p,d,c,a);(r=s.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,o.KL)(m))}else(r=s.insert("rect",":first-child")).attr("class","basic label-container").attr("style",n).attr("rx",(0,o.KL)(u)).attr("ry",(0,o.KL)(f)).attr("x",g).attr("y",p).attr("width",d).attr("height",c);return b(e,r,"handDrawn"===e.look?void 0:{width:d,height:c}),e.calcIntersect=function(t,e){return F.rect(t,e)},e.intersect=function(t){return F.rect(e,t)},s}async function tw(t,e){let{cssClasses:a,labelPaddingX:r,labelPaddingY:i,padding:n,width:s,height:o}=e,h=await tm(t,e,{rx:0,ry:0,classes:a??"",labelPaddingX:r??(n??0)*2,labelPaddingY:i??n??0});if("handDrawn"===e.look){let t=y.A.svg(h),a=(0,l.Fr)(e,{}),r=h.select(".basic.label-container > path:nth-child(2)"),i=r.node();if(!i)return h;let n=null;return i instanceof SVGGraphicsElement&&(n=i.getBBox(),h.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,a),".basic.label-container g.label"),h.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,a),".basic.label-container g.label"),r.remove()),h}let d=h.select(".basic.label-container"),c=(Number(d.attr("width"))||s)??0,g=(Number(d.attr("height"))||o)??0;return c>0&&g>0&&d.attr("stroke-dasharray",`${c} ${g}`),h}async function tx(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?16:e.padding??0,{shapeSvg:s,bbox:o,label:h}=await w(t,e,$(e)),d=o.width+i,c=o.height+n,g=.2*c,p=-d/2,u=-c/2-g/2,{cssStyles:f}=e,m=y.A.svg(s),x=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let k=m.polygon([{x:p,y:u+g},{x:-p,y:u+g},{x:-p,y:-u},{x:p,y:-u},{x:p,y:u},{x:-p,y:u},{x:-p,y:u+g}].map(t=>[t.x,t.y]),x),M=s.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",f),r&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",r),h.attr("transform",`translate(${p+(e.padding??0)/2-(o.x-(o.left??0))}, ${u+g+(e.padding??0)/2-(o.y-(o.top??0))})`),b(e,M),e.intersect=function(t){return F.rect(e,t)},s}async function tb(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e),n="neo"===e.look?12:5;e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?16:s,{shapeSvg:c,bbox:g}=await w(t,e,$(e),{ignoreMinWidth:!0}),p=Math.sqrt(g.width**2+g.height**2)/2,u=(e?.width?e?.width/2:p)+(h??0),f=u+n,{cssStyles:m}=e;if("handDrawn"===e.look){let t=y.A.svg(c),r=(0,l.Fr)(e,{roughness:.2,strokeWidth:2.5}),i=(0,l.Fr)(e,{roughness:.2,strokeWidth:1.5}),n=t.circle(0,0,2*f,r),s=t.circle(0,0,2*u,i);(a=c.insert("g",":first-child")).attr("class",(0,o.KL)(e.cssClasses)).attr("style",(0,o.KL)(m)),a.node()?.appendChild(n),a.node()?.appendChild(s)}else{let t=(a=c.insert("g",":first-child")).insert("circle",":first-child"),e=a.insert("circle");a.attr("class","basic label-container").attr("style",i),t.attr("class","outer-circle").attr("style",i).attr("r",f).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",i).attr("r",u).attr("cx",0).attr("cy",0)}return b(e,a),e.intersect=function(t){return d.R.info("DoubleCircle intersect",e,f,t),F.circle(e,f,t)},c}async function t$(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:o,halfPadding:d}=await w(t,e,$(e)),{theme:c,themeVariables:g}=(0,h.D7)();(0,s.XE)(n,e.colorIndex,c,g.borderColorArray);let p=d??10,u=o.width/2+2*p,f=o.height/2+2*p,{cssStyles:m}=e;if("handDrawn"===e.look){let t=y.A.svg(n),r=(0,l.Fr)(e,{}),i=t.ellipse(0,0,2*u,2*f,r);(a=n.insert(()=>i,":first-child")).attr("class","basic label-container"),m&&a.attr("style",m)}else a=n.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",i).attr("rx",u).attr("ry",f).attr("cx",0).attr("cy",0);return e.width=2*u,e.height=2*f,b(e,a),e.calcIntersect=function(t,e){let a=t.width/2,r=t.height/2;return F.ellipse(t,a,r,e)},e.intersect=function(t){return F.ellipse(e,u,f,t)},n}function tk(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.label="",e.labelStyle=r;let n=t.insert("g").attr("class",$(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,o=y.A.svg(n),{nodeBorder:h}=a,c=(0,l.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let g=o.circle(0,0,14,c),p=n.insert(()=>g,":first-child");return p.selectAll("path").attr("style",`fill: ${h} !important;`),s&&s.length>0&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",i),b(e,p),e.intersect=function(t){return d.R.info("filledCircle intersect",e,{radius:7,point:t}),F.circle(e,7,t)},n}async function tM(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-n-n/2,e.width<10&&(e.width=10));let{shapeSvg:s,bbox:o,label:h}=await w(t,e,$(e)),c=(e?.width?e?.width:o.width)+(n??0),g=e?.height?e?.height:c+o.height,p=[{x:0,y:-g},{x:g,y:-g},{x:g/2,y:0}],{cssStyles:u}=e,f=y.A.svg(s),m=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let x=k(p),M=f.path(x,m),D=s.insert(()=>M,":first-child").attr("transform",`translate(${-g/2}, ${g/2})`).attr("class","outer-path");return u&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",u),r&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",r),e.width=c,e.height=g,b(e,D),h.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-g/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(t){return d.R.info("Triangle intersect",e,p,t),F.polygon(e,p,t)},s}async function tD(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,$(e)),h=e.padding??12,d=Math.max(s.width+2*h,e.width??0,90),c=s.height+2*h,g=Math.max(Math.min(.16*c,14),8),p=Math.max(c+g,e.height??0),u=p-g,f=Math.max(.38*d,28),m=-p/2,x=[{x:-d/2,y:m},{x:-d/2+f,y:m},{x:-d/2+f,y:m+g},{x:d/2,y:m+g},{x:d/2,y:p/2},{x:-d/2,y:p/2}],k=[`M${x[0].x},${x[0].y}`,...x.slice(1).map(t=>`L${t.x},${t.y}`),"Z"].join(" "),{cssStyles:M}=e;if("handDrawn"===e.look){let t=y.A.svg(n).path(k,(0,l.Fr)(e,{}));a=n.insert(()=>t,":first-child").attr("class","basic label-container"),M&&a.attr("style",M)}else a=n.insert("path",":first-child").attr("d",k).attr("class","basic label-container").attr("style",i);return"handDrawn"===e.look?b(e,a):b(e,a,{width:d,height:p}),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${m+g+u/2-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return F.polygon(e,x,t)},n}function tS(t,e,{dir:a,config:{state:r,themeVariables:i}}){let{nodeStyles:n}=(0,l.GX)(e);e.label="";let s=t.insert("g").attr("class",$(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,h=Math.max(70,e?.width??0),d=Math.max(10,e?.height??0);("LR"===a||"RL"===a)&&(h=Math.max(10,e?.width??0),d=Math.max(70,e?.height??0));let c=-1*h/2,g=-1*d/2,p=y.A.svg(s),u=(0,l.Fr)(e,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let f=p.rectangle(c,g,h,d,u),m=s.insert(()=>f,":first-child");o&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",n),b(e,m);let w=r?.padding??0;return e.width&&e.height&&(e.width+=w/2||0,e.height+=w/2||0),e.intersect=function(t){return F.rect(e,t)},s}async function tA(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*i,e.width<15&&(e.width=15));let{shapeSvg:s,bbox:o}=await w(t,e,$(e)),h=(e?.height?e?.height:Math.max(10,o.height))+2*n,c=h/2,g=c-Math.sqrt(Math.max(0,c**2-(o.height/2)**2)),p=(e?.width?e?.width:Math.max(15,o.width)+2*g)+2*i,{cssStyles:u}=e,f=y.A.svg(s),m=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let x=[{x:-p/2,y:-h/2},{x:p/2-c,y:-h/2},...D(-p/2+c,0,c,50,90,270),{x:p/2-c,y:h/2},{x:-p/2,y:h/2}],M=k(x),S=f.path(M,m),A=s.insert(()=>S,":first-child");return A.attr("class","basic label-container outer-path"),u&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",u),r&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",r),b(e,A),e.intersect=function(t){return d.R.info("Pill intersect",e,{radius:c,point:t}),F.polygon(e,x,t)},s}(0,c.K)(tf,"cylinder"),(0,c.K)(tm,"drawRect"),(0,c.K)(tw,"datastore"),(0,c.K)(tx,"dividedRectangle"),(0,c.K)(tb,"doublecircle"),(0,c.K)(t$,"usecaseEllipse"),(0,c.K)(tk,"filledCircle"),(0,c.K)(tM,"flippedTriangle"),(0,c.K)(tD,"folder"),(0,c.K)(tS,"forkJoin"),(0,c.K)(tA,"halfRoundedRectangle");var tK=(0,c.K)((t,e,a,r,l)=>`M${t+l},${e} L${t+a-l},${e} L${t+a},${e-r/2} L${t+a-l},${e-r} L${t+l},${e-r} L${t},${e-r/2} Z`,"createHexagonPathD");async function tv(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e),n="neo"===e.look?3.5:4;e.labelStyle=r;let s=e.padding??0,o="neo"===e.look?70:s,h="neo"===e.look?32:s;if(e.width||e.height){let t=e.height??0;e.width=(e?.width??0)-t/n*2-h,e.height=(e.height??0)-o}let{shapeSvg:d,bbox:c}=await w(t,e,$(e)),g=(e?.height?e?.height:c.height)+o,p=g/n,u=(e?.width?e?.width:c.width)+2*p+h,f=[{x:p,y:0},{x:u-p,y:0},{x:u,y:-g/2},{x:u-p,y:-g},{x:p,y:-g},{x:0,y:-g/2}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=y.A.svg(d),r=(0,l.Fr)(e,{}),i=tK(0,0,u,g,p),n=t.path(i,r);a=d.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${g/2})`),m&&a.attr("style",m)}else a=j(d,u,g,f);return i&&a.attr("style",i),e.width=u,e.height=g,b(e,a),e.intersect=function(t){return F.polygon(e,f,t)},d}async function tC(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.label="",e.labelStyle=a;let{shapeSvg:i}=await w(t,e,$(e)),n=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,h=y.A.svg(i),c=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");let g=[{x:0,y:0},{x:n,y:0},{x:0,y:s},{x:n,y:s}],p=k(g),u=h.path(p,c),f=i.insert(()=>u,":first-child");return f.attr("class","basic label-container outer-path"),o&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",o),r&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",r),f.attr("transform",`translate(${-n/2}, ${-s/2})`),b(e,f),e.intersect=function(t){return d.R.info("Pill intersect",e,{points:g}),F.polygon(e,g,t)},i}async function tL(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:i}=(0,l.GX)(e);e.labelStyle=i;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:h,label:c}=await w(t,e,"icon-shape default"),g="t"===e.pos,{nodeBorder:p}=a,{stylesMap:u}=(0,l.WW)(e),f=-s/2,m=-s/2,x=8*!!e.label,$=y.A.svg(o),k=(0,l.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=$.rectangle(f,m,s,s,k),D=Math.max(s,h.width),S=s+h.height+x,A=$.rectangle(-D/2,-S/2,D,S,{...k,fill:"transparent",stroke:"none"}),K=o.insert(()=>M,":first-child"),v=o.insert(()=>A);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,n.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,l=a.height,i=a.x,d=a.y;t.attr("transform",`translate(${-r/2-i},${g?h.height/2+x/2-l/2-d:-h.height/2-x/2-l/2-d})`),t.attr("style",`color: ${u.get("stroke")??p};`)}return c.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-S/2:S/2-h.height})`),K.attr("transform",`translate(0,${g?h.height/2+x/2:-h.height/2-x/2})`),b(e,v),e.intersect=function(t){if(d.R.info("iconSquare intersect",e,t),!e.label)return F.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=g?[{x:a-h.width/2,y:r-l/2},{x:a+h.width/2,y:r-l/2},{x:a+h.width/2,y:r-l/2+h.height+x},{x:a+s/2,y:r-l/2+h.height+x},{x:a+s/2,y:r+l/2},{x:a-s/2,y:r+l/2},{x:a-s/2,y:r-l/2+h.height+x},{x:a-h.width/2,y:r-l/2+h.height+x}]:[{x:a-s/2,y:r-l/2},{x:a+s/2,y:r-l/2},{x:a+s/2,y:r-l/2+s},{x:a+h.width/2,y:r-l/2+s},{x:a+h.width/2/2,y:r+l/2},{x:a-h.width/2,y:r+l/2},{x:a-h.width/2,y:r-l/2+s},{x:a-s/2,y:r-l/2+s}],F.polygon(e,i,t)},o}async function tN(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:i}=(0,l.GX)(e);e.labelStyle=i;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:h,label:c}=await w(t,e,"icon-shape default"),g=8*!!e.label,p="t"===e.pos,{nodeBorder:u,mainBkg:f}=a,{stylesMap:m}=(0,l.WW)(e),x=y.A.svg(o),$=(0,l.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid"),$.stroke=m.get("fill")??f;let k=o.append("g");e.icon&&k.html(`<g>${await (0,n.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let M=k.node().getBBox(),D=M.width,S=M.height,A=M.x,K=M.y,v=Math.max(D,S)*Math.SQRT2+40,C=x.circle(0,0,v,$),L=Math.max(v,h.width),N=v+h.height+g,B=x.rectangle(-L/2,-N/2,L,N,{...$,fill:"transparent",stroke:"none"}),R=o.insert(()=>C,":first-child"),P=o.insert(()=>B);return k.attr("transform",`translate(${-D/2-A},${p?h.height/2+g/2-S/2-K:-h.height/2-g/2-S/2-K})`),k.attr("style",`color: ${m.get("stroke")??u};`),c.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-N/2:N/2-h.height})`),R.attr("transform",`translate(0,${p?h.height/2+g/2:-h.height/2-g/2})`),b(e,P),e.intersect=function(t){return d.R.info("iconSquare intersect",e,t),F.rect(e,t)},o}async function tB(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:i}=(0,l.GX)(e);e.labelStyle=i;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:h,halfPadding:c,label:g}=await w(t,e,"icon-shape default"),p="t"===e.pos,u=s+2*c,f=s+2*c,{nodeBorder:m,mainBkg:x}=a,{stylesMap:$}=(0,l.WW)(e),k=8*!!e.label,M=y.A.svg(o),D=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid"),D.stroke=$.get("fill")??x;let S=M.path(R(-f/2,-u/2,f,u,5),D),A=Math.max(f,h.width),K=u+h.height+k,v=M.rectangle(-A/2,-K/2,A,K,{...D,fill:"transparent",stroke:"none"}),C=o.insert(()=>S,":first-child").attr("class","icon-shape2"),L=o.insert(()=>v);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,n.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,l=a.height,i=a.x,d=a.y;t.attr("transform",`translate(${-r/2-i},${p?h.height/2+k/2-l/2-d:-h.height/2-k/2-l/2-d})`),t.attr("style",`color: ${$.get("stroke")??m};`)}return g.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-K/2:K/2-h.height})`),C.attr("transform",`translate(0,${p?h.height/2+k/2:-h.height/2-k/2})`),b(e,L),e.intersect=function(t){if(d.R.info("iconSquare intersect",e,t),!e.label)return F.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=p?[{x:a-h.width/2,y:r-l/2},{x:a+h.width/2,y:r-l/2},{x:a+h.width/2,y:r-l/2+h.height+k},{x:a+f/2,y:r-l/2+h.height+k},{x:a+f/2,y:r+l/2},{x:a-f/2,y:r+l/2},{x:a-f/2,y:r-l/2+h.height+k},{x:a-h.width/2,y:r-l/2+h.height+k}]:[{x:a-f/2,y:r-l/2},{x:a+f/2,y:r-l/2},{x:a+f/2,y:r-l/2+u},{x:a+h.width/2,y:r-l/2+u},{x:a+h.width/2/2,y:r+l/2},{x:a-h.width/2,y:r+l/2},{x:a-h.width/2,y:r-l/2+u},{x:a-f/2,y:r-l/2+u}],F.polygon(e,i,t)},o}async function tF(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:i}=(0,l.GX)(e);e.labelStyle=i;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:h,halfPadding:c,label:g}=await w(t,e,"icon-shape default"),p="t"===e.pos,u=s+2*c,f=s+2*c,{nodeBorder:m,mainBkg:x}=a,{stylesMap:$}=(0,l.WW)(e),k=8*!!e.label,M=y.A.svg(o),D=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid"),D.stroke=$.get("fill")??x;let S=M.path(R(-f/2,-u/2,f,u,.1),D),A=Math.max(f,h.width),K=u+h.height+k,v=M.rectangle(-A/2,-K/2,A,K,{...D,fill:"transparent",stroke:"none"}),C=o.insert(()=>S,":first-child"),L=o.insert(()=>v);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,n.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,l=a.height,i=a.x,d=a.y;t.attr("transform",`translate(${-r/2-i},${p?h.height/2+k/2-l/2-d:-h.height/2-k/2-l/2-d})`),t.attr("style",`color: ${$.get("stroke")??m};`)}return g.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-K/2:K/2-h.height})`),C.attr("transform",`translate(0,${p?h.height/2+k/2:-h.height/2-k/2})`),b(e,L),e.intersect=function(t){if(d.R.info("iconSquare intersect",e,t),!e.label)return F.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=p?[{x:a-h.width/2,y:r-l/2},{x:a+h.width/2,y:r-l/2},{x:a+h.width/2,y:r-l/2+h.height+k},{x:a+f/2,y:r-l/2+h.height+k},{x:a+f/2,y:r+l/2},{x:a-f/2,y:r+l/2},{x:a-f/2,y:r-l/2+h.height+k},{x:a-h.width/2,y:r-l/2+h.height+k}]:[{x:a-f/2,y:r-l/2},{x:a+f/2,y:r-l/2},{x:a+f/2,y:r-l/2+u},{x:a+h.width/2,y:r-l/2+u},{x:a+h.width/2/2,y:r+l/2},{x:a-h.width/2,y:r+l/2},{x:a-h.width/2,y:r-l/2+u},{x:a-f/2,y:r-l/2+u}],F.polygon(e,i,t)},o}async function tR(t,e,{config:{flowchart:a}}){let r=new Image;r.src=e?.img??"",await r.decode();let i=Number(r.naturalWidth.toString().replace("px","")),n=Number(r.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/n;let{labelStyles:s}=(0,l.GX)(e);e.labelStyle=s;let o=a?.wrappingWidth;e.defaultWidth=a?.wrappingWidth;let h=Math.max(e.label?o??0:0,e?.assetWidth??i),c="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:h,g="on"===e.constraint?c/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(c,o??0);let{shapeSvg:p,bbox:u,label:f}=await w(t,e,"image-shape default"),m="t"===e.pos,x=-c/2,$=8*!!e.label,k=y.A.svg(p),M=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=k.rectangle(x,-g/2,c,g,M),S=Math.max(c,u.width),A=g+u.height+$,K=k.rectangle(-S/2,-A/2,S,A,{...M,fill:"none",stroke:"none"}),v=p.insert(()=>D,":first-child"),C=p.insert(()=>K);if(e.img){let t=p.append("image");t.attr("href",e.img),t.attr("width",c),t.attr("height",g),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-c/2},${m?A/2-g:-A/2})`)}return f.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${m?-g/2-u.height/2-$/2:g/2-u.height/2+$/2})`),v.attr("transform",`translate(0,${m?u.height/2+$/2:-u.height/2-$/2})`),b(e,C),e.intersect=function(t){if(d.R.info("iconSquare intersect",e,t),!e.label)return F.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=m?[{x:a-u.width/2,y:r-l/2},{x:a+u.width/2,y:r-l/2},{x:a+u.width/2,y:r-l/2+u.height+$},{x:a+c/2,y:r-l/2+u.height+$},{x:a+c/2,y:r+l/2},{x:a-c/2,y:r+l/2},{x:a-c/2,y:r-l/2+u.height+$},{x:a-u.width/2,y:r-l/2+u.height+$}]:[{x:a-c/2,y:r-l/2},{x:a+c/2,y:r-l/2},{x:a+c/2,y:r-l/2+g},{x:a+u.width/2,y:r-l/2+g},{x:a+u.width/2/2,y:r+l/2},{x:a-u.width/2,y:r+l/2},{x:a-u.width/2,y:r-l/2+g},{x:a-c/2,y:r-l/2+g}],F.polygon(e,i,t)},p}async function tP(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:o,bbox:h}=await w(t,e,$(e)),d=Math.max(h.height+2*n,e.height??0),c=Math.max(h.width+2*s,(e.width??0)-d),g=[{x:0,y:0},{x:c,y:0},{x:c+3*d/6,y:-d},{x:-3*d/6,y:-d}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=y.A.svg(o),r=(0,l.Fr)(e,{}),i=k(g),n=t.path(i,r);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),p&&a.attr("style",p)}else a=j(o,c,d,g);return i&&a.attr("style",i),e.width=c,e.height=d,b(e,a),e.intersect=function(t){return F.polygon(e,g,t)},o}async function tX(t,e){let{shapeSvg:a,bbox:r,label:l}=await w(t,e,"label"),i=a.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),l.attr("transform",`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),b(e,i),e.intersect=function(t){return F.rect(e,t)},a}async function tG(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:o,bbox:h}=await w(t,e,$(e)),d=Math.max(h.height+n,e.height??0),c=Math.max(h.width+s,(e.width??0)-d),g=[{x:0,y:0},{x:c+3*d/6,y:0},{x:c,y:-d},{x:-(3*d)/6,y:-d}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=y.A.svg(o),r=(0,l.Fr)(e,{}),i=k(g),n=t.path(i,r);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),p&&a.attr("style",p)}else a=j(o,c,d,g);return i&&a.attr("style",i),e.width=c,e.height=d,b(e,a),e.intersect=function(t){return F.polygon(e,g,t)},o}async function tI(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:o,bbox:h}=await w(t,e,$(e)),d=Math.max(h.height+n,e.height??0),c=Math.max(h.width+s,(e.width??0)-d),g=[{x:-3*d/6,y:0},{x:c,y:0},{x:c+3*d/6,y:-d},{x:0,y:-d}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=y.A.svg(o),r=(0,l.Fr)(e,{}),i=k(g),n=t.path(i,r);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),p&&a.attr("style",p)}else a=j(o,c,d,g);return i&&a.attr("style",i),e.width=c,e.height=d,b(e,a),e.intersect=function(t){return F.polygon(e,g,t)},o}function tW(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.label="",e.labelStyle=a;let i=t.insert("g").attr("class",$(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,s=Math.max(35,e?.width??0),o=Math.max(35,e?.height??0),h=[{x:s,y:0},{x:0,y:o+3.5},{x:s-14,y:o+3.5},{x:0,y:2*o},{x:s,y:o-3.5},{x:14,y:o-3.5}],c=y.A.svg(i),g=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");let p=k(h),u=c.path(p,g),f=i.insert(()=>u,":first-child");return f.attr("class","outer-path"),n&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",n),r&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",r),f.attr("transform",`translate(-${s/2},${-o})`),b(e,f),e.intersect=function(t){return d.R.info("lightningBolt intersect",e,t),F.polygon(e,h,t)},i}(0,c.K)(tv,"hexagon"),(0,c.K)(tC,"hourglass"),(0,c.K)(tL,"icon"),(0,c.K)(tN,"iconCircle"),(0,c.K)(tB,"iconRounded"),(0,c.K)(tF,"iconSquare"),(0,c.K)(tR,"imageSquare"),(0,c.K)(tP,"inv_trapezoid"),(0,c.K)(tX,"labelRect"),(0,c.K)(tG,"lean_left"),(0,c.K)(tI,"lean_right"),(0,c.K)(tW,"lightningBolt");var tH=(0,c.K)((t,e,a,r,l,i,n)=>`M${t},${e+i} a${l},${i} 0,0,0 ${a},0 a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r} M${t},${e+i+n} a${l},${i} 0,0,0 ${a},0`,"createCylinderPathD"),tE=(0,c.K)((t,e,a,r,l,i,n)=>`M${t},${e+i} M${t+a},${e+i} a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r} M${t},${e+i+n} a${l},${i} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tT=(0,c.K)((t,e,a,r,l,i)=>`M${t-a/2},${-r/2} a${l},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tj(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?16:n,h="neo"===e.look?24:n;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-s,e.width<10&&(e.width=10),e.height=(e.height??0)-h-t/2/(2.5+t/50)*3,e.height<10&&(e.height=10)}let{shapeSvg:d,bbox:c,label:g}=await w(t,e,$(e)),p=(e?.width?e?.width:c.width)+2*s,u=p/2,f=u/(2.5+p/50),m=(e?.height?e?.height:c.height)+f+2*h,x=.1*m,{cssStyles:k}=e;if("handDrawn"===e.look){let t=y.A.svg(d),r=tE(0,0,p,m,u,f,x),i=tT(0,f,p,m,u,f),n=(0,l.Fr)(e,{}),s=t.path(r,n),o=t.path(i,n);d.insert(()=>o,":first-child").attr("class","line"),(a=d.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=tH(0,0,p,m,u,f,x);a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,o.KL)(k)).attr("style",i)}return a.attr("label-offset-y",f),a.attr("transform",`translate(${-p/2}, ${-(m/2+f)})`),b(e,a),g.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+f-(c.y-(c.top??0))})`),e.intersect=function(t){let a=F.rect(e,t),r=a.x-(e.x??0);if(0!=u&&(Math.abs(r)<(e.width??0)/2||Math.abs(r)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-f)){let l=f*f*(1-r*r/(u*u));l>0&&(l=Math.sqrt(l)),l=f-l,t.y-(e.y??0)>0&&(l=-l),a.y+=l}return a},d}async function tq(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;if(e.width||e.height){let t=e.width;e.width=(t??0)*10/11-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10)}let{shapeSvg:o,bbox:h,label:d}=await w(t,e,$(e)),c=(e?.width?e?.width:h.width)+(n??0)*2,g=(e?.height?e?.height:h.height)+(s??0)*2,p="neo"===e.look?g/4:g/8,u=g+p,{cssStyles:f}=e,m=y.A.svg(o),x=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let k=[{x:-c/2-c/2*.1,y:-u/2},{x:-c/2-c/2*.1,y:u/2},...M(-c/2-c/2*.1,u/2,c/2+c/2*.1,u/2,p,.8),{x:c/2+c/2*.1,y:-u/2},{x:-c/2-c/2*.1,y:-u/2},{x:-c/2,y:-u/2},{x:-c/2,y:u/2*1.1},{x:-c/2,y:-u/2}],D=m.polygon(k.map(t=>[t.x,t.y]),x),S=o.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",f),r&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",r),S.attr("transform",`translate(0,${-p/2})`),d.attr("transform",`translate(${-c/2+(e.padding??0)+c/2*.1/2-(h.x-(h.left??0))},${-g/2+(e.padding??0)-p-(h.y-(h.top??0))})`),b(e,S),e.intersect=function(t){return F.polygon(e,k,t)},o}(0,c.K)(tj,"linedCylinder"),(0,c.K)(tq,"linedWaveEdgedRect");var tZ={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},t_=Math.PI/3,tz=(0,c.K)((t,e)=>{let a=.6*e,r=e*Math.sqrt(.64),l=Math.cos(t_),i=-Math.sin(t_),n=-(a*i),s=t+a*l,o=r*l,h=r*i;return`M ${n-o} ${s-h} L ${n+o} ${s+h}`},"businessMarkerPathForCircle"),tO={normal:tz(-24,12),hollow:tz(-23,9),awesome:tz(-21,13),icon:"M 12 -8 L 26 -26"},tV=(0,c.K)((t,e,a)=>{let r=(e.x??0)-(e.left??0),l=(e.y??0)-(e.top??0);t.attr("transform",`translate(${-e.width/2-r},${a-e.height/2-l})`)},"positionLabel"),tY=(0,c.K)((t,e,a,r,i=!1)=>{if("handDrawn"===e.look){let n=y.A.svg(t).path(a,(0,l.Fr)(e,i?{fill:"none"}:{}));return t.insert(()=>n,":first-child").attr("class",r)}let n=t.append("path").attr("class",r).attr("d",a);return i&&n.attr("fill","none"),n},"appendActorPath"),tJ=(0,c.K)((t,e,a,r,i,n,s=!1)=>{if("handDrawn"===e.look){let o=y.A.svg(t).circle(a,r,2*i,(0,l.Fr)(e,s?{fill:"none"}:{}));return t.insert(()=>o,":first-child").attr("class",n)}let o=t.append("circle").attr("class",n).attr("cx",a).attr("cy",r).attr("r",i);return s&&o.attr("fill","none"),o},"appendActorCircle"),tU=(0,c.K)((t,e,a)=>{e.business&&t.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",tO[a]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function tQ(t,e,a,r){let i,n,{labelStyles:o,nodeStyles:d}=(0,l.GX)(e);e.labelStyle=o;let c="icon"===a||void 0!==e.stereotype?{...e,icon:"icon"===a?void 0:e.icon,stereotype:void 0}:e,{shapeSvg:g,bbox:y,label:p}=await w(t,c,$(e,`usecase-actor-variant usecase-actor-${a}`)),u=e.accessibleName??e.label;u&&g.attr("role","img").attr("aria-label",u),p.attr("class","label actor-label usecase-actor-label");let{theme:f,themeVariables:m}=(0,h.D7)();if((0,s.XE)(g,e.colorIndex,f,m.borderColorArray),e.stereotype){let t=await x(g,`\xab${e.stereotype}\xbb`,{labelStyle:o,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});i=t.label.attr("class","label usecase-stereotype"),n=t.bbox}let k=g.append("g").attr("class",`usecase-actor-glyph ${tZ[a]}`).attr("style",d||null);await r(k,e),tU(k,e,a);let M=e.padding??8,D=n?.height??0,S=80+y.height+(n?D+2:0),A=Math.max(56,y.width,n?.width??0)+2*M,K=S+2*M,v=-S/2;k.attr("transform",`translate(0,${v+36})`);let C=v+72+8;return i&&n&&(tV(i,n,C+=D/2),C+=D/2+2),tV(p,y,C+y.height/2),b(e,g.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-A/2).attr("y",-K/2).attr("width",A).attr("height",K).attr("opacity",0).attr("aria-hidden","true")),e.intersect=t=>F.rect(e,t),g}async function t0(t,e){return tQ(t,e,"normal",(t,e)=>{tY(t,e,"M 0 -12 C 6.627 -12 12 -17.373 12 -24 C 12 -30.627 6.627 -36 0 -36 C -6.627 -36 -12 -30.627 -12 -24 C -12 -17.373 -6.627 -12 0 -12 Z M 0 -12 V 8 M -17 -5 H 17 M 0 8 L -15 28 M 0 8 L 15 28","usecase-actor-stick")})}async function t2(t,e){return tQ(t,e,"awesome",(t,e)=>{tY(t,e,"M 0 -34 C 7.18 -34 13 -28.18 13 -21 C 13 -13.82 7.18 -8 0 -8 C -7.18 -8 -13 -13.82 -13 -21 C -13 -28.18 -7.18 -34 0 -34 Z M -24 25 C -24 7 -14 -3 0 -3 C 14 -3 24 7 24 25 C 24 28 21 30 18 30 H -18 C -21 30 -24 28 -24 25 Z","usecase-actor-awesome-silhouette")})}async function t1(t,e){return tQ(t,e,"hollow",(t,e)=>{tJ(t,e,0,-23,9,"usecase-actor-hollow-head",!0),tY(t,e,"M -22 -10 H 22 V 0 H 6 L 22 17 L 13 28 L 0 13 L -13 28 L -22 17 L -6 0 H -22 Z","usecase-actor-hollow-body",!0)})}(0,c.K)(tQ,"renderUsecaseActor"),(0,c.K)(t0,"usecaseActor"),(0,c.K)(t2,"usecaseActorAwesome"),(0,c.K)(t1,"usecaseActorHollow");var t5=(0,c.K)(async(t,e)=>{if("handDrawn"===e.look){let a=y.A.svg(t).rectangle(-26,-28,52,52,(0,l.Fr)(e,{}));t.insert(()=>a,":first-child").attr("class","usecase-actor-icon-frame")}else t.append("rect").attr("class","usecase-actor-icon-frame").attr("x",-26).attr("y",-28).attr("width",52).attr("height",52).attr("rx",4).attr("ry",4);let a=e.icon??"",r=await (0,n.dn)(a.includes(":")?a:`fa:${a}`),i=await (0,n.WY)(a,{height:42,width:42,fallbackPrefix:"fa"}),s=t.append("g").attr("class",`usecase-actor-icon-symbol${r?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${i}</g>`),o=s.node()?.getBBox();o&&s.attr("transform",`translate(${-o.width/2-o.x},${-2-o.height/2-o.y})`)},"drawIconActor");async function t8(t,e){return tQ(t,e,"icon",t5)}(0,c.K)(t8,"usecaseActorIcon");var t3=(0,c.K)((t,e,a)=>{let r=(e.x??0)-(e.left??0),l=(e.y??0)-(e.top??0);t.attr("transform",`translate(${-e.width/2-r},${a-e.height/2-l})`)},"positionLabel");async function t4(t,e){let a,r,i,{labelStyles:n,nodeStyles:o}=(0,l.GX)(e);e.labelStyle=n;let d=e.stereotype?{...e,stereotype:void 0}:e,{shapeSvg:c,bbox:g,halfPadding:p,label:u}=await w(t,d,$(e,"usecase-business-shape"));u.attr("class","label usecase-label");let{theme:f,themeVariables:m}=(0,h.D7)();if((0,s.XE)(c,e.colorIndex,f,m.borderColorArray),e.stereotype){let t=await x(c,`\xab${e.stereotype}\xbb`,{labelStyle:n,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});a=t.label.attr("class","label usecase-stereotype"),r=t.bbox}let k=2*!!r,M=g.height+(r?.height??0)+k,D=Math.max(g.width,r?.width??0),S=p??10,A=D/2+2*S,K=M/2+2*S,v=Math.min(Math.max(S/5,1),S/2),C=D/2+v,L=A-v,N=C/A,B=L/A,R=K*Math.sqrt(Math.max(0,1-N*N)),P=-K*Math.sqrt(Math.max(0,1-B*B));if(a&&r&&t3(a,r,-M/2+r.height/2),t3(u,g,M/2-g.height/2),"handDrawn"===e.look){let t=y.A.svg(c).ellipse(0,0,2*A,2*K,(0,l.Fr)(e,{}));i=c.insert(()=>t,":first-child").attr("class","basic label-container usecase-business-ellipse")}else i=c.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",o).attr("rx",A).attr("ry",K).attr("cx",0).attr("cy",0);c.append("path").attr("class","usecase-business-marker").attr("d",`M ${C} ${R} L ${L} ${P}`).attr("fill","none").attr("style",o||null);let X=e.accessibleName??e.label;return X&&c.attr("role","img").attr("aria-label",X),b(e,i),e.calcIntersect=(t,e)=>F.ellipse(t,t.width/2,t.height/2,e),e.intersect=t=>F.ellipse(e,A,K,t),c}(0,c.K)(t4,"usecaseBusiness");var t6=(0,c.K)((t,e,a,r)=>{let l=(e.x??0)-(e.left??0),i=(e.y??0)-(e.top??0);t.attr("transform",`translate(${a-e.width/2-l},${r-e.height/2-i})`)},"positionLabel"),t7=(0,c.K)(t=>{let e=Number.parseFloat(t??"");return Number.isFinite(e)&&e>=0?e:1},"numericStrokeWidth");async function t9(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e),{stylesMap:i}=(0,l.WW)(e);e.labelStyle=a;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,$(e,"usecase-json-table"));n.attr("role","img"),e.accessibleName&&n.attr("aria-label",e.accessibleName),o.attr("class","label usecase-json-title");let h=n.append("g").attr("class","usecase-json-table-grid"),d=[];for(let t of e.jsonRows??[]){let r=await x(h,t.key,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0}),l=await x(h,t.value,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0});d.push({key:{label:r.label.attr("class","label usecase-json-key"),bbox:r.bbox},value:{label:l.label.attr("class","label usecase-json-value"),bbox:l.bbox}})}let g=Math.max(0,...d.map(({key:t})=>t.bbox.width))+16,p=Math.max(0,...d.map(({value:t})=>t.bbox.width))+16,u=Math.max(s.width+16,g+p),f=p+Math.max(0,u-g-p),m=s.height+8,k=d.map(({key:t,value:e})=>Math.max(t.bbox.height,e.bbox.height)+8),M=m+k.reduce((t,e)=>t+e,0),D=t7(i.get("stroke-width")),S=u+2*D,A=M+2*D,K=-u/2,v=-M/2,C="handDrawn"===e.look?y.A.svg(n):void 0,L=C?(0,l.Fr)(e,{}):void 0,N=(0,c.K)((t,e,a,l,i,n)=>{if(C&&L){let r=C.rectangle(a,l,i,n,L);return t.insert(()=>r,":first-child").attr("class",e)}return t.insert("rect",":first-child").attr("class",e).attr("x",a).attr("y",l).attr("width",i).attr("height",n).attr("style",r)},"insertCell"),B=N(n,"label-container usecase-json-border",-S/2,-A/2,S,A);N(h,"usecase-json-cell usecase-json-title-cell",K,v,u,m),h.node()?.append(o.node()),t6(o,s,0,v+m/2);let R=v+m;return d.forEach(({key:t,value:e},a)=>{let r=k[a],l=h.append("g").attr("class","usecase-json-row").attr("data-row-index",a).attr("transform",`translate(0,${R})`);N(l,"usecase-json-cell usecase-json-key-cell",K,0,g,r),N(l,"usecase-json-cell usecase-json-value-cell",K+g,0,f,r),l.node()?.append(t.label.node(),e.label.node()),t6(t.label,t.bbox,K+g/2,r/2),t6(e.label,e.bbox,K+g+f/2,r/2),R+=r}),b(e,B),e.intersect=t=>F.rect(e,t),n}async function et(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,o="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n-2*o,10),e.height=Math.max((e?.height??0)-2*s-2*o,10));let{shapeSvg:h,bbox:d,label:c}=await w(t,e,$(e)),g=(e?.width?e?.width:d.width)+2*n+2*o,p=(e?.height?e?.height:d.height)+2*s+2*o,u=g-2*o,f=p-2*o,m=-u/2,x=-f/2,{cssStyles:M}=e,D=y.A.svg(h),A=(0,l.Fr)(e,{}),K=[{x:m-o,y:x+o},{x:m-o,y:x+f+o},{x:m+u-o,y:x+f+o},{x:m+u-o,y:x+f},{x:m+u,y:x+f},{x:m+u,y:x+f-o},{x:m+u+o,y:x+f-o},{x:m+u+o,y:x-o},{x:m+o,y:x-o},{x:m+o,y:x},{x:m,y:x},{x:m,y:x+o}];"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let v=k(K),C=D.path(v,A),L=k([{x:m,y:x+o},{x:m+u-o,y:x+o},{x:m+u-o,y:x+f},{x:m+u,y:x+f},{x:m+u,y:x},{x:m,y:x}]),N=D.path(L,A);"handDrawn"!==e.look&&(C=S(C),N=S(N));let B=h.insert("g",":first-child");return B.insert(()=>C),B.insert(()=>N),B.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",M),r&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",r),c.attr("transform",`translate(${-(d.width/2)-o-(d.x-(d.left??0))}, ${-(d.height/2)+o-(d.y-(d.top??0))})`),b(e,B),e.intersect=function(t){return F.polygon(e,K,t)},h}async function ee(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,$(e)),o=e.padding??0,h="neo"===e.look?16:o,d="neo"===e.look?12:o,c=!0;(e.width||e.height)&&(c=!1,e.width=(e?.width??0)-2*h,e.height=(e?.height??0)-3*d);let g=Math.max(n.width,e?.width??0)+2*h,p=Math.max(n.height,e?.height??0)+3*d,u="neo"===e.look?p/4:p/8,f=p+(c?u/2:-u/2),m=-g/2,x=-f/2,{cssStyles:D}=e,S=M(m-10,x+f+10,m+g-10,x+f+10,u,.8),A=S?.[S.length-1],K=[{x:m-10,y:x+10},{x:m-10,y:x+f+10},...S,{x:m+g-10,y:A.y-10},{x:m+g,y:A.y-10},{x:m+g,y:A.y-20},{x:m+g+10,y:A.y-20},{x:m+g+10,y:x-10},{x:m+10,y:x-10},{x:m+10,y:x},{x:m,y:x},{x:m,y:x+10}],v=[{x:m,y:x+10},{x:m+g-10,y:x+10},{x:m+g-10,y:A.y-10},{x:m+g,y:A.y-10},{x:m+g,y:x},{x:m,y:x}],C=y.A.svg(i),L=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(L.roughness=0,L.fillStyle="solid");let N=k(K),B=C.path(N,L),R=k(v),P=C.path(R,L),X=i.insert(()=>B,":first-child");return X.insert(()=>P),X.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&X.selectAll("path").attr("style",D),r&&"handDrawn"!==e.look&&X.selectAll("path").attr("style",r),X.attr("transform",`translate(0,${-u/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-u-(n.y-(n.top??0))})`),b(e,X),e.intersect=function(t){return F.polygon(e,K,t)},i}async function ea(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r,e.useHtmlLabels||(0,h.E)((0,h.zj)())||(e.centerLabel=!0);let{shapeSvg:n,bbox:s,label:o}=await w(t,e,$(e)),d=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),{cssStyles:g}=e,p=y.A.svg(n),u=(0,l.Fr)(e,{fill:a.noteBkgColor,stroke:a.noteBorderColor});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let f=p.rectangle(-d/2,-c/2,d,c,u),m=n.insert(()=>f,":first-child");return m.attr("class","basic label-container outer-path"),o.attr("class","label noteLabel"),g&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",g),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),o.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),b(e,m),e.intersect=function(t){return F.rect(e,t)},n}(0,c.K)(t9,"usecaseJsonTable"),(0,c.K)(et,"multiRect"),(0,c.K)(ee,"multiWaveEdgedRectangle"),(0,c.K)(ea,"note");var er=(0,c.K)((t,e,a)=>`M${t+a/2},${e} L${t+a},${e-a/2} L${t+a/2},${e-a} L${t},${e-a/2} Z`,"createDecisionBoxPathD");async function el(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s}=await w(t,e,$(e)),o=s.width+(e.padding??0)+(s.height+(e.padding??0)),h=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],{cssStyles:d}=e;if("handDrawn"===e.look){let t=y.A.svg(n),r=(0,l.Fr)(e,{}),i=er(0,0,o),s=t.path(i,r);a=n.insert(()=>s,":first-child").attr("transform",`translate(${-o/2+.5}, ${o/2})`),d&&a.attr("style",d)}else(a=j(n,o,o,h)).attr("transform",`translate(${-o/2+.5}, ${o/2})`);return i&&a.attr("style",i),b(e,a),e.calcIntersect=function(t,e){let a=t.width;return F.polygon(t,[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],e)},e.intersect=function(t){return this.calcIntersect(e,t)},n}async function ei(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?21:i??0,s="neo"===e.look?12:i??0,{shapeSvg:o,bbox:h,label:d}=await w(t,e,$(e)),c=h.width+("neo"===e.look?2*n:n),g=Math.max(h.height+("neo"===e.look?2*s:s),e.height??0),p=-Math.max(c,(e.width??0)-g/4)/2,u=-g/2,f=u/2,m=[{x:p+f,y:u},{x:p,y:0},{x:p+f,y:-u},{x:-p,y:-u},{x:-p,y:u}],{cssStyles:x}=e,M=y.A.svg(o),D=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let S=k(m),A=M.path(S,D),K=o.insert(()=>A,":first-child");return K.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",x),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${-f/2},0)`),d.attr("transform",`translate(${-f/2-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),b(e,K),e.intersect=function(t){return F.polygon(e,m,t)},o}async function en(t,e){let a,r,i,{labelStyles:n,nodeStyles:s}=(0,l.GX)(e);e.labelStyle=n,a=e.cssClasses?"node "+e.cssClasses:"node default";let o=t.insert("g").attr("class",a).attr("id",e.domId||e.id),c=o.insert("g"),p=o.insert("g").attr("class","label").attr("style",s),u=e.description,f=e.label,m=await P(p,f,e.labelStyle,!0,!0),w={width:0,height:0};if((0,h.E)((0,h.D7)())){let t=m.children[0],e=(0,g.Lt)(m);w=t.getBoundingClientRect(),e.attr("width",w.width),e.attr("height",w.height)}d.R.info("Text 2",u);let x=u||[],$=m.getBBox(),k=await P(p,Array.isArray(x)?x.join("<br/>"):x,e.labelStyle,!0,!0),M=k.children[0],D=(0,g.Lt)(k);w=M.getBoundingClientRect(),D.attr("width",w.width),D.attr("height",w.height);let S=(e.padding||0)/2;(0,g.Lt)(k).attr("transform","translate( "+(w.width>$.width?0:($.width-w.width)/2)+", "+($.height+S+5)+")"),(0,g.Lt)(m).attr("transform","translate( "+(w.width<$.width?0:-($.width-w.width)/2)+", 0)"),w=p.node().getBBox(),p.attr("transform","translate("+-w.width/2+", "+(-w.height/2-S+3)+")");let A=w.width+(e.padding||0),K=w.height+(e.padding||0),v=-w.width/2-S,C=-w.height/2-S;if("handDrawn"===e.look){let t=y.A.svg(o),a=(0,l.Fr)(e,{}),n=t.path(R(v,C,A,K,e.rx||0),a),s=t.line(-w.width/2-S,-w.height/2-S+$.height+S,w.width/2+S,-w.height/2-S+$.height+S,a);i=o.insert(()=>(d.R.debug("Rough node insert CXC",n),s),":first-child"),r=o.insert(()=>(d.R.debug("Rough node insert CXC",n),n),":first-child")}else r=c.insert("rect",":first-child"),i=c.insert("line"),r.attr("class","outer title-state").attr("style",s).attr("x",-w.width/2-S).attr("y",-w.height/2-S).attr("width",w.width+(e.padding||0)).attr("height",w.height+(e.padding||0)),i.attr("class","divider").attr("x1",-w.width/2-S).attr("x2",w.width/2+S).attr("y1",-w.height/2-S+$.height+S).attr("y2",-w.height/2-S+$.height+S);return b(e,r),e.intersect=function(t){return F.rect(e,t)},o}async function es(t,e,{config:{themeVariables:a}}){let r=a?.radius??5,l={rx:r,ry:r,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return tm(t,e,l)}async function eo(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0,{shapeSvg:s,bbox:h,label:d}=await w(t,e,$(e)),c=(e?.width??h.width)+2*i+("neo"===e.look?8:16),g=(e?.height??h.height)+2*n,p=c-8,u=8-c/2,f=-g/2,{cssStyles:m}=e,x=y.A.svg(s),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=x.polygon([{x:u,y:f},{x:u+p,y:f},{x:u+p,y:f+g},{x:u-8,y:f+g},{x:u-8,y:f},{x:u,y:f},{x:u,y:f+g}].map(t=>[t.x,t.y]),k),D=s.insert(()=>M,":first-child");return D.attr("class","basic label-container outer-path").attr("style",(0,o.KL)(m)),r&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),m&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),d.attr("transform",`translate(${4-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),b(e,D),e.intersect=function(t){return F.rect(e,t)},s}async function eh(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n,10),e.height=Math.max((e?.height??0)/1.5-2*s,10));let{shapeSvg:o,bbox:h,label:d}=await w(t,e,$(e)),c=(e?.width?e?.width:h.width)+2*n,g=((e?.height?e?.height:h.height)+2*s)*1.5/1.5,p=-c/2,u=-g/2,{cssStyles:f}=e,m=y.A.svg(o),x=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let M=[{x:p,y:u},{x:p,y:u+g},{x:p+c,y:u+g},{x:p+c,y:u-g/2}],D=k(M),S=m.path(D,x),A=o.insert(()=>S,":first-child");return A.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",f),r&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",r),A.attr("transform",`translate(0, ${g/4})`),d.attr("transform",`translate(${-c/2+(e.padding??0)-(h.x-(h.left??0))}, ${-g/4+(e.padding??0)-(h.y-(h.top??0))})`),b(e,A),e.intersect=function(t){return F.polygon(e,M,t)},o}async function ed(t,e){let a=e.padding??0,r="neo"===e.look?16:2*a,l="neo"===e.look?12:a,i={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??r,labelPaddingY:l},n=await tm(t,e,i);if(void 0!==e.colorIndex){let{theme:t,themeVariables:a}=(0,h.D7)();(0,s.XE)(n,e.colorIndex,t,a.borderColorArray)}return n}(0,c.K)(el,"question"),(0,c.K)(ei,"rect_left_inv_arrow"),(0,c.K)(en,"rectWithTitle"),(0,c.K)(es,"roundedRect"),(0,c.K)(eo,"shadedProcess"),(0,c.K)(eh,"slopedRect"),(0,c.K)(ed,"squareRect");var ec=(0,c.K)((t,e,a)=>{let r=t.height+a,l=r*Math.cos(Math.PI/98),i=Math.sqrt(Math.max(0,l**2-t.height**2));return{w:Math.max(t.width+r/4+e,1.5*r+(r-l),t.width+e+r-i),h:r}},"stadiumDimensions");async function eg(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?40:i,s="neo"===e.look?24:i,{shapeSvg:o,bbox:h}=await w(t,e,$(e)),{w:d,h:c}=ec(h,n,s),g=c/2,{cssStyles:p}=e,u=y.A.svg(o),f=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");let m=[{x:-d/2+g,y:-c/2},{x:d/2-g,y:-c/2},...D(-d/2+g,0,g,50,90,270),{x:d/2-g,y:c/2},...D(d/2-g,0,g,50,270,450)],x=k(m),M=u.path(x,f),S=o.insert(()=>M,":first-child");return S.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",p),r&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",r),b(e,S),e.intersect=function(t){return F.polygon(e,m,t)},o}async function ey(t,e){let a={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return tm(t,e,a)}function ep(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{cssStyles:n}=e,{lineColor:s,stateBorder:o,nodeBorder:h,nodeShadow:d}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let c=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),g=y.A.svg(c),p=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let u=g.circle(0,0,e.width,{...p,stroke:s,strokeWidth:2}),f=o??h,m=(e.width??0)*5/14,w=g.circle(0,0,m,{...p,fill:f,stroke:f,strokeWidth:2,fillStyle:"solid"}),x=c.insert(()=>u,":first-child");if(x.insert(()=>w),"handDrawn"!==e.look&&x.attr("class","outer-path"),n&&x.selectAll("path").attr("style",n),i&&x.selectAll("path").attr("style",i),e.width<25&&d&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";x.attr("style",`filter:url(#${a})`)}return b(e,x),e.intersect=function(t){return F.circle(e,(e.width??0)/2,t)},c}function eu(t,e,{config:{themeVariables:a}}){let r,{lineColor:i,nodeShadow:n}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=y.A.svg(s).circle(0,0,e.width,(0,l.ue)(i));(r=s.insert(()=>t)).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else(r=s.insert("circle",":first-child")).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&n&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";r.attr("style",`filter:url(#${a})`)}return b(e,r),e.intersect=function(t){return F.circle(e,(e.width??7)/2,t)},s}async function ef(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e?.padding??8,n="neo"===e.look?28:i,s="neo"===e.look?12:i,{shapeSvg:h,bbox:d}=await w(t,e,$(e)),c=Math.max(d.width+16+n,e.width??0),g=Math.max(d.height+s,e.height??0),p=c-16,u=-c/2,f=-g/2,m=[{x:0,y:0},{x:p,y:0},{x:p,y:-g},{x:0,y:-g},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-g},{x:-8,y:-g},{x:-8,y:0}];if("handDrawn"===e.look){let t=y.A.svg(h),a=(0,l.Fr)(e,{}),r=t.rectangle(u,f,p+16,g,a),i=t.line(u+8,f,u+8,f+g,a),n=t.line(u+8+p,f,u+8+p,f+g,a);h.insert(()=>i,":first-child"),h.insert(()=>n,":first-child");let s=h.insert(()=>r,":first-child"),{cssStyles:d}=e;s.attr("class","basic label-container").attr("style",(0,o.KL)(d)),b(e,s)}else{let t=j(h,p,g,m);r&&t.attr("style",r),b(e,t)}return e.intersect=function(t){return F.polygon(e,m,t)},h}async function em(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*s,10),e.width=Math.max((e?.width??0)-2*n-.2*(e.height+2*s),10));let{shapeSvg:o,bbox:h}=await w(t,e,$(e)),d=(e?.height?e?.height:h.height)+2*s,c=.2*d,g=(e?.width?e?.width:h.width)+2*n+c-c,p=-g/2,u=-d/2,{cssStyles:f}=e,m=y.A.svg(o),x=(0,l.Fr)(e,{}),M=[{x:p-c/2,y:u},{x:p+g+c/2,y:u},{x:p+g+c/2,y:u+d},{x:p-c/2,y:u+d}];"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let D=k(M),S=m.path(D,x),A=k([{x:p+g-c/2,y:u+d},{x:p+g+c/2,y:u+d},{x:p+g+c/2,y:u+d-.2*d}]),K=m.path(A,{...x,fillStyle:"solid"}),v=o.insert(()=>K,":first-child");return v.insert(()=>S,":first-child"),v.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",f),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),b(e,v),e.intersect=function(t){return F.polygon(e,M,t)},o}async function ew(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,$(e)),o=Math.max(n.width+(e.padding??0)*2,e?.width??0),h=Math.max(n.height+(e.padding??0)*2,e?.height??0),d=h/8,c=.2*o,g=.2*h,p=h+d,{cssStyles:u}=e,f=y.A.svg(i),m=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let x=[{x:-o/2-o/2*.1,y:p/2},...M(-o/2-o/2*.1,p/2,o/2+o/2*.1,p/2,d,.8),{x:o/2+o/2*.1,y:-p/2},{x:-o/2-o/2*.1,y:-p/2}],D=-o/2+o/2*.1,S=-p/2-.4*g,A=[{x:D+o-c,y:(S+h)*1.3},{x:D+o,y:S+h-g},{x:D+o,y:(S+h)*.9},...M(D+o,(S+h)*1.25,D+o-c,(S+h)*1.3,-(.02*h),.5)],K=k(x),v=f.path(K,m),C=k(A),L=f.path(C,{...m,fillStyle:"solid"}),N=i.insert(()=>L,":first-child");return N.insert(()=>v,":first-child"),N.attr("class","basic label-container outer-path"),u&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",u),r&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(0,${-d/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(n.x-(n.left??0))},${-h/2+(e.padding??0)-d/2-(n.y-(n.top??0))})`),b(e,N),e.intersect=function(t){return F.polygon(e,x,t)},i}async function ex(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n}=await w(t,e,$(e)),s=Math.max(n.width+(e.padding??0),e?.width||0),o=Math.max(n.height+(e.padding??0),e?.height||0),h=i.insert("rect",":first-child");return h.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-o/2).attr("width",s).attr("height",o),b(e,h),e.intersect=function(t){return F.rect(e,t)},i}(0,c.K)(eg,"stadium"),(0,c.K)(ey,"state"),(0,c.K)(ep,"stateEnd"),(0,c.K)(eu,"stateStart"),(0,c.K)(ef,"subroutine"),(0,c.K)(em,"taggedRect"),(0,c.K)(ew,"taggedWaveEdgedRectangle"),(0,c.K)(ex,"text");var eb=(0,c.K)((t,e,a,r,l,i)=>`M${t},${e}
|
|
3
|
+
a${l},${i} 0,0,1 0,${-r}
|
|
4
|
+
l${a},0
|
|
5
|
+
a${l},${i} 0,0,1 0,${r}
|
|
6
|
+
M${a},${-r}
|
|
7
|
+
a${l},${i} 0,0,0 0,${r}
|
|
8
|
+
l${-a},0`,"createCylinderPathD"),e$=(0,c.K)((t,e,a,r,l,i)=>`M${t},${e} M${t+a},${e} a${l},${i} 0,0,0 0,${-r} l${-a},0 a${l},${i} 0,0,0 0,${r} l${a},0`,"createOuterCylinderPathD"),ek=(0,c.K)((t,e,a,r,l,i)=>`M${t+a/2},${-r/2} a${l},${i} 0,0,0 0,${r}`,"createInnerCylinderPathD");async function eM(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?12:n/2,h=e.height??0;e.height&&(e.height=e.height-s,e.height<5&&(e.height=5)),e.width&&(e.width=e.width-s-h/2/(2.5+h/50)*3,e.width<10&&(e.width=10));let{shapeSvg:d,bbox:c,label:g}=await w(t,e,$(e)),p=Math.max(e.height??0,c.height)+s,u=p/2,f=u/(2.5+p/50),m=Math.max(e.width??0,c.width)+f+s,{cssStyles:x}=e;if("handDrawn"===e.look){let t=y.A.svg(d),r=e$(0,0,m,p,f,u),i=ek(0,0,m,p,f,u),n=t.path(r,(0,l.Fr)(e,{})),s=t.path(i,(0,l.Fr)(e,{fill:"none"}));a=d.insert(()=>s,":first-child"),(a=d.insert(()=>n,":first-child")).attr("class","basic label-container"),x&&a.attr("style",x)}else{let t=eb(0,0,m,p,f,u);(a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(x)).attr("style",i)).attr("class","basic label-container outer-path"),x&&a.selectAll("path").attr("style",x),i&&a.selectAll("path").attr("style",i)}return a.attr("label-offset-x",f),a.attr("transform",`translate(${-m/2}, ${p/2} )`),g.attr("transform",`translate(${-(c.width/2)-f-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),b(e,a),e.intersect=function(t){let a=F.rect(e,t),r=a.y-(e.y??0);if(0!=u&&(Math.abs(r)<(e.height??0)/2||Math.abs(r)==(e.height??0)/2&&Math.abs(a.x-(e.x??0))>(e.width??0)/2-f)){let l=f*f*(1-r*r/(u*u));0!=l&&(l=Math.sqrt(Math.abs(l))),l=f-l,t.x-(e.x??0)>0&&(l=-l),a.x+=l}return a},d}async function eD(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s=(e.look,n),o="neo"===e.look?2*n:n,{shapeSvg:h,bbox:d}=await w(t,e,$(e)),c=Math.max(d.height+s,e.height??0),g=Math.max(d.width+o,(e.width??0)-c),p=[{x:-3*c/6,y:0},{x:g+3*c/6,y:0},{x:g,y:-c},{x:0,y:-c}],{cssStyles:u}=e;if("handDrawn"===e.look){let t=y.A.svg(h),r=(0,l.Fr)(e,{}),i=k(p),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${c/2})`),u&&a.attr("style",u)}else a=j(h,g,c,p);return i&&a.attr("style",i),e.width=g,e.height=c,b(e,a),e.intersect=function(t){return F.polygon(e,p,t)},h}async function eS(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=(e.height??0)-2*s,e.height<5&&(e.height=5),e.width=(e.width??0)-2*n,e.width<15&&(e.width=15));let{shapeSvg:o,bbox:h}=await w(t,e,$(e)),d=(e?.width?e?.width:h.width)+2*n,c=(e?.height?e?.height:h.height)+2*s,{cssStyles:g}=e,p=y.A.svg(o),u=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let f=[{x:-d/2*.8,y:-c/2},{x:d/2*.8,y:-c/2},{x:d/2,y:-c/2*.6},{x:d/2,y:c/2},{x:-d/2,y:c/2},{x:-d/2,y:-c/2*.6}],m=k(f),x=p.path(m,u),M=o.insert(()=>x,":first-child");return M.attr("class","basic label-container outer-path"),g&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",g),r&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",r),b(e,M),e.intersect=function(t){return F.polygon(e,f,t)},o}async function eA(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.width=((e?.width??0)-n)/2,e.width<10&&(e.width=10),e.height=e?.height??0,e.height<10&&(e.height=10));let{shapeSvg:s,bbox:o,label:c}=await w(t,e,$(e)),g=(0,h._3)((0,h.D7)().flowchart?.htmlLabels),p=(e?.width?e?.width:o.width)+n,u=e?.height?e?.height:p+o.height,f=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-u}],{cssStyles:m}=e,x=y.A.svg(s),M=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=k(f),S=x.path(D,M),A=s.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return m&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",m),r&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",r),e.width=p,e.height=u,b(e,A),c.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${u/2-(o.height+(e.padding??0)/(g?2:1)-(o.y-(o.top??0)))})`),e.intersect=function(t){return d.R.info("Triangle intersect",e,f,t),F.polygon(e,f,t)},s}async function eK(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,o=!0;(e.width||e.height)&&(o=!1,e.width=(e?.width??0)-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10));let{shapeSvg:h,bbox:d,label:c}=await w(t,e,$(e)),g=(e?.width?e?.width:d.width)+(n??0)*2,p=(e?.height?e?.height:d.height)+(s??0)*2,u="neo"===e.look?p/4:p/8,f=p+(o?u:-u),{cssStyles:m}=e,x=14-g,D=x>0?x/2:0,S=y.A.svg(h),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=[{x:-g/2-D,y:f/2},...M(-g/2-D,f/2,g/2+D,f/2,u,.8),{x:g/2+D,y:-f/2},{x:-g/2-D,y:-f/2}],v=k(K),C=S.path(v,A),L=h.insert(()=>C,":first-child");return L.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",r),L.attr("transform",`translate(0,${-u/2})`),c.attr("transform",`translate(${-g/2+(e.padding??0)-(d.x-(d.left??0))},${-p/2+(e.padding??0)-u-(d.y-(d.top??0))})`),b(e,L),e.intersect=function(t){return F.polygon(e,K,t)},h}async function ev(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?20:i;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);let t=Math.min(.2*e.height,e.height/4);e.height=Math.ceil(e.height-s-20/9*t),e.width=e.width-2*n}let{shapeSvg:o,bbox:h}=await w(t,e,$(e)),d=(e?.width?e?.width:h.width)+2*n,c=(e?.height?e?.height:h.height)+s,g=c/8,p=c+2*g,{cssStyles:u}=e,f=y.A.svg(o),m=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let x=[{x:-d/2,y:p/2},...M(-d/2,p/2,d/2,p/2,g,1),{x:d/2,y:-p/2},...M(d/2,-p/2,-d/2,-p/2,g,-1)],D=k(x),S=f.path(D,m),A=o.insert(()=>S,":first-child");return A.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",u),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),b(e,A),e.intersect=function(t){return F.polygon(e,x,t)},o}async function eC(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*i-10,10),e.height=Math.max((e?.height??0)-2*n-10,10));let{shapeSvg:s,bbox:o,label:h}=await w(t,e,$(e)),d=(e?.width?e?.width:o.width)+2*i+10,c=(e?.height?e?.height:o.height)+2*n+10,g=d-10,p=c-10,u=-g/2,f=-p/2,{cssStyles:m}=e,x=y.A.svg(s),k=(0,l.Fr)(e,{}),M=[{x:u-10,y:f-10},{x:u-10,y:f+p},{x:u+g,y:f+p},{x:u+g,y:f-10}],D=`M${u-10},${f-10} L${u+g},${f-10} L${u+g},${f+p} L${u-10},${f+p} L${u-10},${f-10}
|
|
9
|
+
M${u-10},${f} L${u+g},${f}
|
|
10
|
+
M${u},${f-10} L${u},${f+p}`;"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let S=x.path(D,k),A=s.insert(()=>S,":first-child");return A.attr("transform","translate(5, 5)"),A.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),h.attr("transform",`translate(${-(o.width/2)+5-(o.x-(o.left??0))}, ${-(o.height/2)+5-(o.y-(o.top??0))})`),b(e,A),e.intersect=function(t){return F.polygon(e,M,t)},s}(0,c.K)(eM,"tiltedCylinder"),(0,c.K)(eD,"trapezoid"),(0,c.K)(eS,"trapezoidalPentagon"),(0,c.K)(eA,"triangle"),(0,c.K)(eK,"waveEdgedRectangle"),(0,c.K)(ev,"waveRectangle"),(0,c.K)(eC,"windowPane");var eL=new Set(["redux-color","redux-dark-color"]),eN=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function eB(t,e){e.alias&&(e.label=e.alias);let{theme:a,themeVariables:r}=(0,h.zj)(),{rowEven:i,rowOdd:n,nodeBorder:s,borderColorArray:d}=r;if("handDrawn"===e.look){let{themeVariables:a}=(0,h.zj)(),{background:r}=a,l={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${r}`]};await eB(t,l)}let c=(0,h.zj)();e.useHtmlLabels=c.htmlLabels;let p=c.er?.diagramPadding??10,u=c.er?.entityPadding??6,{cssStyles:f}=e,{labelStyles:m,nodeStyles:w}=(0,l.GX)(e);if(0===e.attributes.length&&e.label){let r={rx:0,ry:0,labelPaddingX:p,labelPaddingY:1.5*p,classes:""};(0,o.Un)(e.label,c)+2*r.labelPaddingX<c.er.minEntityWidth&&(e.width=c.er.minEntityWidth);let l=await tm(t,e,r);if(null!=a&&eL.has(a)){let t=e.colorIndex??0;l.attr("data-color-id",`color-${t%d.length}`)}if(!(0,h._3)(c.htmlLabels)){let t=l.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return l}c.htmlLabels||(p*=1.25,u*=1.25);let x=$(e);x||(x="node default");let k=t.insert("g").attr("class",x).attr("id",e.domId||e.id),M=await eF(k,e.label??"",c,0,0,["name"],m);M.height+=u;let D=0,S=[],A=[],K=0,v=0,C=0,L=0,N=!0,B=!0;for(let t of e.attributes){let e=await eF(k,t.type,c,0,D,["attribute-type"],m);K=Math.max(K,e.width+p);let a=await eF(k,t.name,c,0,D,["attribute-name"],m);v=Math.max(v,a.width+p);let r=await eF(k,t.keys.join(),c,0,D,["attribute-keys"],m);C=Math.max(C,r.width+p);let l=await eF(k,t.comment,c,0,D,["attribute-comment"],m);L=Math.max(L,l.width+p);let i=Math.max(e.height,a.height,r.height,l.height)+u;A.push({yOffset:D,rowHeight:i}),D+=i}let R=4;C<=p&&(N=!1,C=0,R--),L<=p&&(B=!1,L=0,R--);let P=k.node().getBBox();if(M.width+2*p-(K+v+C+L)>0){let t=M.width+2*p-(K+v+C+L);K+=t/R,v+=t/R,C>0&&(C+=t/R),L>0&&(L+=t/R)}let X=K+v+C+L,G=y.A.svg(k),I=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(I.roughness=0,I.fillStyle="solid");let W=0;A.length>0&&(W=A.reduce((t,e)=>t+(e?.rowHeight??0),0));let H=Math.max(P.width+2*p,e?.width||0,X),E=Math.max((W??0)+M.height,e?.height||0),T=-H/2,j=-E/2;if(k.selectAll("g:not(:first-child)").each((t,e,a)=>{let r=(0,g.Lt)(a[e]),l=r.attr("transform"),i=0,n=0;if(l){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(l);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]),r.attr("class").includes("attribute-name")?i+=K:r.attr("class").includes("attribute-keys")?i+=K+v:r.attr("class").includes("attribute-comment")&&(i+=K+v+C))}r.attr("transform",`translate(${T+p/2+i}, ${n+j+M.height+u/2})`)}),k.select(".name").attr("transform","translate("+-M.width/2+", "+(j+u/2)+")"),null!=a&&eL.has(a)){let t=e.colorIndex??0;k.attr("data-color-id",`color-${t%d.length}`)}let q=G.rectangle(T,j,H,E,I),Z=k.insert(()=>q,":first-child").attr("class","outer-path").attr("style",f.join(""));for(let[t,e]of(S.push(0),A.entries())){let a=(t+1)%2==0&&0!==e.yOffset,r=G.rectangle(T,M.height+j+e?.yOffset,H,e?.rowHeight,{...I,fill:a?i:n,stroke:s});k.insert(()=>r,"g.label").attr("style",f.join("")).attr("class",`row-rect-${a?"even":"odd"}`)}let _=eR(T,M.height+j,H+T,M.height+j,1e-4),z=G.polygon(_.map(t=>[t.x,t.y]),I);if(k.insert(()=>z).attr("class","divider"),_=eR(K+T,M.height+j,K+T,E+j,1e-4),z=G.polygon(_.map(t=>[t.x,t.y]),I),k.insert(()=>z).attr("class","divider"),N){let t=K+v+T;_=eR(t,M.height+j,t,E+j,1e-4),z=G.polygon(_.map(t=>[t.x,t.y]),I),k.insert(()=>z).attr("class","divider")}if(B){let t=K+v+C+T;_=eR(t,M.height+j,t,E+j,1e-4),z=G.polygon(_.map(t=>[t.x,t.y]),I),k.insert(()=>z).attr("class","divider")}for(let t of S){let e=M.height+j+t;_=eR(T,e,H+T,e,1e-4),z=G.polygon(_.map(t=>[t.x,t.y]),I),k.insert(()=>z).attr("class","divider")}if(b(e,Z),w&&"handDrawn"!==e.look)if(null!=a&&eN.has(a))k.selectAll("path").attr("style",w);else{let t=w.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");k.selectAll("path").attr("style",e??""),k.selectAll(".row-rect-even path").attr("style",w)}return e.intersect=function(t){return F.rect(e,t)},k}async function eF(t,e,a,r=0,l=0,n=[],s=""){let d=t.insert("g").attr("class",`label ${n.join(" ")}`).attr("transform",`translate(${r}, ${l})`).attr("style",s);e!==(0,h.QO)(e)&&(e=(e=(0,h.QO)(e)).replaceAll("<","<").replaceAll(">",">"));let c=d.node().appendChild(await (0,i.GZ)(d,e,{width:(0,o.Un)(e,a)+100,style:s,useHtmlLabels:a.htmlLabels},a));if(e.includes("<")||e.includes(">")){let t=c.children[0];for(t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("<","<").replaceAll(">",">")}let y=c.getBBox();if((0,h._3)(a.htmlLabels)){let t=c.children[0];t.style.textAlign="start";let e=(0,g.Lt)(c);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return y}function eR(t,e,a,r,l){return t===a?[{x:t-l/2,y:e},{x:t+l/2,y:e},{x:a+l/2,y:r},{x:a-l/2,y:r}]:[{x:t,y:e-l/2},{x:t,y:e+l/2},{x:a,y:r+l/2},{x:a,y:r-l/2}]}async function eP(t,e,a,r,l=a.class.padding??12){let i=3*!r,n=t.insert("g").attr("class",$(e)).attr("id",e.domId||e.id),s=null,o=null,h=null,d=null,c=0,g=0,y=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await eX(s,{text:`\xab${t}\xbb`},0),c=s.node().getBBox().height}o=n.insert("g").attr("class","label-group text"),await eX(o,e,0,["font-weight: bolder"]);let p=o.node().getBBox();g=p.height,h=n.insert("g").attr("class","members-group text");let u=0;for(let t of e.members){let e=await eX(h,t,u,[t.parseClassifier()]);u+=e+i}(y=h.node().getBBox().height)<=0&&(y=l/2),d=n.insert("g").attr("class","methods-group text");let f=0;for(let t of e.methods){let e=await eX(d,t,f,[t.parseClassifier()]);f+=e+i}let m=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return o.attr("transform",`translate(${-p.width/2}, ${c})`),m=n.node().getBBox(),h.attr("transform",`translate(0, ${c+g+2*l})`),m=n.node().getBBox(),d.attr("transform",`translate(0, ${c+g+(y?y+4*l:2*l)})`),m=n.node().getBBox(),{shapeSvg:n,bbox:m}}async function eX(t,e,a,r=[]){let l,n=t.insert("g").attr("class","label").attr("style",r.join("; ")),s=(0,h.zj)(),d="useHtmlLabels"in e?e.useHtmlLabels:(0,h._3)(s.htmlLabels)??!0,c="";c="text"in e?e.text:e.label,!d&&c.startsWith("\\")&&(c=c.substring(1)),(0,h.Wi)(c)&&(d=!0);let y=await (0,i.GZ)(n,(0,h.oB)((0,o.Sm)(c)),{width:(0,o.Un)(c,s)+50,classes:"markdown-node-label",useHtmlLabels:d},s),u=1;if(d){let t=y.children[0],e=(0,g.Lt)(y);u=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(u+=t.innerHTML.split("<mrow>").length-1),await p(t),l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}else{r.includes("font-weight: bolder")&&(0,g.Lt)(y).selectAll("tspan").attr("font-weight",""),u=y.children.length;let t=y.children[0];(""===y.textContent||y.textContent.includes(">"))&&(t.textContent=c[0]+c.substring(1).replaceAll(">",">").replaceAll("<","<").trim()," "===c[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),l=y.getBBox()}return n.attr("transform","translate(0,"+(-l.height/(2*u)+a)+")"),l.height}async function eG(t,e){let a=(0,h.D7)(),{theme:r,themeVariables:i}=a,{useGradient:n,borderColorArray:o}=i,d=a.class.padding??12,c=e.useHtmlLabels??(0,h._3)(a.htmlLabels)??!0;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:p,bbox:u}=await eP(t,e,a,c,d);(0,s.XE)(p,e.colorIndex,r,o);let{labelStyles:f,nodeStyles:m}=(0,l.GX)(e);e.labelStyle=f,e.cssStyles=e.styles||"";let w=e.styles?.join(";")||m||"";e.cssStyles||(e.cssStyles=w.replaceAll("!important","").split(";"));let x=0===e.members.length&&0===e.methods.length&&!a.class?.hideEmptyMembersBox,$=y.A.svg(p),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=Math.max(e.width??0,u.width),D=Math.max(e.height??0,u.height),S=(e.height??0)>u.height;0===e.members.length&&0===e.methods.length?D+=d:e.members.length>0&&0===e.methods.length&&(D+=2*d);let A=-M/2,K=-D/2,v=x?2*d:0===e.members.length&&0===e.methods.length?-d:0;S&&(v=2*d);let C=$.rectangle(A-d,K-d-(x?d:0===e.members.length&&0===e.methods.length?-d/2:0),M+2*d,D+2*d+v,k),L=p.insert(()=>C,":first-child");L.attr("class","basic label-container outer-path");let N=L.node().getBBox(),B=p.select(".annotation-group").node().getBBox().height-(x?d/2:0)||0,R=p.select(".label-group").node().getBBox().height-(x?d/2:0)||0,P=p.select(".members-group").node().getBBox().height-(x?d/2:0)||0,X=(B+R+K+d-(K-d-(x?d:0===e.members.length&&0===e.methods.length?-d/2:0)))/2;if(p.selectAll(".text").each((t,r,l)=>{let i=(0,g.Lt)(l[r]),n=i.attr("transform"),s=0;if(n){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(s=parseFloat(t[2]))}let o=s+K+d-(x?d:0===e.members.length&&0===e.methods.length?-d/2:0);if(i.attr("class").includes("methods-group")){let t=Math.max(P,d/2);o=S?Math.max(X,B+R+t+K+2*d+d)+2*d:B+R+t+K+4*d+d}0===e.members.length&&0===e.methods.length&&a.class?.hideEmptyMembersBox&&(o=e.annotations.length>0?s-d:s),c||(o-=4);let h=A;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(h=-i.node()?.getBBox().width/2||0,p.selectAll("text").each(function(t,e,a){"middle"===window.getComputedStyle(a[e]).textAnchor&&(h=0)})),i.attr("transform",`translate(${h}, ${o})`)}),e.members.length>0||e.methods.length>0||x){let t=B+R+K+d,a=$.line(N.x,t,N.x+N.width,t+.001,k);p.insert(()=>a).attr("class",`divider${"neo"===e.look&&!n?" neo-line":""}`).attr("style",w)}if(x||e.members.length>0||e.methods.length>0){let t=B+R+P+K+2*d+d,a=$.line(N.x,S?Math.max(X,t):t,N.x+N.width,(S?Math.max(X,t):t)+.001,k);p.insert(()=>a).attr("class",`divider${"neo"===e.look&&!n?" neo-line":""}`).attr("style",w)}if("handDrawn"!==e.look&&p.selectAll("path").attr("style",w),L.select(":nth-child(2)").attr("style",w),p.selectAll(".divider").select("path").attr("style",w),e.labelStyle?p.selectAll("span").attr("style",e.labelStyle):p.selectAll("span").attr("style",w),!c){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(w);if(e){let t=e[0].replace("color","fill");p.selectAll("tspan").attr("style",t)}else if(f){let e=t.exec(f);if(e){let t=e[0].replace("color","fill");p.selectAll("tspan").attr("style",t)}}}return b(e,L),e.intersect=function(t){return F.rect(e,t)},p}async function eI(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n="verifyMethod"in e,s=$(e),o=(0,h.D7)(),{themeVariables:d}=o,{borderColorArray:c,requirementEdgeLabelBackground:p}=d,u="elk"===o.layout?"start":"center",f=t.insert("g").attr("class",s).attr("id",e.domId??e.id),m=a=n?await eW(f,`<<${e.type}>>`,0,e.labelStyle):await eW(f,"<<Element>>",0,e.labelStyle),w=await eW(f,e.name,m,e.labelStyle+"; font-weight: bold;");if(m+=w+20,n){let t=await eW(f,`${e.requirementId?`ID: ${e.requirementId}`:""}`,m,e.labelStyle,u);m+=t;let a=await eW(f,`${e.text?`Text: ${e.text}`:""}`,m,e.labelStyle,u);m+=a;let r=await eW(f,`${e.risk?`Risk: ${e.risk}`:""}`,m,e.labelStyle,u);m+=r,await eW(f,`${e.verifyMethod?`Verification: ${e.verifyMethod}`:""}`,m,e.labelStyle,u)}else{let t=await eW(f,`${e.type?`Type: ${e.type}`:""}`,m,e.labelStyle,u);m+=t,await eW(f,`${e.docRef?`Doc Ref: ${e.docRef}`:""}`,m,e.labelStyle,u)}let x=(f.node()?.getBBox().width??200)+20,k=(f.node()?.getBBox().height??200)+20,M=-x/2,D=-k/2,S=y.A.svg(f),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=S.rectangle(M,D,x,k,A),v=f.insert(()=>K,":first-child");if(v.attr("class","basic label-container outer-path").attr("style",i),c?.length){let t=e.colorIndex??0;f.attr("data-color-id",`color-${t%c.length}`)}if(f.selectAll(".label").each((t,e,a)=>{let r=(0,g.Lt)(a[e]),l=r.attr("transform"),i=0,n=0;if(l){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(l);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]))}let s=n-k/2,o=M+10;(0===e||1===e)&&(o=i),r.attr("transform",`translate(${o}, ${s+20})`)}),m>a+w+20){let t,r=D+a+w+20;if("neo"===e.look){let e=[[M,r],[M+x,r],[M+x,r+.001],[M,r+.001]];t=S.polygon(e,A)}else t=S.line(M,r,M+x,r,A);f.insert(()=>t).attr("class","divider")}return b(e,v),e.intersect=function(t){return F.rect(e,t)},i&&"handDrawn"!==e.look&&(p||c?.length)&&f.selectAll("path").attr("style",i),f}async function eW(t,e,a,r="",l="center"){let n;if(""===e)return 0;let s=t.insert("g").attr("class","label").attr("style",r),d=(0,h.D7)(),c=d.htmlLabels??!0,y=await (0,i.GZ)(s,(0,h.oB)((0,o.Sm)(e)),{width:(0,o.Un)(e,d)+50,classes:"markdown-node-label",useHtmlLabels:c,style:r},d);if(c){let t=y.children[0],e=(0,g.Lt)(y);"start"===l&&(0,g.Lt)(t).style("text-align","left"),n=t.getBoundingClientRect(),e.attr("width",n.width),e.attr("height",n.height)}else{let t=y.children[0];for(let e of t.children)r&&e.setAttribute("style",r);if("start"===l)for(let e of(t.setAttribute("text-anchor","start"),t.children))e.setAttribute("text-anchor","start");n=y.getBBox(),n.height+=6}return s.attr("transform",`translate(${-n.width/2},${-n.height/2+a})`),n.height}(0,c.K)(eB,"erBox"),(0,c.K)(eF,"addText"),(0,c.K)(eR,"lineToPolygon"),(0,c.K)(eP,"textHelper"),(0,c.K)(eX,"addText"),(0,c.K)(eG,"classBox"),(0,c.K)(eI,"requirementBox"),(0,c.K)(eW,"addText");var eH=(0,c.K)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function eE(t,e,{config:a}){let r,i,n,s,{labelStyles:o,nodeStyles:h}=(0,l.GX)(e);e.labelStyle=o||"";let d=e.width;e.width=(e.width??200)-10;let{shapeSvg:c,bbox:g,label:p}=await w(t,e,$(e)),u=e.padding||10,f="";"ticket"in e&&e.ticket&&a?.kanban?.ticketBaseUrl&&(f=a?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),r=c.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",f).attr("target","_blank"));let m={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};r?{label:i,bbox:n}=await x(r,"ticket"in e&&e.ticket||"",m):{label:i,bbox:n}=await x(c,"ticket"in e&&e.ticket||"",m);let{label:k,bbox:M}=await x(c,"assigned"in e&&e.assigned||"",m);e.width=d;let D=e?.width||0,S=Math.max(n.height,M.height)/2,A=Math.max(g.height+20,e?.height||0)+S,K=-D/2,v=-A/2;p.attr("transform","translate("+(u-D/2)+", "+(-S-g.height/2)+")"),i.attr("transform","translate("+(u-D/2)+", "+(-S+g.height/2)+")"),k.attr("transform","translate("+(u+D/2-M.width-20)+", "+(-S+g.height/2)+")");let{rx:C,ry:L}=e,{cssStyles:N}=e;if("handDrawn"===e.look){let t=y.A.svg(c),a=(0,l.Fr)(e,{}),r=C||L?t.path(R(K,v,D,A,C||0),a):t.rectangle(K,v,D,A,a);(s=c.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",N||null)}else{(s=c.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",h).attr("rx",C??5).attr("ry",L??5).attr("x",K).attr("y",v).attr("width",D).attr("height",A);let t="priority"in e&&e.priority;if(t){let e=c.append("line"),a=K+2,r=v+Math.floor((C??0)/2),l=v+A-Math.floor((C??0)/2);e.attr("x1",a).attr("y1",r).attr("x2",a).attr("y2",l).attr("stroke-width","4").attr("stroke",eH(t))}}return b(e,s),e.height=A,e.intersect=function(t){return F.rect(e,t)},c}async function eT(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,halfPadding:h,label:c}=await w(t,e,$(e)),g=s.width+10*h,p=s.height+8*h,u=.15*g,{cssStyles:f}=e,m=s.width+20,x=s.height+20,k=Math.max(g,m),M=Math.max(p,x);c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let D=`M0 0
|
|
11
|
+
a${u},${u} 1 0,0 ${.25*k},${-1*M*.1}
|
|
12
|
+
a${u},${u} 1 0,0 ${.25*k},0
|
|
13
|
+
a${u},${u} 1 0,0 ${.25*k},0
|
|
14
|
+
a${u},${u} 1 0,0 ${.25*k},${.1*M}
|
|
15
|
+
|
|
16
|
+
a${u},${u} 1 0,0 ${.15*k},${.33*M}
|
|
17
|
+
a${.8*u},${.8*u} 1 0,0 0,${.34*M}
|
|
18
|
+
a${u},${u} 1 0,0 ${-1*k*.15},${.33*M}
|
|
19
|
+
|
|
20
|
+
a${u},${u} 1 0,0 ${-1*k*.25},${.15*M}
|
|
21
|
+
a${u},${u} 1 0,0 ${-1*k*.25},0
|
|
22
|
+
a${u},${u} 1 0,0 ${-1*k*.25},0
|
|
23
|
+
a${u},${u} 1 0,0 ${-1*k*.25},${-1*M*.15}
|
|
24
|
+
|
|
25
|
+
a${u},${u} 1 0,0 ${-1*k*.1},${-1*M*.33}
|
|
26
|
+
a${.8*u},${.8*u} 1 0,0 0,${-1*M*.34}
|
|
27
|
+
a${u},${u} 1 0,0 ${.1*k},${-1*M*.33}
|
|
28
|
+
H0 V0 Z`;if("handDrawn"===e.look){let t=y.A.svg(n),r=(0,l.Fr)(e,{}),i=t.path(D,r);(a=n.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,o.KL)(f))}else a=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",D);return a.attr("transform",`translate(${-k/2}, ${-M/2})`),b(e,a),e.calcIntersect=function(t,e){return F.rect(t,e)},e.intersect=function(t){return d.R.info("Bang intersect",e,t),F.rect(e,t)},n}async function ej(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,halfPadding:h,label:c}=await w(t,e,$(e)),g=s.width+2*h,p=s.height+2*h,u=.15*g,f=.25*g,m=.35*g,x=.2*g,{cssStyles:k}=e,M=`M0 0
|
|
29
|
+
a${u},${u} 0 0,1 ${.25*g},${-1*g*.1}
|
|
30
|
+
a${m},${m} 1 0,1 ${.4*g},${-1*g*.1}
|
|
31
|
+
a${f},${f} 1 0,1 ${.35*g},${.2*g}
|
|
32
|
+
|
|
33
|
+
a${u},${u} 1 0,1 ${.15*g},${.35*p}
|
|
34
|
+
a${x},${x} 1 0,1 ${-1*g*.15},${.65*p}
|
|
35
|
+
|
|
36
|
+
a${f},${u} 1 0,1 ${-1*g*.25},${.15*g}
|
|
37
|
+
a${m},${m} 1 0,1 ${-1*g*.5},0
|
|
38
|
+
a${u},${u} 1 0,1 ${-1*g*.25},${-1*g*.15}
|
|
39
|
+
|
|
40
|
+
a${u},${u} 1 0,1 ${-1*g*.1},${-1*p*.35}
|
|
41
|
+
a${x},${x} 1 0,1 ${.1*g},${-1*p*.65}
|
|
42
|
+
H0 V0 Z`;if("handDrawn"===e.look){let t=y.A.svg(n),r=(0,l.Fr)(e,{}),i=t.path(M,r);(a=n.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,o.KL)(k))}else a=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",M);return c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),a.attr("transform",`translate(${-g/2}, ${-p/2})`),b(e,a),e.calcIntersect=function(t,e){return F.rect(t,e)},e.intersect=function(t){return d.R.info("Cloud intersect",e,t),F.rect(e,t)},n}async function eq(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,halfPadding:s,label:o}=await w(t,e,$(e)),h=n.width+8*s,d=n.height+2*s,c="neo"===e.look?`
|
|
43
|
+
M${-h/2} ${d/2-5}
|
|
44
|
+
v${-d+10}
|
|
45
|
+
q0,-5 5,-5
|
|
46
|
+
h${h-10}
|
|
47
|
+
q5,0 5,5
|
|
48
|
+
v${d-5}
|
|
49
|
+
H${-h/2}
|
|
50
|
+
Z
|
|
51
|
+
`:`
|
|
52
|
+
M${-h/2} ${d/2-5}
|
|
53
|
+
v${-d+10}
|
|
54
|
+
q0,-5 5,-5
|
|
55
|
+
h${h-10}
|
|
56
|
+
q5,0 5,5
|
|
57
|
+
v${d-10}
|
|
58
|
+
q0,5 -5,5
|
|
59
|
+
h${-(h-10)}
|
|
60
|
+
q-5,0 -5,-5
|
|
61
|
+
Z
|
|
62
|
+
`;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let g=i.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",r).attr("d",c);return i.append("line").attr("class","node-line-").attr("x1",-h/2).attr("y1",d/2).attr("x2",h/2).attr("y2",d/2),o.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),i.append(()=>o.node()),b(e,g),e.calcIntersect=function(t,e){return F.rect(t,e)},e.intersect=function(t){return F.rect(e,t)},i}async function eZ(t,e){let a={padding:e.padding??0};return tt(t,e,a)}(0,c.K)(eE,"kanbanItem"),(0,c.K)(eT,"bang"),(0,c.K)(ej,"cloud"),(0,c.K)(eq,"defaultMindmapNode"),(0,c.K)(eZ,"mindmapCircle");var e_={start:{rings:1,strokeWidth:1.6},intermediate:{rings:2,strokeWidth:1.4},boundary:{rings:2,strokeWidth:1.4},end:{rings:1,strokeWidth:3.4}};async function ez(){return r??=a.e(2202).then(a.bind(a,2202)).then(({bpmnIcons:t})=>{(0,n.rb)(t.prefix)||(0,n.pC)([{name:t.prefix,icons:t}])})}function eO(t){let e=t.metadata?.dataDirection;return"input"===e||"output"===e?e:void 0}function eV(t){return t.metadata?.isCollection===!0}async function eY(t,e){return await ez(),(0,n.WY)(t,{height:e,width:e,fallbackPrefix:"bpmn"})}(0,c.K)(ez,"ensureBpmnIcons"),(0,c.K)(eO,"dataDirectionOf"),(0,c.K)(eV,"isCollectionData"),(0,c.K)(eY,"glyphSvg");var eJ=(0,c.K)((t,e,a)=>{let r=(e.x??0)-(e.left??0),l=(e.y??0)-(e.top??0);t.attr("transform",`translate(${-e.width/2-r},${a-e.height/2-l})`)},"positionLabelBelow"),eU=(0,c.K)(async(t,e,a)=>{if(!e)return;let r=t.append("g").attr("class","bpmn-glyph");r.html(`<g>${await eY(e,a)}</g>`),r.attr("transform",`translate(${-a/2}, ${-a/2})`)},"appendGlyph"),eQ=(0,c.K)((t,e,a,r,l)=>{l&&(e.metadata={...e.metadata??{},drawnExtent:l});let i=t.insert("rect",":first-child").attr("class","bpmn-bounds").attr("x",-a/2).attr("y",-r/2).attr("width",a).attr("height",r).attr("opacity",0).attr("aria-hidden","true");return b(e,i),i},"reserveBounds"),e0=(0,c.K)((t,e,a)=>Math.min(Math.max(t,e),a),"clamp"),e2=(0,c.K)((t,e,a,r,l)=>{let i=t.x??0,n=t.y??0,s=e/2,o=a/2,h=r.x-i,d=r.y-n,g=l??(Math.abs(h)*o>Math.abs(d)*s?h>=0?"right":"left":d>=0?"bottom":"top"),y=(0,c.K)(t=>Math.max(0,t-Math.min(8,t/2)),"reach");return"left"===g||"right"===g?{x:i+("right"===g?s:-s),y:e0(r.y,n-y(o),n+y(o))}:{x:e0(r.x,i-y(s),i+y(s)),y:n+("bottom"===g?o:-o)}},"faceProjectIntersect"),e1=(0,c.K)((t,e,a)=>{let r=t.x??0,l=t.y??0,i=e/2,n=a.x-r,s=a.y-l,o=.85*i;if(Math.abs(s)>=Math.abs(n)){let t=e0(n,-o,o);return{x:r+t,y:l+Math.sign(s||1)*Math.sqrt(i*i-t*t)}}let h=e0(s,-o,o);return{x:r+Math.sign(n||1)*Math.sqrt(i*i-h*h),y:l+h}},"ringIntersect"),e5=(0,c.K)((t,e,a,r)=>{let l=t.x??0,i=t.y??0,n=e/2,s=a/2,o=r.x-l,h=r.y-i;return Math.abs(o)*s>Math.abs(h)*n?{x:l+Math.sign(o)*n,y:i}:{x:l,y:i+Math.sign(h||1)*s}},"faceCentreIntersect");async function e8(t,e,a){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{rings:n,strokeWidth:s}=e_[a],{shapeSvg:o,bbox:h,label:d}=await w(t,e,$(e,`bpmn-event bpmn-event-${a}`)),c=o.insert("g",":first-child").attr("class","bpmn-event-body");c.attr("style",i);for(let t=0;t<n;t++)c.append("circle").attr("class",0===t?"bpmn-event-ring":"bpmn-event-ring bpmn-event-ring-inner").attr("r",18-3*t).style("stroke-width",`${s}px`);await eU(c,e.icon,16);let g=h.height>0&&!!e.label,y=g?6+h.height:0,p=Math.max(36,g?h.width:0);return g&&eJ(d,h,24+h.height/2),eQ(o,e,p,36+2*y,{width:36,height:36}),e.intersect=function(t){return e1(e,36,t)},o}async function e3(t,e){return e8(t,e,"start")}async function e4(t,e){return e8(t,e,"intermediate")}async function e6(t,e){return e8(t,e,"boundary")}async function e7(t,e){return e8(t,e,"end")}async function e9(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,$(e,"bpmn-gateway")),o=i.insert("g",":first-child").attr("class","bpmn-gateway-body");o.append("polygon").attr("class","bpmn-gateway-diamond").attr("points",`0,${-25} 25,0 0,25 ${-25},0`).attr("style",r),await eU(o,e.icon,18);let h=n.height>0&&!!e.label,d=h?6+n.height:0,c=Math.max(50,h?n.width:0);return h&&eJ(s,n,31+n.height/2),eQ(i,e,c,50+2*d,{width:50,height:50}),e.intersect=function(t){return e5(e,50,50,t)},i}async function at(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,$(e,"bpmn-activity")),o=e.markers??[],h=e.icon,d=h?22:10,c=o.length>0?20:10,g=Math.max(100,n.width+16),y=Math.max(80,n.height+d+c),p=i.insert("g",":first-child").attr("class","bpmn-activity-body");if(p.append("rect").attr("class","bpmn-activity-rect").attr("x",-g/2).attr("y",-y/2).attr("width",g).attr("height",y).attr("rx",10).attr("ry",10).attr("style",r),h){let t=p.append("g").attr("class","bpmn-activity-icon");t.html(`<g>${await eY(h,16)}</g>`),t.attr("transform",`translate(${-g/2+6}, ${-y/2+6})`)}if(o.length>0){let t=p.append("g").attr("class","bpmn-activity-markers"),e=14*o.length;for(let[a,r]of o.entries()){let l=t.append("g");l.html(`<g>${await eY(r,14)}</g>`),l.attr("transform",`translate(${-e/2+14*a}, 0)`)}t.attr("transform",`translate(0, ${y/2-14-3})`)}return n.height>0&&eJ(s,n,(-y/2+d+(y/2-c))/2),b(e,p),e.intersect=function(t){return e2(e,g,y,t)},i}async function ae(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,$(e,"bpmn-data-object")),o=i.insert("g",":first-child").attr("class","bpmn-data-body");o.append("path").attr("class","bpmn-data-page").attr("d",`M-18,-25 H${8} L18,${-15} V25 H-18 Z`).attr("style",r),o.append("path").attr("class","bpmn-data-fold").attr("d",`M${8},-25 V${-15} H18`);let h=eO(e);h&&o.append("path").attr("class",`bpmn-data-arrow bpmn-data-arrow-${h}`).attr("d",`M${-14},${-16} h7 v-3 l5,4.5 -5,4.5 v-3 h-7 Z`),eV(e)&&o.append("path").attr("class","bpmn-data-collection").attr("d",`M-4,${14} v9 M0,${14} v9 M4,${14} v9`);let d=n.height>0&&!!e.label,c=d?6+n.height:0,g=Math.max(36,d?n.width:0);return d&&eJ(s,n,31+n.height/2),eQ(i,e,g,50+2*c,{width:36,height:50}),e.intersect=function(t){return e2(e,36,50,t)},i}async function aa(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,$(e,"bpmn-data-store")),o=i.insert("g",":first-child").attr("class","bpmn-data-body");for(let t of(o.append("path").attr("class","bpmn-store-body").attr("d",`M${-25},${-19} a25,6 0 0 1 50,0 V${19} a25,6 0 0 1 -50,0 Z`).attr("style",r),[0,5,10]))o.append("path").attr("class","bpmn-store-rings").attr("d",`M${-25},${-19+t} a25,6 0 0 0 50,0`);let h=n.height>0&&!!e.label,d=h?6+n.height:0,c=Math.max(50,h?n.width:0);return h&&eJ(s,n,31+n.height/2),eQ(i,e,c,50+2*d,{width:50,height:50}),e.intersect=function(t){return e2(e,50,50,t)},i}async function ar(t,e){let{labelStyles:a}=(0,l.GX)(e);e.labelStyle=a,e.wrappingWidth=160;let{shapeSvg:r,bbox:i,label:n}=await w(t,e,$(e,"bpmn-annotation")),s=Math.max(28,i.height+16),o=i.width+16+6,h=e.metadata?.attachFace==="right"?"right":"left";r.insert("g",":first-child").attr("class","bpmn-annotation-body").append("path").attr("class","bpmn-annotation-bracket").attr("d","right"===h?`M${o/2-6},${-s/2} h6 V${s/2} h-6`:`M${-o/2+6},${-s/2} h-6 V${s/2} h6`);let d="right"===h?-o/2+8:-o/2+8+6;return n.attr("transform",`translate(${d-(i.x??0)+(i.left??0)},${-i.height/2-((i.y??0)-(i.top??0))})`),eQ(r,e,o,s),e.intersect=function(t){return e2(e,o,s,t,h)},r}(0,c.K)(e8,"renderBpmnEvent"),(0,c.K)(e3,"bpmnStart"),(0,c.K)(e4,"bpmnIntermediate"),(0,c.K)(e6,"bpmnBoundary"),(0,c.K)(e7,"bpmnEnd"),(0,c.K)(e9,"bpmnGateway"),(0,c.K)(at,"bpmnActivity"),(0,c.K)(ae,"bpmnDataObject"),(0,c.K)(aa,"bpmnDataStore"),(0,c.K)(ar,"bpmnAnnotation");var al=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:ed},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:es},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:eg},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:ef},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:tf},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:tw},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:tD},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:H},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:ta},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:J},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:tg},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:tt},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:eT},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:ej},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:el},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tv},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tI},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tG},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:eD},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tP},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tb},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:ex},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:U},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:eo},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:eu},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:ep},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tS},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tC},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:tn},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:to},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:td},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tW},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:eK},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tA},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:eM},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tj},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:tc},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tx},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:eA},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:eC},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:tk},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:eS},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tM},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:eh},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:ee},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:et},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:W},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:tl},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:ew},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:em},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:ev},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:ei},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tq}],ai=(0,c.K)(()=>Object.fromEntries([...Object.entries({state:ey,choice:Q,note:ea,composite:te,rectWithTitle:en,labelRect:tX,block_arrow:Y,collapsedGroup:T,iconSquare:tF,iconCircle:tN,icon:tL,iconRounded:tB,imageSquare:tR,anchor:X,kanbanItem:eE,mindmapCircle:eZ,defaultMindmapNode:eq,classBox:eG,erBox:eB,requirementBox:eI,usecaseActor:t0,usecaseActorHollow:t1,usecaseActorAwesome:t2,usecaseActorIcon:t8,usecaseBusiness:t4,usecaseEllipse:t$,usecaseJsonTable:t9,"bpmn-start":e3,"bpmn-intermediate":e4,"bpmn-boundary":e6,"bpmn-end":e7,"bpmn-gateway":e9,"bpmn-activity":at,"bpmn-data":ae,"bpmn-data-store":aa,"bpmn-annotation":ar}),...al.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function an(t){return t in ai}(0,c.K)(an,"isValidShape")}}]);
|