filecat 7.7.4 → 7.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/1045.0e4bdc838c37771a7f50.js +1 -0
- package/build/dist/1075.493acb74297c1e753de2.js +1 -0
- package/build/dist/1128.b80776fbdbdda36034c3.js +1 -0
- package/build/dist/1388.1dcf844b452e3aae3dc0.js +1 -0
- package/build/dist/1671.fb137d27b5763953487e.js +1 -0
- package/build/dist/{6887.93191dae462af3692775.js → 1738.b8ab2bd79df131e60051.js} +1 -1
- package/build/dist/1802.e43e833638f6ba8e22d7.js +1 -0
- package/build/dist/1964.bd3d684b50aa5191b413.js +1 -0
- package/build/dist/200.bb7f6ce5543bd7ff6d97.js +1 -0
- package/build/dist/2105.e4ba1c1d506b3fe14e8e.js +1 -0
- package/build/dist/2122.bc10dcdbbfc38e0ef883.js +1 -0
- package/build/dist/{3457.18b45379d8bcf7f5f3b5.js → 2180.df641ebaead77c4ada71.js} +1 -1
- package/build/dist/2300.9e1baa1c0368abe53d96.js +2 -0
- package/build/dist/2479.15722ac55b05c521f4f7.js +1 -0
- package/build/dist/2572.8fdddfebb4da2f29dbd8.js +1 -0
- package/build/dist/2674.0c822a9c458f923a4eff.js +1 -0
- package/build/dist/{1001.44a1a25c7d6d3f294bf3.js → 2822.9417e764a14f8f5f57dc.js} +1 -1
- package/build/dist/2994.c492be0d907fa468a9be.js +1 -0
- package/build/dist/{3140.b078ec311f99170b7f4c.js → 3140.794a212da633caf38b3a.js} +2 -2
- package/build/dist/3230.7798ab546facfa058b34.js +1 -0
- package/build/dist/3283.9386fc7f67aef46604fb.js +1 -0
- package/build/dist/{3299.9bd4cf5d1679479639a8.js → 3299.d01f5a742d80f4e6e25b.js} +1 -1
- package/build/dist/3300.b8a3bc571293a6280ed8.js +1 -0
- package/build/dist/{3402.d412940350051a52d7ac.js → 3402.b6dc28d2f9bace7cde85.js} +1 -1
- package/build/dist/3509.cbcb309fbf49db53229f.js +1 -0
- package/build/dist/{3727.b8d9cbae9de47bf8d49b.js → 3510.b975b8bfdee5e8518215.js} +1 -1
- package/build/dist/{587.c75ed69a8373139346f9.js → 3566.ba323afadcf41fad2fa7.js} +1 -1
- package/build/dist/3608.aff9429024b740ac5cd0.js +1 -0
- package/build/dist/3990.5e16453f57b90b01d539.js +1 -0
- package/build/dist/4004.de90f1192487a24a0a9a.js +1 -0
- package/build/dist/4061.c0eb5824eeb6a59fa827.js +1 -0
- package/build/dist/4220.b65b40382726a69ba0bc.js +1 -0
- package/build/dist/{3883.70d42c3a335d6833f07e.js → 4376.b022a792fb34fbe50398.js} +1 -1
- package/build/dist/4437.4d5a0965043471411a00.js +1 -0
- package/build/dist/4469.536491f90535e831ce3e.js +1 -0
- package/build/dist/453.8877eb10f13258c290bc.js +1 -0
- package/build/dist/4560.8ef2e4b60cc86d019dd6.js +1 -0
- package/build/dist/4735.838cd0f656bbf7d99ff6.js +1 -0
- package/build/dist/4772.9b95c402a4def0f576e3.js +1 -0
- package/build/dist/4985.44cb7d829ca477e368b8.js +1 -0
- package/build/dist/5516.645e4a900df9bdc1806c.js +1 -0
- package/build/dist/5526.6b4867751becda056ed8.js +1 -0
- package/build/dist/5617.8efc3b1d218f80df9b39.js +1 -0
- package/build/dist/5744.e9f1efb88a617b05b709.js +1 -0
- package/build/dist/583.cef46d6b21c6fa6454cf.js +1 -0
- package/build/dist/6089.6d5d19a327284ff3b11c.js +1 -0
- package/build/dist/6164.7dae9989dd129479f952.js +1 -0
- package/build/dist/6284.10deb80685728f50aa45.js +1 -0
- package/build/dist/629.b75b024aacc43e0d69cf.js +1 -0
- package/build/dist/6344.291e5dadc74e62739774.js +1 -0
- package/build/dist/6492.3ee4060598de873d8e8f.js +1 -0
- package/build/dist/6571.b381c44055704e3ba649.js +1 -0
- package/build/dist/6731.6763296ce5ae210bc0fe.js +1 -0
- package/build/dist/6759.f88b50c41207cb8345d1.js +1 -0
- package/build/dist/{4951.88718d978aea2dd40006.js → 6789.34921a30c8a81f0a6407.js} +1 -1
- package/build/dist/6800.ee99fd0a88b6acbaaf2c.js +1 -0
- package/build/dist/6803.fe4297b1e51c3bfc7f50.js +1 -0
- package/build/dist/{313.d51fc773856f078487ad.js → 6806.9ebf089eba60f3b8e946.js} +1 -1
- package/build/dist/7038.4e4fc8e405c56d3080e2.js +1 -0
- package/build/dist/7310.bf944d03f24fcf109680.js +1 -0
- package/build/dist/{359.1b95bd6368196ccaa731.js → 7430.25bf8437ad8f7c1fd36f.js} +1 -1
- package/build/dist/7483.5e26ada69b33418c31a8.js +1 -0
- package/build/dist/{4087.4796ff56340985c35542.js → 7486.fe0b5f867c08b40a3360.js} +1 -1
- package/build/dist/7567.09e1b34ad9bd3e463eb4.js +1 -0
- package/build/dist/7834.7a593dcb80ca09f58586.js +1 -0
- package/build/dist/784.48a3b71205680f427109.js +1 -0
- package/build/dist/7943.54c702542d55f576a576.js +1 -0
- package/build/dist/7954.6ce241a8ed27cb26efc6.js +1 -0
- package/build/dist/8079.f6f2be43e5d933ae1f6f.js +1 -0
- package/build/dist/8677.860320b7f36947e57d11.js +1 -0
- package/build/dist/8727.3628c746061aed7a4077.js +1 -0
- package/build/dist/9299.ed4de6cd4f4bfa0a966a.js +1 -0
- package/build/dist/9324.ef229da9b943484298ba.js +1 -0
- package/build/dist/9364.d2570d78afc50fe1b23e.js +1 -0
- package/build/dist/9463.2629a7daf4c2865b9b96.js +1 -0
- package/build/dist/index.html +1 -1
- package/build/dist/main.98bb29605335d9b2219f.js +2 -0
- package/build/main.js +1 -1
- package/package.json +4 -5
- package/build/dist/1075.3ef2e1902e9f7e9e37b1.js +0 -1
- package/build/dist/1312.199a506fb836a2412255.js +0 -1
- package/build/dist/136.e3bb3c50051edb17454d.js +0 -1
- package/build/dist/1478.c58a43bb24820a13eaed.js +0 -1
- package/build/dist/1491.901cce0168c42ad319fa.js +0 -1
- package/build/dist/1566.4f405afd26063b55129c.js +0 -1
- package/build/dist/161.98f6c2a50bf3824a6efb.js +0 -1
- package/build/dist/1654.a21a099e2749ef167ea9.js +0 -1
- package/build/dist/1875.46dd3a6cc071d45a32f1.js +0 -1
- package/build/dist/1883.14c90bbe93fe206906f0.js +0 -1
- package/build/dist/1924.c7bd2a2aa0e9bc78c9ba.js +0 -1
- package/build/dist/2000.f55ddba9e6313243f028.js +0 -1
- package/build/dist/2101.d4efa6a2c1e9169d9225.js +0 -1
- package/build/dist/2180.60fe32ab12c2fa1570a4.js +0 -1
- package/build/dist/2191.4c4f2fd5127168a81877.js +0 -1
- package/build/dist/2213.ceffb8fd7be66b35d079.js +0 -1
- package/build/dist/2463.6e530d1e9b5c58dba166.js +0 -1
- package/build/dist/2623.8b1e5e391dd4e05fc119.js +0 -1
- package/build/dist/2674.3713c09449bdd57b1066.js +0 -1
- package/build/dist/2894.8395ec5e280cc6b6c4dc.js +0 -1
- package/build/dist/3042.f490cfa4208208262398.js +0 -1
- package/build/dist/3096.d0b2c77a23418c545c01.js +0 -1
- package/build/dist/311.da79ace98b69a635c41c.js +0 -1
- package/build/dist/3166.088cf4a0356c3a6e30a0.js +0 -1
- package/build/dist/3357.4f1bf81ecc3c11a3f813.js +0 -1
- package/build/dist/3475.d10d21b637761d7d886d.js +0 -1
- package/build/dist/3708.04401b24d95214d641e5.js +0 -1
- package/build/dist/3752.01fc1f14b29f340e41fd.js +0 -1
- package/build/dist/3871.7a387a9dc21883d08423.js +0 -1
- package/build/dist/3994.19fb81947d65fc81b0a2.js +0 -1
- package/build/dist/4012.b516fdc981e55be2ebb2.js +0 -1
- package/build/dist/4122.9ea6b5dd8dc9d2265825.js +0 -1
- package/build/dist/4141.06960673a6a484e7b88d.js +0 -1
- package/build/dist/4190.ff72264b4f07f6542d33.js +0 -1
- package/build/dist/4239.1b49d7c26192fb637d57.js +0 -1
- package/build/dist/4288.8dc8f5d962720e084952.js +0 -1
- package/build/dist/434.04cdc2a05316f92d1d38.js +0 -1
- package/build/dist/4376.f3c60897f70dd4e33d2f.js +0 -1
- package/build/dist/4472.9e708dd3e1c9db7d7396.js +0 -1
- package/build/dist/4473.b42b37616f13be64199b.js +0 -1
- package/build/dist/449.3fd75e05da22fe1c5ecc.js +0 -1
- package/build/dist/452.4974390f4f4d991216e5.js +0 -1
- package/build/dist/4547.36b5848220c04c47bc80.js +0 -1
- package/build/dist/4605.ef0f4204b3bf3a18efa6.js +0 -1
- package/build/dist/4804.fbd0ffcf57d9dffc15b7.js +0 -1
- package/build/dist/482.0c7512372a1fbf61d704.js +0 -1
- package/build/dist/4963.22d7db9b376a42d3f00b.js +0 -1
- package/build/dist/5097.a0de16bf7b90a8b1157d.js +0 -1
- package/build/dist/5123.d9ed79af478b5cc4f1b2.js +0 -1
- package/build/dist/5332.8b6e85d8764e907a01d5.js +0 -1
- package/build/dist/536.660d866952b46ba53180.js +0 -1
- package/build/dist/548.d3d912d0c0c7e835e1dc.js +0 -1
- package/build/dist/5516.cc92dfbf06ddcd133dbc.js +0 -1
- package/build/dist/5590.585778da623ec71f7722.js +0 -1
- package/build/dist/5616.14df0fe505c4dadf4042.js +0 -1
- package/build/dist/5695.95dc69f3b02812eb9e93.js +0 -1
- package/build/dist/5697.6ac62f99ca19a979f1eb.js +0 -1
- package/build/dist/5741.237d817efc942de875e5.js +0 -1
- package/build/dist/5849.d26365d4b19533db6fd6.js +0 -1
- package/build/dist/5902.3969a79465383ff4bbb4.js +0 -1
- package/build/dist/5942.981e03467a3b2c653ab8.js +0 -1
- package/build/dist/6029.63e4beb66df7afc65a90.js +0 -1
- package/build/dist/6054.f91307b52046172fc5f8.js +0 -1
- package/build/dist/6089.0863a6a09be2b97e84e1.js +0 -1
- package/build/dist/6095.d845e356a4db8a241cdb.js +0 -1
- package/build/dist/6114.ca67e88c701691b3bb1e.js +0 -1
- package/build/dist/612.74d77e32957a5c6eb197.js +0 -1
- package/build/dist/625.d9e531476b3306e0b837.js +0 -1
- package/build/dist/6318.66541f9cef18d14ea3ea.js +0 -1
- package/build/dist/6455.5c950f6eb61015409eb6.js +0 -1
- package/build/dist/6527.436d2d5d81376e6a54ae.js +0 -1
- package/build/dist/6530.2f1b283a902603262048.js +0 -1
- package/build/dist/6610.b92f337fcc1b347350fb.js +0 -1
- package/build/dist/6926.2786af754adcdabfbede.js +0 -1
- package/build/dist/697.62f8b1ec6d2cd40ed316.js +0 -1
- package/build/dist/70.be2f9130c93c4175d12f.js +0 -1
- package/build/dist/7081.9e1e196fecfcccb4bfb9.js +0 -1
- package/build/dist/7128.3573ab2a5f28b79ba89e.js +0 -1
- package/build/dist/7163.ad09accaa87e565b8dc0.js +0 -1
- package/build/dist/72.a1d87dabb7f0615b3a21.js +0 -1
- package/build/dist/7229.50a1700104d1e4732735.js +0 -1
- package/build/dist/7332.d024ae75a3da2f7674a1.js +0 -1
- package/build/dist/7509.370c49d7ff43e289190c.js +0 -1
- package/build/dist/7514.dbf525bade6ffbd70af6.js +0 -2
- package/build/dist/7557.7d62939c56391a647067.js +0 -1
- package/build/dist/7588.2d840229f62de92b22e5.js +0 -1
- package/build/dist/7632.5660653552f755580adc.js +0 -1
- package/build/dist/7639.b3c6382de2fde652a40b.js +0 -1
- package/build/dist/779.91614fabf5c9eb3aafa0.js +0 -1
- package/build/dist/7810.979796e8a3aad6d4d72f.js +0 -1
- package/build/dist/7897.8b8070d6abe5c2327168.js +0 -1
- package/build/dist/7941.dbef0b0f412899800b13.js +0 -1
- package/build/dist/7953.5cd280effe2e967ea490.js +0 -1
- package/build/dist/7954.efecc100b407af204add.js +0 -1
- package/build/dist/7959.e31a21f28ff463d9d5e9.js +0 -1
- package/build/dist/8034.301f1099c4a7ce6c2829.js +0 -1
- package/build/dist/8080.e1c9af30bdd818b08c6e.js +0 -1
- package/build/dist/8087.6452b67614a0855535a4.js +0 -1
- package/build/dist/8140.bbccc589b007f9d410d1.js +0 -1
- package/build/dist/8162.e47cccbe327b26a2ea6f.js +0 -1
- package/build/dist/8322.56c8f4b4ad93b1a866c8.js +0 -1
- package/build/dist/8376.01a9f23ba06a78922364.js +0 -1
- package/build/dist/8433.e54d57e2cc9408e5e411.js +0 -1
- package/build/dist/8460.25f0859cb2266f764113.js +0 -1
- package/build/dist/8524.7945bff0063dc5c5903d.js +0 -1
- package/build/dist/8782.a5498372f1eb6bab41b7.js +0 -1
- package/build/dist/8953.23fe6fe13b28168428d3.js +0 -1
- package/build/dist/8964.bdf168262ab40956654a.js +0 -1
- package/build/dist/9003.69a0d15e722e1ed455b0.js +0 -1
- package/build/dist/9299.c2699815e5339e4045f8.js +0 -1
- package/build/dist/9385.2b1afe7b55d4c16f97ad.js +0 -1
- package/build/dist/9428.3176bab8f5780f060d51.js +0 -1
- package/build/dist/9456.506d55e351dec4f45566.js +0 -1
- package/build/dist/9465.8ff5871fb708cf7c1021.js +0 -1
- package/build/dist/9500.95d19d78b580734ec35e.js +0 -1
- package/build/dist/9512.03215278f26dc63c056d.js +0 -1
- package/build/dist/9614.cfdbe03d8e2960b0a53a.js +0 -1
- package/build/dist/9651.6bf3e34362f10c1aa35d.js +0 -1
- package/build/dist/9788.4a1c2f3626e532d3b44c.js +0 -1
- package/build/dist/9943.b62436bd9d0730c715a9.js +0 -1
- package/build/dist/9967.216bc8d26440bcbaf785.js +0 -1
- package/build/dist/9970.aa60aa700a790ba226f0.js +0 -1
- package/build/dist/main.7a6fed9f5f814a194409.js +0 -2
- /package/build/dist/{7514.dbf525bade6ffbd70af6.js.LICENSE.txt → 2300.9e1baa1c0368abe53d96.js.LICENSE.txt} +0 -0
- /package/build/dist/{3140.b078ec311f99170b7f4c.js.LICENSE.txt → 3140.794a212da633caf38b3a.js.LICENSE.txt} +0 -0
- /package/build/dist/{main.7a6fed9f5f814a194409.js.LICENSE.txt → main.98bb29605335d9b2219f.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[697],{72857(t,e,n){n.d(e,{T:()=>I});var r=n(39142),o=n(89610),s=n(27422),i=n(66070),c=n(14453),u=n(9137),a=n(25175),f=n(92049),h=n(38446),l=n(41200),d=n(97271),A=n(54749),v=Object.prototype.hasOwnProperty;const p=function(t){if(null==t)return!0;if((0,h.A)(t)&&((0,f.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.A)(t)||(0,A.A)(t)||(0,a.A)(t)))return!t.length;var e=(0,u.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,d.A)(t))return!(0,c.A)(t).length;for(var n in t)if(v.call(t,n))return!1;return!0};var _=n(8058),b=n(69592),g=n(87671),y=n(24326),j=n(8300),O=n(25707);const w=function(t){return t!=t};const m=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1};const C=function(t,e,n){return e==e?m(t,e,n):(0,O.A)(t,w,n)};const P=function(t,e){return!!(null==t?0:t.length)&&C(t,e,0)>-1};const E=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1};var z=n(64099),L=n(39857);const N=function(){};var S=n(29959),D=L.A&&1/(0,S.A)(new L.A([,-0]))[1]==1/0?function(t){return new L.A(t)}:N;const F=D;const k=function(t,e,n){var r=-1,o=P,s=t.length,i=!0,c=[],u=c;if(n)i=!1,o=E;else if(s>=200){var a=e?null:F(t);if(a)return(0,S.A)(a);i=!1,o=z.A,u=new j.A}else u=e?[]:c;t:for(;++r<s;){var f=t[r],h=e?e(f):f;if(f=n||0!==f?f:0,i&&h==h){for(var l=u.length;l--;)if(u[l]===h)continue t;e&&u.push(h),c.push(f)}else o(u,h,n)||(u!==c&&u.push(h),c.push(f))}return c};var x=n(53533);const M=(0,y.A)(function(t){return k((0,g.A)(t,1,x.A,!0))});var T=n(92866),$=n(83130),B="\0";class I{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=r.A(void 0),this._defaultEdgeLabelFn=r.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[B]={}),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 o.A(t)||(t=r.A(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return s.A(this._nodes)}sources(){var t=this;return i.A(this.nodes(),function(e){return p(t._in[e])})}sinks(){var t=this;return i.A(this.nodes(),function(e){return p(t._out[e])})}setNodes(t,e){var n=arguments,r=this;return _.A(t,function(t){n.length>1?r.setNode(t,e):r.setNode(t)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=B,this._children[t]={},this._children[B][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(s.A(this._in[t]),e),delete this._in[t],delete this._preds[t],_.A(s.A(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(b.A(e))e=B;else{for(var n=e+="";!b.A(n);n=this.parent(n))if(n===t)throw new 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(e!==B)return e}}children(t){if(b.A(t)&&(t=B),this._isCompound){var e=this._children[t];if(e)return s.A(e)}else{if(t===B)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return s.A(e)}successors(t){var e=this._sucs[t];if(e)return s.A(e)}neighbors(t){var e=this.predecessors(t);if(e)return M(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 n=this;_.A(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),_.A(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var r={};function o(t){var s=n.parent(t);return void 0===s||e.hasNode(s)?(r[t]=s,s):s in r?r[s]:o(s)}return this._isCompound&&_.A(e.nodes(),function(t){e.setParent(t,o(t))}),e}setDefaultEdgeLabel(t){return o.A(t)||(t=r.A(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return T.A(this._edgeObjs)}setPath(t,e){var n=this,r=arguments;return $.A(t,function(t,o){return r.length>1?n.setEdge(t,o,e):n.setEdge(t,o),o}),this}setEdge(){var t,e,n,r,o=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,e=s.w,n=s.name,2===arguments.length&&(r=arguments[1],o=!0)):(t=s,e=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],o=!0)),t=""+t,e=""+e,b.A(n)||(n=""+n);var i=V(this._isDirected,t,e,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i))return o&&(this._edgeLabels[i]=r),this;if(!b.A(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=o?r:this._defaultEdgeLabelFn(t,e,n);var c=function(t,e,n,r){var o=""+e,s=""+n;if(!t&&o>s){var i=o;o=s,s=i}var c={v:o,w:s};r&&(c.name=r);return c}(this._isDirected,t,e,n);return t=c.v,e=c.w,Object.freeze(c),this._edgeObjs[i]=c,U(this._preds[e],t),U(this._sucs[t],e),this._in[e][i]=c,this._out[t][i]=c,this._edgeCount++,this}edge(t,e,n){var r=1===arguments.length?G(this._isDirected,arguments[0]):V(this._isDirected,t,e,n);return this._edgeLabels[r]}hasEdge(t,e,n){var r=1===arguments.length?G(this._isDirected,arguments[0]):V(this._isDirected,t,e,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(t,e,n){var r=1===arguments.length?G(this._isDirected,arguments[0]):V(this._isDirected,t,e,n),o=this._edgeObjs[r];return o&&(t=o.v,e=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],R(this._preds[e],t),R(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this}inEdges(t,e){var n=this._in[t];if(n){var r=T.A(n);return e?i.A(r,function(t){return t.v===e}):r}}outEdges(t,e){var n=this._out[t];if(n){var r=T.A(n);return e?i.A(r,function(t){return t.w===e}):r}}nodeEdges(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}}function U(t,e){t[e]?t[e]++:t[e]=1}function R(t,e){--t[e]||delete t[e]}function V(t,e,n,r){var o=""+e,s=""+n;if(!t&&o>s){var i=o;o=s,s=i}return o+""+s+""+(b.A(r)?"\0":r)}function G(t,e){return V(t,e.v,e.w,e.name)}I.prototype._nodeCount=0,I.prototype._edgeCount=0},697(t,e,n){n.d(e,{T:()=>r.T});var r=n(72857)},89469(t,e,n){n.d(e,{A:()=>l});const r=function(){this.__data__=[],this.size=0};var o=n(66984);const s=function(t,e){for(var n=t.length;n--;)if((0,o.A)(t[n][0],e))return n;return-1};var i=Array.prototype.splice;const c=function(t){var e=this.__data__,n=s(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)};const u=function(t){var e=this.__data__,n=s(e,t);return n<0?void 0:e[n][1]};const a=function(t){return s(this.__data__,t)>-1};const f=function(t,e){var n=this.__data__,r=s(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}h.prototype.clear=r,h.prototype.delete=c,h.prototype.get=u,h.prototype.has=a,h.prototype.set=f;const l=h},68335(t,e,n){n.d(e,{A:()=>s});var r=n(28562),o=n(41917);const s=(0,r.A)(o.A,"Map")},62050(t,e,n){n.d(e,{A:()=>w});const r=(0,n(28562).A)(Object,"create");const o=function(){this.__data__=r?r(null):{},this.size=0};const s=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var i=Object.prototype.hasOwnProperty;const c=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0};var u=Object.prototype.hasOwnProperty;const a=function(t){var e=this.__data__;return r?void 0!==e[t]:u.call(e,t)};const f=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}h.prototype.clear=o,h.prototype.delete=s,h.prototype.get=c,h.prototype.has=a,h.prototype.set=f;const l=h;var d=n(89469),A=n(68335);const v=function(){this.size=0,this.__data__={hash:new l,map:new(A.A||d.A),string:new l}};const p=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const _=function(t,e){var n=t.__data__;return p(e)?n["string"==typeof e?"string":"hash"]:n.map};const b=function(t){var e=_(this,t).delete(t);return this.size-=e?1:0,e};const g=function(t){return _(this,t).get(t)};const y=function(t){return _(this,t).has(t)};const j=function(t,e){var n=_(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function O(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}O.prototype.clear=v,O.prototype.delete=b,O.prototype.get=g,O.prototype.has=y,O.prototype.set=j;const w=O},39857(t,e,n){n.d(e,{A:()=>s});var r=n(28562),o=n(41917);const s=(0,r.A)(o.A,"Set")},8300(t,e,n){n.d(e,{A:()=>c});var r=n(62050);const o=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const s=function(t){return this.__data__.has(t)};function i(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r.A;++e<n;)this.add(t[e])}i.prototype.add=i.prototype.push=o,i.prototype.has=s;const c=i},22080(t,e,n){n.d(e,{A:()=>l});var r=n(89469);const o=function(){this.__data__=new r.A,this.size=0};const s=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const i=function(t){return this.__data__.get(t)};const c=function(t){return this.__data__.has(t)};var u=n(68335),a=n(62050);const f=function(t,e){var n=this.__data__;if(n instanceof r.A){var o=n.__data__;if(!u.A||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new a.A(o)}return n.set(t,e),this.size=n.size,this};function h(t){var e=this.__data__=new r.A(t);this.size=e.size}h.prototype.clear=o,h.prototype.delete=s,h.prototype.get=i,h.prototype.has=c,h.prototype.set=f;const l=h},241(t,e,n){n.d(e,{A:()=>r});const r=n(41917).A.Symbol},43988(t,e,n){n.d(e,{A:()=>r});const r=n(41917).A.Uint8Array},72641(t,e,n){n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},2634(t,e,n){n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,s=[];++n<r;){var i=t[n];e(i,n,t)&&(s[o++]=i)}return s}},2505(t,e,n){n.d(e,{A:()=>f});const r=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};var o=n(25175),s=n(92049),i=n(41200),c=n(25353),u=n(54749),a=Object.prototype.hasOwnProperty;const f=function(t,e){var n=(0,s.A)(t),f=!n&&(0,o.A)(t),h=!n&&!f&&(0,i.A)(t),l=!n&&!f&&!h&&(0,u.A)(t),d=n||f||h||l,A=d?r(t.length,String):[],v=A.length;for(var p in t)!e&&!a.call(t,p)||d&&("length"==p||h&&("offset"==p||"parent"==p)||l&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||(0,c.A)(p,v))||A.push(p);return A}},45572(t,e,n){n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},76912(t,e,n){n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},94288(t,e,n){n.d(e,{A:()=>s});var r=n(79841),o=n(38446);const s=function(t,e){return function(n,r){if(null==n)return n;if(!(0,o.A)(n))return t(n,r);for(var s=n.length,i=e?s:-1,c=Object(n);(e?i--:++i<s)&&!1!==r(c[i],i,c););return n}}(r.A)},25707(t,e,n){n.d(e,{A:()=>r});const r=function(t,e,n,r){for(var o=t.length,s=n+(r?1:-1);r?s--:++s<o;)if(e(t[s],s,t))return s;return-1}},87671(t,e,n){n.d(e,{A:()=>a});var r=n(76912),o=n(241),s=n(25175),i=n(92049),c=o.A?o.A.isConcatSpreadable:void 0;const u=function(t){return(0,i.A)(t)||(0,s.A)(t)||!!(c&&t&&t[c])};const a=function t(e,n,o,s,i){var c=-1,a=e.length;for(o||(o=u),i||(i=[]);++c<a;){var f=e[c];n>0&&o(f)?n>1?t(f,n-1,o,s,i):(0,r.A)(i,f):s||(i[i.length]=f)}return i}},97132(t,e,n){n.d(e,{A:()=>r});const r=function(t){return function(e,n,r){for(var o=-1,s=Object(e),i=r(e),c=i.length;c--;){var u=i[t?c:++o];if(!1===n(s[u],u,s))break}return e}}()},79841(t,e,n){n.d(e,{A:()=>s});var r=n(97132),o=n(27422);const s=function(t,e){return t&&(0,r.A)(t,e,o.A)}},66318(t,e,n){n.d(e,{A:()=>s});var r=n(24878),o=n(30901);const s=function(t,e){for(var n=0,s=(e=(0,r.A)(e,t)).length;null!=t&&n<s;)t=t[(0,o.A)(e[n++])];return n&&n==s?t:void 0}},33831(t,e,n){n.d(e,{A:()=>s});var r=n(76912),o=n(92049);const s=function(t,e,n){var s=e(t);return(0,o.A)(t)?s:(0,r.A)(s,n(t))}},2383(t,e,n){n.d(e,{A:()=>l});var r=n(241),o=Object.prototype,s=o.hasOwnProperty,i=o.toString,c=r.A?r.A.toStringTag:void 0;const u=function(t){var e=s.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=i.call(t);return r&&(e?t[c]=n:delete t[c]),o};var a=Object.prototype.toString;const f=function(t){return a.call(t)};var h=r.A?r.A.toStringTag:void 0;const l=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?u(t):f(t)}},94425(t,e,n){n.d(e,{A:()=>H});var r=n(22080),o=n(8300);const s=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};var i=n(64099);const c=function(t,e,n,r,c,u){var a=1&n,f=t.length,h=e.length;if(f!=h&&!(a&&h>f))return!1;var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var A=-1,v=!0,p=2&n?new o.A:void 0;for(u.set(t,e),u.set(e,t);++A<f;){var _=t[A],b=e[A];if(r)var g=a?r(b,_,A,e,t,u):r(_,b,A,t,e,u);if(void 0!==g){if(g)continue;v=!1;break}if(p){if(!s(e,function(t,e){if(!(0,i.A)(p,e)&&(_===t||c(_,t,n,r,u)))return p.push(e)})){v=!1;break}}else if(_!==b&&!c(_,b,n,r,u)){v=!1;break}}return u.delete(t),u.delete(e),v};var u=n(241),a=n(43988),f=n(66984);const h=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n};var l=n(29959),d=u.A?u.A.prototype:void 0,A=d?d.valueOf:void 0;const v=function(t,e,n,r,o,s,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new a.A(t),new a.A(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.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 u=h;case"[object Set]":var d=1&r;if(u||(u=l.A),t.size!=e.size&&!d)return!1;var v=i.get(t);if(v)return v==e;r|=2,i.set(t,e);var p=c(u(t),u(e),r,o,s,i);return i.delete(t),p;case"[object Symbol]":if(A)return A.call(t)==A.call(e)}return!1};var p=n(19042),_=Object.prototype.hasOwnProperty;const b=function(t,e,n,r,o,s){var i=1&n,c=(0,p.A)(t),u=c.length;if(u!=(0,p.A)(e).length&&!i)return!1;for(var a=u;a--;){var f=c[a];if(!(i?f in e:_.call(e,f)))return!1}var h=s.get(t),l=s.get(e);if(h&&l)return h==e&&l==t;var d=!0;s.set(t,e),s.set(e,t);for(var A=i;++a<u;){var v=t[f=c[a]],b=e[f];if(r)var g=i?r(b,v,f,e,t,s):r(v,b,f,t,e,s);if(!(void 0===g?v===b||o(v,b,n,r,s):g)){d=!1;break}A||(A="constructor"==f)}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 s.delete(t),s.delete(e),d};var g=n(9137),y=n(92049),j=n(41200),O=n(54749),w="[object Arguments]",m="[object Array]",C="[object Object]",P=Object.prototype.hasOwnProperty;const E=function(t,e,n,o,s,i){var u=(0,y.A)(t),a=(0,y.A)(e),f=u?m:(0,g.A)(t),h=a?m:(0,g.A)(e),l=(f=f==w?C:f)==C,d=(h=h==w?C:h)==C,A=f==h;if(A&&(0,j.A)(t)){if(!(0,j.A)(e))return!1;u=!0,l=!1}if(A&&!l)return i||(i=new r.A),u||(0,O.A)(t)?c(t,e,n,o,s,i):v(t,e,f,n,o,s,i);if(!(1&n)){var p=l&&P.call(t,"__wrapped__"),_=d&&P.call(e,"__wrapped__");if(p||_){var E=p?t.value():t,z=_?e.value():e;return i||(i=new r.A),s(E,z,n,o,i)}}return!!A&&(i||(i=new r.A),b(t,e,n,o,s,i))};var z=n(53098);const L=function t(e,n,r,o,s){return e===n||(null==e||null==n||!(0,z.A)(e)&&!(0,z.A)(n)?e!=e&&n!=n:E(e,n,r,o,t,s))};const N=function(t,e,n,o){var s=n.length,i=s,c=!o;if(null==t)return!i;for(t=Object(t);s--;){var u=n[s];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<i;){var a=(u=n[s])[0],f=t[a],h=u[1];if(c&&u[2]){if(void 0===f&&!(a in t))return!1}else{var l=new r.A;if(o)var d=o(f,h,a,t,e,l);if(!(void 0===d?L(h,f,3,o,l):d))return!1}}return!0};var S=n(23149);const D=function(t){return t==t&&!(0,S.A)(t)};var F=n(27422);const k=function(t){for(var e=(0,F.A)(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,D(o)]}return e};const x=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}};const M=function(t){var e=k(t);return 1==e.length&&e[0][2]?x(e[0][0],e[0][1]):function(n){return n===t||N(n,t,e)}};var T=n(66318);const $=function(t,e,n){var r=null==t?void 0:(0,T.A)(t,e);return void 0===r?n:r};var B=n(46964),I=n(86586),U=n(30901);const R=function(t,e){return(0,I.A)(t)&&D(e)?x((0,U.A)(t),e):function(n){var r=$(n,t);return void 0===r&&r===e?(0,B.A)(n,t):L(e,r,3)}};var V=n(29008),G=n(70805);const W=function(t){return function(e){return(0,T.A)(e,t)}};const q=function(t){return(0,I.A)(t)?(0,G.A)((0,U.A)(t)):W(t)};const H=function(t){return"function"==typeof t?t:null==t?V.A:"object"==typeof t?(0,y.A)(t)?R(t[0],t[1]):M(t):q(t)}},14453(t,e,n){n.d(e,{A:()=>i});var r=n(97271);const o=(0,n(40367).A)(Object.keys,Object);var s=Object.prototype.hasOwnProperty;const i=function(t){if(!(0,r.A)(t))return o(t);var e=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&e.push(n);return e}},70805(t,e,n){n.d(e,{A:()=>r});const r=function(t){return function(e){return null==e?void 0:e[t]}}},24326(t,e,n){n.d(e,{A:()=>i});var r=n(29008),o=n(65255),s=n(57424);const i=function(t,e){return(0,s.A)((0,o.A)(t,e,r.A),t+"")}},52789(t,e,n){n.d(e,{A:()=>r});const r=function(t){return function(e){return t(e)}}},64099(t,e,n){n.d(e,{A:()=>r});const r=function(t,e){return t.has(e)}},99922(t,e,n){n.d(e,{A:()=>o});var r=n(29008);const o=function(t){return"function"==typeof t?t:r.A}},24878(t,e,n){n.d(e,{A:()=>l});var r=n(92049),o=n(86586),s=n(62050);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=t.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(i.Cache||s.A),n}i.Cache=s.A;const c=i;var u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;const f=function(t){var e=c(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(u,function(t,n,r,o){e.push(r?o.replace(a,"$1"):n||t)}),e});var h=n(3456);const l=function(t,e){return(0,r.A)(t)?t:(0,o.A)(t,e)?[t]:f((0,h.A)(t))}},84171(t,e,n){n.d(e,{A:()=>o});var r=n(28562);const o=function(){try{var t=(0,r.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},72136(t,e,n){n.d(e,{A:()=>r});const r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},19042(t,e,n){n.d(e,{A:()=>i});var r=n(33831),o=n(14792),s=n(27422);const i=function(t){return(0,r.A)(t,s.A,o.A)}},28562(t,e,n){n.d(e,{A:()=>b});var r=n(89610);const o=n(41917).A["__core-js_shared__"];var s,i=(s=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";const c=function(t){return!!i&&i in t};var u=n(23149),a=n(81121),f=/^\[object .+?Constructor\]$/,h=Function.prototype,l=Object.prototype,d=h.toString,A=l.hasOwnProperty,v=RegExp("^"+d.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const p=function(t){return!(!(0,u.A)(t)||c(t))&&((0,r.A)(t)?v:f).test((0,a.A)(t))};const _=function(t,e){return null==t?void 0:t[e]};const b=function(t,e){var n=_(t,e);return p(n)?n:void 0}},14792(t,e,n){n.d(e,{A:()=>c});var r=n(2634),o=n(13153),s=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;const c=i?function(t){return null==t?[]:(t=Object(t),(0,r.A)(i(t),function(e){return s.call(t,e)}))}:o.A},9137(t,e,n){n.d(e,{A:()=>w});var r=n(28562),o=n(41917);const s=(0,r.A)(o.A,"DataView");var i=n(68335);const c=(0,r.A)(o.A,"Promise");var u=n(39857);const a=(0,r.A)(o.A,"WeakMap");var f=n(2383),h=n(81121),l="[object Map]",d="[object Promise]",A="[object Set]",v="[object WeakMap]",p="[object DataView]",_=(0,h.A)(s),b=(0,h.A)(i.A),g=(0,h.A)(c),y=(0,h.A)(u.A),j=(0,h.A)(a),O=f.A;(s&&O(new s(new ArrayBuffer(1)))!=p||i.A&&O(new i.A)!=l||c&&O(c.resolve())!=d||u.A&&O(new u.A)!=A||a&&O(new a)!=v)&&(O=function(t){var e=(0,f.A)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,h.A)(n):"";if(r)switch(r){case _:return p;case b:return l;case g:return d;case y:return A;case j:return v}return e});const w=O},85054(t,e,n){n.d(e,{A:()=>a});var r=n(24878),o=n(25175),s=n(92049),i=n(25353),c=n(5254),u=n(30901);const a=function(t,e,n){for(var a=-1,f=(e=(0,r.A)(e,t)).length,h=!1;++a<f;){var l=(0,u.A)(e[a]);if(!(h=null!=t&&n(t,l)))break;t=t[l]}return h||++a!=f?h:!!(f=null==t?0:t.length)&&(0,c.A)(f)&&(0,i.A)(l,f)&&((0,s.A)(t)||(0,o.A)(t))}},25353(t,e,n){n.d(e,{A:()=>o});var r=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},86586(t,e,n){n.d(e,{A:()=>c});var r=n(92049),o=n(61882),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;const c=function(t,e){if((0,r.A)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!(0,o.A)(t))||(i.test(t)||!s.test(t)||null!=e&&t in Object(e))}},97271(t,e,n){n.d(e,{A:()=>o});var r=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},64841(t,e,n){n.d(e,{A:()=>c});var r=n(72136),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=s&&s.exports===o&&r.A.process;const c=function(){try{var t=s&&s.require&&s.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}()},40367(t,e,n){n.d(e,{A:()=>r});const r=function(t,e){return function(n){return t(e(n))}}},65255(t,e,n){n.d(e,{A:()=>s});const r=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var o=Math.max;const s=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var s=arguments,i=-1,c=o(s.length-e,0),u=Array(c);++i<c;)u[i]=s[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=s[i];return a[e]=n(u),r(t,this,a)}}},41917(t,e,n){n.d(e,{A:()=>s});var r=n(72136),o="object"==typeof self&&self&&self.Object===Object&&self;const s=r.A||o||Function("return this")()},29959(t,e,n){n.d(e,{A:()=>r});const r=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},57424(t,e,n){n.d(e,{A:()=>a});var r=n(39142),o=n(84171),s=n(29008);const i=o.A?function(t,e){return(0,o.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,r.A)(e),writable:!0})}:s.A;var c=Date.now;const u=function(t){var e=0,n=0;return function(){var r=c(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const a=u(i)},30901(t,e,n){n.d(e,{A:()=>o});var r=n(61882);const o=function(t){if("string"==typeof t||(0,r.A)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},81121(t,e,n){n.d(e,{A:()=>o});var r=Function.prototype.toString;const o=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},39142(t,e,n){n.d(e,{A:()=>r});const r=function(t){return function(){return t}}},66984(t,e,n){n.d(e,{A:()=>r});const r=function(t,e){return t===e||t!=t&&e!=e}},66070(t,e,n){n.d(e,{A:()=>u});var r=n(2634),o=n(94288);const s=function(t,e){var n=[];return(0,o.A)(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n};var i=n(94425),c=n(92049);const u=function(t,e){return((0,c.A)(t)?r.A:s)(t,(0,i.A)(e,3))}},8058(t,e,n){n.d(e,{A:()=>c});var r=n(72641),o=n(94288),s=n(99922),i=n(92049);const c=function(t,e){return((0,i.A)(t)?r.A:o.A)(t,(0,s.A)(e))}},46964(t,e,n){n.d(e,{A:()=>s});const r=function(t,e){return null!=t&&e in Object(t)};var o=n(85054);const s=function(t,e){return null!=t&&(0,o.A)(t,e,r)}},29008(t,e,n){n.d(e,{A:()=>r});const r=function(t){return t}},25175(t,e,n){n.d(e,{A:()=>f});var r=n(2383),o=n(53098);const s=function(t){return(0,o.A)(t)&&"[object Arguments]"==(0,r.A)(t)};var i=Object.prototype,c=i.hasOwnProperty,u=i.propertyIsEnumerable,a=s(function(){return arguments}())?s:function(t){return(0,o.A)(t)&&c.call(t,"callee")&&!u.call(t,"callee")};const f=a},92049(t,e,n){n.d(e,{A:()=>r});const r=Array.isArray},38446(t,e,n){n.d(e,{A:()=>s});var r=n(89610),o=n(5254);const s=function(t){return null!=t&&(0,o.A)(t.length)&&!(0,r.A)(t)}},53533(t,e,n){n.d(e,{A:()=>s});var r=n(38446),o=n(53098);const s=function(t){return(0,o.A)(t)&&(0,r.A)(t)}},41200(t,e,n){n.d(e,{A:()=>u});var r=n(41917);const o=function(){return!1};var s="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=s&&"object"==typeof module&&module&&!module.nodeType&&module,c=i&&i.exports===s?r.A.Buffer:void 0;const u=(c?c.isBuffer:void 0)||o},89610(t,e,n){n.d(e,{A:()=>s});var r=n(2383),o=n(23149);const s=function(t){if(!(0,o.A)(t))return!1;var e=(0,r.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5254(t,e,n){n.d(e,{A:()=>r});const r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},23149(t,e,n){n.d(e,{A:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},53098(t,e,n){n.d(e,{A:()=>r});const r=function(t){return null!=t&&"object"==typeof t}},61882(t,e,n){n.d(e,{A:()=>s});var r=n(2383),o=n(53098);const s=function(t){return"symbol"==typeof t||(0,o.A)(t)&&"[object Symbol]"==(0,r.A)(t)}},54749(t,e,n){n.d(e,{A:()=>h});var r=n(2383),o=n(5254),s=n(53098),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;const c=function(t){return(0,s.A)(t)&&(0,o.A)(t.length)&&!!i[(0,r.A)(t)]};var u=n(52789),a=n(64841),f=a.A&&a.A.isTypedArray;const h=f?(0,u.A)(f):c},69592(t,e,n){n.d(e,{A:()=>r});const r=function(t){return void 0===t}},27422(t,e,n){n.d(e,{A:()=>i});var r=n(2505),o=n(14453),s=n(38446);const i=function(t){return(0,s.A)(t)?(0,r.A)(t):(0,o.A)(t)}},83130(t,e,n){n.d(e,{A:()=>u});const r=function(t,e,n,r){var o=-1,s=null==t?0:t.length;for(r&&s&&(n=t[++o]);++o<s;)n=e(n,t[o],o,t);return n};var o=n(94288),s=n(94425);const i=function(t,e,n,r,o){return o(t,function(t,o,s){n=r?(r=!1,t):e(n,t,o,s)}),n};var c=n(92049);const u=function(t,e,n){var u=(0,c.A)(t)?r:i,a=arguments.length<3;return u(t,(0,s.A)(e,4),n,a,o.A)}},13153(t,e,n){n.d(e,{A:()=>r});const r=function(){return[]}},3456(t,e,n){n.d(e,{A:()=>f});var r=n(241),o=n(45572),s=n(92049),i=n(61882),c=r.A?r.A.prototype:void 0,u=c?c.toString:void 0;const a=function t(e){if("string"==typeof e)return e;if((0,s.A)(e))return(0,o.A)(e,t)+"";if((0,i.A)(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};const f=function(t){return null==t?"":a(t)}},92866(t,e,n){n.d(e,{A:()=>i});var r=n(45572);const o=function(t,e){return(0,r.A)(e,function(e){return t[e]})};var s=n(27422);const i=function(t){return null==t?[]:o(t,(0,s.A)(t))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[70],{60070(e,a,c){c.d(a,{createGitGraphServices:()=>s.b});var s=c(37143);c(41303)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[7081],{11832(t,e,n){n.d(e,{Zp:()=>V,py:()=>E});const s=1e-10;function r(t,e){const n=function(t){const e=[];for(let n=0;n<t.length;++n)for(let s=n+1;s<t.length;++s){const r=l(t[n],t[s]);for(const t of r)t.parentIndex=[n,s],e.push(t)}return e}(t),r=n.filter(e=>function(t,e){return e.every(e=>i(t,e)<e.radius+s)}(e,t));let a=0,u=0;const f=[];if(r.length>1){const e=c(r);for(let t=0;t<r.length;++t){const n=r[t];n.angle=Math.atan2(n.x-e.x,n.y-e.y)}r.sort((t,e)=>e.angle-t.angle);let n=r[r.length-1];for(let e=0;e<r.length;++e){const s=r[e];u+=(n.x+s.x)*(s.y-n.y);const l={x:(s.x+n.x)/2,y:(s.y+n.y)/2};let c=null;for(let e=0;e<s.parentIndex.length;++e)if(n.parentIndex.includes(s.parentIndex[e])){const r=t[s.parentIndex[e]],o=Math.atan2(s.x-r.x,s.y-r.y),a=Math.atan2(n.x-r.x,n.y-r.y);let u=a-o;u<0&&(u+=2*Math.PI);const f=a-u/2;let h=i(l,{x:r.x+r.radius*Math.sin(f),y:r.y+r.radius*Math.cos(f)});h>2*r.radius&&(h=2*r.radius),(null==c||c.width>h)&&(c={circle:r,width:h,p1:s,p2:n,large:h>r.radius,sweep:!0})}null!=c&&(f.push(c),a+=o(c.circle.radius,c.width),n=s)}}else{let e=t[0];for(let n=1;n<t.length;++n)t[n].radius<e.radius&&(e=t[n]);let n=!1;for(let s=0;s<t.length;++s)if(i(t[s],e)>Math.abs(e.radius-t[s].radius)){n=!0;break}n?a=u=0:(a=e.radius*e.radius*Math.PI,f.push({circle:e,p1:{x:e.x,y:e.y+e.radius},p2:{x:e.x-s,y:e.y+e.radius},width:2*e.radius,large:!0,sweep:!0}))}return u/=2,e&&(e.area=a+u,e.arcArea=a,e.polygonArea=u,e.arcs=f,e.innerPoints=r,e.intersectionPoints=n),a+u}function o(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function i(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function a(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);const s=e-(n*n-t*t+e*e)/(2*n);return o(t,t-(n*n-e*e+t*t)/(2*n))+o(e,s)}function l(t,e){const n=i(t,e),s=t.radius,r=e.radius;if(n>=s+r||n<=Math.abs(s-r))return[];const o=(s*s-r*r+n*n)/(2*n),a=Math.sqrt(s*s-o*o),l=t.x+o*(e.x-t.x)/n,c=t.y+o*(e.y-t.y)/n,u=-(e.y-t.y)*(a/n),f=-(e.x-t.x)*(a/n);return[{x:l+u,y:c-f},{x:l-u,y:c+f}]}function c(t){const e={x:0,y:0};for(const n of t)e.x+=n.x,e.y+=n.y;return e.x/=t.length,e.y/=t.length,e}function u(t){const e=new Array(t);for(let n=0;n<t;++n)e[n]=0;return e}function f(t,e){return u(t).map(()=>u(e))}function h(t,e){let n=0;for(let s=0;s<t.length;++s)n+=t[s]*e[s];return n}function x(t){return Math.sqrt(h(t,t))}function g(t,e,n){for(let s=0;s<e.length;++s)t[s]=e[s]*n}function p(t,e,n,s,r){for(let o=0;o<t.length;++o)t[o]=e*n[o]+s*r[o]}function d(t,e,n){const s=(n=n||{}).maxIterations||200*e.length,r=n.nonZeroDelta||1.05,o=n.zeroDelta||.001,i=n.minErrorDelta||1e-6,a=n.minErrorDelta||1e-5,l=void 0!==n.rho?n.rho:1,c=void 0!==n.chi?n.chi:2,u=void 0!==n.psi?n.psi:-.5,f=void 0!==n.sigma?n.sigma:.5;let h;const x=e.length,g=new Array(x+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(let n=0;n<x;++n){const s=e.slice();s[n]=s[n]?s[n]*r:o,g[n+1]=s,g[n+1].fx=t(s),g[n+1].id=n+1}function d(t){for(let e=0;e<t.length;e++)g[x][e]=t[e];g[x].fx=t.fx}const y=(t,e)=>t.fx-e.fx,m=e.slice(),M=e.slice(),b=e.slice(),z=e.slice();for(let e=0;e<s;++e){if(g.sort(y),n.history){const t=g.map(t=>{const e=t.slice();return e.fx=t.fx,e.id=t.id,e});t.sort((t,e)=>t.id-e.id),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:t})}h=0;for(let t=0;t<x;++t)h=Math.max(h,Math.abs(g[0][t]-g[1][t]));if(Math.abs(g[0].fx-g[x].fx)<i&&h<a)break;for(let t=0;t<x;++t){m[t]=0;for(let e=0;e<x;++e)m[t]+=g[e][t];m[t]/=x}const e=g[x];if(p(M,1+l,m,-l,e),M.fx=t(M),M.fx<g[0].fx)p(z,1+c,m,-c,e),z.fx=t(z),z.fx<M.fx?d(z):d(M);else if(M.fx>=g[x-1].fx){let n=!1;if(M.fx>e.fx?(p(b,1+u,m,-u,e),b.fx=t(b),b.fx<e.fx?d(b):n=!0):(p(b,1-u*l,m,u*l,e),b.fx=t(b),b.fx<M.fx?d(b):n=!0),n){if(f>=1)break;for(let e=1;e<g.length;++e)p(g[e],1-f,g[0],f,g[e]),g[e].fx=t(g[e])}}else d(M)}return g.sort(y),{fx:g[0].fx,x:g[0]}}function y(t,e,n,s,r,o,i){const a=n.fx,l=h(n.fxprime,e);let c=a,u=a,f=l,x=0;function g(u,x,g){for(let d=0;d<16;++d)if(r=(u+x)/2,p(s.x,1,n.x,r,e),c=s.fx=t(s.x,s.fxprime),f=h(s.fxprime,e),c>a+o*r*l||c>=g)x=r;else{if(Math.abs(f)<=-i*l)return r;f*(x-u)>=0&&(x=u),u=r,g=c}return 0}r=r||1,o=o||1e-6,i=i||.1;for(let d=0;d<10;++d){if(p(s.x,1,n.x,r,e),c=s.fx=t(s.x,s.fxprime),f=h(s.fxprime,e),c>a+o*r*l||d&&c>=u)return g(x,r,u);if(Math.abs(f)<=-i*l)return r;if(f>=0)return g(r,x,c);u=c,x=r,r*=2}return r}function m(t,e,n){let s={x:e.slice(),fx:0,fxprime:e.slice()},r={x:e.slice(),fx:0,fxprime:e.slice()};const o=e.slice();let i,a,l,c=1;l=(n=n||{}).maxIterations||20*e.length,s.fx=t(s.x,s.fxprime),i=s.fxprime.slice(),g(i,s.fxprime,-1);for(let e=0;e<l;++e){if(c=y(t,i,s,r,c),n.history&&n.history.push({x:s.x.slice(),fx:s.fx,fxprime:s.fxprime.slice(),alpha:c}),c){p(o,1,r.fxprime,-1,s.fxprime);const t=h(s.fxprime,s.fxprime);p(i,Math.max(0,h(o,r.fxprime)/t),i,-1,r.fxprime),a=s,s=r,r=a}else g(i,s.fxprime,-1);if(x(s.fxprime)<=1e-5)break}return n.history&&n.history.push({x:s.x.slice(),fx:s.fx,fxprime:s.fxprime.slice(),alpha:c}),s}function M(t,e={}){e.maxIterations=e.maxIterations||500;const n=e.initialLayout||w,s=e.lossFunction||I,r=function(t,e={}){const n=e.distinct,s=t.map(t=>Object.assign({},t));function r(t){return t.join(";")}if(n){const t=new Map;for(const e of s)for(let n=0;n<e.sets.length;n++){const s=String(e.sets[n]);t.set(s,e.size+(t.get(s)||0));for(let r=n+1;r<e.sets.length;r++){const n=String(e.sets[r]),o=`${s};${n}`,i=`${n};${s}`;t.set(o,e.size+(t.get(o)||0)),t.set(i,e.size+(t.get(i)||0))}}for(const e of s)e.sets.length<3&&(e.size=t.get(r(e.sets)))}const o=[],i=new Set;for(const t of s)if(1===t.sets.length)o.push(t.sets[0]);else if(2===t.sets.length){const e=t.sets[0],n=t.sets[1];i.add(r(t.sets)),i.add(r([n,e]))}o.sort((t,e)=>t===e?0:t<e?-1:1);for(let t=0;t<o.length;++t){const e=o[t];for(let n=t+1;n<o.length;++n){const t=o[n];i.has(r([e,t]))||s.push({sets:[e,t],size:0})}}return s}(t,e),o=n(r,e),i=Object.keys(o),a=[];for(const t of i)a.push(o[t].x),a.push(o[t].y);const l=d(t=>{const e={};for(let n=0;n<i.length;++n){const s=i[n];e[s]={x:t[2*n],y:t[2*n+1],radius:o[s].radius}}return s(e,r)},a,e).x;for(let t=0;t<i.length;++t){const e=i[t];o[e].x=l[2*t],o[e].y=l[2*t+1]}return o}const b=1e-10;function z(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):function(t,e,n,s){const r=(s=s||{}).maxIterations||100,o=s.tolerance||1e-10,i=t(e),a=t(n);let l=n-e;if(i*a>0)throw"Initial bisect points must have opposite signs";if(0===i)return e;if(0===a)return n;for(let n=0;n<r;++n){l/=2;const n=e+l,s=t(n);if(s*i>=0&&(e=n),Math.abs(l)<o||0===s)return n}return e+l}(s=>a(t,e,s)-n,0,t+e)}function w(t,e={}){let n=function(t,e){const n=e&&e.lossFunction?e.lossFunction:I,s={},r={};for(const e of t)if(1===e.sets.length){const t=e.sets[0];s[t]={x:1e10,y:1e10,rowid:s.length,size:e.size,radius:Math.sqrt(e.size/Math.PI)},r[t]=[]}t=t.filter(t=>2===t.sets.length);for(const e of t){let t=null!=e.weight?e.weight:1;const n=e.sets[0],o=e.sets[1];e.size+b>=Math.min(s[n].size,s[o].size)&&(t=0),r[n].push({set:o,size:e.size,weight:t}),r[o].push({set:n,size:e.size,weight:t})}const o=[];function i(t,e){return e.size-t.size}Object.keys(r).forEach(t=>{let e=0;for(let n=0;n<r[t].length;++n)e+=r[t][n].size*r[t][n].weight;o.push({set:t,size:e})}),o.sort(i);const a={};function c(t){return t.set in a}function u(t,e){s[e].x=t.x,s[e].y=t.y,a[e]=!0}u({x:0,y:0},o[0].set);for(let e=1;e<o.length;++e){const a=o[e].set,h=r[a].filter(c),x=s[a];if(h.sort(i),0===h.length)throw"ERROR: missing pairwise overlap information";const g=[];for(var f=0;f<h.length;++f){const t=s[h[f].set],e=z(x.radius,t.radius,h[f].size);g.push({x:t.x+e,y:t.y}),g.push({x:t.x-e,y:t.y}),g.push({y:t.y+e,x:t.x}),g.push({y:t.y-e,x:t.x});for(let n=f+1;n<h.length;++n){const r=s[h[n].set],o=z(x.radius,r.radius,h[n].size),i=l({x:t.x,y:t.y,radius:e},{x:r.x,y:r.y,radius:o});g.push(...i)}}let p=1e50,d=g[0];for(const e of g){s[a].x=e.x,s[a].y=e.y;const r=n(s,t);r<p&&(p=r,d=e)}u(d,a)}return s}(t,e);const s=e.lossFunction||I;if(t.length>=8){const r=function(t,e={}){const n=e.restarts||10,s=[],r={};for(const e of t)1===e.sets.length&&(r[e.sets[0]]=s.length,s.push(e));let{distances:o,constraints:i}=function(t,e,n){const s=f(e.length,e.length),r=f(e.length,e.length);return t.filter(t=>2===t.sets.length).forEach(t=>{const o=n[t.sets[0]],i=n[t.sets[1]],a=z(Math.sqrt(e[o].size/Math.PI),Math.sqrt(e[i].size/Math.PI),t.size);s[o][i]=s[i][o]=a;let l=0;t.size+1e-10>=Math.min(e[o].size,e[i].size)?l=1:t.size<=1e-10&&(l=-1),r[o][i]=r[i][o]=l}),{distances:s,constraints:r}}(t,s,r);const a=x(o.map(x))/o.length;o=o.map(t=>t.map(t=>t/a));const l=(t,e)=>function(t,e,n,s){for(let t=0;t<e.length;++t)e[t]=0;let r=0;for(let o=0;o<n.length;++o){const i=t[2*o],a=t[2*o+1];for(let l=o+1;l<n.length;++l){const c=t[2*l],u=t[2*l+1],f=n[o][l],h=s[o][l],x=(c-i)*(c-i)+(u-a)*(u-a),g=Math.sqrt(x),p=x-f*f;h>0&&g<=f||h<0&&g>=f||(r+=2*p*p,e[2*o]+=4*p*(i-c),e[2*o+1]+=4*p*(a-u),e[2*l]+=4*p*(c-i),e[2*l+1]+=4*p*(u-a))}}return r}(t,e,o,i);let c=null;for(let t=0;t<n;++t){const t=m(l,u(2*o.length).map(Math.random),e);(!c||t.fx<c.fx)&&(c=t)}const h=c.x,p={};for(let t=0;t<s.length;++t){const e=s[t];p[e.sets[0]]={x:h[2*t]*a,y:h[2*t+1]*a,radius:Math.sqrt(e.size/Math.PI)}}if(e.history)for(const t of e.history)g(t.x,a);return p}(t,e);s(r,t)+1e-8<s(n,t)&&(n=r)}return n}function I(t,e){let n=0;for(const s of e){if(1===s.sets.length)continue;let e;if(2===s.sets.length){const n=t[s.sets[0]],r=t[s.sets[1]];e=a(n.radius,r.radius,i(n,r))}else e=r(s.sets.map(e=>t[e]));n+=(null!=s.weight?s.weight:1)*(e-s.size)*(e-s.size)}return n}function R(t,e){let n=0;for(const s of e){if(1===s.sets.length)continue;let e;if(2===s.sets.length){const n=t[s.sets[0]],r=t[s.sets[1]];e=a(n.radius,r.radius,i(n,r))}else e=r(s.sets.map(e=>t[e]));const o=null!=s.weight?s.weight:1,l=Math.log((e+1)/(s.size+1));n+=o*l*l}return n}function v(t,e,n){if(null==n?t.sort((t,e)=>e.radius-t.radius):t.sort(n),t.length>0){const e=t[0].x,n=t[0].y;for(const s of t)s.x-=e,s.y-=n}if(2===t.length){i(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y)}if(t.length>1){const n=Math.atan2(t[1].x,t[1].y)-e,s=Math.cos(n),r=Math.sin(n);for(const e of t){const t=e.x,n=e.y;e.x=s*t-r*n,e.y=r*t+s*n}}if(t.length>2){let n=Math.atan2(t[2].x,t[2].y)-e;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){const e=t[1].y/(1e-10+t[1].x);for(const n of t){var s=(n.x+e*n.y)/(1+e*e);n.x=2*s-n.x,n.y=2*s*e-n.y}}}}function A(t){const e=e=>({max:t.reduce((t,n)=>Math.max(t,n[e]+n.radius),Number.NEGATIVE_INFINITY),min:t.reduce((t,n)=>Math.min(t,n[e]-n.radius),Number.POSITIVE_INFINITY)});return{xRange:e("x"),yRange:e("y")}}function F(t,e,n){null==e&&(e=Math.PI/2);let s=k(t).map(t=>Object.assign({},t));const r=function(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}function n(t,n){const s=e(t),r=e(n);s.parent=r}t.forEach(t=>{t.parent=t});for(let e=0;e<t.length;++e)for(let s=e+1;s<t.length;++s){const r=t[e].radius+t[s].radius;i(t[e],t[s])+1e-10<r&&n(t[s],t[e])}const s=new Map;for(let n=0;n<t.length;++n){const r=e(t[n]).parent.setid;s.has(r)||s.set(r,[]),s.get(r).push(t[n])}return t.forEach(t=>{delete t.parent}),Array.from(s.values())}(s);for(const t of r){v(t,e,n);const s=A(t);t.size=(s.xRange.max-s.xRange.min)*(s.yRange.max-s.yRange.min),t.bounds=s}r.sort((t,e)=>e.size-t.size),s=r[0];let o=s.bounds;const a=(o.xRange.max-o.xRange.min)/50;function l(t,e,n){if(!t)return;const r=t.bounds;let i,l;if(e)i=o.xRange.max-r.xRange.min+a;else{i=o.xRange.max-r.xRange.max;const t=(r.xRange.max-r.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;t<0&&(i+=t)}if(n)l=o.yRange.max-r.yRange.min+a;else{l=o.yRange.max-r.yRange.max;const t=(r.yRange.max-r.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;t<0&&(l+=t)}for(const e of t)e.x+=i,e.y+=l,s.push(e)}let c=1;for(;c<r.length;)l(r[c],!0,!1),l(r[c+1],!1,!0),l(r[c+2],!0,!0),c+=3,o=A(s);return j(s)}function P(t,e,n,s,r){const o=k(t);e-=2*s,n-=2*s;const{xRange:i,yRange:a}=A(o);if(i.max===i.min||a.max===a.min)return console.log("not scaling solution: zero size detected"),t;let l,c;if(r){const t=2*Math.sqrt(r/Math.PI);l=e/t,c=n/t}else l=e/(i.max-i.min),c=n/(a.max-a.min);const u=Math.min(c,l),f=(e-(i.max-i.min)*u)/2,h=(n-(a.max-a.min)*u)/2;return j(o.map(t=>({radius:u*t.radius,x:s+f+(t.x-i.min)*u,y:s+h+(t.y-a.min)*u,setid:t.setid})))}function j(t){const e={};for(const n of t)e[n.setid]=n;return e}function k(t){return Object.keys(t).map(e=>Object.assign(t[e],{setid:e}))}function E(t={}){let e=!1,n=600,s=350,r=15,o=1e3,i=Math.PI/2,a=!0,l=null,c=!0,u=!0,f=null,h=null,x=!1,g=null,p=!(!t||!t.symmetricalTextCentre)&&t.symmetricalTextCentre,d={},y=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],m=0,b=function(t){if(t in d)return d[t];var e=d[t]=y[m];return m+=1,m>=y.length&&(m=0),e},z=M,w=I;function v(d){let y=d.datum();const m=new Set;y.forEach(t=>{0==t.size&&1==t.sets.length&&m.add(t.sets[0])}),y=y.filter(t=>!t.sets.some(t=>m.has(t)));let M={},I={};if(y.length>0){let t=z(y,{lossFunction:w,distinct:x});a&&(t=F(t,i,h)),M=P(t,n,s,r,l),I=C(M,y,p)}const R={};function v(t){return t.sets in R?R[t.sets]:1==t.sets.length?""+t.sets[0]:void 0}y.forEach(t=>{t.label&&(R[t.sets]=t.label)}),d.selectAll("svg").data([M]).enter().append("svg");const A=d.select("svg");e?A.attr("viewBox",`0 0 ${n} ${s}`):A.attr("width",n).attr("height",s);const j={};let k=!1;function E(t){return e=>D(t.sets.map(t=>{let r=j[t],o=M[t];return r||(r={x:n/2,y:s/2,radius:1}),o||(o={x:n/2,y:s/2,radius:1}),{x:r.x*(1-e)+o.x*e,y:r.y*(1-e)+o.y*e,radius:r.radius*(1-e)+o.radius*e}}),g)}A.selectAll(".venn-area path").each(function(t){const e=this.getAttribute("d");1==t.sets.length&&e&&!x&&(k=!0,j[t.sets[0]]=function(t){const e=t.split(" ");return{x:Number.parseFloat(e[1]),y:Number.parseFloat(e[2]),radius:-Number.parseFloat(e[4])}}(e))});const O=A.selectAll(".venn-area").data(y,t=>t.sets),S=O.enter().append("g").attr("class",t=>`venn-area venn-${1==t.sets.length?"circle":"intersection"}${t.colour||t.color?" venn-coloured":""}`).attr("data-venn-sets",t=>t.sets.join("_")),T=S.append("path"),q=S.append("text").attr("class","label").text(t=>v(t)).attr("text-anchor","middle").attr("dy",".35em").attr("x",n/2).attr("y",s/2);function $(t){return"function"==typeof t.transition?t.transition("venn").duration(o):t}u&&(T.style("fill-opacity","0").filter(t=>1==t.sets.length).style("fill",t=>t.colour?t.colour:t.color?t.color:b(t.sets)).style("fill-opacity",".25"),q.style("fill",e=>e.colour||e.color?"#FFF":t.textFill?t.textFill:1==e.sets.length?b(e.sets):"#444"));let V=d;k&&"function"==typeof V.transition?(V=$(d),V.selectAll("path").attrTween("d",E)):V.selectAll("path").attr("d",t=>D(t.sets.map(t=>M[t])),g);const _=V.selectAll("text").filter(t=>t.sets in I).text(t=>v(t)).attr("x",t=>Math.floor(I[t.sets].x)).attr("y",t=>Math.floor(I[t.sets].y));c&&(k?"on"in _?_.on("end",N(M,v)):_.each("end",N(M,v)):_.each(N(M,v)));const B=$(O.exit()).remove();"function"==typeof O.transition&&B.selectAll("path").attrTween("d",E);const G=B.selectAll("text").attr("x",n/2).attr("y",s/2);return null!==f&&(q.style("font-size","0px"),_.style("font-size",f),G.style("font-size","0px")),{circles:M,textCentres:I,nodes:O,enter:S,update:V,exit:B}}return v.wrap=function(t){return arguments.length?(c=t,v):c},v.useViewBox=function(){return e=!0,v},v.width=function(t){return arguments.length?(n=t,v):n},v.height=function(t){return arguments.length?(s=t,v):s},v.padding=function(t){return arguments.length?(r=t,v):r},v.distinct=function(t){return arguments.length?(x=t,v):x},v.colours=function(t){return arguments.length?(b=t,v):b},v.colors=function(t){return arguments.length?(b=t,v):b},v.fontSize=function(t){return arguments.length?(f=t,v):f},v.round=function(t){return arguments.length?(g=t,v):g},v.duration=function(t){return arguments.length?(o=t,v):o},v.layoutFunction=function(t){return arguments.length?(z=t,v):z},v.normalize=function(t){return arguments.length?(a=t,v):a},v.scaleToFit=function(t){return arguments.length?(l=t,v):l},v.styled=function(t){return arguments.length?(u=t,v):u},v.orientation=function(t){return arguments.length?(i=t,v):i},v.orientationOrder=function(t){return arguments.length?(h=t,v):h},v.lossFunction=function(t){return arguments.length?(w="default"===t?I:"logRatio"===t?R:t,v):w},v}function N(t,e){return function(n){const s=this,r=t[n.sets[0]].radius||50,o=e(n)||"",i=o.split(/\s+/).reverse(),a=(o.length+i.length)/3;let l=i.pop(),c=[l],u=0;s.textContent=null;const f=[];function h(t){const e=s.ownerDocument.createElementNS(s.namespaceURI,"tspan");return e.textContent=t,f.push(e),s.append(e),e}let x=h(l);for(;l=i.pop(),l;){c.push(l);const t=c.join(" ");x.textContent=t,t.length>a&&x.getComputedTextLength()>r&&(c.pop(),x.textContent=c.join(" "),c=[l],x=h(l),u++)}const g=.35-1.1*u/2,p=s.getAttribute("x"),d=s.getAttribute("y");f.forEach((t,e)=>{t.setAttribute("x",p),t.setAttribute("y",d),t.setAttribute("dy",`${g+1.1*e}em`)})}}function O(t,e,n){let s=e[0].radius-i(e[0],t);for(let n=1;n<e.length;++n){const r=e[n].radius-i(e[n],t);r<=s&&(s=r)}for(let e=0;e<n.length;++e){const r=i(n[e],t)-n[e].radius;r<=s&&(s=r)}return s}function S(t,e,n){const s=[];for(const e of t)s.push({x:e.x,y:e.y}),s.push({x:e.x+e.radius/2,y:e.y}),s.push({x:e.x-e.radius/2,y:e.y}),s.push({x:e.x,y:e.y+e.radius/2}),s.push({x:e.x,y:e.y-e.radius/2});let o=s[0],a=O(s[0],t,e);for(let n=1;n<s.length;++n){const r=O(s[n],t,e);r>=a&&(o=s[n],a=r)}const l=d(n=>-1*O({x:n[0],y:n[1]},t,e),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:n?0:l[0],y:l[1]};let f=!0;for(const e of t)if(i(u,e)>e.radius){f=!1;break}for(const t of e)if(i(u,t)<t.radius){f=!1;break}if(f)return u;if(1==t.length)return{x:t[0].x,y:t[0].y};const h={};return r(t,h),0===h.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==h.arcs.length?{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y}:e.length?S(t,[]):c(h.arcs.map(t=>t.p1))}function T(t){const e={},n=Object.keys(t);for(const t of n)e[t]=[];for(let s=0;s<n.length;s++){const r=n[s],o=t[r];for(let a=s+1;a<n.length;++a){const s=n[a],l=t[s],c=i(o,l);c+l.radius<=o.radius+1e-10?e[s].push(r):c+o.radius<=l.radius+1e-10&&e[r].push(s)}}return e}function C(t,e,n){const s={},r=T(t);for(let o=0;o<e.length;++o){const i=e[o].sets,a={},l={};for(let t=0;t<i.length;++t){a[i[t]]=!0;const e=r[i[t]];for(let t=0;t<e.length;++t)l[e[t]]=!0}const c=[],u=[];for(let e in t)e in a?c.push(t[e]):e in l||u.push(t[e]);const f=S(c,u,n);s[i]=f,f.disjoint&&e[o].size>0&&console.log("WARNING: area "+i+" not represented on screen")}return s}function q(t){if(0===t.length)return[];const e={};return r(t,e),e.arcs}function $(t,e){if(0===t.length)return"M 0 0";const n=Math.pow(10,e||0),s=null!=e?t=>Math.round(t*n)/n:t=>t;if(1==t.length){const e=t[0].circle;return function(t,e,n){const s=[];return s.push("\nM",t,e),s.push("\nm",-n,0),s.push("\na",n,n,0,1,0,2*n,0),s.push("\na",n,n,0,1,0,2*-n,0),s.join(" ")}(s(e.x),s(e.y),s(e.radius))}const r=["\nM",s(t[0].p2.x),s(t[0].p2.y)];for(const e of t){const t=s(e.circle.radius);r.push("\nA",t,t,0,e.large?1:0,e.sweep?1:0,s(e.p1.x),s(e.p1.y))}return r.join(" ")}function D(t,e){return $(q(t),e)}function V(t,e={}){const{lossFunction:n,layoutFunction:s=M,normalize:r=!0,orientation:o=Math.PI/2,orientationOrder:i,width:a=600,height:l=350,padding:c=15,scaleToFit:u=!1,symmetricalTextCentre:f=!1,distinct:h,round:x=2}=e;let g=s(t,{lossFunction:"default"!==n&&n?"logRatio"===n?R:n:I,distinct:h});r&&(g=F(g,o,i));const p=P(g,a,l,c,u),d=C(p,t,f),y=new Map(Object.keys(p).map(t=>[t,{set:t,x:p[t].x,y:p[t].y,radius:p[t].radius}])),m=t.map(t=>{const e=t.sets.map(t=>y.get(t)),n=q(e);return{circles:e,arcs:n,path:$(n,x),area:t,has:new Set(t.sets)}});function b(t){let e="";for(const n of m)n.has.size>t.length&&t.every(t=>n.has.has(t))&&(e+=" "+n.path);return e}return m.map(({circles:t,arcs:e,path:n,area:s})=>({data:s,text:d[s.sets],circles:t,arcs:e,path:n,distinctPath:n+b(s.sets)}))}},91672(t,e,n){n.d(e,{A:()=>r});var s=n(95635);const r=(t,e)=>(0,s.A)(t,"a",-e)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[7128],{75937(t,e,s){s.d(e,{A:()=>r});var i=s(86309),n=s(51931);const r=(t,e)=>i.A.lang.round(n.A.parse(t)[e])},64918(t,e,s){s.d(e,{o:()=>i});var i=(0,s(86827).K)(()=>"\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n","getIconStyles")},98120(t,e,s){s.d(e,{CP:()=>h,Ck:()=>g,HT:()=>p,PB:()=>d,aC:()=>c,lC:()=>u,m:()=>l,tk:()=>o});var i=s(89983),n=s(86827),r=s(62559),a=s(51444),o=(0,n.K)((t,e)=>{const s=t.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),e.name&&s.attr("name",e.name),e.rx&&s.attr("rx",e.rx),e.ry&&s.attr("ry",e.ry),void 0!==e.attrs)for(const t in e.attrs)s.attr(t,e.attrs[t]);return e.class&&s.attr("class",e.class),s},"drawRect"),u=(0,n.K)((t,e)=>{const s={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};o(t,s).lower()},"drawBackgroundRect"),l=(0,n.K)((t,e)=>{const s=e.text.replace(i.H1," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class&&n.attr("class",e.class);const r=n.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(s),n},"drawText"),c=(0,n.K)((t,e,s,i)=>{const n=t.append("image");n.attr("x",e),n.attr("y",s);const a=(0,r.J)(i);n.attr("xlink:href",a)},"drawImage"),h=(0,n.K)((t,e,s,i)=>{const n=t.append("use");n.attr("x",e),n.attr("y",s);const a=(0,r.J)(i);n.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),d=(0,n.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=(0,n.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),g=(0,n.K)(()=>{let t=(0,a.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,a.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},87128(t,e,s){s.d(e,{AC:()=>v,tM:()=>F,ur:()=>_});var i=s(64918),n=s(96755),r=s(92892),a=s(841),o=s(56714),u=s(98120),l=s(84076),c=s(92941),h=s(51255),d=s(89983),p=s(31293),g=s(86827),y=s(51444),A=s(99418),b=s(25582),k=s(75937),f=class{constructor(){this.vertexCounter=0,this.config=(0,d.D7)(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=d.SV,this.setAccDescription=d.EI,this.setDiagramTitle=d.ke,this.getAccTitle=d.iN,this.getAccDescription=d.m7,this.getDiagramTitle=d.ab,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{(0,g.K)(this,"FlowDB")}sanitizeText(t){return d.Y2.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(const e of this.vertices.values())if(e.id===t)return this.diagramId?`${this.diagramId}-${e.domId}`:e.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,e,s,i,n,r,o={},u){if(!t||0===t.trim().length)return;let c;if(void 0!==u){let t;t=u.includes("\n")?u+"\n":"{\n"+u+"\n}",c=(0,a.H)(t,{schema:a.r})}const h=this.subGraphLookup.get(t);if(h&&c)return void(h.metadata={...h.metadata,...c});const g=this.edges.find(e=>e.id===t);if(g){const t=c;return void 0!==t?.animate&&(g.animate=t.animate),void 0!==t?.animation&&(g.animation=t.animation),void(void 0!==t?.curve&&(g.interpolate=t.curve))}let y,A=this.vertices.get(t);if(void 0===A&&(void 0===e&&void 0===s&&null!=i&&p.R.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`),A={id:t,labelType:"text",domId:"flowchart-"+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,A)),this.vertexCounter++,void 0!==e?(this.config=(0,d.D7)(),y=this.sanitizeText(e.text.trim()),A.labelType=e.type,y.startsWith('"')&&y.endsWith('"')&&(y=y.substring(1,y.length-1)),A.text=y):void 0===A.text&&(A.text=t),void 0!==s&&(A.type=s),null!=i&&i.forEach(t=>{A.styles.push(t)}),null!=n&&n.forEach(t=>{A.classes.push(t)}),void 0!==r&&(A.dir=r),void 0===A.props?A.props=o:void 0!==o&&Object.assign(A.props,o),void 0!==c){if(c.shape){if(c.shape!==c.shape.toLowerCase()||c.shape.includes("_"))throw new Error(`No such shape: ${c.shape}. Shape names should be lowercase.`);if(!(0,l.aP)(c.shape))throw new Error(`No such shape: ${c.shape}.`);A.type=c?.shape}c?.label&&(A.text=c?.label,A.labelType=this.sanitizeNodeLabelType(c?.labelType)),c?.icon&&(A.icon=c?.icon,c.label?.trim()||A.text!==t||(A.text="")),c?.form&&(A.form=c?.form),c?.pos&&(A.pos=c?.pos),c?.img&&(A.img=c?.img,c.label?.trim()||A.text!==t||(A.text="")),c?.constraint&&(A.constraint=c.constraint),c.w&&(A.assetWidth=Number(c.w)),c.h&&(A.assetHeight=Number(c.h))}}addSingleLink(t,e,s,i){const n={start:t,end:e,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};p.R.info("abc78 Got edge...",n);const r=s.text;if(void 0!==r&&(n.text=this.sanitizeText(r.text.trim()),n.text.startsWith('"')&&n.text.endsWith('"')&&(n.text=n.text.substring(1,n.text.length-1)),n.labelType=this.sanitizeNodeLabelType(r.type)),void 0!==s&&(n.type=s.type,n.stroke=s.stroke,n.length=s.length>10?10:s.length),i&&!this.edges.some(t=>t.id===i))n.id=i,n.isUserDefinedId=!0;else{const t=this.edges.filter(t=>t.start===n.start&&t.end===n.end);0===t.length?n.id=(0,h.rY)(n.start,n.end,{counter:0,prefix:"L"}):n.id=(0,h.rY)(n.start,n.end,{counter:t.length+1,prefix:"L"})}if(!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`);p.R.info("Pushing edge..."),this.edges.push(n)}isLinkData(t){return null!==t&&"object"==typeof t&&"id"in t&&"string"==typeof t.id}addLink(t,e,s){const i=this.isLinkData(s)?s.id.replace("@",""):void 0;p.R.info("addLink",t,e,i);for(const n of t)for(const r of e){const a=n===t[t.length-1],o=r===e[0];a&&o?this.addSingleLink(n,r,s,i):this.addSingleLink(n,r,s,void 0)}}updateLinkInterpolate(t,e){t.forEach(t=>{"default"===t?this.edges.defaultInterpolate=e:this.edges[t].interpolate=e})}updateLink(t,e){t.forEach(t=>{if("number"==typeof t&&t>=this.edges.length)throw new Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===t?this.edges.defaultStyle=e:(this.edges[t].style=e,(this.edges[t]?.style?.length??0)>0&&!this.edges[t]?.style?.some(t=>t?.startsWith("fill"))&&this.edges[t]?.style?.push("fill:none"))})}addClass(t,e){const s=e.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(t=>{let e=this.classes.get(t);void 0===e&&(e={id:t,styles:[],textStyles:[]},this.classes.set(t,e)),null!=s&&s.forEach(t=>{if(/color/.exec(t)){const s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)})})}setDirection(t){this.direction=t.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(t,e){for(const s of t.split(",")){const t=this.vertices.get(s);t&&t.classes.push(e);const i=this.edges.find(t=>t.id===s);i&&i.classes.push(e);const n=this.subGraphLookup.get(s);n&&n.classes.push(e)}}setTooltip(t,e){if(void 0!==e){e=this.sanitizeText(e);for(const s of t.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(s):s,e)}}setClickFun(t,e,s){if("loose"!==(0,d.D7)().securityLevel)return;if(void 0===e)return;let i=[];if("string"==typeof s){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(t);const n=this.vertices.get(t);n&&(n.haveCallback=!0,this.funs.push(()=>{const s=this.lookUpDomId(t),n=document.querySelector(`[id="${s}"]`);null!==n&&n.addEventListener("click",()=>{h._K.runFunc(e,...i)},!1)}))}setLink(t,e,s){t.split(",").forEach(t=>{const i=this.vertices.get(t);void 0!==i&&(i.link=h._K.formatUrl(e,this.config),i.linkTarget=s)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFun(t,e,s)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){const e=(0,u.Ck)();(0,y.Ltv)(t).select("svg").selectAll("g.node").on("mouseover",t=>{const s=(0,y.Ltv)(t.currentTarget),i=s.attr("title");if(null===i)return;const n=t.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(s.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.bottom+"px"),e.html(A.A.sanitize(i)),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0);(0,y.Ltv)(t.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=(0,d.D7)(),(0,d.IU)()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,e,s){let i=t.text.trim(),n=s.text;t===s&&/\s/.exec(s.text)&&(i=void 0);const r=(0,g.K)(t=>{const e={boolean:{},number:{},string:{}},s=[];let i;return{nodeList:t.filter(function(t){const n=typeof t;return t.stmt&&"dir"===t.stmt?(i=t.value,!1):""!==t.trim()&&(n in e?!e[n].hasOwnProperty(t)&&(e[n][t]=!0):!s.includes(t)&&s.push(t))}),dir:i}},"uniq")(e.flat()),a=r.nodeList;let o=r.dir;const u=(0,d.D7)().flowchart??{};if(o=o??(u.inheritDir?this.getDirection()??(0,d.D7)().direction??void 0:void 0),"gen-1"===this.version)for(let t=0;t<a.length;t++)a[t]=this.lookUpDomId(a[t]);i=i??"subGraph"+this.subCount,n=n||"",n=this.sanitizeText(n),this.subCount=this.subCount+1;const l={id:i,nodes:a,title:n.trim(),classes:[],dir:o,labelType:this.sanitizeNodeLabelType(s?.type)};p.R.info("Adding",l.id,l.nodes,l.dir),l.nodes=this.makeUniq(l,this.subGraphs).nodes.filter(t=>t!==i);const c=this.subGraphs.find(t=>t.id===i);return c?c.nodes.push(...l.nodes):this.subGraphs.push(l),this.subGraphLookup.set(i,c??l),i}getPosForId(t){for(const[e,s]of this.subGraphs.entries())if(s.id===t)return e;return-1}indexNodes2(t,e){const s=this.subGraphs[e].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=e,this.subGraphs[e].id===t)return{result:!0,count:0};let i=0,n=1;for(;i<s.length;){const e=this.getPosForId(s[i]);if(e>=0){const s=this.indexNodes2(t,e);if(s.result)return{result:!0,count:n+s.count};n+=s.count}i+=1}return{result:!1,count:n}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}destructStartLink(t){let e=t.trim(),s="arrow_open";switch(e[0]){case"<":s="arrow_point",e=e.slice(1);break;case"x":s="arrow_cross",e=e.slice(1);break;case"o":s="arrow_circle",e=e.slice(1)}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:s,stroke:i}}countChar(t,e){const s=e.length;let i=0;for(let n=0;n<s;++n)e[n]===t&&++i;return i}destructEndLink(t){const e=t.trim();let s=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross",e.startsWith("x")&&(i="double_"+i,s=s.slice(1));break;case">":i="arrow_point",e.startsWith("<")&&(i="double_"+i,s=s.slice(1));break;case"o":i="arrow_circle",e.startsWith("o")&&(i="double_"+i,s=s.slice(1))}let n="normal",r=s.length-1;s.startsWith("=")&&(n="thick"),s.startsWith("~")&&(n="invisible");const a=this.countChar(".",s);return a&&(n="dotted",r=a),{type:i,stroke:n,length:r}}destructLink(t,e){const s=this.destructEndLink(t);let i;if(e){if(i=this.destructStartLink(e),i.stroke!==s.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===i.type)i.type=s.type;else{if(i.type!==s.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return"double_arrow"===i.type&&(i.type="double_arrow_point"),i.length=s.length,i}return s}exists(t,e){for(const s of t)if(s.nodes.includes(e))return!0;return!1}makeUniq(t,e){const s=[];return t.nodes.forEach((i,n)=>{this.exists(e,i)||s.push(t.nodes[n])}),{nodes:s}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return"circle"===t.form?"iconCircle":"square"===t.form?"iconSquare":"rounded"===t.form?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,e){return t.find(t=>t.id===e)}destructEdgeType(t){let e="none",s="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":s=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":e=t.replace("double_",""),s=e}return{arrowTypeStart:e,arrowTypeEnd:s}}addNodeFromVertex(t,e,s,i,n,r){const a=s.get(t.id),o=i.get(t.id)??!1,u=this.findNode(e,t.id);if(u)u.cssStyles=t.styles,u.cssCompiledStyles=this.getCompiledStyles(t.classes),u.cssClasses=t.classes.join(" ");else{const s={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:a,padding:n.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:r,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};o?e.push({...s,isGroup:!0,shape:"rect"}):e.push({...s,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:n.flowchart?.minNodeWidth})}}getCompiledStyles(t){let e=[];for(const s of t){const t=this.classes.get(s);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}getData(){const t=(0,d.D7)(),e=[],s=[],i=this.getSubGraphs(),n=new Map,r=new Map,a=new Map;for(const t of i)for(const e of t.nodes)this.subGraphLookup.has(e)&&a.set(e,t.id);const o=new Map,u=new Map;for(const t of i){const e=a.get(t.id);void 0!==e&&u.set(e,[...u.get(e)??[],t.id])}let l=0;const c=(0,g.K)(t=>{o.set(t,l++);for(const e of u.get(t)??[])c(e)},"walk");for(const t of i)a.has(t.id)||c(t.id);const p=(0,g.K)(t=>"collapsed"===this.subGraphLookup.get(t)?.metadata?.view,"isCollapsed"),y=(0,g.K)(t=>{let e;const s=new Set;let i=t;for(;void 0!==i&&!s.has(i);)s.add(i),p(i)&&(e=i),i=a.get(i);return e},"outermostCollapsed"),A=new Set,b=new Map;for(const t of i){const e=y(t.id);if(void 0!==e){t.id!==e&&(A.add(t.id),b.set(t.id,e));for(const s of t.nodes)s!==e&&(A.add(s),b.set(s,e))}}for(let t=i.length-1;t>=0;t--){const e=i[t];if(!A.has(e.id)){e.nodes.length>0&&r.set(e.id,!0);for(const t of e.nodes)n.set(t,e.id)}}for(let s=i.length-1;s>=0;s--){const r=i[s];A.has(r.id)||("collapsed"===r.metadata?.view?e.push({id:r.id,label:r.title,labelStyle:"",labelType:r.labelType,parentId:n.get(r.id),padding:8,cssCompiledStyles:this.getCompiledStyles(r.classes),cssClasses:r.classes.join(" "),shape:"collapsedGroup",dir:r.dir,isGroup:!1,look:t.look,colorIndex:o.get(r.id)}):e.push({id:r.id,label:r.title,labelStyle:"",labelType:r.labelType,parentId:n.get(r.id),padding:8,cssCompiledStyles:this.getCompiledStyles(r.classes),cssClasses:r.classes.join(" "),shape:"rect",dir:r.dir,isGroup:!0,look:t.look,colorIndex:o.get(r.id),metadata:r.metadata}))}this.getVertices().forEach(s=>{A.has(s.id)||this.addNodeFromVertex(s,e,n,r,t,t.look||"classic")});const k=this.getEdges();return k.forEach((e,i)=>{const{arrowTypeStart:n,arrowTypeEnd:r}=this.destructEdgeType(e.type),a=[...k.defaultStyle??[]],o=b.get(e.start)??e.start,u=b.get(e.end)??e.end;if(o===u&&(b.has(e.start)||b.has(e.end)))return;e.style&&a.push(...e.style);const l={id:(0,h.rY)(o,u,{counter:i,prefix:"L"},e.id),isUserDefinedId:e.isUserDefinedId,start:o,end:u,type:e.type??"normal",label:e.text,labelType:e.labelType,labelpos:"c",thickness:e.stroke,minlen:e.length,classes:"invisible"===e?.stroke?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":n,arrowTypeEnd:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":r,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(e.classes),labelStyle:a,style:a,pattern:e.stroke,look:t.look,animate:e.animate,animation:e.animation,curve:e.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};s.push(l)}),{nodes:e,edges:s,other:{},config:t}}defaultConfig(){return d.ME.flowchart}},m={getClasses:(0,g.K)(function(t,e){return e.db.getClasses()},"getClasses"),draw:(0,g.K)(async function(t,e,s,i){p.R.info("REF0:"),p.R.info("Drawing state diagram (v2)",e);const{securityLevel:a,flowchart:u,layout:l}=(0,d.D7)();i.db.setDiagramId(e),p.R.debug("Before getData: ");const c=i.db.getData();p.R.debug("Data: ",c);const g=(0,n.A)(e,a),y=i.db.getDirection();c.type=i.type,c.layoutAlgorithm=(0,o.q7)(l),c.direction=y,c.nodeSpacing=u?.nodeSpacing||50,c.rankSpacing=u?.rankSpacing||50,c.markers=["point","circle","cross"],c.diagramId=e,p.R.debug("REF1:",c),await(0,o.XX)(c,g);const A=c.config.flowchart?.diagramPadding??8;h._K.insertTitle(g,"flowchartTitleText",u?.titleTopMargin||0,i.db.getDiagramTitle()),(0,r.P)(g,A,"flowchart",u?.useMaxWidth||!1)},"draw")},x=function(){var t=(0,g.K)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,4],s=[1,3],i=[1,5],n=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],r=[2,2],a=[1,13],o=[1,14],u=[1,15],l=[1,16],c=[1,23],h=[1,25],d=[1,26],p=[1,27],y=[1,50],A=[1,49],b=[1,29],k=[1,30],f=[1,31],m=[1,32],x=[1,33],E=[1,45],C=[1,47],D=[1,43],T=[1,48],S=[1,44],F=[1,51],_=[1,46],v=[1,52],B=[1,53],w=[1,34],$=[1,35],L=[1,36],I=[1,37],R=[1,38],N=[1,58],K=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],P=[1,62],G=[1,61],O=[1,63],M=[8,9,11,75,77,78],V=[1,79],U=[1,92],W=[1,97],z=[1,96],j=[1,93],Y=[1,89],H=[1,95],X=[1,91],q=[1,98],Q=[1,94],J=[1,99],Z=[1,90],tt=[8,9,10,11,40,75,77,78],et=[8,9,10,11,40,46,75,77,78],st=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],it=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],nt=[44,60,89,102,105,106,109,111,114,115,116],rt=[1,122],at=[1,123],ot=[1,125],ut=[1,124],lt=[44,60,62,74,89,102,105,106,109,111,114,115,116],ct=[1,134],ht=[1,148],dt=[1,149],pt=[1,150],gt=[1,151],yt=[1,136],At=[1,138],bt=[1,142],kt=[1,143],ft=[1,144],mt=[1,145],xt=[1,146],Et=[1,147],Ct=[1,152],Dt=[1,153],Tt=[1,132],St=[1,133],Ft=[1,140],_t=[1,135],vt=[1,139],Bt=[1,137],wt=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],$t=[1,155],Lt=[1,157],It=[8,9,11],Rt=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Nt=[1,177],Kt=[1,173],Pt=[1,174],Gt=[1,178],Ot=[1,175],Mt=[1,176],Vt=[77,116,119],Ut=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Wt=[10,106],zt=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],jt=[1,248],Yt=[1,246],Ht=[1,250],Xt=[1,244],qt=[1,245],Qt=[1,247],Jt=[1,249],Zt=[1,251],te=[1,269],ee=[8,9,11,106],se=[8,9,10,11,60,84,105,106,109,110,111,112],ie={trace:(0,g.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:(0,g.K)(function(t,e,s,i,n,r,a){var o=r.length-1;switch(n){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(r[o])||r[o].length>0)&&r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=r[o];break;case 11:i.setDirection("TB"),this.$="TB";break;case 12:i.setDirection(r[o-1]),this.$=r[o-1];break;case 27:this.$=r[o-1].nodes;break;case 33:this.$=i.addSubGraph(r[o-6],r[o-1],r[o-4]);break;case 34:this.$=i.addSubGraph(r[o-3],r[o-1],r[o-3]);break;case 35:this.$=i.addSubGraph(void 0,r[o-1],void 0);break;case 37:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 43:case 133:this.$=r[o-1]+r[o];break;case 45:i.addVertex(r[o-1][r[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[o]),i.addLink(r[o-3].stmt,r[o-1],r[o-2]),this.$={stmt:r[o-1],nodes:r[o-1].concat(r[o-3].nodes)};break;case 46:i.addLink(r[o-2].stmt,r[o],r[o-1]),this.$={stmt:r[o],nodes:r[o].concat(r[o-2].nodes)};break;case 47:i.addLink(r[o-3].stmt,r[o-1],r[o-2]),this.$={stmt:r[o-1],nodes:r[o-1].concat(r[o-3].nodes)};break;case 48:this.$={stmt:r[o-1],nodes:r[o-1]};break;case 49:i.addVertex(r[o-1][r[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[o]),this.$={stmt:r[o-1],nodes:r[o-1],shapeData:r[o]};break;case 50:this.$={stmt:r[o],nodes:r[o]};break;case 51:case 128:case 130:this.$=[r[o]];break;case 52:i.addVertex(r[o-5][r[o-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[o-4]),this.$=r[o-5].concat(r[o]);break;case 53:this.$=r[o-4].concat(r[o]);break;case 55:this.$=r[o-2],i.setClass(r[o-2],r[o]);break;case 56:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"square");break;case 57:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"doublecircle");break;case 58:this.$=r[o-5],i.addVertex(r[o-5],r[o-2],"circle");break;case 59:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"ellipse");break;case 60:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"stadium");break;case 61:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"subroutine");break;case 62:this.$=r[o-7],i.addVertex(r[o-7],r[o-1],"rect",void 0,void 0,void 0,Object.fromEntries([[r[o-5],r[o-3]]]));break;case 63:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"cylinder");break;case 64:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"round");break;case 65:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"diamond");break;case 66:this.$=r[o-5],i.addVertex(r[o-5],r[o-2],"hexagon");break;case 67:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"odd");break;case 68:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"trapezoid");break;case 69:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"inv_trapezoid");break;case 70:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"lean_right");break;case 71:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"lean_left");break;case 72:this.$=r[o],i.addVertex(r[o]);break;case 73:r[o-1].text=r[o],this.$=r[o-1];break;case 74:case 75:r[o-2].text=r[o-1],this.$=r[o-2];break;case 77:var u=i.destructLink(r[o],r[o-2]);this.$={type:u.type,stroke:u.stroke,length:u.length,text:r[o-1]};break;case 78:u=i.destructLink(r[o],r[o-2]);this.$={type:u.type,stroke:u.stroke,length:u.length,text:r[o-1],id:r[o-3]};break;case 79:case 86:case 101:case 103:this.$={text:r[o],type:"text"};break;case 80:case 87:case 102:this.$={text:r[o-1].text+""+r[o],type:r[o-1].type};break;case 81:case 88:this.$={text:r[o],type:"string"};break;case 82:case 89:case 104:this.$={text:r[o],type:"markdown"};break;case 83:u=i.destructLink(r[o]);this.$={type:u.type,stroke:u.stroke,length:u.length};break;case 84:u=i.destructLink(r[o]);this.$={type:u.type,stroke:u.stroke,length:u.length,id:r[o-1]};break;case 85:this.$=r[o-1];break;case 105:this.$=r[o-4],i.addClass(r[o-2],r[o]);break;case 106:this.$=r[o-4],i.setClass(r[o-2],r[o]);break;case 107:case 115:this.$=r[o-1],i.setClickEvent(r[o-1],r[o]);break;case 108:case 116:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-2]),i.setTooltip(r[o-3],r[o]);break;case 109:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],r[o]);break;case 110:this.$=r[o-4],i.setClickEvent(r[o-4],r[o-3],r[o-2]),i.setTooltip(r[o-4],r[o]);break;case 111:this.$=r[o-2],i.setLink(r[o-2],r[o]);break;case 112:this.$=r[o-4],i.setLink(r[o-4],r[o-2]),i.setTooltip(r[o-4],r[o]);break;case 113:this.$=r[o-4],i.setLink(r[o-4],r[o-2],r[o]);break;case 114:this.$=r[o-6],i.setLink(r[o-6],r[o-4],r[o]),i.setTooltip(r[o-6],r[o-2]);break;case 117:this.$=r[o-1],i.setLink(r[o-1],r[o]);break;case 118:this.$=r[o-3],i.setLink(r[o-3],r[o-2]),i.setTooltip(r[o-3],r[o]);break;case 119:this.$=r[o-3],i.setLink(r[o-3],r[o-2],r[o]);break;case 120:this.$=r[o-5],i.setLink(r[o-5],r[o-4],r[o]),i.setTooltip(r[o-5],r[o-2]);break;case 121:this.$=r[o-4],i.addVertex(r[o-2],void 0,void 0,r[o]);break;case 122:this.$=r[o-4],i.updateLink([r[o-2]],r[o]);break;case 123:this.$=r[o-4],i.updateLink(r[o-2],r[o]);break;case 124:this.$=r[o-8],i.updateLinkInterpolate([r[o-6]],r[o-2]),i.updateLink([r[o-6]],r[o]);break;case 125:this.$=r[o-8],i.updateLinkInterpolate(r[o-6],r[o-2]),i.updateLink(r[o-6],r[o]);break;case 126:this.$=r[o-6],i.updateLinkInterpolate([r[o-4]],r[o]);break;case 127:this.$=r[o-6],i.updateLinkInterpolate(r[o-4],r[o]);break;case 129:case 131:r[o-2].push(r[o]),this.$=r[o-2];break;case 182:case 184:this.$=r[o-1]+""+r[o];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,9:e,10:s,12:i},{1:[3]},t(n,r,{5:6}),{4:7,9:e,10:s,12:i},{4:8,9:e,10:s,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:a,9:o,10:u,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,33:24,34:h,36:d,38:p,42:28,43:39,44:y,45:40,47:41,60:A,84:b,85:k,86:f,87:m,88:x,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B,121:w,122:$,123:L,124:I,125:R},t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),{8:[1,55],9:[1,56],10:N,15:54,18:57},t(K,[2,3]),t(K,[2,4]),t(K,[2,5]),t(K,[2,6]),t(K,[2,7]),t(K,[2,8]),{8:P,9:G,11:O,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:P,9:G,11:O,21:68},{8:P,9:G,11:O,21:69},{8:P,9:G,11:O,21:70},{8:P,9:G,11:O,21:71},{8:P,9:G,11:O,21:72},{8:P,9:G,10:[1,73],11:O,21:74},t(K,[2,36]),{35:[1,75]},{37:[1,76]},t(K,[2,39]),t(M,[2,50],{18:77,39:78,10:N,40:V}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:U,44:W,60:z,80:[1,87],89:j,95:[1,84],97:[1,85],101:86,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},t(K,[2,185]),t(K,[2,186]),t(K,[2,187]),t(K,[2,188]),t(K,[2,189]),t(tt,[2,51]),t(tt,[2,54],{46:[1,100]}),t(et,[2,72],{113:113,29:[1,101],44:y,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:A,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:E,102:C,105:D,106:T,109:S,111:F,114:_,115:v,116:B}),t(st,[2,181]),t(st,[2,142]),t(st,[2,143]),t(st,[2,144]),t(st,[2,145]),t(st,[2,146]),t(st,[2,147]),t(st,[2,148]),t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(n,[2,12]),t(n,[2,18]),t(n,[2,19]),{9:[1,114]},t(it,[2,26],{18:115,10:N}),t(K,[2,27]),{42:116,43:39,44:y,45:40,47:41,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B},t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(nt,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:rt,81:at,116:ot,119:ut},{75:[1,126],77:[1,127]},t(lt,[2,83]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),{10:ct,12:ht,14:dt,27:pt,28:128,32:gt,44:yt,60:At,75:bt,80:[1,130],81:[1,131],83:141,84:kt,85:ft,86:mt,87:xt,88:Et,89:Ct,90:Dt,91:129,105:Tt,109:St,111:Ft,114:_t,115:vt,116:Bt},t(wt,r,{5:154}),t(K,[2,37]),t(K,[2,38]),t(M,[2,48],{44:$t}),t(M,[2,49],{18:156,10:N,40:Lt}),t(tt,[2,44]),{44:y,47:158,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B},{102:[1,159],103:160,105:[1,161]},{44:y,47:162,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B},{44:y,47:163,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B},t(It,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(It,[2,115],{120:168,10:[1,167],14:U,44:W,60:z,89:j,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(It,[2,117],{10:[1,169]}),t(Rt,[2,183]),t(Rt,[2,170]),t(Rt,[2,171]),t(Rt,[2,172]),t(Rt,[2,173]),t(Rt,[2,174]),t(Rt,[2,175]),t(Rt,[2,176]),t(Rt,[2,177]),t(Rt,[2,178]),t(Rt,[2,179]),t(Rt,[2,180]),{44:y,47:170,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B},{30:171,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{30:179,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{30:181,50:[1,180],67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{30:182,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{30:183,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{30:184,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{109:[1,185]},{30:186,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{30:187,65:[1,188],67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{30:189,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{30:190,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{30:191,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},t(st,[2,182]),t(n,[2,20]),t(it,[2,25]),t(M,[2,46],{39:192,18:193,10:N,40:V}),t(nt,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{77:[1,197],79:198,116:ot,119:ut},t(Vt,[2,79]),t(Vt,[2,81]),t(Vt,[2,82]),t(Vt,[2,168]),t(Vt,[2,169]),{76:199,79:121,80:rt,81:at,116:ot,119:ut},t(lt,[2,84]),{8:P,9:G,10:ct,11:O,12:ht,14:dt,21:201,27:pt,29:[1,200],32:gt,44:yt,60:At,75:bt,83:141,84:kt,85:ft,86:mt,87:xt,88:Et,89:Ct,90:Dt,91:202,105:Tt,109:St,111:Ft,114:_t,115:vt,116:Bt},t(Ut,[2,101]),t(Ut,[2,103]),t(Ut,[2,104]),t(Ut,[2,157]),t(Ut,[2,158]),t(Ut,[2,159]),t(Ut,[2,160]),t(Ut,[2,161]),t(Ut,[2,162]),t(Ut,[2,163]),t(Ut,[2,164]),t(Ut,[2,165]),t(Ut,[2,166]),t(Ut,[2,167]),t(Ut,[2,90]),t(Ut,[2,91]),t(Ut,[2,92]),t(Ut,[2,93]),t(Ut,[2,94]),t(Ut,[2,95]),t(Ut,[2,96]),t(Ut,[2,97]),t(Ut,[2,98]),t(Ut,[2,99]),t(Ut,[2,100]),{6:11,7:12,8:a,9:o,10:u,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,203],33:24,34:h,36:d,38:p,42:28,43:39,44:y,45:40,47:41,60:A,84:b,85:k,86:f,87:m,88:x,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B,121:w,122:$,123:L,124:I,125:R},{10:N,18:204},{44:[1,205]},t(tt,[2,43]),{10:[1,206],44:y,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:113,114:_,115:v,116:B},{10:[1,207]},{10:[1,208],106:[1,209]},t(Wt,[2,128]),{10:[1,210],44:y,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:113,114:_,115:v,116:B},{10:[1,211],44:y,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:113,114:_,115:v,116:B},{80:[1,212]},t(It,[2,109],{10:[1,213]}),t(It,[2,111],{10:[1,214]}),{80:[1,215]},t(Rt,[2,184]),{80:[1,216],98:[1,217]},t(tt,[2,55],{113:113,44:y,60:A,89:E,102:C,105:D,106:T,109:S,111:F,114:_,115:v,116:B}),{31:[1,218],67:Nt,82:219,116:Gt,117:Ot,118:Mt},t(zt,[2,86]),t(zt,[2,88]),t(zt,[2,89]),t(zt,[2,153]),t(zt,[2,154]),t(zt,[2,155]),t(zt,[2,156]),{49:[1,220],67:Nt,82:219,116:Gt,117:Ot,118:Mt},{30:221,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{51:[1,222],67:Nt,82:219,116:Gt,117:Ot,118:Mt},{53:[1,223],67:Nt,82:219,116:Gt,117:Ot,118:Mt},{55:[1,224],67:Nt,82:219,116:Gt,117:Ot,118:Mt},{57:[1,225],67:Nt,82:219,116:Gt,117:Ot,118:Mt},{60:[1,226]},{64:[1,227],67:Nt,82:219,116:Gt,117:Ot,118:Mt},{66:[1,228],67:Nt,82:219,116:Gt,117:Ot,118:Mt},{30:229,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},{31:[1,230],67:Nt,82:219,116:Gt,117:Ot,118:Mt},{67:Nt,69:[1,231],71:[1,232],82:219,116:Gt,117:Ot,118:Mt},{67:Nt,69:[1,234],71:[1,233],82:219,116:Gt,117:Ot,118:Mt},t(M,[2,45],{18:156,10:N,40:Lt}),t(M,[2,47],{44:$t}),t(nt,[2,75]),t(nt,[2,74]),{62:[1,235],67:Nt,82:219,116:Gt,117:Ot,118:Mt},t(nt,[2,77]),t(Vt,[2,80]),{77:[1,236],79:198,116:ot,119:ut},{30:237,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},t(wt,r,{5:238}),t(Ut,[2,102]),t(K,[2,35]),{43:239,44:y,45:40,47:41,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B},{10:N,18:240},{10:jt,60:Yt,84:Ht,92:241,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{10:jt,60:Yt,84:Ht,92:252,104:[1,253],105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{10:jt,60:Yt,84:Ht,92:254,104:[1,255],105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{105:[1,256]},{10:jt,60:Yt,84:Ht,92:257,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{44:y,47:258,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B},t(It,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(It,[2,116]),t(It,[2,118],{10:[1,262]}),t(It,[2,119]),t(et,[2,56]),t(zt,[2,87]),t(et,[2,57]),{51:[1,263],67:Nt,82:219,116:Gt,117:Ot,118:Mt},t(et,[2,64]),t(et,[2,59]),t(et,[2,60]),t(et,[2,61]),{109:[1,264]},t(et,[2,63]),t(et,[2,65]),{66:[1,265],67:Nt,82:219,116:Gt,117:Ot,118:Mt},t(et,[2,67]),t(et,[2,68]),t(et,[2,70]),t(et,[2,69]),t(et,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(nt,[2,78]),{31:[1,266],67:Nt,82:219,116:Gt,117:Ot,118:Mt},{6:11,7:12,8:a,9:o,10:u,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,267],33:24,34:h,36:d,38:p,42:28,43:39,44:y,45:40,47:41,60:A,84:b,85:k,86:f,87:m,88:x,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B,121:w,122:$,123:L,124:I,125:R},t(tt,[2,53]),{43:268,44:y,45:40,47:41,60:A,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B},t(It,[2,121],{106:te}),t(ee,[2,130],{108:270,10:jt,60:Yt,84:Ht,105:Xt,109:qt,110:Qt,111:Jt,112:Zt}),t(se,[2,132]),t(se,[2,134]),t(se,[2,135]),t(se,[2,136]),t(se,[2,137]),t(se,[2,138]),t(se,[2,139]),t(se,[2,140]),t(se,[2,141]),t(It,[2,122],{106:te}),{10:[1,271]},t(It,[2,123],{106:te}),{10:[1,272]},t(Wt,[2,129]),t(It,[2,105],{106:te}),t(It,[2,106],{113:113,44:y,60:A,89:E,102:C,105:D,106:T,109:S,111:F,114:_,115:v,116:B}),t(It,[2,110]),t(It,[2,112],{10:[1,273]}),t(It,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:P,9:G,11:O,21:278},t(K,[2,34]),t(tt,[2,52]),{10:jt,60:Yt,84:Ht,105:Xt,107:279,108:243,109:qt,110:Qt,111:Jt,112:Zt},t(se,[2,133]),{14:U,44:W,60:z,89:j,101:280,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},{14:U,44:W,60:z,89:j,101:281,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},{98:[1,282]},t(It,[2,120]),t(et,[2,58]),{30:283,67:Nt,80:Kt,81:Pt,82:172,116:Gt,117:Ot,118:Mt},t(et,[2,66]),t(wt,r,{5:284}),t(ee,[2,131],{108:270,10:jt,60:Yt,84:Ht,105:Xt,109:qt,110:Qt,111:Jt,112:Zt}),t(It,[2,126],{120:168,10:[1,285],14:U,44:W,60:z,89:j,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(It,[2,127],{120:168,10:[1,286],14:U,44:W,60:z,89:j,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(It,[2,114]),{31:[1,287],67:Nt,82:219,116:Gt,117:Ot,118:Mt},{6:11,7:12,8:a,9:o,10:u,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,288],33:24,34:h,36:d,38:p,42:28,43:39,44:y,45:40,47:41,60:A,84:b,85:k,86:f,87:m,88:x,89:E,102:C,105:D,106:T,109:S,111:F,113:42,114:_,115:v,116:B,121:w,122:$,123:L,124:I,125:R},{10:jt,60:Yt,84:Ht,92:289,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{10:jt,60:Yt,84:Ht,92:290,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},t(et,[2,62]),t(K,[2,33]),t(It,[2,124],{106:te}),t(It,[2,125],{106:te})],defaultActions:{},parseError:(0,g.K)(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:(0,g.K)(function(t){var e=this,s=[0],i=[],n=[null],r=[],a=this.table,o="",u=0,l=0,c=0,h=r.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var A=d.yylloc;r.push(A);var b=d.options&&d.options.ranges;function k(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,g.K)(function(t){s.length=s.length-2*t,n.length=n.length-t,r.length=r.length-t},"popStack"),(0,g.K)(k,"lex");for(var f,m,x,E,C,D,T,S,F,_={};;){if(x=s[s.length-1],this.defaultActions[x]?E=this.defaultActions[x]:(null==f&&(f=k()),E=a[x]&&a[x][f]),void 0===E||!E.length||!E[0]){var v="";for(D in F=[],a[x])this.terminals_[D]&&D>2&&F.push("'"+this.terminals_[D]+"'");v=d.showPosition?"Parse error on line "+(u+1)+":\n"+d.showPosition()+"\nExpecting "+F.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(v,{text:d.match,token:this.terminals_[f]||f,line:d.yylineno,loc:A,expected:F})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+f);switch(E[0]){case 1:s.push(f),n.push(d.yytext),r.push(d.yylloc),s.push(E[1]),f=null,m?(f=m,m=null):(l=d.yyleng,o=d.yytext,u=d.yylineno,A=d.yylloc,c>0&&c--);break;case 2:if(T=this.productions_[E[1]][1],_.$=n[n.length-T],_._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},b&&(_._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(C=this.performAction.apply(_,[o,l,u,p.yy,E[1],n,r].concat(h))))return C;T&&(s=s.slice(0,-1*T*2),n=n.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[E[1]][0]),n.push(_.$),r.push(_._$),S=a[s[s.length-2]][s[s.length-1]],s.push(S);break;case 3:return!0}}return!0},"parse")},ne=function(){return{EOF:1,parseError:(0,g.K)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,g.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,g.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,g.K)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,g.K)(function(){return this._more=!0,this},"more"),reject:(0,g.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,g.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,g.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,g.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,g.K)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,g.K)(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:(0,g.K)(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,g.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,g.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,g.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,g.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,g.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,g.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,g.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,g.K)(function(t,e,s,i){switch(s){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),e.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const s=/\n\s*/g;return e.yytext=e.yytext.replace(s,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:case 38:return t.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:case 42:case 43:case 44:return 98;case 45:return this.popState(),13;case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:case 104:return 111;case 64:return 46;case 65:return 60;case 66:case 105:return 44;case 67:return 8;case 68:return 106;case 69:case 103:return 115;case 70:case 73:case 76:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:case 75:case 78:return 119;case 74:return this.pushState("thickEdgeText"),75;case 77:return this.pushState("dottedEdgeText"),75;case 79:return 77;case 80:return this.popState(),53;case 81:case 117:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}}}();function re(){this.yy={}}return ie.lexer=ne,(0,g.K)(re,"Parser"),re.prototype=ie,ie.Parser=re,new re}();x.parser=x;var E=x,C=Object.assign({},E);C.parse=t=>{const e=t.replace(/}\s*\n/g,"}\n");return E.parse(e)};var D=C,T=(0,g.K)(t=>{const{theme:e,bkgColorArray:s,borderColorArray:i}=t;if(!(0,c.P1)(e,i))return"";const n=(0,c.rq)(t.look),r=(0,c.Ic)(s);let a="";for(let e=0;e<(0,c.nw)(t.THEME_COLOR_LIMIT,i);e++){const t=i[e%i.length],o=r?`fill: ${s[e%s.length]};`:"",u=`[data-look="${n}"][data-color-id="color-${e}"]`,l=(0,g.K)(t=>`${u}.node ${t}, ${u}.rough-node ${t}`,"collapsedRule"),c=(0,g.K)(t=>`${u}.swimlane.cluster .swimlane-title${t}, ${u}.swimlane.cluster .swimlane-body${t}`,"laneRule");a+=`\n\n ${u}.cluster:not(.swimlane) rect {\n stroke: ${t};\n ${o}\n }\n\n ${u}.cluster:not(.swimlane) path {\n stroke: ${t};\n ${o}\n }\n\n /* Lane, classic and neo. */\n ${u}.swimlane.cluster rect.swimlane-title,\n ${u}.swimlane.cluster rect.swimlane-body {\n stroke: ${t};\n ${o}\n }\n\n /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */\n ${c(" path:nth-of-type(2)")} {\n stroke: ${t};\n }\n${r?`\n /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */\n ${c(" path:first-of-type")} {\n stroke: ${s[e%s.length]};\n }\n`:""}\n ${l(".collapsed-group")},\n ${l(".collapsed-group path")} {\n stroke: ${t};\n ${o}\n }\n\n /* The ellipsis dots and the separator take clusterBorder further down, so without\n these the container is palette-coloured while its own markers are not. */\n ${l(".collapsed-indicator")} {\n fill: ${t};\n }\n\n ${l(".collapsed-separator")} {\n stroke: ${t};\n }\n `}return a},"genColor"),S=(0,g.K)((t,e)=>{const s=k.A,i=s(t,"r"),n=s(t,"g"),r=s(t,"b");return b.A(i,n,r,e)},"fade"),F=(0,g.K)(t=>`${T(t)}\n .label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span {\n color: ${t.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .label text,span {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: ${t.strokeWidth??1}px;\n }\n .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {\n text-anchor: middle;\n }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n\n .root .anchor path {\n fill: ${t.lineColor} !important;\n stroke-width: 0;\n stroke: ${t.lineColor};\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePaths .path {\n stroke: ${t.lineColor};\n stroke-width: ${t.strokeWidth??2}px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${S(t.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .cluster rect {\n fill: ${t.clusterBkg};\n stroke: ${t.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n /* Collapsed subgraph node (@{ view: collapsed }) */\n .node .collapsed-indicator {\n fill: ${t.clusterBorder};\n stroke: none;\n opacity: 0.6;\n }\n\n .node .collapsed-separator {\n stroke: ${t.clusterBorder};\n stroke-width: 0.75px;\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n\n rect.text {\n fill: none;\n stroke-width: 0;\n }\n\n .icon-shape, .image-shape {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n padding: 2px;\n }\n .label rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n ${(0,i.o)()}\n`,"getStyles"),_=(0,g.K)(({styles:t=F}={})=>({parser:D,get db(){return new f},renderer:m,styles:t,init:(0,g.K)(t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,(0,d.XV)({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),v=_()},92892(t,e,s){s.d(e,{P:()=>a});var i=s(89983),n=s(31293),r=s(86827),a=(0,r.K)((t,e,s,r)=>{t.attr("class",s);const{width:a,height:l,x:c,y:h}=o(t,e);(0,i.a$)(t,l,a,r);const d=u(c,h,a,l,e);t.attr("viewBox",d),n.R.debug(`viewBox configured: ${d} with padding: ${e}`)},"setupViewPortForSVG"),o=(0,r.K)((t,e)=>{const s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),u=(0,r.K)((t,e,s,i,n)=>`${t-n} ${e-n} ${s} ${i}`,"createViewBox")},96755(t,e,s){s.d(e,{A:()=>r});var i=s(86827),n=s(51444),r=(0,i.K)((t,e)=>{let s;"sandbox"===e&&(s=(0,n.Ltv)("#i"+t));return("sandbox"===e?(0,n.Ltv)(s.nodes()[0].contentDocument.body):(0,n.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement")}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[7163],{27163(e,r,t){t.d(r,{diagram:()=>g});var a=t(86035),n=t(77454),s=(t(15319),t(89983),t(31293)),i=t(86827),o=t(34376),l=(0,o.Pz)().RailroadPeg.parser.LangiumParser,p=(0,i.K)(e=>{const r=e.alternatives.map(u);return 1===r.length?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),u=(0,i.K)(e=>{const r=e.elements.map(m);return 1===r.length?r[0]:{type:"sequence",elements:r}},"transformSequence"),m=(0,i.K)(e=>{const r=d(e.suffix);if(!e.operator)return r;return{type:"special",text:"&"===e.operator?`&${c(r)}`:`!${c(r)}`}},"transformPrefix"),c=(0,i.K)(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),d=(0,i.K)(e=>{const r=f(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),f=(0,i.K)(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return p(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=(0,i.K)(e=>({name:e.name,definition:p(e.definition)}),"transformRule"),P=(0,i.K)(e=>{(0,n.S)(e,a.db),e.title&&a.db.setTitle(e.title),e.rules.map(e=>a.db.addRule(y(e)))},"populateDb"),g={parser:{parse:(0,i.K)(e=>{a.db.clear(),s.R.debug("[PEG Parser] Starting Langium parse");const r=l.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new o.zg(r);const t=r.value;s.R.debug("[PEG Parser] Parsed rules:",t.rules.length),P(t),s.R.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a.db}},db:a.db,renderer:a.U,styles:a.$}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[72],{99051(e,t,n){function i(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}n.d(t,{S:()=>i}),(0,n(27698).K)(i,"populateCommonDb")},17022(e,t,n){n.d(t,{$:()=>N,U:()=>B,db:()=>f});var i=n(23980),r=n(20886),a=n(84828),o=n(27698),l="",s="",d="",c=[],m=new Map,h=(0,o.K)(e=>(0,r.jZ)(e,(0,r.D7)()),"sanitizeText"),p=(0,o.K)(e=>{switch(e.type){case"terminal":return{...e,value:h(e.value)};case"nonterminal":return{...e,name:h(e.name)};case"sequence":return{...e,elements:e.elements.map(p)};case"choice":return{...e,alternatives:e.alternatives.map(p)};case"optional":return{...e,element:p(e.element)};case"repetition":return{...e,element:p(e.element),separator:e.separator?p(e.separator):void 0};case"special":return{...e,text:h(e.text)}}},"sanitizeAstNode"),u=(0,o.K)(()=>{l="",s="",d="",c.length=0,m.clear(),(0,r.IU)(),a.R.debug("[Railroad] Database cleared")},"clear"),g=(0,o.K)(e=>{l=h(e),a.R.debug("[Railroad] Title set:",e)},"setTitle"),T=(0,o.K)(()=>l,"getTitle"),f={clear:u,setTitle:g,getTitle:T,addRule:(0,o.K)(e=>{const t={...e,name:h(e.name),definition:p(e.definition),comment:e.comment?h(e.comment):void 0};a.R.debug("[Railroad] Adding rule:",t.name),m.has(t.name)&&a.R.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),c.push(t),m.set(t.name,t)},"addRule"),getRules:(0,o.K)(()=>c,"getRules"),getRule:(0,o.K)(e=>m.get(e),"getRule"),setAccTitle:(0,o.K)(e=>{s=h(e).replace(/^\s+/g,""),a.R.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),getAccTitle:(0,o.K)(()=>s,"getAccTitle"),setAccDescription:(0,o.K)(e=>{d=h(e).replace(/\n\s+/g,"\n"),a.R.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),getAccDescription:(0,o.K)(()=>d,"getAccDescription"),setDiagramTitle:g,getDiagramTitle:T},x={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},w=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,k=/^[\w "',.-]+$/,C=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),F=(0,o.K)(e=>!!e&&Object.keys(e).every(e=>"railroad"===e||C.has(e)),"isRailroadStyleOptions"),S=(0,o.K)(e=>e?"railroad"in e&&e.railroad?e.railroad:F(e)?e:{}:{},"extractRailroadOverrides"),$=(0,o.K)(e=>{if(!e||F(e))return{};const{railroad:t,svgId:n,theme:i,look:r,...a}=e;return a},"extractThemeOverrides"),y=(0,o.K)((e,t)=>{if("string"!=typeof e)return t;const n=e.trim();return w.test(n)?n:t},"sanitizeColorValue"),R=(0,o.K)((e,t)=>{if("string"!=typeof e)return t;const n=e.trim();return k.test(n)?n:t},"sanitizeFontFamilyValue"),b=(0,o.K)((e,t)=>{const n="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:t},"sanitizeNumberValue"),v=(0,o.K)(e=>{const t="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):Number.NaN;return Number.isFinite(t)&&t>0?t:void 0},"parseThemeFontSize"),z=(0,o.K)(e=>{const t=R(e.fontFamily,x.fontFamily),n=v(e.fontSize)??x.fontSize;return{...x,fontFamily:t,fontSize:n,terminalFill:y(e.secondBkg??e.secondaryColor,x.terminalFill),terminalStroke:y(e.secondaryBorderColor??e.lineColor,x.terminalStroke),terminalTextColor:y(e.secondaryTextColor??e.textColor,x.terminalTextColor),nonTerminalFill:y(e.mainBkg??e.background,x.nonTerminalFill),nonTerminalStroke:y(e.primaryBorderColor??e.lineColor,x.nonTerminalStroke),nonTerminalTextColor:y(e.primaryTextColor??e.textColor,x.nonTerminalTextColor),lineColor:y(e.lineColor,x.lineColor),markerFill:y(e.lineColor,x.markerFill),commentFill:y(e.labelBackground??e.tertiaryColor,x.commentFill),commentStroke:y(e.tertiaryBorderColor??e.lineColor,x.commentStroke),commentTextColor:y(e.tertiaryTextColor??e.textColor,x.commentTextColor),specialFill:y(e.tertiaryColor??e.secondaryColor,x.specialFill),specialStroke:y(e.tertiaryBorderColor??e.secondaryBorderColor,x.specialStroke),ruleNameColor:y(e.titleColor??e.textColor,x.ruleNameColor)}},"buildThemeDefaults"),K=(0,o.K)(e=>{const t=(0,r.zj)(),n={...(0,r.P$)(),...t.themeVariables??{},...$(e)},i=z(n),a={...t.railroad??{},...S(e)};return{compactMode:a.compactMode??i.compactMode,padding:b(a.padding,i.padding),verticalSeparation:b(a.verticalSeparation,i.verticalSeparation),horizontalSeparation:b(a.horizontalSeparation,i.horizontalSeparation),arcRadius:b(a.arcRadius,i.arcRadius),fontSize:b(a.fontSize,i.fontSize),fontFamily:R(a.fontFamily,i.fontFamily),terminalFill:y(a.terminalFill,i.terminalFill),terminalStroke:y(a.terminalStroke,i.terminalStroke),terminalTextColor:y(a.terminalTextColor,i.terminalTextColor),nonTerminalFill:y(a.nonTerminalFill,i.nonTerminalFill),nonTerminalStroke:y(a.nonTerminalStroke,i.nonTerminalStroke),nonTerminalTextColor:y(a.nonTerminalTextColor,i.nonTerminalTextColor),lineColor:y(a.lineColor,i.lineColor),strokeWidth:b(a.strokeWidth,i.strokeWidth),markerFill:y(a.markerFill,i.markerFill),commentFill:y(a.commentFill,i.commentFill),commentStroke:y(a.commentStroke,i.commentStroke),commentTextColor:y(a.commentTextColor,i.commentTextColor),specialFill:y(a.specialFill,i.specialFill),specialStroke:y(a.specialStroke,i.specialStroke),ruleNameColor:y(a.ruleNameColor,i.ruleNameColor),showMarkers:a.showMarkers??i.showMarkers,markerRadius:b(a.markerRadius,i.markerRadius)}},"buildRailroadStyleOptions"),N=(0,o.K)(e=>{const{fontFamily:t,fontSize:n,terminalFill:i,terminalStroke:r,terminalTextColor:a,nonTerminalFill:o,nonTerminalStroke:l,nonTerminalTextColor:s,lineColor:d,strokeWidth:c,markerFill:m,commentFill:h,commentStroke:p,commentTextColor:u,specialFill:g,specialStroke:T,ruleNameColor:f}=K(e);return`\n .railroad-diagram {\n font-family: ${t};\n font-size: ${n}px;\n }\n\n .railroad-terminal rect {\n fill: ${i};\n stroke: ${r};\n stroke-width: ${c}px;\n }\n\n .railroad-terminal text {\n fill: ${a};\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-nonterminal rect {\n fill: ${o};\n stroke: ${l};\n stroke-width: ${c}px;\n }\n\n .railroad-nonterminal text {\n fill: ${s};\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-line {\n stroke: ${d};\n stroke-width: ${c}px;\n fill: none;\n }\n\n .railroad-start circle,\n .railroad-end circle {\n fill: ${m};\n }\n\n .railroad-comment ellipse {\n fill: ${h};\n stroke: ${p};\n stroke-width: ${c}px;\n }\n\n .railroad-comment text {\n fill: ${u};\n font-style: italic;\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-special rect {\n fill: ${g};\n stroke: ${T};\n stroke-width: ${c}px;\n stroke-dasharray: 5,3;\n }\n\n .railroad-special text {\n fill: ${s};\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-rule-name {\n font-weight: bold;\n fill: ${f};\n font-family: ${t};\n font-size: ${n}px;\n }\n\n .railroad-group {\n /* Grouping container, no specific styles */\n }\n`},"getStyles"),M=class{constructor(){this.d=""}static{(0,o.K)(this,"PathBuilder")}moveTo(e,t){return this.d+=`M ${e} ${t} `,this}lineTo(e,t){return this.d+=`L ${e} ${t} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,t,n,i,r,a,o){return this.d+=`A ${e} ${t} ${n} ${i?1:0} ${r?1:0} ${a} ${o} `,this}build(){return this.d.trim()}},A=class{constructor(e,t=K()){this.textCache=new Map,this.svg=e,this.config=t}static{(0,o.K)(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);const t=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),n=t.node().getBBox(),i={width:n.width,height:n.height};return t.remove(),this.textCache.set(e,i),i}renderTerminal(e,t){const n=this.measureText(t),i=n.width+2*this.config.padding,r=n.height+2*this.config.padding,a=e.append("g").attr("class","railroad-terminal");return a.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",r).attr("rx",10).attr("ry",10),a.append("text").attr("x",i/2).attr("y",r/2).text(t),{element:a.node(),dimensions:{width:i,height:r,up:r/2,down:r/2}}}renderNonTerminal(e,t){const n=this.measureText(t),i=n.width+2*this.config.padding,r=n.height+2*this.config.padding,a=e.append("g").attr("class","railroad-nonterminal");return a.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",r),a.append("text").attr("x",i/2).attr("y",r/2).text(t),{element:a.node(),dimensions:{width:i,height:r,up:r/2,down:r/2}}}renderSequence(e,t){const n=t.map(t=>this.renderExpression(e,t));let i=0,r=0,a=0;for(const e of n)i+=e.dimensions.width,r=Math.max(r,e.dimensions.up),a=Math.max(a,e.dimensions.down);i+=(n.length-1)*this.config.horizontalSeparation;const o=e.append("g").attr("class","railroad-sequence");let l=0;for(let e=0;e<n.length;e++){const t=n[e],i=r-t.dimensions.up;if(o.node().appendChild(t.element).setAttribute("transform",`translate(${l}, ${i})`),e<n.length-1){const e=l+t.dimensions.width,n=e+this.config.horizontalSeparation,i=r;o.append("path").attr("class","railroad-line").attr("d",(new M).moveTo(e,i).lineTo(n,i).build())}l+=t.dimensions.width+this.config.horizontalSeparation}return{element:o.node(),dimensions:{width:i,height:r+a,up:r,down:a}}}renderChoice(e,t){const n=t.map(t=>this.renderExpression(e,t));let i=0,r=0;for(const e of n)i=Math.max(i,e.dimensions.width),r+=e.dimensions.height;r+=(n.length-1)*this.config.verticalSeparation;const a=this.config.arcRadius,o=i+4*a,l=e.append("g").attr("class","railroad-choice");let s=0;const d=r/2;for(const e of n){const t=s,n=t+e.dimensions.up,r=2*a+(i-e.dimensions.width)/2;l.node().appendChild(e.element).setAttribute("transform",`translate(${r}, ${t})`);const c=new M,m=n>d;n===d?c.moveTo(0,d).lineTo(r,n):c.moveTo(0,d).arcTo(a,a,0,!1,m,a,d+(m?a:-a)).lineTo(a,n-(m?a:-a)).arcTo(a,a,0,!1,!m,2*a,n).lineTo(r,n),l.append("path").attr("class","railroad-line").attr("d",c.build());const h=new M,p=r+e.dimensions.width,u=o-2*a;n===d?h.moveTo(p,n).lineTo(o,d):h.moveTo(p,n).lineTo(u,n).arcTo(a,a,0,!1,!m,o-a,n+(m?-a:a)).lineTo(o-a,d+(m?a:-a)).arcTo(a,a,0,!1,m,o,d),l.append("path").attr("class","railroad-line").attr("d",h.build()),s+=e.dimensions.height+this.config.verticalSeparation}return{element:l.node(),dimensions:{width:o,height:r,up:d,down:r-d}}}renderOptional(e,t){const n=this.renderExpression(e,t),i=this.config.arcRadius,r=2*i,a=n.dimensions.width+4*i,o=n.dimensions.height+r,l=e.append("g").attr("class","railroad-optional"),s=2*i,d=r;l.node().appendChild(n.element).setAttribute("transform",`translate(${s}, ${d})`);const c=d+n.dimensions.up,m=(new M).moveTo(0,c).lineTo(2*i,c);l.append("path").attr("class","railroad-line").attr("d",m.build());const h=(new M).moveTo(s+n.dimensions.width,c).lineTo(a,c);l.append("path").attr("class","railroad-line").attr("d",h.build());const p=(new M).moveTo(0,c).arcTo(i,i,0,!1,!1,i,c-i).lineTo(i,i).arcTo(i,i,0,!1,!0,2*i,0).lineTo(a-2*i,0).arcTo(i,i,0,!1,!0,a-i,i).lineTo(a-i,c-i).arcTo(i,i,0,!1,!1,a,c);return l.append("path").attr("class","railroad-line").attr("d",p.build()),{element:l.node(),dimensions:{width:a,height:o,up:c,down:o-c}}}renderRepetition(e,t,n){const i=this.renderExpression(e,t),r=this.config.arcRadius,a=2*r,o=i.dimensions.width+4*r,l=0===n,s=i.dimensions.height+a+(l?a:0),d=e.append("g").attr("class","railroad-repetition"),c=2*r,m=l?a:0;d.node().appendChild(i.element).setAttribute("transform",`translate(${c}, ${m})`);const h=m+i.dimensions.up;d.append("path").attr("class","railroad-line").attr("d",(new M).moveTo(0,h).lineTo(2*r,h).build()),d.append("path").attr("class","railroad-line").attr("d",(new M).moveTo(c+i.dimensions.width,h).lineTo(o,h).build());const p=m+i.dimensions.height+r,u=(new M).moveTo(c+i.dimensions.width,h).arcTo(r,r,0,!1,!0,c+i.dimensions.width+r,h+r).lineTo(c+i.dimensions.width+r,p).arcTo(r,r,0,!1,!0,c+i.dimensions.width,p+r).lineTo(2*r,p+r).arcTo(r,r,0,!1,!0,r,p).lineTo(r,h+r).arcTo(r,r,0,!1,!0,2*r,h);if(d.append("path").attr("class","railroad-line").attr("d",u.build()),l){const e=(new M).moveTo(0,h).arcTo(r,r,0,!1,!1,r,h-r).lineTo(r,r).arcTo(r,r,0,!1,!0,2*r,0).lineTo(o-2*r,0).arcTo(r,r,0,!1,!0,o-r,r).lineTo(o-r,h-r).arcTo(r,r,0,!1,!1,o,h);d.append("path").attr("class","railroad-line").attr("d",e.build())}return{element:d.node(),dimensions:{width:o,height:s,up:h,down:s-h}}}renderSpecial(e,t){const n=this.measureText("? "+t+" ?"),i=n.width+2*this.config.padding,r=n.height+2*this.config.padding,a=e.append("g").attr("class","railroad-special");return a.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",r),a.append("text").attr("x",i/2).attr("y",r/2).text("? "+t+" ?"),{element:a.node(),dimensions:{width:i,height:r,up:r/2,down:r/2}}}renderExpression(e,t){switch(t.type){case"terminal":return this.renderTerminal(e,t.value);case"nonterminal":return this.renderNonTerminal(e,t.name);case"sequence":return this.renderSequence(e,t.elements);case"choice":return this.renderChoice(e,t.alternatives);case"optional":return this.renderOptional(e,t.element);case"repetition":return this.renderRepetition(e,t.element,t.min);case"special":return this.renderSpecial(e,t.text);default:throw new Error(`Unknown node type: ${t.type}`)}}renderRule(e,t){const n=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${t})`),i=e.name+" =",r=this.measureText(i).width+20,a=r+20,o=n.append("g"),l=this.renderExpression(o,e.definition),s=Math.max(20,l.dimensions.up),d=s-l.dimensions.up;o.attr("transform",`translate(${a}, ${d})`);n.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",s).text(i);n.append("g").attr("class","railroad-start").append("circle").attr("cx",r).attr("cy",s).attr("r",this.config.markerRadius);return n.append("g").attr("class","railroad-end").append("circle").attr("cx",a+l.dimensions.width+10).attr("cy",s).attr("r",this.config.markerRadius),n.append("path").attr("class","railroad-line").attr("d",(new M).moveTo(r+this.config.markerRadius,s).lineTo(a,s).build()),n.append("path").attr("class","railroad-line").attr("d",(new M).moveTo(a+l.dimensions.width,s).lineTo(a+l.dimensions.width+10-this.config.markerRadius,s).build()),{height:Math.max(40,d+l.dimensions.height+2*this.config.padding),width:a+l.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let t=this.config.padding,n=0;for(const i of e){const e=this.renderRule(i,t);t+=e.height+this.config.verticalSeparation,n=Math.max(n,e.width)}return{width:n+2*this.config.padding,height:t+this.config.padding}}},D=(0,o.K)((e,t,n)=>{(0,r.a$)(e,t.height,t.width,n),e.attr("viewBox",`0 0 ${t.width} ${t.height}`)},"configureRailroadSvgSize"),B={draw:(0,o.K)((e,t,n)=>{a.R.debug("[Railroad] Rendering diagram\n"+e);try{const e=(0,i.D)(t);e.attr("class","railroad-diagram");const n=(0,r.zj)().railroad,o=n?.useMaxWidth??!0,l=f.getRules();if(a.R.debug(`[Railroad] Rendering ${l.length} rules`),0===l.length)return a.R.warn("[Railroad] No rules to render"),void D(e,{height:100,width:200},o);const s=new A(e,K()).renderDiagram(l);D(e,s,o),a.R.debug("[Railroad] Render complete")}catch(e){throw a.R.error("[Railroad] Render error:",e),e}},"draw")}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[7229],{27229(e,a,c){c.d(a,{createRadarServices:()=>s.f});var s=c(7e4);c(17946)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[7332],{75937(t,e,s){s.d(e,{A:()=>r});var i=s(86309),n=s(51931);const r=(t,e)=>i.A.lang.round(n.A.parse(t)[e])},64918(t,e,s){s.d(e,{o:()=>i});var i=(0,s(86827).K)(()=>"\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n","getIconStyles")},98120(t,e,s){s.d(e,{CP:()=>d,Ck:()=>g,HT:()=>p,PB:()=>h,aC:()=>c,lC:()=>u,m:()=>l,tk:()=>o});var i=s(89983),n=s(86827),r=s(62559),a=s(51444),o=(0,n.K)((t,e)=>{const s=t.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),e.name&&s.attr("name",e.name),e.rx&&s.attr("rx",e.rx),e.ry&&s.attr("ry",e.ry),void 0!==e.attrs)for(const t in e.attrs)s.attr(t,e.attrs[t]);return e.class&&s.attr("class",e.class),s},"drawRect"),u=(0,n.K)((t,e)=>{const s={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};o(t,s).lower()},"drawBackgroundRect"),l=(0,n.K)((t,e)=>{const s=e.text.replace(i.H1," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class&&n.attr("class",e.class);const r=n.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(s),n},"drawText"),c=(0,n.K)((t,e,s,i)=>{const n=t.append("image");n.attr("x",e),n.attr("y",s);const a=(0,r.J)(i);n.attr("xlink:href",a)},"drawImage"),d=(0,n.K)((t,e,s,i)=>{const n=t.append("use");n.attr("x",e),n.attr("y",s);const a=(0,r.J)(i);n.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),h=(0,n.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=(0,n.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),g=(0,n.K)(()=>{let t=(0,a.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,a.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},92892(t,e,s){s.d(e,{P:()=>a});var i=s(89983),n=s(31293),r=s(86827),a=(0,r.K)((t,e,s,r)=>{t.attr("class",s);const{width:a,height:l,x:c,y:d}=o(t,e);(0,i.a$)(t,l,a,r);const h=u(c,d,a,l,e);t.attr("viewBox",h),n.R.debug(`viewBox configured: ${h} with padding: ${e}`)},"setupViewPortForSVG"),o=(0,r.K)((t,e)=>{const s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),u=(0,r.K)((t,e,s,i,n)=>`${t-n} ${e-n} ${s} ${i}`,"createViewBox")},96755(t,e,s){s.d(e,{A:()=>r});var i=s(86827),n=s(51444),r=(0,i.K)((t,e)=>{let s;"sandbox"===e&&(s=(0,n.Ltv)("#i"+t));return("sandbox"===e?(0,n.Ltv)(s.nodes()[0].contentDocument.body):(0,n.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement")},87332(t,e,s){s.d(e,{diagram:()=>X});var i=s(64918),n=s(96755),r=s(92892),a=s(841),o=s(56714),u=(s(43247),s(98120)),l=(s(99257),s(24832),s(36870),s(84076)),c=(s(36155),s(57588),s(54912),s(92941)),d=s(51255),h=s(89983),p=s(31293),g=s(86827),f=s(51444),m=s(99418),y=s(25582),b=s(75937),A={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},k=new Set([A.SHAPE_UNSUPPORTED,A.SHAPE_REMOVED,A.CONTAINMENT_VIOLATION]),x=(new Set(Object.values(A).filter(t=>!k.has(t))),new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]])),E=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),C=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),S="roundedRect";function T(t){return t?x.get(t)??t:t}function D(t,e){for(const s of t)if(!s.isGroup){if(s.shape&&"squareRect"!==s.shape&&"rect"!==s.shape||(s.shape=S),E.has(s.shape)){const t=`shape "${s.shape}" was removed in v0.8.1, using "${S}"`;e?.emitError?e.emitError("SHAPE_REMOVED",t,{nodeId:s.id}):p.R.warn(`agentflow: ${t}`),s.shape=S;continue}if(!C.has(s.shape)){const t=`shape "${s.shape}" is not supported, using "${S}"`;e?.emitWarning?e.emitWarning("SHAPE_UNSUPPORTED",t,{nodeId:s.id}):p.R.warn(`agentflow: ${t}`),s.shape=S}}}(0,g.K)(T,"resolveShapeAlias"),(0,g.K)(D,"normaliseNodeShapes");var _=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),v=_.size,F=(0,g.K)(t=>`af-kind-${t}`,"kindClass"),$=[..._.keys()],w=(0,g.K)(t=>Math.max(1,t-v),"containerSlotCount"),L=(0,g.K)((t,e)=>{const s=v+t%w(e);return e>0?s%e:s},"containerSlot");function B(t,e,s){const i=(0,h.D7)().themeVariables?.borderColorArray,n=Array.isArray(i)?i.length:0;let r=s.size;for(const i of t??[]){if(i.isGroup||"collapsedGroup"===i.shape){const t=s.get(String(i.id))??r++;i.colorIndex=L(t,n);continue}const t=e(String(i.id));t&&_.has(t)&&(i.cssClasses=`${i.cssClasses??""} ${F(t)}`.replace(/\s+/g," ").trim())}}(0,g.K)(B,"assignColorSlots");var I="agentflow-",M=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),N=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),R={flow:"flowGroup"};function O(t){if(Array.isArray(t))return t.map(t=>O(t));if(null===t||"object"!=typeof t)return t;const e={};for(const s of Object.keys(t))"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&(e[s]=O(t[s]));return e}function V(t){let e,s=!1,i=!1,n=0;const r=[];for(const a of t.split("\n")){if(void 0!==e){const t=a.length-a.trimStart().length;if(""===a.trim()||t>e){r.push(a);continue}e=void 0}let t=-1;for(let e=0;e<a.length;e++){const r=a[e];if(i)"\\"===r?e++:'"'===r&&(i=!1);else if(s)"'"===r&&(s=!1);else if('"'===r)i=!0;else if("'"===r)s=!0;else{if("#"===r&&(0===e||" "===a[e-1]||"\t"===a[e-1])){t=e;break}"["===r||"{"===r?n++:"]"!==r&&"}"!==r||(n=Math.max(0,n-1))}}if(s||i||n>0){r.push(a);continue}const o=t>=0?a.slice(0,t):a,u=t>=0?a.slice(t):"";/:\s*[>|][\d+-]*\s*$/.test(o)?(e=a.length-a.trimStart().length,r.push(a)):r.push(o.replace(/,([\t ]*)$/,"$1")+u)}return r.join("\n")}(0,g.K)(O,"stripPrototypeKeys"),(0,g.K)(V,"stripLineTrailingCommas");var P=class{constructor(){this.vertexCounter=0,this.config=(0,h.D7)(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=h.SV,this.setAccDescription=h.EI,this.setDiagramTitle=h.ke,this.getAccTitle=h.iN,this.getAccDescription=h.m7,this.getDiagramTitle=h.ab,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{(0,g.K)(this,"AgentFlowDB")}sanitizeText(t){return h.Y2.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(const e of this.vertices.values())if(e.id===t)return this.diagramId?`${this.diagramId}-${e.domId}`:e.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,e,s,i,n,r,o={},u,c){if(!t||0===t.trim().length)return;let d,p;if(void 0!==u){let t;t=u.includes("\n")?u+"\n":"{\n"+u+"\n}";try{d=(0,a.H)(t,{schema:a.r})??{}}catch(t){const e=u.includes("\n")?V(u):u;if(e!==u)try{d=(0,a.H)(e+"\n",{schema:a.r})??{}}catch{this.rethrowMetadataYamlError(t,u,c)}else this.rethrowMetadataYamlError(t,u,c)}d=O(d)}if(d&&"string"==typeof d.shape){const t=d;p=t.shape;const e=T(p);e&&e!==p&&(t.shape=e)}const g=this.subGraphLookup.get(t);if(g&&d)return void(g.metadata={...g.metadata,...d});const f=this.connectors.get(t);if(f&&d)return void(f.metadata={...f.metadata,...d});if("connectors"===t)return;const m=this.edges.find(e=>e.id===t);if(m){const t=d;return void 0!==t?.animate&&(m.animate=t.animate),void 0!==t?.animation&&(m.animation=t.animation),void 0!==t?.curve&&(m.interpolate=t.curve),void(d&&(m.metadata={...m.metadata,...d}))}let y,b=this.vertices.get(t);if(void 0===b&&(b={id:t,labelType:"text",domId:I+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,b)),this.vertexCounter++,void 0!==e?(this.config=(0,h.D7)(),y=this.sanitizeText(e.text.trim()),b.labelType=e.type,y.startsWith('"')&&y.endsWith('"')&&(y=y.substring(1,y.length-1)),b.text=y):void 0===b.text&&(b.text=t),void 0!==s&&(b.type=s),null!=i&&i.forEach(t=>{b.styles.push(t)}),null!=n&&n.forEach(t=>{b.classes.push(t)}),void 0!==r&&(b.dir=r),void 0===b.props?b.props=o:void 0!==o&&Object.assign(b.props,o),d){if(b.metadata={...b.metadata,...d},d.shape){const t=p??d.shape;if("string"!=typeof t)throw this.positionedShapeError(`No such shape: ${JSON.stringify(t)}.`,c);if(t!==t.toLowerCase()||t.includes("_"))throw this.positionedShapeError(`No such shape: ${t}. Shape names should be lowercase.`,c);if(!(0,l.aP)(d.shape))throw this.positionedShapeError(`No such shape: ${d.shape}.`,c);b.type=d?.shape}d?.label&&(b.text=this.sanitizeText(d.label),b.labelType=this.sanitizeNodeLabelType(d?.labelType))}}positionedShapeError(t,e){const s=new Error(t);if(!e)return s;const i=e.first_line+this.frontmatterLineOffset;return Object.assign(s,{hash:{text:"",token:null,line:i-1,loc:{first_line:i,last_line:e.last_line+this.frontmatterLineOffset,first_column:e.first_column,last_column:e.last_column},expected:[]}}),s}rethrowMetadataYamlError(t,e,s){const i=t;if(!i||"YAMLException"!==i.name||!i.mark||!s)throw t;let n;try{const t=!e.includes("\n"),r=t?"{\n"+e+"\n}":e+"\n",a=s.first_line+this.frontmatterLineOffset,o=s.first_column+2,u=(0,g.K)((e,s)=>t?{line:a,column:o+(1===e?s:0)}:{line:a+e,column:0===e?o+s:s},"toSource"),l=u(i.mark.line,i.mark.column),c=i.reason??(i.message??"").split("\n")[0].replace(/\s*\(\d+:\d+\)\s*$/,""),d=r.split("\n"),h=[];if(t)h.push(1);else for(let t=i.mark.line-1;t<=i.mark.line+1;t++)t<0||t>=d.length||t===d.length-1&&""===d[t]&&t!==i.mark.line||h.push(t);const p=Math.max(...h.map(t=>String(u(t,0).line).length)),f=[];for(const t of h){const e=u(t,0).line,s=` ${String(e).padStart(p)} | `;f.push(s+d[t].replace(/\t/g,"→")),t===i.mark.line&&f.push("-".repeat(s.length+i.mark.column)+"^")}n={message:`${c} (${l.line}:${l.column+1})\n\n${f.join("\n")}`,markLine:l.line-1,markColumn:l.column,hash:{text:"",token:null,line:l.line-1,loc:{first_line:l.line,last_line:l.line,first_column:l.column,last_column:l.column+1},expected:[]}}}catch{}throw n&&(i.message=n.message,i.mark.line=n.markLine,i.mark.column=n.markColumn,i.hash=n.hash),i}addSingleLink(t,e,s,i){const n={start:t,end:e,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};p.R.info("abc78 Got edge...",n);const r=s.text;if(void 0!==r&&(n.text=this.sanitizeText(r.text.trim()),n.text.startsWith('"')&&n.text.endsWith('"')&&(n.text=n.text.substring(1,n.text.length-1)),n.labelType=this.sanitizeNodeLabelType(r.type)),void 0!==s&&(n.type=s.type,n.stroke=s.stroke,n.length=s.length>10?10:s.length,s.edgeSemantic&&(n.edgeSemantic=s.edgeSemantic)),i&&!this.edges.some(t=>t.id===i))n.id=i,n.isUserDefinedId=!0;else{const t=this.edges.filter(t=>t.start===n.start&&t.end===n.end);0===t.length?n.id=(0,d.rY)(n.start,n.end,{counter:0,prefix:"L"}):n.id=(0,d.rY)(n.start,n.end,{counter:t.length+1,prefix:"L"})}if(!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`);p.R.info("Pushing edge..."),this.edges.push(n)}isLinkData(t){return null!==t&&"object"==typeof t&&"id"in t&&"string"==typeof t.id}addLink(t,e,s){const i=this.isLinkData(s)?s.id.replace("@",""):void 0;p.R.info("addLink",t,e,i);for(const n of t)for(const r of e){const a=n===t[t.length-1],o=r===e[0];a&&o?this.addSingleLink(n,r,s,i):this.addSingleLink(n,r,s,void 0)}}updateLinkInterpolate(t,e){t.forEach(t=>{if("default"!==t){if("number"==typeof t&&t>=this.edges.length)throw new Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[t].interpolate=e}else this.edges.defaultInterpolate=e})}updateLink(t,e){t.forEach(t=>{if("number"==typeof t&&t>=this.edges.length)throw new Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===t?this.edges.defaultStyle=e:(this.edges[t].style=e,(this.edges[t]?.style?.length??0)>0&&!this.edges[t]?.style?.some(t=>t?.startsWith("fill"))&&this.edges[t]?.style?.push("fill:none"))})}addClass(t,e){const s=e.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(t=>{let e=this.classes.get(t);void 0===e&&(e={id:t,styles:[],textStyles:[]},this.classes.set(t,e)),null!=s&&s.forEach(t=>{if(/color/.exec(t)){const s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)})})}setDirection(t){this.direction=t.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(t,e){for(const s of t.split(",")){const t=this.vertices.get(s);t&&t.classes.push(e);const i=this.edges.find(t=>t.id===s);i&&i.classes.push(e);const n=this.subGraphLookup.get(s);n&&n.classes.push(e)}}setTooltip(t,e){if(void 0!==e){e=this.sanitizeText(e);for(const s of t.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(s):s,e)}}setClickFun(t,e,s){if("loose"!==(0,h.D7)().securityLevel)return;if(void 0===e)return;let i=[];if("string"==typeof s){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(t);const n=this.vertices.get(t);n&&(n.haveCallback=!0,this.funs.push(()=>{const s=this.lookUpDomId(t),n=document.querySelector(`[id="${s}"]`);null!==n&&n.addEventListener("click",()=>{d._K.runFunc(e,...i)},!1)}))}setLink(t,e,s){t.split(",").forEach(t=>{const i=this.vertices.get(t);void 0!==i&&(i.link=d._K.formatUrl(e,this.config),i.linkTarget=s)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFun(t,e,s)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(t){return N.has(t.type)}getTools(){const t=[];for(const e of this.vertices.values())this.isToolDefinition(e)&&t.push(e);return t}getClasses(){return this.classes}setupToolTips(t){const e=(0,u.Ck)();(0,f.Ltv)(t).select("svg").selectAll("g.node").on("mouseover",t=>{const s=(0,f.Ltv)(t.currentTarget),i=s.attr("title");if(null===i)return;const n=t.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(s.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.bottom+"px"),e.html(m.A.sanitize(i)),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0);(0,f.Ltv)(t.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=(0,h.D7)(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,(0,h.IU)()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,e,s,i){let n=t?.text?.trim(),r=s?.text;t===s&&s?.text&&/\s/.exec(s.text)&&(n=void 0);const a=(0,g.K)(t=>{const e={boolean:{},number:{},string:{}},s=[];let i;return{nodeList:t.filter(function(t){const n=typeof t;return t.stmt&&"dir"===t.stmt?(i=t.value,!1):""!==t.trim()&&(n in e?!e[n].hasOwnProperty(t)&&(e[n][t]=!0):!s.includes(t)&&s.push(t))}),dir:i}},"uniq")(e.flat()),o=a.nodeList;let u=a.dir;const l=(0,h.D7)().flowchart??{};if(u=u??(l.inheritDir?this.getDirection()??(0,h.D7)().direction??void 0:void 0),"gen-1"===this.version)for(let t=0;t<o.length;t++)o[t]=this.lookUpDomId(o[t]);n=n??"subGraph"+this.subCount,r=r||"",r=this.sanitizeText(r),this.subCount=this.subCount+1;const c={id:n,nodes:o.filter(t=>t!==n&&!this.globalNodes.has(t)),title:r.trim(),classes:[],dir:u,labelType:this.sanitizeNodeLabelType(s?.type),type:i??"flow"};p.R.info("Adding",c.id,c.nodes,c.dir),c.nodes=this.makeUniq(c,this.subGraphs).nodes;const d=this.getPosForId(n);if(-1!==d){const t=this.subGraphs[d];for(const e of c.nodes)t.nodes.includes(e)||t.nodes.push(e);c.title&&(t.title=c.title),c.dir&&(t.dir=c.dir),c.type&&(t.type=c.type),this.subGraphLookup.set(n,t)}else this.subGraphs.push(c),this.subGraphLookup.set(n,c);return n}addGlobal(t){for(const e of t.flat()){if("string"!=typeof e)continue;const t=e.trim();""!==t&&this.globalNodes.add(t)}for(const t of this.subGraphs)t.nodes=t.nodes.filter(t=>!this.globalNodes.has(t))}getPosForId(t){for(const[e,s]of this.subGraphs.entries())if(s.id===t)return e;return-1}indexNodes2(t,e){const s=this.subGraphs[e].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=e,this.subGraphs[e].id===t)return{result:!0,count:0};let i=0,n=1;for(;i<s.length;){const e=this.getPosForId(s[i]);if(e>=0){const s=this.indexNodes2(t,e);if(s.result)return{result:!0,count:n+s.count};n+=s.count}i+=1}return{result:!1,count:n}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}addConnector(t,e){const s=t?.text?.trim();if(!s)return"";const i=e?.text?.trim()??"",n=i.length>0?this.sanitizeText(i):s;let r=this.connectors.get(s);return r?i.length>0&&(r.text=n):(r={id:s,labelType:"text",domId:I+s+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:n},this.connectors.set(s,r),this.vertices.set(s,r),this.vertexCounter++),s}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}computeEdgeSemantic(t,e){return"arrow_point"===t&&"normal"===e?"sequence":"arrow_cross"===t&&"normal"===e?"failure":"arrow_open"===t&&"dotted"===e?"reference":void 0}destructStartLink(t){let e="normal";return t.trim().includes(".")&&(e="dotted"),{type:"arrow_open",stroke:e}}countChar(t,e){const s=e.length;let i=0;for(let n=0;n<s;++n)e[n]===t&&++i;return i}destructEndLink(t){const e=t.trim();let s=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross";break;case">":i="arrow_point";break;case"-":case".":i="arrow_open",s=e}let n="normal",r=s.length-1;const a=this.countChar(".",s);return a>0&&(n="dotted",r=a),{type:i,stroke:n,length:r}}destructLink(t,e){const s=this.destructEndLink(t);let i;return e?(i=this.destructStartLink(e),i.stroke!==s.stroke?{type:"INVALID",stroke:"INVALID"}:(i.type=s.type,i.length=s.length,{...i,edgeSemantic:this.computeEdgeSemantic(i.type,i.stroke)})):{...s,edgeSemantic:this.computeEdgeSemantic(s.type,s.stroke)}}exists(t,e){for(const s of t)if(s.nodes.includes(e))return!0;return!1}makeUniq(t,e){const s=[];return t.nodes.forEach((i,n)=>{this.exists(e,i)||s.push(t.nodes[n])}),{nodes:s}}getTypeFromVertex(t){const e="string"==typeof t.type?T(t.type):t.type;switch(e){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e}}findNode(t,e){return t.find(t=>t.id===e)}destructEdgeType(t){let e="none",s="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":s=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":e=t.replace("double_",""),s=e}return{arrowTypeStart:e,arrowTypeEnd:s}}addNodeFromVertex(t,e,s,i,n,r){const a=s.get(t.id),o=i.get(t.id)??!1,u=this.findNode(e,t.id);if(u)u.cssStyles=t.styles,u.cssCompiledStyles=this.getCompiledStyles(t.classes),u.cssClasses=t.classes.join(" ");else{const s={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:a,padding:n.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:r,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),metadata:t.metadata};o?e.push({...s,isGroup:!0,shape:"rect"}):e.push({...s,isGroup:!1,shape:this.getTypeFromVertex(t),wrappingWidth:n.agentflow?.wrappingWidth,minWidth:n.agentflow?.minNodeWidth})}}getCompiledStyles(t){let e=[];for(const s of t){const t=this.classes.get(s);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}runPostParseValidators(){this.postParseValidationRun||(this.postParseValidationRun=!0)}getData(){this.runPostParseValidators();const t=(0,h.D7)(),e=[],s=[],i=this.getSubGraphs(),n=new Map,r=new Map,a=new Set,o=new Map,u=(0,g.K)((t,e,s=new Set)=>{if(s.has(t))return;s.add(t);const i=this.subGraphLookup.get(t);if(i)for(const t of i.nodes)t===e||s.has(t)||(a.add(t),o.set(t,e),u(t,e,s))},"collectDescendants");for(const t of i)"collapsed"!==t.metadata?.view||a.has(t.id)||u(t.id,t.id);const l=(0,g.K)((t,e)=>{const s=new Set;let i=e;for(;void 0!==i&&!s.has(i);){if(i===t)return!0;s.add(i),i=n.get(i)}return!1},"wouldCloseContainmentCycle");for(let t=i.length-1;t>=0;t--){const e=i[t];if(!a.has(e.id)){e.nodes.length>0&&r.set(e.id,!0);for(const t of e.nodes)l(t,e.id)?this.emitWarning(A.CONTAINMENT_VIOLATION,`Container "${e.id}" cannot contain "${t}" because "${t}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:t}):n.set(t,e.id)}}for(let s=i.length-1;s>=0;s--){const r=i[s];if(a.has(r.id))continue;if("collapsed"===r.metadata?.view){const s={...r.metadata,containerType:r.type};e.push({id:r.id,label:r.title,labelStyle:"",labelType:r.labelType,parentId:n.get(r.id),padding:8,cssCompiledStyles:this.getCompiledStyles(r.classes),cssClasses:r.classes.join(" "),shape:"collapsedGroup",dir:r.dir,isGroup:!1,look:t.look,metadata:s})}else e.push({id:r.id,label:r.title,labelStyle:"",labelType:r.labelType,parentId:n.get(r.id),padding:8,cssCompiledStyles:this.getCompiledStyles(r.classes),cssClasses:r.classes.join(" "),shape:R[r.type??"flow"],dir:r.dir,isGroup:!0,look:t.look,metadata:r.metadata})}this.getVertices().forEach(s=>{a.has(s.id)||this.addNodeFromVertex(s,e,n,r,t,t.look||"classic")});const c=this.getEdges();c.forEach((e,i)=>{const n=o.get(e.start)??e.start,r=o.get(e.end)??e.end;if(n===r&&e.start!==e.end)return;const{arrowTypeStart:a,arrowTypeEnd:u}=this.destructEdgeType(e.type),l=[...c.defaultStyle??[]];e.style&&l.push(...e.style);const h={id:(0,d.rY)(n,r,{counter:i,prefix:"L"},e.id),isUserDefinedId:e.isUserDefinedId,start:n,end:r,type:e.type??"normal",label:e.text,labelType:e.labelType,labelpos:"c",thickness:e.stroke,minlen:e.length,classes:"invisible"===e?.stroke?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":a,arrowTypeEnd:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":u,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(e.classes),labelStyle:l,style:l,pattern:e.stroke,look:t.look,animate:e.animate,animation:e.animation,curve:e.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve,metadata:e.metadata};s.push(h)}),D(e,this);const p=new Map,f=new Map;for(const t of i){const e=n.get(t.id);void 0!==e&&f.set(e,[...f.get(e)??[],t.id])}let m=0;const y=(0,g.K)(t=>{if(!p.has(t)){p.set(t,m++);for(const e of f.get(t)??[])y(e)}},"walkContainers");for(const t of i)void 0===n.get(t.id)&&y(t.id);const b=new Set(this.getConnectors().map(t=>t.id));return B(e,t=>{if(b.has(t))return"connector";const e=this.vertices.get(t);return e?this.deriveVertexKind(e,T(e.type)):void 0},p),{nodes:e,edges:s,other:{},config:t,connectors:this.getConnectors()}}defaultConfig(){return h.ME.flowchart}deriveVertexKind(t,e){return this.isToolDefinition(t)?"tool":"hexagon"===e||"hex"===e?"action":"lean-right"===e||"lean_right"===e?"input":"lin-doc"===e||"lined-document"===e?"refdoc":"diamond"===e?"decision":"task"}getSemanticModel(){this.runPostParseValidators();const t=new Set(this.subGraphs.map(t=>t.id)),e=[],s=[];for(const[i,n]of this.vertices){if(t.has(i))continue;if(n.isConnector){const t={id:i};if(void 0!==n.text&&n.text!==i&&(t.title=n.text),n.metadata&&Object.keys(n.metadata).length>0){const e={};for(const[t,s]of Object.entries(n.metadata))M.has(t)||(e[t]=s);Object.keys(e).length>0&&(t.metadata=e)}s.push(t);continue}const r={id:i};void 0!==n.text&&(r.label=n.text);const a="string"==typeof n.type?T(n.type):n.type;if(void 0!==a&&(r.shape=a),r.vertexKind=this.deriveVertexKind(n,a),n.metadata&&Object.keys(n.metadata).length>0){const t={};for(const[e,s]of Object.entries(n.metadata))M.has(e)||(t[e]=s);Object.keys(t).length>0&&(r.metadata=t)}e.push(r)}const i={vertices:e,edges:this.edges.map(t=>{const e={start:t.start,end:t.end};return void 0!==t.id&&(e.id=t.id),"string"==typeof t.text&&t.text.length>0&&(e.label=t.text),void 0!==t.type&&(e.type=t.type),void 0!==t.stroke&&(e.stroke=t.stroke),void 0!==t.edgeSemantic&&(e.edgeSemantic=t.edgeSemantic),void 0!==t.length&&(e.length=t.length),t.metadata&&Object.keys(t.metadata).length>0&&(e.metadata={...t.metadata}),e}),subGraphs:this.subGraphs.map(t=>{const e={id:t.id,nodes:[...t.nodes]};if(void 0!==t.type&&(e.type=t.type),void 0!==t.title&&(e.title=t.title),void 0!==t.dir&&(e.direction=t.dir),t.metadata&&Object.keys(t.metadata).length>0){const s={};for(const[e,i]of Object.entries(t.metadata))M.has(e)||(s[e]=i);Object.keys(s).length>0&&(e.metadata=s)}return e}),connectors:s,diagnostics:this.diagnostics};return void 0!==this.direction&&(i.direction=this.direction),i}setFrontmatterLineOffset(t){this.frontmatterLineOffset=t??0}toElementPosition(t){const e=t?.first_line??0,s=t?.first_column??0,i=t?.last_line??e,n=t?.last_column??s,[r,a]=t?.range??[0,0];return{startLine:e+this.frontmatterLineOffset,startColumn:s,endLine:i+this.frontmatterLineOffset,endColumn:n,startIndex:r,endIndex:a}}pushMapping(t,e,s){if(!t)return;const i={id:t,type:e,position:this.toElementPosition(s)};return this.elementMappings.push(i),i}addVertexMapping(t,e,s,i){const n=this.pushMapping(t,"vertex",i);n&&null==s&&this.bareVertexMappings.add(n)}extendVertexMapping(t,e){if(!t||!e)return;const s=this.toElementPosition(e);for(let e=this.elementMappings.length-1;e>=0;e--){const i=this.elementMappings[e];if("vertex"===i.type&&i.id===t){this.bareVertexMappings.has(i)&&(i.type="attachment",this.bareVertexMappings.delete(i));return void((s.endLine>i.position.endLine||s.endLine===i.position.endLine&&s.endColumn>i.position.endColumn)&&(i.position.endLine=s.endLine,i.position.endColumn=s.endColumn,i.position.endIndex=s.endIndex))}}this.pushMapping(t,"attachment",e)}addEdgeMapping(t,e,s,i){const n=Array.isArray(e)?e.map(t=>"string"==typeof t?t:t?.id??"").filter(Boolean):[],r=n.length>0?n.join(">"):"edge";this.pushMapping(r,"edge",i)}addSubgraphMapping(t,e,s,i){const n=("string"==typeof t?t:t?.text)??"",r=this.toElementPosition(s),a=i?this.toElementPosition(i):r;n&&this.elementMappings.push({id:n,type:"subgraph",position:{startLine:r.startLine,startColumn:r.startColumn,endLine:a.endLine,endColumn:a.endColumn,startIndex:r.startIndex,endIndex:a.endIndex}})}addConnectorMapping(t,e,s,i){const n=t?.text?.trim()??"";if(!n)return;const r=this.toElementPosition(s),a=i?this.toElementPosition(i):r;this.elementMappings.push({id:n,type:"connector",position:{startLine:r.startLine,startColumn:r.startColumn,endLine:a.endLine,endColumn:a.endColumn,startIndex:r.startIndex,endIndex:a.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(t){return this.elementMappings.find(e=>e.id===t)}getElementsOnLine(t){return this.elementMappings.filter(e=>t>=e.position.startLine&&t<=e.position.endLine)}getElementAtPosition(t,e){const s=this.elementMappings.filter(s=>{const{startLine:i,startColumn:n,endLine:r,endColumn:a}=s.position;return!(t<i||t>r)&&(!(t===i&&e<n)&&!(t===r&&e>a))});if(0===s.length)return;const i=(0,g.K)(({position:t})=>[t.endLine-t.startLine,t.endColumn-t.startColumn],"span");return s.reduce((t,e)=>{const[s,n]=i(t),[r,a]=i(e);return r!==s?r<s?e:t:a<n?e:t})}getMappingStats(){let t=0,e=0,s=0,i=0,n=0;for(const r of this.elementMappings)"vertex"===r.type?t++:"edge"===r.type?e++:"subgraph"===r.type?s++:"connector"===r.type?i++:"attachment"===r.type&&n++;return{vertices:t,edges:e,subgraphs:s,connectors:i,attachments:n,totalElements:this.elementMappings.length}}emitDiagnostic(t,e,s,i){const n=i?.nodeId??i?.edgeId,r=n?this.getElementById(n):void 0,a={id:t,severity:e,message:s,...i?.nodeId?{nodeId:i.nodeId}:{},...i?.edgeId&&!i?.nodeId?{edgeId:i.edgeId}:{},...r?{position:r.position}:{}};if(this.diagnostics.some(t=>t.id===a.id&&t.severity===a.severity&&t.message===a.message&&t.nodeId===a.nodeId&&t.edgeId===a.edgeId))return;this.diagnostics.push(a);const o=`agentflow[${t}]: ${s}`;"error"===e?p.R.error(o):p.R.warn(o)}emitWarning(t,e,s){this.emitDiagnostic(t,"warning",e,s)}emitError(t,e,s){this.emitDiagnostic(t,"error",e,s)}getDiagnostics(){return[...this.diagnostics]}},K={getClasses:(0,g.K)(function(t,e){return e.db.getClasses()},"getClasses"),draw:(0,g.K)(async function(t,e,s,i){p.R.debug("Drawing agentflow diagram",e);const{securityLevel:a,agentflow:u,layout:l}=(0,h.D7)();i.db.setDiagramId(e),p.R.debug("Before getData: ");const c=i.db.getData();p.R.debug("Data: ",c);const g=(0,n.A)(e,a),f=i.db.getDirection();c.type=i.type,c.layoutAlgorithm=(0,o.q7)(l),"dagre"===c.layoutAlgorithm&&"elk"===l&&p.R.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),c.direction=f,c.nodeSpacing=u?.nodeSpacing||50,c.rankSpacing=u?.rankSpacing||50,c.markers=["point","circle","cross","hierarchy"],c.diagramId=e,p.R.debug("REF1:",c),await(0,o.XX)(c,g);const m=u?.diagramPadding??8;d._K.insertTitle(g,"agentflowTitleText",u?.titleTopMargin??0,i.db.getDiagramTitle()),(0,r.P)(g,m,"agentflow",u?.useMaxWidth??!0)},"draw")},G=function(){var t=(0,g.K)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,5],s=[1,4],i=[1,3],n=[1,6],r=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],a=[2,2],o=[1,15],u=[1,16],l=[1,17],c=[1,18],d=[1,19],h=[1,26],p=[1,27],f=[1,28],m=[1,30],y=[1,31],b=[1,32],A=[1,55],k=[1,54],x=[1,34],E=[1,35],C=[1,36],S=[1,37],T=[1,38],D=[1,50],_=[1,52],v=[1,48],F=[1,53],$=[1,49],w=[1,56],L=[1,51],B=[1,57],I=[1,58],M=[1,39],N=[1,40],R=[1,41],O=[1,42],V=[1,43],P=[1,64],K=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],G=[1,70],U=[1,68],j=[1,67],z=[1,69],W=[8,9,10,12,78,80,81],Y=[1,88],H=[1,101],X=[1,106],q=[1,105],J=[1,102],Q=[1,98],Z=[1,104],tt=[1,100],et=[1,107],st=[1,103],it=[1,108],nt=[1,99],rt=[8,9,10,11,12,43,78,80,81],at=[8,9,10,11,12,43,49,78,80,81],ot=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],ut=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],lt=[47,63,92,105,108,109,112,114,117,118,119],ct=[1,131],dt=[1,132],ht=[1,134],pt=[1,133],gt=[47,63,65,77,92,105,108,109,112,114,117,118,119],ft=[1,143],mt=[1,157],yt=[1,158],bt=[1,159],At=[1,162],kt=[1,161],xt=[1,160],Et=[1,145],Ct=[1,147],St=[1,151],Tt=[1,139],Dt=[1,140],_t=[1,152],vt=[1,153],Ft=[1,154],$t=[1,155],wt=[1,156],Lt=[1,163],Bt=[1,164],It=[1,141],Mt=[1,142],Nt=[1,149],Rt=[1,144],Ot=[1,148],Vt=[1,146],Pt=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],Kt=[1,168],Gt=[1,170],Ut=[8,9,10,12],jt=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],zt=[1,190],Wt=[1,186],Yt=[1,187],Ht=[1,191],Xt=[1,188],qt=[1,189],Jt=[80,119,122],Qt=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],Zt=[11,109],te=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],ee=[1,269],se=[1,267],ie=[1,271],ne=[1,265],re=[1,266],ae=[1,268],oe=[1,270],ue=[1,272],le=[1,292],ce=[8,9,10,12,109],de=[8,9,10,11,12,63,87,108,109,112,113,114,115],he={trace:(0,g.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:(0,g.K)(function(t,e,s,i,n,r,a){var o=r.length-1;switch(n){case 2:case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 3:(!Array.isArray(r[o])||r[o].length>0)&&r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 198:case 57:case 67:case 89:case 196:this.$=r[o];break;case 13:i.setDirection("TB"),this.$="TB";break;case 14:i.setDirection(r[o-1]),this.$=r[o-1];break;case 32:this.$=r[o-1].nodes;break;case 38:this.$=i.addSubGraph(r[o-6],r[o-1],r[o-4],"flow"),i.addSubgraphMapping&&i.addSubgraphMapping(r[o-6],r[o-4],a[o-8],a[o]);break;case 39:this.$=i.addSubGraph(r[o-7],r[o-1],r[o-5],"flow"),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,r[o-3],a[o-3]),i.addSubgraphMapping&&i.addSubgraphMapping(r[o-7],r[o-5],a[o-9],a[o]);break;case 40:this.$=i.addSubGraph(r[o-3],r[o-1],{text:"",type:"text"},"flow"),i.addSubgraphMapping&&i.addSubgraphMapping(r[o-3],{text:"",type:"text"},a[o-5],a[o]);break;case 41:this.$=i.addSubGraph(r[o-4],r[o-1],{text:"",type:"text"},"flow"),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,r[o-3],a[o-3]),i.addSubgraphMapping&&i.addSubgraphMapping(r[o-4],{text:"",type:"text"},a[o-6],a[o]);break;case 42:this.$=i.addSubGraph(void 0,r[o-1],void 0,"flow"),i.addSubgraphMapping&&i.addSubgraphMapping(void 0,void 0,a[o-3],a[o]);break;case 43:i.addGlobal(r[o-1]),this.$=[];break;case 44:this.$=i.addConnector(r[o-4],r[o-2]),i.addConnectorMapping&&i.addConnectorMapping(r[o-4],r[o-2],a[o-6],a[o]);break;case 45:this.$=i.addConnector(r[o-5],r[o-3]),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,r[o-1],a[o-1]),i.addConnectorMapping&&i.addConnectorMapping(r[o-5],r[o-3],a[o-7],a[o]);break;case 46:this.$=i.addConnector(r[o-1],{text:"",type:"text"}),i.addConnectorMapping&&i.addConnectorMapping(r[o-1],{text:"",type:"text"},a[o-3],a[o]);break;case 47:this.$=i.addConnector(r[o-2],{text:"",type:"text"}),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,r[o-1],a[o-1]),i.addConnectorMapping&&i.addConnectorMapping(r[o-2],{text:"",type:"text"},a[o-4],a[o]);break;case 49:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 50:case 51:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 56:case 148:this.$=r[o-1]+r[o];break;case 58:i.addVertex(r[o-1][r[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[o],a[o]),i.extendVertexMapping&&i.extendVertexMapping(r[o-1][r[o-1].length-1],a[o]),i.addLink(r[o-3].stmt,r[o-1],r[o-2]),i.addEdgeMapping&&i.addEdgeMapping(r[o-3].stmt,r[o-1],r[o-2],this._$),this.$={stmt:r[o-1],nodes:r[o-1].concat(r[o-3].nodes)};break;case 59:i.addLink(r[o-2].stmt,r[o],r[o-1]),i.addEdgeMapping&&i.addEdgeMapping(r[o-2].stmt,r[o],r[o-1],this._$),this.$={stmt:r[o],nodes:r[o].concat(r[o-2].nodes)};break;case 60:i.addLink(r[o-3].stmt,r[o-1],r[o-2]),i.addEdgeMapping&&i.addEdgeMapping(r[o-3].stmt,r[o-1],r[o-2],this._$),this.$={stmt:r[o-1],nodes:r[o-1].concat(r[o-3].nodes)};break;case 61:this.$={stmt:r[o-1],nodes:r[o-1]};break;case 62:i.addVertex(r[o-1][r[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[o],a[o]),i.extendVertexMapping&&i.extendVertexMapping(r[o-1][r[o-1].length-1],a[o]),this.$={stmt:r[o-1],nodes:r[o-1],shapeData:r[o]};break;case 63:this.$={stmt:r[o],nodes:r[o]};break;case 64:case 143:case 145:this.$=[r[o]];break;case 65:i.addVertex(r[o-5][r[o-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[o-4],a[o-4]),i.extendVertexMapping&&i.extendVertexMapping(r[o-5][r[o-5].length-1],a[o-4]),this.$=r[o-5].concat(r[o]);break;case 66:this.$=r[o-4].concat(r[o]);break;case 68:this.$=r[o-2],i.setClass(r[o-2],r[o]);break;case 69:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"square"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"square",this._$);break;case 70:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"doublecircle"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"doublecircle",this._$);break;case 71:this.$=r[o-5],i.addVertex(r[o-5],r[o-2],"circle"),i.addVertexMapping&&i.addVertexMapping(r[o-5],r[o-2],"circle",this._$);break;case 72:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"ellipse"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"ellipse",this._$);break;case 73:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"stadium"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"stadium",this._$);break;case 74:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"subroutine"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"subroutine",this._$);break;case 75:this.$=r[o-7],i.addVertex(r[o-7],r[o-1],"rect",void 0,void 0,void 0,Object.fromEntries([[r[o-5],r[o-3]]])),i.addVertexMapping&&i.addVertexMapping(r[o-7],r[o-1],"rect",this._$);break;case 76:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"cylinder"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"cylinder",this._$);break;case 77:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"round"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"round",this._$);break;case 78:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"diamond"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"diamond",this._$);break;case 79:this.$=r[o-5],i.addVertex(r[o-5],r[o-2],"hexagon"),i.addVertexMapping&&i.addVertexMapping(r[o-5],r[o-2],"hexagon",this._$);break;case 80:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"odd"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"odd",this._$);break;case 81:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"trapezoid"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"trapezoid",this._$);break;case 82:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"inv_trapezoid"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"inv_trapezoid",this._$);break;case 83:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"lean_right"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"lean_right",this._$);break;case 84:this.$=r[o-3],i.addVertex(r[o-3],r[o-1],"lean_left"),i.addVertexMapping&&i.addVertexMapping(r[o-3],r[o-1],"lean_left",this._$);break;case 85:this.$=r[o],i.addVertex(r[o]),i.addVertexMapping&&i.addVertexMapping(r[o],void 0,void 0,this._$);break;case 86:r[o-1].text=r[o],this.$=r[o-1];break;case 87:case 88:r[o-2].text=r[o-1],this.$=r[o-2];break;case 90:var u=i.destructLink(r[o],r[o-2]);this.$={type:u.type,stroke:u.stroke,length:u.length,edgeSemantic:u.edgeSemantic,text:r[o-1]};break;case 91:u=i.destructLink(r[o],r[o-2]);this.$={type:u.type,stroke:u.stroke,length:u.length,edgeSemantic:u.edgeSemantic,text:r[o-1],id:r[o-3]};break;case 92:case 99:case 116:case 118:this.$={text:r[o],type:"text"};break;case 93:case 100:case 117:this.$={text:r[o-1].text+""+r[o],type:r[o-1].type};break;case 94:case 101:this.$={text:r[o],type:"string"};break;case 95:case 102:case 119:this.$={text:r[o],type:"markdown"};break;case 96:u=i.destructLink(r[o]);this.$={type:u.type,stroke:u.stroke,length:u.length,edgeSemantic:u.edgeSemantic};break;case 97:u=i.destructLink(r[o]);this.$={type:u.type,stroke:u.stroke,length:u.length,edgeSemantic:u.edgeSemantic,id:r[o-1]};break;case 98:this.$=r[o-1];break;case 120:this.$=r[o-4],i.addClass(r[o-2],r[o]);break;case 121:this.$=r[o-4],i.setClass(r[o-2],r[o]);break;case 122:case 130:this.$=r[o-1],i.setClickEvent(r[o-1],r[o]);break;case 123:case 131:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-2]),i.setTooltip(r[o-3],r[o]);break;case 124:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],r[o]);break;case 125:this.$=r[o-4],i.setClickEvent(r[o-4],r[o-3],r[o-2]),i.setTooltip(r[o-4],r[o]);break;case 126:this.$=r[o-2],i.setLink(r[o-2],r[o]);break;case 127:this.$=r[o-4],i.setLink(r[o-4],r[o-2]),i.setTooltip(r[o-4],r[o]);break;case 128:this.$=r[o-4],i.setLink(r[o-4],r[o-2],r[o]);break;case 129:this.$=r[o-6],i.setLink(r[o-6],r[o-4],r[o]),i.setTooltip(r[o-6],r[o-2]);break;case 132:this.$=r[o-1],i.setLink(r[o-1],r[o]);break;case 133:this.$=r[o-3],i.setLink(r[o-3],r[o-2]),i.setTooltip(r[o-3],r[o]);break;case 134:this.$=r[o-3],i.setLink(r[o-3],r[o-2],r[o]);break;case 135:this.$=r[o-5],i.setLink(r[o-5],r[o-4],r[o]),i.setTooltip(r[o-5],r[o-2]);break;case 136:this.$=r[o-4],i.addVertex(r[o-2],void 0,void 0,r[o]);break;case 137:this.$=r[o-4],i.updateLink([r[o-2]],r[o]);break;case 138:this.$=r[o-4],i.updateLink(r[o-2],r[o]);break;case 139:this.$=r[o-8],i.updateLinkInterpolate([r[o-6]],r[o-2]),i.updateLink([r[o-6]],r[o]);break;case 140:this.$=r[o-8],i.updateLinkInterpolate(r[o-6],r[o-2]),i.updateLink(r[o-6],r[o]);break;case 141:this.$=r[o-6],i.updateLinkInterpolate([r[o-4]],r[o]);break;case 142:this.$=r[o-6],i.updateLinkInterpolate(r[o-4],r[o]);break;case 144:case 146:r[o-2].push(r[o]),this.$=r[o-2];break;case 197:case 199:this.$=r[o-1]+""+r[o];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,8:e,10:s,11:i,13:n},{1:[3]},t(r,a,{5:7}),{4:8,8:e,10:s,11:i,13:n},{4:9,8:e,10:s,11:i,13:n},{4:10,8:e,10:s,11:i,13:n},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:o,9:u,10:l,11:c,12:d,21:20,23:21,24:22,25:23,26:24,27:25,28:h,35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:x,88:E,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I,124:M,125:N,126:R,127:O,128:V},t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:P,16:59,19:62},t(K,[2,3]),t(K,[2,4]),t(K,[2,5]),t(K,[2,6]),t(K,[2,7]),t(K,[2,8]),t(K,[2,9]),{8:G,9:U,10:j,12:z,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:G,9:U,10:j,12:z,22:75},{8:G,9:U,10:j,12:z,22:76},{8:G,9:U,10:j,12:z,22:77},{8:G,9:U,10:j,12:z,22:78},{8:G,9:U,10:j,12:z,22:79},{8:G,9:U,10:j,11:[1,80],12:z,22:81},{8:G,9:U,10:j,12:z,22:82},{11:[1,83]},t(K,[2,48]),{39:[1,84]},{41:[1,85]},t(K,[2,51]),t(W,[2,63],{19:86,34:87,11:P,43:Y}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:H,47:X,63:q,83:[1,96],92:J,98:[1,93],100:[1,94],104:95,108:Q,109:Z,112:tt,114:et,117:st,118:it,119:nt,123:97},t(K,[2,200]),t(K,[2,201]),t(K,[2,202]),t(K,[2,203]),t(K,[2,204]),t(rt,[2,64]),t(rt,[2,67],{49:[1,109]}),t(at,[2,85],{116:122,30:[1,110],47:A,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:k,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:D,105:_,108:v,109:F,112:$,114:w,117:L,118:B,119:I}),t(ot,[2,196]),t(ot,[2,157]),t(ot,[2,158]),t(ot,[2,159]),t(ot,[2,160]),t(ot,[2,161]),t(ot,[2,162]),t(ot,[2,163]),t(ot,[2,164]),t(ot,[2,165]),t(ot,[2,166]),t(ot,[2,167]),t(r,[2,14]),t(r,[2,20]),t(r,[2,21]),{10:[1,123]},t(r,[2,23]),t(ut,[2,31],{19:124,11:P}),t(K,[2,32]),{45:125,46:44,47:A,48:45,50:46,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I},t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(lt,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:ct,84:dt,119:ht,122:pt},{78:[1,135],80:[1,136]},t(gt,[2,96]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),{11:ft,13:mt,15:yt,28:bt,29:137,33:At,35:kt,36:xt,47:Et,63:Ct,78:St,83:Tt,84:Dt,86:150,87:_t,88:vt,89:Ft,90:$t,91:wt,92:Lt,93:Bt,94:138,108:It,112:Mt,114:Nt,117:Rt,118:Ot,119:Vt},t(Pt,a,{5:165}),t(Pt,a,{5:166}),{11:ft,13:mt,15:yt,28:bt,29:167,33:At,35:kt,36:xt,47:Et,63:Ct,78:St,83:Tt,84:Dt,86:150,87:_t,88:vt,89:Ft,90:$t,91:wt,92:Lt,93:Bt,94:138,108:It,112:Mt,114:Nt,117:Rt,118:Ot,119:Vt},t(K,[2,49]),t(K,[2,50]),t(W,[2,61],{47:Kt}),t(W,[2,62],{19:169,11:P,43:Gt}),t(rt,[2,57]),{47:A,50:171,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I},{105:[1,172],106:173,108:[1,174]},{47:A,50:175,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I},{47:A,50:176,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I},t(Ut,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},t(Ut,[2,130],{123:181,11:[1,180],15:H,47:X,63:q,92:J,108:Q,109:Z,112:tt,114:et,117:st,118:it,119:nt}),t(Ut,[2,132],{11:[1,182]}),t(jt,[2,198]),t(jt,[2,185]),t(jt,[2,186]),t(jt,[2,187]),t(jt,[2,188]),t(jt,[2,189]),t(jt,[2,190]),t(jt,[2,191]),t(jt,[2,192]),t(jt,[2,193]),t(jt,[2,194]),t(jt,[2,195]),{47:A,50:183,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I},{31:184,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{31:192,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{31:194,53:[1,193],70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{31:195,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{31:196,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{31:197,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{112:[1,198]},{31:199,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{31:200,68:[1,201],70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{31:202,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{31:203,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{31:204,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},t(ot,[2,197]),t(r,[2,22]),t(ut,[2,30]),t(W,[2,59],{34:205,19:206,11:P,43:Y}),t(lt,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{80:[1,210],82:211,119:ht,122:pt},t(Jt,[2,92]),t(Jt,[2,94]),t(Jt,[2,95]),t(Jt,[2,183]),t(Jt,[2,184]),{79:212,82:130,83:ct,84:dt,119:ht,122:pt},t(gt,[2,97]),{8:G,9:U,10:j,11:ft,12:z,13:mt,15:yt,22:214,28:bt,30:[1,213],33:At,34:215,35:kt,36:xt,43:Y,47:Et,63:Ct,78:St,86:150,87:_t,88:vt,89:Ft,90:$t,91:wt,92:Lt,93:Bt,94:216,108:It,112:Mt,114:Nt,117:Rt,118:Ot,119:Vt},t(Qt,[2,116]),t(Qt,[2,118]),t(Qt,[2,119]),t(Qt,[2,172]),t(Qt,[2,173]),t(Qt,[2,174]),t(Qt,[2,175]),t(Qt,[2,176]),t(Qt,[2,177]),t(Qt,[2,178]),t(Qt,[2,179]),t(Qt,[2,180]),t(Qt,[2,181]),t(Qt,[2,182]),t(Qt,[2,103]),t(Qt,[2,104]),t(Qt,[2,105]),t(Qt,[2,106]),t(Qt,[2,107]),t(Qt,[2,108]),t(Qt,[2,109]),t(Qt,[2,110]),t(Qt,[2,111]),t(Qt,[2,112]),t(Qt,[2,113]),t(Qt,[2,114]),t(Qt,[2,115]),{6:13,7:14,8:o,9:u,10:l,11:c,12:d,21:20,23:21,24:22,25:23,26:24,27:25,28:h,33:[1,217],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:x,88:E,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I,124:M,125:N,126:R,127:O,128:V},{6:13,7:14,8:o,9:u,10:l,11:c,12:d,21:20,23:21,24:22,25:23,26:24,27:25,28:h,33:[1,218],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:x,88:E,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I,124:M,125:N,126:R,127:O,128:V},{8:G,9:U,10:j,11:ft,12:z,13:mt,15:yt,22:220,28:bt,30:[1,219],33:At,34:221,35:kt,36:xt,43:Y,47:Et,63:Ct,78:St,86:150,87:_t,88:vt,89:Ft,90:$t,91:wt,92:Lt,93:Bt,94:216,108:It,112:Mt,114:Nt,117:Rt,118:Ot,119:Vt},{11:P,19:222},{47:[1,223]},t(rt,[2,56]),{11:[1,224],47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:122,117:L,118:B,119:I},{11:[1,225]},{11:[1,226],109:[1,227]},t(Zt,[2,143]),{11:[1,228],47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:122,117:L,118:B,119:I},{11:[1,229],47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:122,117:L,118:B,119:I},{83:[1,230]},t(Ut,[2,124],{11:[1,231]}),t(Ut,[2,126],{11:[1,232]}),{83:[1,233]},t(jt,[2,199]),{83:[1,234],101:[1,235]},t(rt,[2,68],{116:122,47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:w,117:L,118:B,119:I}),{32:[1,236],70:zt,85:237,119:Ht,120:Xt,121:qt},t(te,[2,99]),t(te,[2,101]),t(te,[2,102]),t(te,[2,168]),t(te,[2,169]),t(te,[2,170]),t(te,[2,171]),{52:[1,238],70:zt,85:237,119:Ht,120:Xt,121:qt},{31:239,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{54:[1,240],70:zt,85:237,119:Ht,120:Xt,121:qt},{56:[1,241],70:zt,85:237,119:Ht,120:Xt,121:qt},{58:[1,242],70:zt,85:237,119:Ht,120:Xt,121:qt},{60:[1,243],70:zt,85:237,119:Ht,120:Xt,121:qt},{63:[1,244]},{67:[1,245],70:zt,85:237,119:Ht,120:Xt,121:qt},{69:[1,246],70:zt,85:237,119:Ht,120:Xt,121:qt},{31:247,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},{32:[1,248],70:zt,85:237,119:Ht,120:Xt,121:qt},{70:zt,72:[1,249],74:[1,250],85:237,119:Ht,120:Xt,121:qt},{70:zt,72:[1,252],74:[1,251],85:237,119:Ht,120:Xt,121:qt},t(W,[2,58],{19:169,11:P,43:Gt}),t(W,[2,60],{47:Kt}),t(lt,[2,88]),t(lt,[2,87]),{65:[1,253],70:zt,85:237,119:Ht,120:Xt,121:qt},t(lt,[2,90]),t(Jt,[2,93]),{80:[1,254],82:211,119:ht,122:pt},{31:255,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},t(Pt,a,{5:256}),{8:G,9:U,10:j,12:z,22:257,43:Gt},t(Qt,[2,117]),t(K,[2,42]),t(K,[2,43]),{31:258,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},t(K,[2,46]),{8:G,9:U,10:j,12:z,22:259,43:Gt},{46:260,47:A,48:45,50:46,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I},{11:P,19:261},{11:ee,63:se,87:ie,95:262,108:ne,110:263,111:264,112:re,113:ae,114:oe,115:ue},{11:ee,63:se,87:ie,95:273,107:[1,274],108:ne,110:263,111:264,112:re,113:ae,114:oe,115:ue},{11:ee,63:se,87:ie,95:275,107:[1,276],108:ne,110:263,111:264,112:re,113:ae,114:oe,115:ue},{108:[1,277]},{11:ee,63:se,87:ie,95:278,108:ne,110:263,111:264,112:re,113:ae,114:oe,115:ue},{47:A,50:279,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I},t(Ut,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},t(Ut,[2,131]),t(Ut,[2,133],{11:[1,283]}),t(Ut,[2,134]),t(at,[2,69]),t(te,[2,100]),t(at,[2,70]),{54:[1,284],70:zt,85:237,119:Ht,120:Xt,121:qt},t(at,[2,77]),t(at,[2,72]),t(at,[2,73]),t(at,[2,74]),{112:[1,285]},t(at,[2,76]),t(at,[2,78]),{69:[1,286],70:zt,85:237,119:Ht,120:Xt,121:qt},t(at,[2,80]),t(at,[2,81]),t(at,[2,83]),t(at,[2,82]),t(at,[2,84]),t([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),t(lt,[2,91]),{32:[1,287],70:zt,85:237,119:Ht,120:Xt,121:qt},{6:13,7:14,8:o,9:u,10:l,11:c,12:d,21:20,23:21,24:22,25:23,26:24,27:25,28:h,33:[1,288],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:x,88:E,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I,124:M,125:N,126:R,127:O,128:V},t(Pt,a,{5:289}),{32:[1,290],70:zt,85:237,119:Ht,120:Xt,121:qt},t(K,[2,47]),t(rt,[2,66]),{46:291,47:A,48:45,50:46,63:k,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I},t(Ut,[2,136],{109:le}),t(ce,[2,145],{111:293,11:ee,63:se,87:ie,108:ne,112:re,113:ae,114:oe,115:ue}),t(de,[2,147]),t(de,[2,149]),t(de,[2,150]),t(de,[2,151]),t(de,[2,152]),t(de,[2,153]),t(de,[2,154]),t(de,[2,155]),t(de,[2,156]),t(Ut,[2,137],{109:le}),{11:[1,294]},t(Ut,[2,138],{109:le}),{11:[1,295]},t(Zt,[2,144]),t(Ut,[2,120],{109:le}),t(Ut,[2,121],{116:122,47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:w,117:L,118:B,119:I}),t(Ut,[2,125]),t(Ut,[2,127],{11:[1,296]}),t(Ut,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:G,9:U,10:j,12:z,22:301,34:302,43:Y},t(K,[2,40]),{6:13,7:14,8:o,9:u,10:l,11:c,12:d,21:20,23:21,24:22,25:23,26:24,27:25,28:h,33:[1,303],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:x,88:E,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I,124:M,125:N,126:R,127:O,128:V},{8:G,9:U,10:j,12:z,22:304,34:305,43:Y},t(rt,[2,65]),{11:ee,63:se,87:ie,108:ne,110:306,111:264,112:re,113:ae,114:oe,115:ue},t(de,[2,148]),{15:H,47:X,63:q,92:J,104:307,108:Q,109:Z,112:tt,114:et,117:st,118:it,119:nt,123:97},{15:H,47:X,63:q,92:J,104:308,108:Q,109:Z,112:tt,114:et,117:st,118:it,119:nt,123:97},{101:[1,309]},t(Ut,[2,135]),t(at,[2,71]),{31:310,70:zt,83:Wt,84:Yt,85:185,119:Ht,120:Xt,121:qt},t(at,[2,79]),t(Pt,a,{5:311}),{8:G,9:U,10:j,12:z,22:312,43:Gt},t(K,[2,41]),t(K,[2,44]),{8:G,9:U,10:j,12:z,22:313,43:Gt},t(ce,[2,146],{111:293,11:ee,63:se,87:ie,108:ne,112:re,113:ae,114:oe,115:ue}),t(Ut,[2,141],{123:181,11:[1,314],15:H,47:X,63:q,92:J,108:Q,109:Z,112:tt,114:et,117:st,118:it,119:nt}),t(Ut,[2,142],{123:181,11:[1,315],15:H,47:X,63:q,92:J,108:Q,109:Z,112:tt,114:et,117:st,118:it,119:nt}),t(Ut,[2,129]),{32:[1,316],70:zt,85:237,119:Ht,120:Xt,121:qt},{6:13,7:14,8:o,9:u,10:l,11:c,12:d,21:20,23:21,24:22,25:23,26:24,27:25,28:h,33:[1,317],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:x,88:E,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I,124:M,125:N,126:R,127:O,128:V},t(Pt,a,{5:318}),t(K,[2,45]),{11:ee,63:se,87:ie,95:319,108:ne,110:263,111:264,112:re,113:ae,114:oe,115:ue},{11:ee,63:se,87:ie,95:320,108:ne,110:263,111:264,112:re,113:ae,114:oe,115:ue},t(at,[2,75]),t(K,[2,38]),{6:13,7:14,8:o,9:u,10:l,11:c,12:d,21:20,23:21,24:22,25:23,26:24,27:25,28:h,33:[1,321],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:x,88:E,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:w,116:47,117:L,118:B,119:I,124:M,125:N,126:R,127:O,128:V},t(Ut,[2,139],{109:le}),t(Ut,[2,140],{109:le}),t(K,[2,39])],defaultActions:{},parseError:(0,g.K)(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:(0,g.K)(function(t){var e=this,s=[0],i=[],n=[null],r=[],a=this.table,o="",u=0,l=0,c=0,d=r.slice.call(arguments,1),h=Object.create(this.lexer),p={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(p.yy[f]=this.yy[f]);h.setInput(t,p.yy),p.yy.lexer=h,p.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var m=h.yylloc;r.push(m);var y=h.options&&h.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||h.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,g.K)(function(t){s.length=s.length-2*t,n.length=n.length-t,r.length=r.length-t},"popStack"),(0,g.K)(b,"lex");for(var A,k,x,E,C,S,T,D,_,v={};;){if(x=s[s.length-1],this.defaultActions[x]?E=this.defaultActions[x]:(null==A&&(A=b()),E=a[x]&&a[x][A]),void 0===E||!E.length||!E[0]){var F="";for(S in _=[],a[x])this.terminals_[S]&&S>2&&_.push("'"+this.terminals_[S]+"'");F=h.showPosition?"Parse error on line "+(u+1)+":\n"+h.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[A]||A)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==A?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(F,{text:h.match,token:this.terminals_[A]||A,line:h.yylineno,loc:m,expected:_})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+A);switch(E[0]){case 1:s.push(A),n.push(h.yytext),r.push(h.yylloc),s.push(E[1]),A=null,k?(A=k,k=null):(l=h.yyleng,o=h.yytext,u=h.yylineno,m=h.yylloc,c>0&&c--);break;case 2:if(T=this.productions_[E[1]][1],v.$=n[n.length-T],v._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},y&&(v._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(C=this.performAction.apply(v,[o,l,u,p.yy,E[1],n,r].concat(d))))return C;T&&(s=s.slice(0,-1*T*2),n=n.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[E[1]][0]),n.push(v.$),r.push(v._$),D=a[s[s.length-2]][s[s.length-1]],s.push(D);break;case 3:return!0}}return!0},"parse")},pe=function(){return{EOF:1,parseError:(0,g.K)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,g.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,g.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,g.K)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,g.K)(function(){return this._more=!0,this},"more"),reject:(0,g.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,g.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,g.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,g.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,g.K)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,g.K)(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:(0,g.K)(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,g.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,g.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,g.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,g.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,g.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,g.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,g.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,g.K)(function(t,e,s,i){switch(s){case 0:return this.begin("acc_title"),38;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),40;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),e.yytext="",43;case 8:return this.pushState("shapeDataStr"),43;case 9:return this.popState(),43;case 10:const s=/\n\s*/g;return e.yytext=e.yytext.replace(s,"<br/>"),43;case 11:return 43;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 98;case 18:return 99;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin("click");break;case 34:return 91;case 35:return t.lex.firstGraph()&&this.begin("dir"),13;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:case 41:case 42:case 43:return 101;case 44:return this.popState(),14;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),15;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:case 99:return 114;case 63:return 49;case 64:return 63;case 65:case 100:return 47;case 66:return 9;case 67:return 109;case 68:case 98:return 118;case 69:return this.popState(),80;case 70:return this.pushState("edgeText"),78;case 71:return 122;case 72:return 80;case 73:case 87:case 113:break;case 74:return this.popState(),56;case 75:case 114:return"TEXT";case 76:return this.pushState("ellipseText"),55;case 77:return this.popState(),58;case 78:return this.pushState("text"),57;case 79:return this.popState(),60;case 80:return this.pushState("text"),59;case 81:return 61;case 82:return this.pushState("text"),70;case 83:return this.popState(),67;case 84:return this.pushState("text"),66;case 85:return this.popState(),52;case 86:return this.pushState("text"),51;case 88:return this.popState(),72;case 89:return this.popState(),74;case 90:return 120;case 91:return this.pushState("trapText"),71;case 92:return this.pushState("trapText"),73;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return"SEP";case 97:return 92;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;case 106:return this.pushState("text"),65;case 107:return this.popState(),54;case 108:return this.pushState("text"),53;case 109:return this.popState(),32;case 110:return this.pushState("text"),30;case 111:return this.popState(),69;case 112:return this.pushState("text"),68;case 115:return"QUOTE";case 116:return 10;case 117:return 11;case 118:return 12}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}}}();function ge(){this.yy={}}return he.lexer=pe,(0,g.K)(ge,"Parser"),ge.prototype=he,he.Parser=ge,new ge}();G.parser=G;var U=G,j=Object.assign({},U);j.parse=t=>{const e=t.replace(/}[^\S\n]*\n/g,"}\n");return U.parse(e)};var z=j,W=(0,g.K)(t=>{const{theme:e,bkgColorArray:s,borderColorArray:i}=t;if(!(0,c.P1)(e,i))return"";const n=(0,c.rq)(t.look),r=(0,c.Ic)(s),a=(0,c.nw)(t.THEME_COLOR_LIMIT,i),o=(0,g.K)(t=>i[t%i.length],"border"),u=(0,g.K)(t=>r?`fill: ${s[t%s.length]};`:"","fill");let l="";for(const t of $){const e=_.get(t),s=`[data-look="${n}"].node.${F(t)}`;l+=`\n\n ${s} rect,\n ${s} path,\n ${s} polygon {\n stroke: ${o(e)};\n ${u(e)}\n }\n`}for(let t=0;t<w(a);t++){const e=L(t,a),s=`[data-look="${n}"][data-color-id="color-${e}"].cluster`,i=`[data-look="${n}"][data-color-id="color-${e}"].node`,r=(0,g.K)(t=>`${s} ${t}, ${i} ${t}`,"rule");l+=`\n\n ${r("rect")},\n ${r("path")} {\n stroke: ${o(e)};\n ${u(e)}\n }\n`}return l},"genColor"),Y=(0,g.K)((t,e)=>{const s=b.A,i=s(t,"r"),n=s(t,"g"),r=s(t,"b");return y.A(i,n,r,e)},"fade"),H=(0,g.K)(t=>`${W(t)}\n .label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span {\n color: ${t.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .label text,span {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: ${t.strokeWidth??1}px;\n }\n .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {\n text-anchor: middle;\n }\n .node .katex path {\n fill: ${t.nodeTextColor||t.textColor};\n stroke: ${t.nodeTextColor||t.textColor};\n stroke-width: 1px;\n }\n\n .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n\n .root .anchor path {\n fill: ${t.lineColor} !important;\n stroke-width: 0;\n stroke: ${t.lineColor};\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePaths .path {\n stroke: ${t.lineColor};\n stroke-width: ${t.strokeWidth??2}px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${Y(t.edgeLabelBackground,.5)};\n }\n\n .cluster rect {\n fill: ${t.clusterBkg};\n stroke: ${t.clusterBorder};\n stroke-width: 1px;\n }\n\n .flow-cluster rect {\n fill: none;\n stroke: ${t.clusterBorder};\n stroke-width: 0.75px;\n }\n\n .node .collapsed-indicator {\n fill: ${t.nodeBorder};\n stroke: none;\n stroke-width: 0;\n opacity: 0.5;\n }\n\n .node .collapsed-separator {\n stroke-width: 0.75px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .agentflowTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n\n rect.text {\n fill: none;\n stroke-width: 0;\n }\n\n .icon-shape, .image-shape {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n padding: 2px;\n }\n .label rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n ${(0,i.o)()}\n`,"getStyles"),X={parser:z,get db(){return new P},renderer:K,styles:H,init:(0,g.K)(t=>{t.agentflow??={},t.layout&&(0,h.XV)({layout:t.layout}),t.flowchart??={},t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,(0,h.XV)({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}}}]);
|