@hachej/boring-ui-cli 0.1.69 → 0.1.71

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.
Files changed (87) hide show
  1. package/dist/server/localWorkspaces.js +80 -46
  2. package/dist/server/modeApps.js +3 -0
  3. package/dist/server/pluginDiscovery.js +1 -1
  4. package/dist/server/workspacePluginRoutes.js +144 -0
  5. package/package.json +10 -8
  6. package/public/assets/{DebugDrawer-BPhPmF7n.js → DebugDrawer-4lxm6M9r.js} +1 -1
  7. package/public/assets/{DiagramPane-Cb8gdMwJ.js → DiagramPane-GOP7JDAY.js} +4 -4
  8. package/public/assets/architecture-YZFGNWBL-CSlAeBux.js +1 -0
  9. package/public/assets/{architectureDiagram-Q4EWVU46-C2LlQ_Jj.js → architectureDiagram-Q4EWVU46-B_cr9ja0.js} +1 -1
  10. package/public/assets/{blockDiagram-DXYQGD6D-e3vVT5ca.js → blockDiagram-DXYQGD6D-BfAOA2sb.js} +1 -1
  11. package/public/assets/{c4Diagram-AHTNJAMY-CQMGUGZr.js → c4Diagram-AHTNJAMY-l8FhRptb.js} +1 -1
  12. package/public/assets/channel-DLu3hTuZ.js +1 -0
  13. package/public/assets/{chunk-4TB4RGXK-NVc-EkQr.js → chunk-4TB4RGXK-BWfHBTVf.js} +1 -1
  14. package/public/assets/{chunk-5FUZZQ4R-DFs5M0VY.js → chunk-5FUZZQ4R-Ba6XrhVK.js} +1 -1
  15. package/public/assets/{chunk-5PVQY5BW-PKb2UfEn.js → chunk-5PVQY5BW-CJjwZOXY.js} +1 -1
  16. package/public/assets/{chunk-EDXVE4YY-W62DzS3u.js → chunk-EDXVE4YY-BmQF_Jii.js} +1 -1
  17. package/public/assets/{chunk-ENJZ2VHE-B19bR_UY.js → chunk-ENJZ2VHE-CEJhWlbH.js} +1 -1
  18. package/public/assets/{chunk-ICPOFSXX-CbeWjtve.js → chunk-ICPOFSXX-Dwv7Fn2n.js} +2 -2
  19. package/public/assets/{chunk-K5T4RW27-BJPpT0_8.js → chunk-K5T4RW27-DcgWlBQN.js} +1 -1
  20. package/public/assets/{chunk-OYMX7WX6-DDrTbLPP.js → chunk-OYMX7WX6-CCVxUN5K.js} +1 -1
  21. package/public/assets/{chunk-U2HBQHQK-CdUtCuol.js → chunk-U2HBQHQK-Bz2zS-oB.js} +1 -1
  22. package/public/assets/{chunk-X2U36JSP-CJWDEMsp.js → chunk-X2U36JSP-R29_i44a.js} +1 -1
  23. package/public/assets/{chunk-YZCP3GAM-C1MzZAkl.js → chunk-YZCP3GAM-DmMC90jF.js} +1 -1
  24. package/public/assets/{chunk-ZZ45TVLE-CCEhJUTd.js → chunk-ZZ45TVLE--iQbKNdL.js} +1 -1
  25. package/public/assets/classDiagram-6PBFFD2Q-BFerpStM.js +1 -0
  26. package/public/assets/classDiagram-v2-HSJHXN6E-BFerpStM.js +1 -0
  27. package/public/assets/clone-6hC8R7hq.js +1 -0
  28. package/public/assets/{dagre-KV5264BT-DUiFDgw2.js → dagre-KV5264BT-DB2-vx0a.js} +1 -1
  29. package/public/assets/{dagre-DGF0uJBS.js → dagre-v-loQdrj.js} +1 -1
  30. package/public/assets/{diagram-5BDNPKRD-zVwejgnb.js → diagram-5BDNPKRD-CtC2SnI_.js} +1 -1
  31. package/public/assets/{diagram-G4DWMVQ6-TIbsYTBJ.js → diagram-G4DWMVQ6-C1hwuOi-.js} +1 -1
  32. package/public/assets/{diagram-MMDJMWI5-CFsXMMwG.js → diagram-MMDJMWI5-3MgLEV9z.js} +1 -1
  33. package/public/assets/{diagram-TYMM5635-Dy645EM6.js → diagram-TYMM5635-BuCrXn_U.js} +1 -1
  34. package/public/assets/{dist-DAGGreTm.js → dist-MWzh3tWH.js} +1 -1
  35. package/public/assets/{erDiagram-SMLLAGMA-CGqOyENd.js → erDiagram-SMLLAGMA-CYQyjmQb.js} +1 -1
  36. package/public/assets/{flatten-D5sKD-5t.js → flatten-xEDtzclq.js} +1 -1
  37. package/public/assets/{flowDiagram-DWJPFMVM-L6BVbVJK.js → flowDiagram-DWJPFMVM-3X2cDfmk.js} +1 -1
  38. package/public/assets/{ganttDiagram-T4ZO3ILL-BUrmnGiC.js → ganttDiagram-T4ZO3ILL-IbI7mKoq.js} +1 -1
  39. package/public/assets/gitGraph-7Q5UKJZL-CTUp4HOA.js +1 -0
  40. package/public/assets/{gitGraphDiagram-UUTBAWPF-D6R_lj2o.js → gitGraphDiagram-UUTBAWPF-CoXTfAJP.js} +1 -1
  41. package/public/assets/{graphlib-DGfh1co3.js → graphlib-JzRJ1o1K.js} +1 -1
  42. package/public/assets/{highlighted-body-OFNGDK62-Ckfy53pN.js → highlighted-body-OFNGDK62-C2IsLRsw.js} +1 -1
  43. package/public/assets/index-Cns0vbRE.js +861 -0
  44. package/public/assets/info-OMHHGYJF-DjmEzY3l.js +1 -0
  45. package/public/assets/{infoDiagram-42DDH7IO-L3GN3t-A.js → infoDiagram-42DDH7IO-BdBxeF7r.js} +1 -1
  46. package/public/assets/{ishikawaDiagram-UXIWVN3A-CriSwJEC.js → ishikawaDiagram-UXIWVN3A-CR7033B8.js} +1 -1
  47. package/public/assets/{journeyDiagram-VCZTEJTY-CYX--9Wp.js → journeyDiagram-VCZTEJTY-C8aEShQh.js} +1 -1
  48. package/public/assets/{kanban-definition-6JOO6SKY-r_FtVoAw.js → kanban-definition-6JOO6SKY-BFOH-Rts.js} +1 -1
  49. package/public/assets/{line-CR3tMWzH.js → line-CVqLMcG8.js} +1 -1
  50. package/public/assets/mermaid-GHXKKRXX-BQshgTYg.js +1 -0
  51. package/public/assets/{mermaid-parser.core-Ds0FSkVW.js → mermaid-parser.core-DvuoaBUx.js} +2 -2
  52. package/public/assets/{mindmap-definition-QFDTVHPH-CXn15TFt.js → mindmap-definition-QFDTVHPH-DJ_zvfT3.js} +1 -1
  53. package/public/assets/packet-4T2RLAQJ-Dxoy5Yff.js +1 -0
  54. package/public/assets/pie-ZZUOXDRM-B736w5qr.js +1 -0
  55. package/public/assets/{pieDiagram-DEJITSTG-CkClooEG.js → pieDiagram-DEJITSTG-GPlo6pr4.js} +1 -1
  56. package/public/assets/{quadrantDiagram-34T5L4WZ-D6Mc-mAE.js → quadrantDiagram-34T5L4WZ-B8QLb1y0.js} +1 -1
  57. package/public/assets/radar-PYXPWWZC-CoG6en_X.js +1 -0
  58. package/public/assets/{reduce-CSUAx4db.js → reduce-D02udmm3.js} +1 -1
  59. package/public/assets/{requirementDiagram-MS252O5E-4jeIYjL_.js → requirementDiagram-MS252O5E-Cg_LlRc9.js} +1 -1
  60. package/public/assets/{sankeyDiagram-XADWPNL6-DefHsk1L.js → sankeyDiagram-XADWPNL6-CeWpMwXk.js} +1 -1
  61. package/public/assets/{sequenceDiagram-FGHM5R23-BSK4jxQB.js → sequenceDiagram-FGHM5R23-DqoX-g-a.js} +1 -1
  62. package/public/assets/{stateDiagram-FHFEXIEX-CF__r1FS.js → stateDiagram-FHFEXIEX-0ykhWBqF.js} +1 -1
  63. package/public/assets/stateDiagram-v2-QKLJ7IA2-Dc93-eeY.js +1 -0
  64. package/public/assets/{timeline-definition-GMOUNBTQ-PQmHOvTQ.js → timeline-definition-GMOUNBTQ-CmnLEeHt.js} +1 -1
  65. package/public/assets/treeView-SZITEDCU-BA_-6zmu.js +1 -0
  66. package/public/assets/treemap-W4RFUUIX-n6XXeD76.js +1 -0
  67. package/public/assets/{vennDiagram-DHZGUBPP-BKKZxb8t.js → vennDiagram-DHZGUBPP-C3U7v4Bs.js} +1 -1
  68. package/public/assets/wardley-RL74JXVD-BCcuTq98.js +1 -0
  69. package/public/assets/{wardleyDiagram-NUSXRM2D-BwMOKkpM.js → wardleyDiagram-NUSXRM2D-Dc26G64U.js} +1 -1
  70. package/public/assets/{xychartDiagram-5P7HB3ND-DVsnXqW_.js → xychartDiagram-5P7HB3ND-DyW3Gdw9.js} +1 -1
  71. package/public/index.html +9 -9
  72. package/public/assets/architecture-YZFGNWBL-BHB2sWUH.js +0 -1
  73. package/public/assets/channel-DHwtVBRO.js +0 -1
  74. package/public/assets/classDiagram-6PBFFD2Q-DrDFaWlC.js +0 -1
  75. package/public/assets/classDiagram-v2-HSJHXN6E-DrDFaWlC.js +0 -1
  76. package/public/assets/clone-euLbFmGl.js +0 -1
  77. package/public/assets/gitGraph-7Q5UKJZL-nQMAGxnD.js +0 -1
  78. package/public/assets/index-Bp2DjxBi.js +0 -861
  79. package/public/assets/info-OMHHGYJF-CxYJBTrR.js +0 -1
  80. package/public/assets/mermaid-GHXKKRXX-DZG06fPR.js +0 -1
  81. package/public/assets/packet-4T2RLAQJ-f-eHIL1I.js +0 -1
  82. package/public/assets/pie-ZZUOXDRM-Br4NtZeB.js +0 -1
  83. package/public/assets/radar-PYXPWWZC-DJpNuaAh.js +0 -1
  84. package/public/assets/stateDiagram-v2-QKLJ7IA2-CTaYljGy.js +0 -1
  85. package/public/assets/treeView-SZITEDCU-B3Z7Q2r-.js +0 -1
  86. package/public/assets/treemap-W4RFUUIX-CkYHLHQz.js +0 -1
  87. package/public/assets/wardley-RL74JXVD-DwJKtGnx.js +0 -1
@@ -1,4 +1,4 @@
1
- import{i as e,n as t,o as n,r,s as i,t as a}from"./rolldown-runtime-BG2f4sTM.js";import{f as o}from"./index-Bp2DjxBi.js";import{a as s,c,d as l,n as u,s as d,t as f}from"./reduce-CSUAx4db.js";import{a as p,n as m,t as h}from"./flatten-D5sKD-5t.js";function g(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function _(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function v(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function y(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function b(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}var x=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return g(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}};function S(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function ee(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function C(e){return S(e)&&typeof e.fullText==`string`}var w=class e{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return E})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=T(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?E:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return E})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(te(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return E})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t)if(te(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}while(e.iterator);return E})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n<t;n++)if(this.nextFn(e).done)return e;return e},this.nextFn)}limit(t){return new e(()=>({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?E:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return E})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}};function T(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function te(e){return!!e&&typeof e[Symbol.iterator]==`function`}var ne=new w(()=>void 0,()=>E),E=Object.freeze({done:!0,value:void 0});function D(...e){if(e.length===1){let t=e[0];if(t instanceof w)return t;if(te(t))return new w(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new w(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:E)}return e.length>1?new w(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){let n=e[t.collIndex++];te(n)?t.iterator=n[Symbol.iterator]():n&&typeof n.length==`number`&&(t.array=n)}}while(t.iterator||t.array||t.collIndex<e.length);return E}):ne}var O=class extends w{constructor(e,t,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return E})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}},re;(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}e.max=i})(re||={});function ie(e,t={}){for(let[n,r]of Object.entries(e))n.startsWith(`$`)||(Array.isArray(r)?r.forEach((r,i)=>{g(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&ie(r,t))}):g(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&ie(r,t)))}function ae(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function k(e){let t=oe(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function oe(e){for(;e.$container;)e=e.$container;return e}function A(e){return _(e)?e.ref?[e.ref]:[]:v(e)?e.items.map(e=>e.ref):[]}function j(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new w(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let r=t.keys[t.keyIndex];if(!r.startsWith(`$`)){let i=e[r];if(g(i)){if(t.keyIndex++,P(i,n))return{done:!1,value:i}}else if(Array.isArray(i)){for(;t.arrayIndex<i.length;){let e=i[t.arrayIndex++];if(g(e)&&P(e,n))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return E})}function M(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return new O(e,e=>j(e,t))}function N(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!P(e,t.range)?new O(e,()=>[]):new O(e,e=>j(e,t),{includeRoot:!0})}function P(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?Gt(n,t):!1}function se(e){return new w(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let n=t.keys[t.keyIndex];if(!n.startsWith(`$`)){let r=e[n];if(_(r)||v(r))return t.keyIndex++,{done:!1,value:{reference:r,container:e,property:n}};if(Array.isArray(r)){for(;t.arrayIndex<r.length;){let i=t.arrayIndex++,a=r[i];if(_(a)||v(r))return{done:!1,value:{reference:a,container:e,property:n,index:i}}}t.arrayIndex=0}}t.keyIndex++}return E})}function ce(e,t){let n=e.getTypeMetaData(t.$type),r=t;for(let e of Object.values(n.properties))e.defaultValue!==void 0&&r[e.name]===void 0&&(r[e.name]=le(e.defaultValue))}function le(e){return Array.isArray(e)?[...e.map(le)]:e}var F={$type:`AbstractElement`,cardinality:`cardinality`};function ue(e){return I.isInstance(e,F.$type)}var de={$type:`AbstractParserRule`};function fe(e){return I.isInstance(e,de.$type)}var pe={$type:`AbstractRule`},me={$type:`AbstractType`},he={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`};function ge(e){return I.isInstance(e,he.$type)}var _e={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`};function ve(e){return I.isInstance(e,_e.$type)}var ye={$type:`ArrayLiteral`,elements:`elements`},be={$type:`ArrayType`,elementType:`elementType`},xe={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`};function Se(e){return I.isInstance(e,xe.$type)}var Ce={$type:`BooleanLiteral`,true:`true`};function we(e){return I.isInstance(e,Ce.$type)}var Te={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`};function Ee(e){return I.isInstance(e,Te.$type)}var De={$type:`Condition`},Oe={$type:`Conjunction`,left:`left`,right:`right`};function ke(e){return I.isInstance(e,Oe.$type)}var Ae={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`};function je(e){return I.isInstance(e,Ae.$type)}var Me={$type:`Disjunction`,left:`left`,right:`right`};function Ne(e){return I.isInstance(e,Me.$type)}var Pe={$type:`EndOfFile`,cardinality:`cardinality`};function Fe(e){return I.isInstance(e,Pe.$type)}var Ie={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`},Le={$type:`GrammarImport`,path:`path`},Re={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`};function ze(e){return I.isInstance(e,Re.$type)}var Be={$type:`InferredType`,name:`name`};function Ve(e){return I.isInstance(e,Be.$type)}var He={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`};function Ue(e){return I.isInstance(e,He.$type)}var We={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`},Ge={$type:`InfixRuleOperators`,precedences:`precedences`},Ke={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`};function qe(e){return I.isInstance(e,Ke.$type)}var Je={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`};function Ye(e){return I.isInstance(e,Je.$type)}var Xe={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`},Ze={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Qe(e){return I.isInstance(e,Ze.$type)}var $e={$type:`Negation`,value:`value`};function et(e){return I.isInstance(e,$e.$type)}var tt={$type:`NumberLiteral`,value:`value`},nt={$type:`Parameter`,name:`name`},rt={$type:`ParameterReference`,parameter:`parameter`};function it(e){return I.isInstance(e,rt.$type)}var at={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`};function ot(e){return I.isInstance(e,at.$type)}var st={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`},ct={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`};function lt(e){return I.isInstance(e,ct.$type)}var ut={$type:`ReturnType`,name:`name`};function dt(e){return I.isInstance(e,ut.$type)}var ft={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`};function pt(e){return I.isInstance(e,ft.$type)}var mt={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`};function ht(e){return I.isInstance(e,mt.$type)}var gt={$type:`StringLiteral`,value:`value`},_t={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function vt(e){return I.isInstance(e,_t.$type)}var yt={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},bt={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function xt(e){return I.isInstance(e,bt.$type)}var St={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`};function Ct(e){return I.isInstance(e,St.$type)}var wt={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`};function Tt(e){return I.isInstance(e,wt.$type)}var Et={$type:`Type`,name:`name`,type:`type`};function Dt(e){return I.isInstance(e,Et.$type)}var Ot={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`},kt={$type:`TypeDefinition`},At={$type:`UnionType`,types:`types`},jt={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`};function Mt(e){return I.isInstance(e,jt.$type)}var Nt={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Pt(e){return I.isInstance(e,Nt.$type)}var Ft={$type:`ValueLiteral`},It={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`};function Lt(e){return I.isInstance(e,It.$type)}var Rt=class extends x{constructor(){super(...arguments),this.types={AbstractElement:{name:F.$type,properties:{cardinality:{name:F.cardinality}},superTypes:[]},AbstractParserRule:{name:de.$type,properties:{},superTypes:[pe.$type,me.$type]},AbstractRule:{name:pe.$type,properties:{},superTypes:[]},AbstractType:{name:me.$type,properties:{},superTypes:[]},Action:{name:he.$type,properties:{cardinality:{name:he.cardinality},feature:{name:he.feature},inferredType:{name:he.inferredType},operator:{name:he.operator},type:{name:he.type,referenceType:me.$type}},superTypes:[F.$type]},Alternatives:{name:_e.$type,properties:{cardinality:{name:_e.cardinality},elements:{name:_e.elements,defaultValue:[]}},superTypes:[F.$type]},ArrayLiteral:{name:ye.$type,properties:{elements:{name:ye.elements,defaultValue:[]}},superTypes:[Ft.$type]},ArrayType:{name:be.$type,properties:{elementType:{name:be.elementType}},superTypes:[kt.$type]},Assignment:{name:xe.$type,properties:{cardinality:{name:xe.cardinality},feature:{name:xe.feature},operator:{name:xe.operator},predicate:{name:xe.predicate},terminal:{name:xe.terminal}},superTypes:[F.$type]},BooleanLiteral:{name:Ce.$type,properties:{true:{name:Ce.true,defaultValue:!1}},superTypes:[De.$type,Ft.$type]},CharacterRange:{name:Te.$type,properties:{cardinality:{name:Te.cardinality},left:{name:Te.left},lookahead:{name:Te.lookahead},parenthesized:{name:Te.parenthesized,defaultValue:!1},right:{name:Te.right}},superTypes:[yt.$type]},Condition:{name:De.$type,properties:{},superTypes:[]},Conjunction:{name:Oe.$type,properties:{left:{name:Oe.left},right:{name:Oe.right}},superTypes:[De.$type]},CrossReference:{name:Ae.$type,properties:{cardinality:{name:Ae.cardinality},deprecatedSyntax:{name:Ae.deprecatedSyntax,defaultValue:!1},isMulti:{name:Ae.isMulti,defaultValue:!1},terminal:{name:Ae.terminal},type:{name:Ae.type,referenceType:me.$type}},superTypes:[F.$type]},Disjunction:{name:Me.$type,properties:{left:{name:Me.left},right:{name:Me.right}},superTypes:[De.$type]},EndOfFile:{name:Pe.$type,properties:{cardinality:{name:Pe.cardinality}},superTypes:[F.$type]},Grammar:{name:Ie.$type,properties:{imports:{name:Ie.imports,defaultValue:[]},interfaces:{name:Ie.interfaces,defaultValue:[]},isDeclared:{name:Ie.isDeclared,defaultValue:!1},name:{name:Ie.name},rules:{name:Ie.rules,defaultValue:[]},types:{name:Ie.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Le.$type,properties:{path:{name:Le.path}},superTypes:[]},Group:{name:Re.$type,properties:{cardinality:{name:Re.cardinality},elements:{name:Re.elements,defaultValue:[]},guardCondition:{name:Re.guardCondition},predicate:{name:Re.predicate}},superTypes:[F.$type]},InferredType:{name:Be.$type,properties:{name:{name:Be.name}},superTypes:[me.$type]},InfixRule:{name:He.$type,properties:{call:{name:He.call},dataType:{name:He.dataType},inferredType:{name:He.inferredType},name:{name:He.name},operators:{name:He.operators},parameters:{name:He.parameters,defaultValue:[]},returnType:{name:He.returnType,referenceType:me.$type}},superTypes:[de.$type]},InfixRuleOperatorList:{name:We.$type,properties:{associativity:{name:We.associativity},operators:{name:We.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Ge.$type,properties:{precedences:{name:Ge.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Ke.$type,properties:{attributes:{name:Ke.attributes,defaultValue:[]},name:{name:Ke.name},superTypes:{name:Ke.superTypes,defaultValue:[],referenceType:me.$type}},superTypes:[me.$type]},Keyword:{name:Je.$type,properties:{cardinality:{name:Je.cardinality},predicate:{name:Je.predicate},value:{name:Je.value}},superTypes:[F.$type]},NamedArgument:{name:Xe.$type,properties:{calledByName:{name:Xe.calledByName,defaultValue:!1},parameter:{name:Xe.parameter,referenceType:nt.$type},value:{name:Xe.value}},superTypes:[]},NegatedToken:{name:Ze.$type,properties:{cardinality:{name:Ze.cardinality},lookahead:{name:Ze.lookahead},parenthesized:{name:Ze.parenthesized,defaultValue:!1},terminal:{name:Ze.terminal}},superTypes:[yt.$type]},Negation:{name:$e.$type,properties:{value:{name:$e.value}},superTypes:[De.$type]},NumberLiteral:{name:tt.$type,properties:{value:{name:tt.value}},superTypes:[Ft.$type]},Parameter:{name:nt.$type,properties:{name:{name:nt.name}},superTypes:[]},ParameterReference:{name:rt.$type,properties:{parameter:{name:rt.parameter,referenceType:nt.$type}},superTypes:[De.$type]},ParserRule:{name:at.$type,properties:{dataType:{name:at.dataType},definition:{name:at.definition},entry:{name:at.entry,defaultValue:!1},fragment:{name:at.fragment,defaultValue:!1},inferredType:{name:at.inferredType},name:{name:at.name},parameters:{name:at.parameters,defaultValue:[]},returnType:{name:at.returnType,referenceType:me.$type}},superTypes:[de.$type]},ReferenceType:{name:st.$type,properties:{isMulti:{name:st.isMulti,defaultValue:!1},referenceType:{name:st.referenceType}},superTypes:[kt.$type]},RegexToken:{name:ct.$type,properties:{cardinality:{name:ct.cardinality},lookahead:{name:ct.lookahead},parenthesized:{name:ct.parenthesized,defaultValue:!1},regex:{name:ct.regex}},superTypes:[yt.$type]},ReturnType:{name:ut.$type,properties:{name:{name:ut.name}},superTypes:[]},RuleCall:{name:ft.$type,properties:{arguments:{name:ft.arguments,defaultValue:[]},cardinality:{name:ft.cardinality},predicate:{name:ft.predicate},rule:{name:ft.rule,referenceType:pe.$type}},superTypes:[F.$type]},SimpleType:{name:mt.$type,properties:{primitiveType:{name:mt.primitiveType},stringType:{name:mt.stringType},typeRef:{name:mt.typeRef,referenceType:me.$type}},superTypes:[kt.$type]},StringLiteral:{name:gt.$type,properties:{value:{name:gt.value}},superTypes:[Ft.$type]},TerminalAlternatives:{name:_t.$type,properties:{cardinality:{name:_t.cardinality},elements:{name:_t.elements,defaultValue:[]},lookahead:{name:_t.lookahead},parenthesized:{name:_t.parenthesized,defaultValue:!1}},superTypes:[yt.$type]},TerminalElement:{name:yt.$type,properties:{cardinality:{name:yt.cardinality},lookahead:{name:yt.lookahead},parenthesized:{name:yt.parenthesized,defaultValue:!1}},superTypes:[F.$type]},TerminalGroup:{name:bt.$type,properties:{cardinality:{name:bt.cardinality},elements:{name:bt.elements,defaultValue:[]},lookahead:{name:bt.lookahead},parenthesized:{name:bt.parenthesized,defaultValue:!1}},superTypes:[yt.$type]},TerminalRule:{name:St.$type,properties:{definition:{name:St.definition},fragment:{name:St.fragment,defaultValue:!1},hidden:{name:St.hidden,defaultValue:!1},name:{name:St.name},type:{name:St.type}},superTypes:[pe.$type]},TerminalRuleCall:{name:wt.$type,properties:{cardinality:{name:wt.cardinality},lookahead:{name:wt.lookahead},parenthesized:{name:wt.parenthesized,defaultValue:!1},rule:{name:wt.rule,referenceType:St.$type}},superTypes:[yt.$type]},Type:{name:Et.$type,properties:{name:{name:Et.name},type:{name:Et.type}},superTypes:[me.$type]},TypeAttribute:{name:Ot.$type,properties:{defaultValue:{name:Ot.defaultValue},isOptional:{name:Ot.isOptional,defaultValue:!1},name:{name:Ot.name},type:{name:Ot.type}},superTypes:[]},TypeDefinition:{name:kt.$type,properties:{},superTypes:[]},UnionType:{name:At.$type,properties:{types:{name:At.types,defaultValue:[]}},superTypes:[kt.$type]},UnorderedGroup:{name:jt.$type,properties:{cardinality:{name:jt.cardinality},elements:{name:jt.elements,defaultValue:[]}},superTypes:[F.$type]},UntilToken:{name:Nt.$type,properties:{cardinality:{name:Nt.cardinality},lookahead:{name:Nt.lookahead},parenthesized:{name:Nt.parenthesized,defaultValue:!1},terminal:{name:Nt.terminal}},superTypes:[yt.$type]},ValueLiteral:{name:Ft.$type,properties:{},superTypes:[]},Wildcard:{name:It.$type,properties:{cardinality:{name:It.cardinality},lookahead:{name:It.lookahead},parenthesized:{name:It.parenthesized,defaultValue:!1}},superTypes:[yt.$type]}}}},I=new Rt;function zt(e){return new O(e,e=>S(e)?e.content:[],{includeRoot:!0})}function Bt(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function Vt(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function Ht(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}var Ut;(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(Ut||={});function Wt(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return Ut.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return Ut.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return n&&r?Ut.Inside:n?Ut.OverlapBack:r?Ut.OverlapFront:Ut.Outside}function Gt(e,t){return Wt(e,t)>Ut.After}var Kt=/^[\w\p{L}]$/u;function qt(e,t){if(e){let n=Yt(e,!0);if(n&&Jt(n,t))return n;if(C(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(Jt(n,t))return n}}}}function Jt(e,t){return ee(e)&&t.includes(e.tokenType.name)}function Yt(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}var Xt=class extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function Zt(e,t=`Error: Got unexpected value.`){throw Error(t)}function L(e){return e.charCodeAt(0)}function Qt(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function $t(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function en(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function tn(){throw Error(`Internal Error - Should never get here!`)}function nn(e){return e.type===`Character`}var rn=[];for(let e=L(`0`);e<=L(`9`);e++)rn.push(e);var an=[L(`_`)].concat(rn);for(let e=L(`a`);e<=L(`z`);e++)an.push(e);for(let e=L(`A`);e<=L(`Z`);e++)an.push(e);var on=[L(` `),L(`\f`),L(`
1
+ import{i as e,n as t,o as n,r,s as i,t as a}from"./rolldown-runtime-BG2f4sTM.js";import{f as o}from"./index-Cns0vbRE.js";import{a as s,c,d as l,n as u,s as d,t as f}from"./reduce-D02udmm3.js";import{a as p,n as m,t as h}from"./flatten-xEDtzclq.js";function g(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function _(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function v(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function y(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function b(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}var x=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return g(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}};function S(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function ee(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function C(e){return S(e)&&typeof e.fullText==`string`}var w=class e{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return E})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=T(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?E:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return E})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(te(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return E})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t)if(te(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}while(e.iterator);return E})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n<t;n++)if(this.nextFn(e).done)return e;return e},this.nextFn)}limit(t){return new e(()=>({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?E:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return E})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}};function T(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function te(e){return!!e&&typeof e[Symbol.iterator]==`function`}var ne=new w(()=>void 0,()=>E),E=Object.freeze({done:!0,value:void 0});function D(...e){if(e.length===1){let t=e[0];if(t instanceof w)return t;if(te(t))return new w(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new w(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:E)}return e.length>1?new w(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){let n=e[t.collIndex++];te(n)?t.iterator=n[Symbol.iterator]():n&&typeof n.length==`number`&&(t.array=n)}}while(t.iterator||t.array||t.collIndex<e.length);return E}):ne}var O=class extends w{constructor(e,t,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return E})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}},re;(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}e.max=i})(re||={});function ie(e,t={}){for(let[n,r]of Object.entries(e))n.startsWith(`$`)||(Array.isArray(r)?r.forEach((r,i)=>{g(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&ie(r,t))}):g(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&ie(r,t)))}function ae(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function k(e){let t=oe(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function oe(e){for(;e.$container;)e=e.$container;return e}function A(e){return _(e)?e.ref?[e.ref]:[]:v(e)?e.items.map(e=>e.ref):[]}function j(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new w(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let r=t.keys[t.keyIndex];if(!r.startsWith(`$`)){let i=e[r];if(g(i)){if(t.keyIndex++,P(i,n))return{done:!1,value:i}}else if(Array.isArray(i)){for(;t.arrayIndex<i.length;){let e=i[t.arrayIndex++];if(g(e)&&P(e,n))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return E})}function M(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return new O(e,e=>j(e,t))}function N(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!P(e,t.range)?new O(e,()=>[]):new O(e,e=>j(e,t),{includeRoot:!0})}function P(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?Gt(n,t):!1}function se(e){return new w(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let n=t.keys[t.keyIndex];if(!n.startsWith(`$`)){let r=e[n];if(_(r)||v(r))return t.keyIndex++,{done:!1,value:{reference:r,container:e,property:n}};if(Array.isArray(r)){for(;t.arrayIndex<r.length;){let i=t.arrayIndex++,a=r[i];if(_(a)||v(r))return{done:!1,value:{reference:a,container:e,property:n,index:i}}}t.arrayIndex=0}}t.keyIndex++}return E})}function ce(e,t){let n=e.getTypeMetaData(t.$type),r=t;for(let e of Object.values(n.properties))e.defaultValue!==void 0&&r[e.name]===void 0&&(r[e.name]=le(e.defaultValue))}function le(e){return Array.isArray(e)?[...e.map(le)]:e}var F={$type:`AbstractElement`,cardinality:`cardinality`};function ue(e){return I.isInstance(e,F.$type)}var de={$type:`AbstractParserRule`};function fe(e){return I.isInstance(e,de.$type)}var pe={$type:`AbstractRule`},me={$type:`AbstractType`},he={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`};function ge(e){return I.isInstance(e,he.$type)}var _e={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`};function ve(e){return I.isInstance(e,_e.$type)}var ye={$type:`ArrayLiteral`,elements:`elements`},be={$type:`ArrayType`,elementType:`elementType`},xe={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`};function Se(e){return I.isInstance(e,xe.$type)}var Ce={$type:`BooleanLiteral`,true:`true`};function we(e){return I.isInstance(e,Ce.$type)}var Te={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`};function Ee(e){return I.isInstance(e,Te.$type)}var De={$type:`Condition`},Oe={$type:`Conjunction`,left:`left`,right:`right`};function ke(e){return I.isInstance(e,Oe.$type)}var Ae={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`};function je(e){return I.isInstance(e,Ae.$type)}var Me={$type:`Disjunction`,left:`left`,right:`right`};function Ne(e){return I.isInstance(e,Me.$type)}var Pe={$type:`EndOfFile`,cardinality:`cardinality`};function Fe(e){return I.isInstance(e,Pe.$type)}var Ie={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`},Le={$type:`GrammarImport`,path:`path`},Re={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`};function ze(e){return I.isInstance(e,Re.$type)}var Be={$type:`InferredType`,name:`name`};function Ve(e){return I.isInstance(e,Be.$type)}var He={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`};function Ue(e){return I.isInstance(e,He.$type)}var We={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`},Ge={$type:`InfixRuleOperators`,precedences:`precedences`},Ke={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`};function qe(e){return I.isInstance(e,Ke.$type)}var Je={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`};function Ye(e){return I.isInstance(e,Je.$type)}var Xe={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`},Ze={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Qe(e){return I.isInstance(e,Ze.$type)}var $e={$type:`Negation`,value:`value`};function et(e){return I.isInstance(e,$e.$type)}var tt={$type:`NumberLiteral`,value:`value`},nt={$type:`Parameter`,name:`name`},rt={$type:`ParameterReference`,parameter:`parameter`};function it(e){return I.isInstance(e,rt.$type)}var at={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`};function ot(e){return I.isInstance(e,at.$type)}var st={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`},ct={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`};function lt(e){return I.isInstance(e,ct.$type)}var ut={$type:`ReturnType`,name:`name`};function dt(e){return I.isInstance(e,ut.$type)}var ft={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`};function pt(e){return I.isInstance(e,ft.$type)}var mt={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`};function ht(e){return I.isInstance(e,mt.$type)}var gt={$type:`StringLiteral`,value:`value`},_t={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function vt(e){return I.isInstance(e,_t.$type)}var yt={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},bt={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function xt(e){return I.isInstance(e,bt.$type)}var St={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`};function Ct(e){return I.isInstance(e,St.$type)}var wt={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`};function Tt(e){return I.isInstance(e,wt.$type)}var Et={$type:`Type`,name:`name`,type:`type`};function Dt(e){return I.isInstance(e,Et.$type)}var Ot={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`},kt={$type:`TypeDefinition`},At={$type:`UnionType`,types:`types`},jt={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`};function Mt(e){return I.isInstance(e,jt.$type)}var Nt={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Pt(e){return I.isInstance(e,Nt.$type)}var Ft={$type:`ValueLiteral`},It={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`};function Lt(e){return I.isInstance(e,It.$type)}var Rt=class extends x{constructor(){super(...arguments),this.types={AbstractElement:{name:F.$type,properties:{cardinality:{name:F.cardinality}},superTypes:[]},AbstractParserRule:{name:de.$type,properties:{},superTypes:[pe.$type,me.$type]},AbstractRule:{name:pe.$type,properties:{},superTypes:[]},AbstractType:{name:me.$type,properties:{},superTypes:[]},Action:{name:he.$type,properties:{cardinality:{name:he.cardinality},feature:{name:he.feature},inferredType:{name:he.inferredType},operator:{name:he.operator},type:{name:he.type,referenceType:me.$type}},superTypes:[F.$type]},Alternatives:{name:_e.$type,properties:{cardinality:{name:_e.cardinality},elements:{name:_e.elements,defaultValue:[]}},superTypes:[F.$type]},ArrayLiteral:{name:ye.$type,properties:{elements:{name:ye.elements,defaultValue:[]}},superTypes:[Ft.$type]},ArrayType:{name:be.$type,properties:{elementType:{name:be.elementType}},superTypes:[kt.$type]},Assignment:{name:xe.$type,properties:{cardinality:{name:xe.cardinality},feature:{name:xe.feature},operator:{name:xe.operator},predicate:{name:xe.predicate},terminal:{name:xe.terminal}},superTypes:[F.$type]},BooleanLiteral:{name:Ce.$type,properties:{true:{name:Ce.true,defaultValue:!1}},superTypes:[De.$type,Ft.$type]},CharacterRange:{name:Te.$type,properties:{cardinality:{name:Te.cardinality},left:{name:Te.left},lookahead:{name:Te.lookahead},parenthesized:{name:Te.parenthesized,defaultValue:!1},right:{name:Te.right}},superTypes:[yt.$type]},Condition:{name:De.$type,properties:{},superTypes:[]},Conjunction:{name:Oe.$type,properties:{left:{name:Oe.left},right:{name:Oe.right}},superTypes:[De.$type]},CrossReference:{name:Ae.$type,properties:{cardinality:{name:Ae.cardinality},deprecatedSyntax:{name:Ae.deprecatedSyntax,defaultValue:!1},isMulti:{name:Ae.isMulti,defaultValue:!1},terminal:{name:Ae.terminal},type:{name:Ae.type,referenceType:me.$type}},superTypes:[F.$type]},Disjunction:{name:Me.$type,properties:{left:{name:Me.left},right:{name:Me.right}},superTypes:[De.$type]},EndOfFile:{name:Pe.$type,properties:{cardinality:{name:Pe.cardinality}},superTypes:[F.$type]},Grammar:{name:Ie.$type,properties:{imports:{name:Ie.imports,defaultValue:[]},interfaces:{name:Ie.interfaces,defaultValue:[]},isDeclared:{name:Ie.isDeclared,defaultValue:!1},name:{name:Ie.name},rules:{name:Ie.rules,defaultValue:[]},types:{name:Ie.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Le.$type,properties:{path:{name:Le.path}},superTypes:[]},Group:{name:Re.$type,properties:{cardinality:{name:Re.cardinality},elements:{name:Re.elements,defaultValue:[]},guardCondition:{name:Re.guardCondition},predicate:{name:Re.predicate}},superTypes:[F.$type]},InferredType:{name:Be.$type,properties:{name:{name:Be.name}},superTypes:[me.$type]},InfixRule:{name:He.$type,properties:{call:{name:He.call},dataType:{name:He.dataType},inferredType:{name:He.inferredType},name:{name:He.name},operators:{name:He.operators},parameters:{name:He.parameters,defaultValue:[]},returnType:{name:He.returnType,referenceType:me.$type}},superTypes:[de.$type]},InfixRuleOperatorList:{name:We.$type,properties:{associativity:{name:We.associativity},operators:{name:We.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Ge.$type,properties:{precedences:{name:Ge.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Ke.$type,properties:{attributes:{name:Ke.attributes,defaultValue:[]},name:{name:Ke.name},superTypes:{name:Ke.superTypes,defaultValue:[],referenceType:me.$type}},superTypes:[me.$type]},Keyword:{name:Je.$type,properties:{cardinality:{name:Je.cardinality},predicate:{name:Je.predicate},value:{name:Je.value}},superTypes:[F.$type]},NamedArgument:{name:Xe.$type,properties:{calledByName:{name:Xe.calledByName,defaultValue:!1},parameter:{name:Xe.parameter,referenceType:nt.$type},value:{name:Xe.value}},superTypes:[]},NegatedToken:{name:Ze.$type,properties:{cardinality:{name:Ze.cardinality},lookahead:{name:Ze.lookahead},parenthesized:{name:Ze.parenthesized,defaultValue:!1},terminal:{name:Ze.terminal}},superTypes:[yt.$type]},Negation:{name:$e.$type,properties:{value:{name:$e.value}},superTypes:[De.$type]},NumberLiteral:{name:tt.$type,properties:{value:{name:tt.value}},superTypes:[Ft.$type]},Parameter:{name:nt.$type,properties:{name:{name:nt.name}},superTypes:[]},ParameterReference:{name:rt.$type,properties:{parameter:{name:rt.parameter,referenceType:nt.$type}},superTypes:[De.$type]},ParserRule:{name:at.$type,properties:{dataType:{name:at.dataType},definition:{name:at.definition},entry:{name:at.entry,defaultValue:!1},fragment:{name:at.fragment,defaultValue:!1},inferredType:{name:at.inferredType},name:{name:at.name},parameters:{name:at.parameters,defaultValue:[]},returnType:{name:at.returnType,referenceType:me.$type}},superTypes:[de.$type]},ReferenceType:{name:st.$type,properties:{isMulti:{name:st.isMulti,defaultValue:!1},referenceType:{name:st.referenceType}},superTypes:[kt.$type]},RegexToken:{name:ct.$type,properties:{cardinality:{name:ct.cardinality},lookahead:{name:ct.lookahead},parenthesized:{name:ct.parenthesized,defaultValue:!1},regex:{name:ct.regex}},superTypes:[yt.$type]},ReturnType:{name:ut.$type,properties:{name:{name:ut.name}},superTypes:[]},RuleCall:{name:ft.$type,properties:{arguments:{name:ft.arguments,defaultValue:[]},cardinality:{name:ft.cardinality},predicate:{name:ft.predicate},rule:{name:ft.rule,referenceType:pe.$type}},superTypes:[F.$type]},SimpleType:{name:mt.$type,properties:{primitiveType:{name:mt.primitiveType},stringType:{name:mt.stringType},typeRef:{name:mt.typeRef,referenceType:me.$type}},superTypes:[kt.$type]},StringLiteral:{name:gt.$type,properties:{value:{name:gt.value}},superTypes:[Ft.$type]},TerminalAlternatives:{name:_t.$type,properties:{cardinality:{name:_t.cardinality},elements:{name:_t.elements,defaultValue:[]},lookahead:{name:_t.lookahead},parenthesized:{name:_t.parenthesized,defaultValue:!1}},superTypes:[yt.$type]},TerminalElement:{name:yt.$type,properties:{cardinality:{name:yt.cardinality},lookahead:{name:yt.lookahead},parenthesized:{name:yt.parenthesized,defaultValue:!1}},superTypes:[F.$type]},TerminalGroup:{name:bt.$type,properties:{cardinality:{name:bt.cardinality},elements:{name:bt.elements,defaultValue:[]},lookahead:{name:bt.lookahead},parenthesized:{name:bt.parenthesized,defaultValue:!1}},superTypes:[yt.$type]},TerminalRule:{name:St.$type,properties:{definition:{name:St.definition},fragment:{name:St.fragment,defaultValue:!1},hidden:{name:St.hidden,defaultValue:!1},name:{name:St.name},type:{name:St.type}},superTypes:[pe.$type]},TerminalRuleCall:{name:wt.$type,properties:{cardinality:{name:wt.cardinality},lookahead:{name:wt.lookahead},parenthesized:{name:wt.parenthesized,defaultValue:!1},rule:{name:wt.rule,referenceType:St.$type}},superTypes:[yt.$type]},Type:{name:Et.$type,properties:{name:{name:Et.name},type:{name:Et.type}},superTypes:[me.$type]},TypeAttribute:{name:Ot.$type,properties:{defaultValue:{name:Ot.defaultValue},isOptional:{name:Ot.isOptional,defaultValue:!1},name:{name:Ot.name},type:{name:Ot.type}},superTypes:[]},TypeDefinition:{name:kt.$type,properties:{},superTypes:[]},UnionType:{name:At.$type,properties:{types:{name:At.types,defaultValue:[]}},superTypes:[kt.$type]},UnorderedGroup:{name:jt.$type,properties:{cardinality:{name:jt.cardinality},elements:{name:jt.elements,defaultValue:[]}},superTypes:[F.$type]},UntilToken:{name:Nt.$type,properties:{cardinality:{name:Nt.cardinality},lookahead:{name:Nt.lookahead},parenthesized:{name:Nt.parenthesized,defaultValue:!1},terminal:{name:Nt.terminal}},superTypes:[yt.$type]},ValueLiteral:{name:Ft.$type,properties:{},superTypes:[]},Wildcard:{name:It.$type,properties:{cardinality:{name:It.cardinality},lookahead:{name:It.lookahead},parenthesized:{name:It.parenthesized,defaultValue:!1}},superTypes:[yt.$type]}}}},I=new Rt;function zt(e){return new O(e,e=>S(e)?e.content:[],{includeRoot:!0})}function Bt(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function Vt(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function Ht(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}var Ut;(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(Ut||={});function Wt(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return Ut.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return Ut.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return n&&r?Ut.Inside:n?Ut.OverlapBack:r?Ut.OverlapFront:Ut.Outside}function Gt(e,t){return Wt(e,t)>Ut.After}var Kt=/^[\w\p{L}]$/u;function qt(e,t){if(e){let n=Yt(e,!0);if(n&&Jt(n,t))return n;if(C(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(Jt(n,t))return n}}}}function Jt(e,t){return ee(e)&&t.includes(e.tokenType.name)}function Yt(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}var Xt=class extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function Zt(e,t=`Error: Got unexpected value.`){throw Error(t)}function L(e){return e.charCodeAt(0)}function Qt(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function $t(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function en(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function tn(){throw Error(`Internal Error - Should never get here!`)}function nn(e){return e.type===`Character`}var rn=[];for(let e=L(`0`);e<=L(`9`);e++)rn.push(e);var an=[L(`_`)].concat(rn);for(let e=L(`a`);e<=L(`z`);e++)an.push(e);for(let e=L(`A`);e<=L(`Z`);e++)an.push(e);var on=[L(` `),L(`\f`),L(`
2
2
  `),L(`\r`),L(` `),L(`\v`),L(` `),L(`\xA0`),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(`\u2028`),L(`\u2029`),L(` `),L(` `),L(` `),L(``)],sn=/[0-9a-fA-F]/,cn=/[0-9]/,ln=/[1-9]/,un=class{constructor(){this.idx=0,this.input=``,this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar(`/`);let t=this.disjunction();this.consumeChar(`/`);let n={type:`Flags`,loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case`g`:$t(n,`global`);break;case`i`:$t(n,`ignoreCase`);break;case`m`:$t(n,`multiLine`);break;case`u`:$t(n,`unicode`);break;case`y`:$t(n,`sticky`);break}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case`^`:return{type:`StartAnchor`,loc:this.loc(e)};case`$`:return{type:`EndAnchor`,loc:this.loc(e)};case`\\`:switch(this.popChar()){case`b`:return{type:`WordBoundary`,loc:this.loc(e)};case`B`:return{type:`NonWordBoundary`,loc:this.loc(e)}}throw Error(`Invalid Assertion Escape`);case`(`:this.consumeChar(`?`);let t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}break}en(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return tn()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`);break}if(e===!0&&t===void 0)return;en(t);break}if(!(e===!0&&t===void 0)&&en(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),en(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):tn()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[L(`
3
3
  `),L(`\r`),L(`\u2028`),L(`\u2029`)]}}atomEscape(){switch(this.consumeChar(`\\`),this.peekChar()){case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:return this.decimalEscapeAtom();case`d`:case`D`:case`s`:case`S`:case`w`:case`W`:return this.characterClassEscape();case`f`:case`n`:case`r`:case`t`:case`v`:return this.controlEscapeAtom();case`c`:return this.controlLetterEscapeAtom();case`0`:return this.nulCharacterAtom();case`x`:return this.hexEscapeSequenceAtom();case`u`:return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:`GroupBackReference`,value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case`d`:e=rn;break;case`D`:e=rn,t=!0;break;case`s`:e=on;break;case`S`:e=on,t=!0;break;case`w`:e=an;break;case`W`:e=an,t=!0;break}return en(e)?{type:`Set`,value:e,complement:t}:tn()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=L(`\f`);break;case`n`:e=L(`
4
4
  `);break;case`r`:e=L(`\r`);break;case`t`:e=L(` `);break;case`v`:e=L(`\v`);break}return en(e)?{type:`Character`,value:e}:tn()}controlLetterEscapeAtom(){this.consumeChar(`c`);let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error(`Invalid `);return{type:`Character`,value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar(`0`),{type:`Character`,value:L(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:L(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
@@ -1,4 +1,4 @@
1
- import{g as e,h as t}from"./src-DEzQF-Xc.js";import{B as n,C as r,V as i,W as a,_ as o,a as s,b as c,s as l,v as u}from"./chunk-ICPOFSXX-CbeWjtve.js";import{h as d,o as f}from"./chunk-5PVQY5BW-PKb2UfEn.js";import{_ as p}from"./index-Bp2DjxBi.js";import{t as m}from"./chunk-55IACEB6-BM2FPRve.js";import{t as h}from"./chunk-EDXVE4YY-W62DzS3u.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,a,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{g as e,h as t}from"./src-DEzQF-Xc.js";import{B as n,C as r,V as i,W as a,_ as o,a as s,b as c,s as l,v as u}from"./chunk-ICPOFSXX-Dwv7Fn2n.js";import{h as d,o as f}from"./chunk-5PVQY5BW-CJjwZOXY.js";import{_ as p}from"./index-Cns0vbRE.js";import{t as m}from"./chunk-55IACEB6-BM2FPRve.js";import{t as h}from"./chunk-EDXVE4YY-BmQF_Jii.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,a,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as e,h as t,p as n}from"./src-DEzQF-Xc.js";import{L as r,P as i,k as a,s as o,y as s}from"./chunk-ICPOFSXX-CbeWjtve.js";import{i as c}from"./chunk-5PVQY5BW-PKb2UfEn.js";var l=Object.freeze({left:0,top:0,width:16,height:16}),u=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),d=Object.freeze({...l,...u}),f=Object.freeze({...d,body:``,hidden:!1}),p=Object.freeze({width:null,height:null}),m=Object.freeze({...p,...u}),h=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!g(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!g(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!g(e,n)?null:e}return null},g=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function ee(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function te(e,t){let n=ee(e,t);for(let r in f)r in u?r in e&&!(r in n)&&(n[r]=u[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ne(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function re(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=te(r[e]||i[e],a)}return o(t),n.forEach(o),te(e,a)}function ie(e,t){if(e.icons[t])return re(e,t,[]);let n=ne(e,[t])[t];return n?re(e,t,n):null}var ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,oe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function se(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(ae);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=oe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function ce(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function le(e,t){return e?`<defs>`+e+`</defs>`+t:t}function ue(e,t,n){let r=ce(e);return le(r.defs,t+r.content+n)}var de=e=>e===`unset`||e===`undefined`||e===`none`;function fe(e,t){let n={...d,...e},r={...m,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=ue(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,f;o===null?(f=s===null?`1em`:s===`auto`?l:s,u=se(f,c/l)):(u=o===`auto`?c:o,f=s===null?se(u,l/c):s===`auto`?l:s);let p={},h=(e,t)=>{de(t)||(p[e]=t.toString())};h(`width`,u),h(`height`,f);let g=[i.left,i.top,c,l];return p.viewBox=g.join(` `),{attributes:p,viewBox:g,body:a}}var pe=/\sid="(\S+)"/g,me=new Map;function he(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=me.get(e)||0;return me.set(e,t+1),t?`${e}${t}`:e}function ge(e){let t=[],n;for(;n=pe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=he(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function _e(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function _(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var v=_();function ve(e){v=e}var y={exec:()=>null};function b(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(x.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ye=(()=>{try{return!0}catch{return!1}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},be=/^(?:[ \t]*(?:\n|$))+/,xe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Se=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,S=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ce=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,we=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Te=b(we).replace(/bull/g,C).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Ee=b(we).replace(/bull/g,C).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),w=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,De=/^[^\n]+/,T=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Oe=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,T).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ke=b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),E=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,D=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ae=b(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,D).replace(`tag`,E).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),je=b(w).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex(),O={blockquote:b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,je).getRegex(),code:xe,def:Oe,fences:Se,heading:Ce,hr:S,html:Ae,lheading:Te,list:ke,newline:be,paragraph:je,table:y,text:De},Me=b(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex(),Ne={...O,lheading:Ee,table:Me,paragraph:b(w).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Me).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex()},Pe={...O,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,D).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(w).replace(`hr`,S).replace(`heading`,` *#{1,6} *[^
1
+ import{g as e,h as t,p as n}from"./src-DEzQF-Xc.js";import{L as r,P as i,k as a,s as o,y as s}from"./chunk-ICPOFSXX-Dwv7Fn2n.js";import{i as c}from"./chunk-5PVQY5BW-CJjwZOXY.js";var l=Object.freeze({left:0,top:0,width:16,height:16}),u=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),d=Object.freeze({...l,...u}),f=Object.freeze({...d,body:``,hidden:!1}),p=Object.freeze({width:null,height:null}),m=Object.freeze({...p,...u}),h=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!g(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!g(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!g(e,n)?null:e}return null},g=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function ee(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function te(e,t){let n=ee(e,t);for(let r in f)r in u?r in e&&!(r in n)&&(n[r]=u[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ne(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function re(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=te(r[e]||i[e],a)}return o(t),n.forEach(o),te(e,a)}function ie(e,t){if(e.icons[t])return re(e,t,[]);let n=ne(e,[t])[t];return n?re(e,t,n):null}var ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,oe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function se(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(ae);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=oe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function ce(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function le(e,t){return e?`<defs>`+e+`</defs>`+t:t}function ue(e,t,n){let r=ce(e);return le(r.defs,t+r.content+n)}var de=e=>e===`unset`||e===`undefined`||e===`none`;function fe(e,t){let n={...d,...e},r={...m,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=ue(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,f;o===null?(f=s===null?`1em`:s===`auto`?l:s,u=se(f,c/l)):(u=o===`auto`?c:o,f=s===null?se(u,l/c):s===`auto`?l:s);let p={},h=(e,t)=>{de(t)||(p[e]=t.toString())};h(`width`,u),h(`height`,f);let g=[i.left,i.top,c,l];return p.viewBox=g.join(` `),{attributes:p,viewBox:g,body:a}}var pe=/\sid="(\S+)"/g,me=new Map;function he(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=me.get(e)||0;return me.set(e,t+1),t?`${e}${t}`:e}function ge(e){let t=[],n;for(;n=pe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=he(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function _e(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function _(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var v=_();function ve(e){v=e}var y={exec:()=>null};function b(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(x.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ye=(()=>{try{return!0}catch{return!1}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},be=/^(?:[ \t]*(?:\n|$))+/,xe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Se=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,S=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ce=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,we=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Te=b(we).replace(/bull/g,C).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Ee=b(we).replace(/bull/g,C).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),w=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,De=/^[^\n]+/,T=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Oe=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,T).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ke=b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),E=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,D=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ae=b(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,D).replace(`tag`,E).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),je=b(w).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex(),O={blockquote:b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,je).getRegex(),code:xe,def:Oe,fences:Se,heading:Ce,hr:S,html:Ae,lheading:Te,list:ke,newline:be,paragraph:je,table:y,text:De},Me=b(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex(),Ne={...O,lheading:Ee,table:Me,paragraph:b(w).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Me).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex()},Pe={...O,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,D).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(w).replace(`hr`,S).replace(`heading`,` *#{1,6} *[^
2
2
  ]`).replace(`lheading`,Te).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Fe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ie=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Le=/^( {2,}|\\)\n(?!\s*$)/,Re=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,k=/[\p{P}\p{S}]/u,A=/[\s\p{P}\p{S}]/u,ze=/[^\s\p{P}\p{S}]/u,Be=b(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,A).getRegex(),Ve=/(?!~)[\p{P}\p{S}]/u,He=/(?!~)[\s\p{P}\p{S}]/u,Ue=/(?:[^\s\p{P}\p{S}]|~)/u,We=b(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,ye?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Ge=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ke=b(Ge,`u`).replace(/punct/g,k).getRegex(),qe=b(Ge,`u`).replace(/punct/g,Ve).getRegex(),Je=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Ye=b(Je,`gu`).replace(/notPunctSpace/g,ze).replace(/punctSpace/g,A).replace(/punct/g,k).getRegex(),Xe=b(Je,`gu`).replace(/notPunctSpace/g,Ue).replace(/punctSpace/g,He).replace(/punct/g,Ve).getRegex(),Ze=b(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ze).replace(/punctSpace/g,A).replace(/punct/g,k).getRegex(),Qe=b(/\\(punct)/,`gu`).replace(/punct/g,k).getRegex(),$e=b(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),et=b(D).replace(`(?:-->|$)`,`-->`).getRegex(),tt=b(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,et).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),j=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,nt=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,j).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rt=b(/^!?\[(label)\]\[(ref)\]/).replace(`label`,j).replace(`ref`,T).getRegex(),it=b(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,T).getRegex(),at=b(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,rt).replace(`nolink`,it).getRegex(),ot=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,M={_backpedal:y,anyPunctuation:Qe,autolink:$e,blockSkip:We,br:Le,code:Ie,del:y,emStrongLDelim:Ke,emStrongRDelimAst:Ye,emStrongRDelimUnd:Ze,escape:Fe,link:nt,nolink:it,punctuation:Be,reflink:rt,reflinkSearch:at,tag:tt,text:Re,url:y},st={...M,link:b(/^!?\[(label)\]\((.*?)\)/).replace(`label`,j).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,j).getRegex()},N={...M,emStrongRDelimAst:Xe,emStrongLDelim:qe,url:b(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,ot).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:b(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,ot).getRegex()},ct={...N,br:b(Le).replace(`{2,}`,`*`).getRegex(),text:b(N.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},P={normal:O,gfm:Ne,pedantic:Pe},F={normal:M,gfm:N,breaks:ct,pedantic:st},lt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},ut=e=>lt[e];function I(e,t){if(t){if(x.escapeTest.test(e))return e.replace(x.escapeReplace,ut)}else if(x.escapeTestNoEncode.test(e))return e.replace(x.escapeReplaceNoEncode,ut);return e}function dt(e){try{e=encodeURI(e).replace(x.percentDecode,`%`)}catch{return null}return e}function ft(e,t){let n=e.replace(x.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(x.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(x.slashPipe,`|`);return n}function L(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function pt(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function mt(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function ht(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
3
3
  `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
4
4
  `)}var R=class{options;rules;lexer;constructor(e){this.options=e||v}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:L(e,`
@@ -1 +1 @@
1
- import{h as e}from"./src-DEzQF-Xc.js";import{b as t}from"./chunk-ICPOFSXX-CbeWjtve.js";var n=e(e=>{let{handDrawnSeed:n}=t();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:n}},`solidStateFill`),r=e(e=>{let t=i([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),i=e(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),a=e(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),o=e(e=>{let{stylesArray:t}=r(e),n=[],i=[],o=[],s=[];return t.forEach(e=>{let t=e[0];a(t)?n.push(e.join(`:`)+` !important`):(i.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&o.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:i.join(`;`),stylesArray:t,borderStyles:o,backgroundStyles:s}},`styles2String`),s=e((e,n)=>{let{themeVariables:i,handDrawnSeed:a}=t(),{nodeBorder:o,mainBkg:s}=i,{stylesMap:l}=r(e);return Object.assign({roughness:.7,fill:l.get(`fill`)||s,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:l.get(`stroke`)||o,seed:a,strokeWidth:l.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get(`stroke-dasharray`))},n)},`userNodeOverrides`),c=e(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);export{s as a,o as i,a as n,n as r,r as t};
1
+ import{h as e}from"./src-DEzQF-Xc.js";import{b as t}from"./chunk-ICPOFSXX-Dwv7Fn2n.js";var n=e(e=>{let{handDrawnSeed:n}=t();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:n}},`solidStateFill`),r=e(e=>{let t=i([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),i=e(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),a=e(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),o=e(e=>{let{stylesArray:t}=r(e),n=[],i=[],o=[],s=[];return t.forEach(e=>{let t=e[0];a(t)?n.push(e.join(`:`)+` !important`):(i.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&o.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:i.join(`;`),stylesArray:t,borderStyles:o,backgroundStyles:s}},`styles2String`),s=e((e,n)=>{let{themeVariables:i,handDrawnSeed:a}=t(),{nodeBorder:o,mainBkg:s}=i,{stylesMap:l}=r(e);return Object.assign({roughness:.7,fill:l.get(`fill`)||s,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:l.get(`stroke`)||o,seed:a,strokeWidth:l.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get(`stroke-dasharray`))},n)},`userNodeOverrides`),c=e(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);export{s as a,o as i,a as n,n as r,r as t};
@@ -1 +1 @@
1
- import{h as e,p as t}from"./src-DEzQF-Xc.js";import{A as n}from"./chunk-ICPOFSXX-CbeWjtve.js";import{t as r}from"./dist-shQtHlo7.js";var i=r(),a=e((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),o=e((e,t)=>{a(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),s=e((e,t)=>{let r=t.text.replace(n,` `),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.attr(`class`,`legend`),i.style(`text-anchor`,t.anchor),t.class&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.text(r),i},`drawText`),c=e((e,t,n,r)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,o)},`drawImage`),l=e((e,t,n,r)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),u=e(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),d=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),f=e(()=>{let e=t(`.mermaidTooltip`);return e.empty()&&(e=t(`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`)),e},`createTooltip`);export{a,d as c,c as i,o as n,s as o,l as r,u as s,f as t};
1
+ import{h as e,p as t}from"./src-DEzQF-Xc.js";import{A as n}from"./chunk-ICPOFSXX-Dwv7Fn2n.js";import{t as r}from"./dist-shQtHlo7.js";var i=r(),a=e((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),o=e((e,t)=>{a(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),s=e((e,t)=>{let r=t.text.replace(n,` `),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.attr(`class`,`legend`),i.style(`text-anchor`,t.anchor),t.class&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.text(r),i},`drawText`),c=e((e,t,n,r)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,o)},`drawImage`),l=e((e,t,n,r)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),u=e(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),d=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),f=e(()=>{let e=t(`.mermaidTooltip`);return e.empty()&&(e=t(`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`)),e},`createTooltip`);export{a,d as c,c as i,o as n,s as o,l as r,u as s,f as t};
@@ -1 +1 @@
1
- import{h as e}from"./src-DEzQF-Xc.js";import{b as t,d as n}from"./chunk-ICPOFSXX-CbeWjtve.js";import{f as r}from"./chunk-5PVQY5BW-PKb2UfEn.js";var i=e(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`);async function a(i,a){let o=i.getElementsByTagName(`img`);if(!o||o.length===0)return;let s=a.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...o].map(i=>new Promise(a=>{function o(){if(i.style.display=`flex`,i.style.flexDirection=`column`,s){let[e=n.fontSize]=r(t().fontSize?t().fontSize:window.getComputedStyle(document.body).fontSize),a=e*5+`px`;i.style.minWidth=a,i.style.maxWidth=a}else i.style.width=`100%`;a(i)}e(o,`setupImage`),setTimeout(()=>{i.complete&&o()}),i.addEventListener(`error`,o),i.addEventListener(`load`,o)})))}e(a,`configureLabelImages`);export{i as n,a as t};
1
+ import{h as e}from"./src-DEzQF-Xc.js";import{b as t,d as n}from"./chunk-ICPOFSXX-Dwv7Fn2n.js";import{f as r}from"./chunk-5PVQY5BW-CJjwZOXY.js";var i=e(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`);async function a(i,a){let o=i.getElementsByTagName(`img`);if(!o||o.length===0)return;let s=a.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...o].map(i=>new Promise(a=>{function o(){if(i.style.display=`flex`,i.style.flexDirection=`column`,s){let[e=n.fontSize]=r(t().fontSize?t().fontSize:window.getComputedStyle(document.body).fontSize),a=e*5+`px`;i.style.minWidth=a,i.style.maxWidth=a}else i.style.width=`100%`;a(i)}e(o,`setupImage`),setTimeout(()=>{i.complete&&o()}),i.addEventListener(`error`,o),i.addEventListener(`load`,o)})))}e(a,`configureLabelImages`);export{i as n,a as t};
@@ -0,0 +1 @@
1
+ import{h as e}from"./src-DEzQF-Xc.js";import"./chunk-ICPOFSXX-Dwv7Fn2n.js";import"./chunk-5PVQY5BW-CJjwZOXY.js";import"./chunk-BSJP7CBP-kQ7Calqs.js";import"./chunk-ZZ45TVLE--iQbKNdL.js";import"./chunk-X2U36JSP-R29_i44a.js";import"./chunk-U2HBQHQK-Bz2zS-oB.js";import"./chunk-5FUZZQ4R-Ba6XrhVK.js";import"./chunk-ENJZ2VHE-CEJhWlbH.js";import"./index-Cns0vbRE.js";import"./chunk-FMBD7UC4-Mds7U6Tl.js";import"./chunk-YZCP3GAM-DmMC90jF.js";import"./chunk-55IACEB6-BM2FPRve.js";import"./chunk-EDXVE4YY-BmQF_Jii.js";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-BWfHBTVf.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -0,0 +1 @@
1
+ import{h as e}from"./src-DEzQF-Xc.js";import"./chunk-ICPOFSXX-Dwv7Fn2n.js";import"./chunk-5PVQY5BW-CJjwZOXY.js";import"./chunk-BSJP7CBP-kQ7Calqs.js";import"./chunk-ZZ45TVLE--iQbKNdL.js";import"./chunk-X2U36JSP-R29_i44a.js";import"./chunk-U2HBQHQK-Bz2zS-oB.js";import"./chunk-5FUZZQ4R-Ba6XrhVK.js";import"./chunk-ENJZ2VHE-CEJhWlbH.js";import"./index-Cns0vbRE.js";import"./chunk-FMBD7UC4-Mds7U6Tl.js";import"./chunk-YZCP3GAM-DmMC90jF.js";import"./chunk-55IACEB6-BM2FPRve.js";import"./chunk-EDXVE4YY-BmQF_Jii.js";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-BWfHBTVf.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -0,0 +1 @@
1
+ import{i as e}from"./graphlib-JzRJ1o1K.js";var t=4;function n(n){return e(n,t)}export{n as t};
@@ -1,4 +1,4 @@
1
- import{g as e,h as t}from"./src-DEzQF-Xc.js";import{b as n}from"./chunk-ICPOFSXX-CbeWjtve.js";import"./chunk-5PVQY5BW-PKb2UfEn.js";import"./chunk-BSJP7CBP-kQ7Calqs.js";import{n as r}from"./chunk-ZZ45TVLE-CCEhJUTd.js";import"./chunk-X2U36JSP-CJWDEMsp.js";import"./chunk-U2HBQHQK-CdUtCuol.js";import{a as i,c as a,i as o,l as s,n as c,t as l,u}from"./chunk-5FUZZQ4R-DFs5M0VY.js";import{a as d,i as f,n as p,r as m,t as h}from"./chunk-ENJZ2VHE-B19bR_UY.js";import{a as g}from"./flatten-D5sKD-5t.js";import{n as _,t as v}from"./graphlib-DGfh1co3.js";import{t as y}from"./clone-euLbFmGl.js";import{t as b}from"./dagre-DGF0uJBS.js";function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:S(e),edges:C(e)};return _(e.graph())||(t.value=y(e.graph())),t}function S(e){return g(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return _(n)||(i.value=n),_(r)||(i.parent=r),i})}function C(e){return g(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return _(t.name)||(r.name=t.name),_(n)||(r.value=n),r})}var w=new Map,T=new Map,E=new Map,D=t(()=>{T.clear(),E.clear(),w.clear()},`clear`),O=t((t,n)=>{let r=T.get(n)||[];return e.trace(`In isDescendant`,n,` `,t,` = `,r.includes(t)),r.includes(t)},`isDescendant`),k=t((t,n)=>{let r=T.get(n)||[];return e.info(`Descendants of `,n,` is `,r),e.info(`Edge is `,t),t.v===n||t.w===n?!1:r?r.includes(t.v)||O(t.v,n)||O(t.w,n)||r.includes(t.w):(e.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),A=t((t,n,r,i)=>{e.warn(`Copying children of `,t,`root`,i,`data`,n.node(t),i);let a=n.children(t)||[];t!==i&&a.push(t),e.warn(`Copying (nodes) clusterId`,t,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)A(a,n,r,i);else{let o=n.node(a);e.info(`cp `,a,` to `,i,` with parent `,t),r.setNode(a,o),i!==n.parent(a)&&(e.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),t!==i&&a!==t?(e.debug(`Setting parent`,a,t),r.setParent(a,t)):(e.info(`In copy `,t,`root`,i,`data`,n.node(t),i),e.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,t!==i,`node!==clusterId`,a!==t));let s=n.edges(a);e.debug(`Copying Edges`,s),s.forEach(a=>{e.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);e.info(`Edge data`,o,i);try{k(a,i)?(e.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),e.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):e.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,t)}catch(t){e.error(t)}})}e.debug(`Removing node`,a),n.removeNode(a)})},`copy`),j=t((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)E.set(i,e),r=[...r,...j(i,t)];return r},`extractDescendants`),M=t((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),N=t((t,n,r)=>{let i=n.children(t);if(e.trace(`Searching children of id `,t,i),i.length<1)return t;let a;for(let e of i){let t=N(e,n,r),i=M(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),P=t(e=>!w.has(e)||!w.get(e).externalConnections?e:w.has(e)?w.get(e).id:e,`getAnchorId`),F=t((t,n)=>{if(!t||n>10){e.debug(`Opting out, no graph `);return}else e.debug(`Opting in, graph `);t.nodes().forEach(function(n){t.children(n).length>0&&(e.warn(`Cluster identified`,n,` Replacement id in edges: `,N(n,t,n)),T.set(n,j(n,t)),w.set(n,{id:N(n,t,n),clusterData:t.node(n)}))}),t.nodes().forEach(function(n){let r=t.children(n),i=t.edges();r.length>0?(e.debug(`Cluster identified`,n,T),i.forEach(t=>{O(t.v,n)^O(t.w,n)&&(e.warn(`Edge: `,t,` leaves cluster `,n),e.warn(`Descendants of XXX `,n,`: `,T.get(n)),w.get(n).externalConnections=!0)})):e.debug(`Not a cluster `,n,T)});for(let e of w.keys()){let n=w.get(e).id,r=t.parent(n);r!==e&&w.has(r)&&!w.get(r).externalConnections&&(w.get(e).id=r)}t.edges().forEach(function(n){let r=t.edge(n);e.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),e.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(t.edge(n)));let i=n.v,a=n.w;if(e.warn(`Fix XXX`,w,`ids:`,n.v,n.w,`Translating: `,w.get(n.v),` --- `,w.get(n.w)),w.get(n.v)||w.get(n.w)){if(e.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=P(n.v),a=P(n.w),t.removeEdge(n.v,n.w,n.name),i!==n.v){let e=t.parent(i);w.get(e).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let e=t.parent(a);w.get(e).externalConnections=!0,r.toCluster=n.w}e.warn(`Fix Replacing with XXX`,i,a,n.name),t.setEdge(i,a,r,n.name)}}),e.warn(`Adjusted Graph`,x(t)),I(t,0),e.trace(w)},`adjustClustersAndEdges`),I=t((t,n)=>{if(e.warn(`extractor - `,n,x(t),t.children(`D`)),n>10){e.error(`Bailing out`);return}let r=t.nodes(),i=!1;for(let e of r){let n=t.children(e);i||=n.length>0}if(!i){e.debug(`Done, no node has children`,t.nodes());return}e.debug(`Nodes = `,r,n);for(let i of r)if(e.debug(`Extracting node`,i,w,w.has(i)&&!w.get(i).externalConnections,!t.parent(i),t.node(i),t.children(`D`),` Depth `,n),!w.has(i))e.debug(`Not a cluster`,i,n);else if(!w.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){e.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=t.graph().rankdir===`TB`?`LR`:`TB`;w.get(i)?.clusterData?.dir&&(r=w.get(i).clusterData.dir,e.warn(`Fixing dir`,w.get(i).clusterData.dir,r));let a=new v({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});e.warn(`Old graph before copy`,x(t)),A(i,t,a,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:w.get(i).clusterData,label:w.get(i).label,graph:a}),e.warn(`New graph after copy node: (`,i,`)`,x(a)),e.debug(`Old graph after copy`,x(t))}else e.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!w.get(i).externalConnections,` no parent: `,!t.parent(i),` children `,t.children(i)&&t.children(i).length>0,t.children(`D`),n),e.debug(w);r=t.nodes(),e.warn(`New list of nodes`,r);for(let i of r){let r=t.node(i);e.warn(` Now next level`,i,r),r?.clusterNode&&I(r.graph,n+1)}},`extractor`),L=t((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=L(e,e.children(t));n=[...n,...r]}),n},`sorter`),R=t(e=>L(e,e.children()),`sortNodesByHierarchy`),z=t(async(n,c,l,f,h,g)=>{e.warn(`Graph in recursive render:XAX`,x(c),h);let _=c.graph().rankdir;e.trace(`Dir in recursive render - dir:`,_);let v=n.insert(`g`).attr(`class`,`root`);c.nodes()?e.info(`Recursive render XXX`,c.nodes()):e.info(`No nodes found for`,c),c.edges().length>0&&e.info(`Recursive edges`,c.edge(c.edges()[0]));let y=v.insert(`g`).attr(`class`,`clusters`),S=v.insert(`g`).attr(`class`,`edgePaths`),C=v.insert(`g`).attr(`class`,`edgeLabels`),T=v.insert(`g`).attr(`class`,`nodes`);await Promise.all(c.nodes().map(async function(t){let n=c.node(t);if(h!==void 0){let n=JSON.parse(JSON.stringify(h.clusterData));e.trace(`Setting data for parent cluster XXX
1
+ import{g as e,h as t}from"./src-DEzQF-Xc.js";import{b as n}from"./chunk-ICPOFSXX-Dwv7Fn2n.js";import"./chunk-5PVQY5BW-CJjwZOXY.js";import"./chunk-BSJP7CBP-kQ7Calqs.js";import{n as r}from"./chunk-ZZ45TVLE--iQbKNdL.js";import"./chunk-X2U36JSP-R29_i44a.js";import"./chunk-U2HBQHQK-Bz2zS-oB.js";import{a as i,c as a,i as o,l as s,n as c,t as l,u}from"./chunk-5FUZZQ4R-Ba6XrhVK.js";import{a as d,i as f,n as p,r as m,t as h}from"./chunk-ENJZ2VHE-CEJhWlbH.js";import{a as g}from"./flatten-xEDtzclq.js";import{n as _,t as v}from"./graphlib-JzRJ1o1K.js";import{t as y}from"./clone-6hC8R7hq.js";import{t as b}from"./dagre-v-loQdrj.js";function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:S(e),edges:C(e)};return _(e.graph())||(t.value=y(e.graph())),t}function S(e){return g(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return _(n)||(i.value=n),_(r)||(i.parent=r),i})}function C(e){return g(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return _(t.name)||(r.name=t.name),_(n)||(r.value=n),r})}var w=new Map,T=new Map,E=new Map,D=t(()=>{T.clear(),E.clear(),w.clear()},`clear`),O=t((t,n)=>{let r=T.get(n)||[];return e.trace(`In isDescendant`,n,` `,t,` = `,r.includes(t)),r.includes(t)},`isDescendant`),k=t((t,n)=>{let r=T.get(n)||[];return e.info(`Descendants of `,n,` is `,r),e.info(`Edge is `,t),t.v===n||t.w===n?!1:r?r.includes(t.v)||O(t.v,n)||O(t.w,n)||r.includes(t.w):(e.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),A=t((t,n,r,i)=>{e.warn(`Copying children of `,t,`root`,i,`data`,n.node(t),i);let a=n.children(t)||[];t!==i&&a.push(t),e.warn(`Copying (nodes) clusterId`,t,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)A(a,n,r,i);else{let o=n.node(a);e.info(`cp `,a,` to `,i,` with parent `,t),r.setNode(a,o),i!==n.parent(a)&&(e.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),t!==i&&a!==t?(e.debug(`Setting parent`,a,t),r.setParent(a,t)):(e.info(`In copy `,t,`root`,i,`data`,n.node(t),i),e.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,t!==i,`node!==clusterId`,a!==t));let s=n.edges(a);e.debug(`Copying Edges`,s),s.forEach(a=>{e.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);e.info(`Edge data`,o,i);try{k(a,i)?(e.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),e.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):e.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,t)}catch(t){e.error(t)}})}e.debug(`Removing node`,a),n.removeNode(a)})},`copy`),j=t((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)E.set(i,e),r=[...r,...j(i,t)];return r},`extractDescendants`),M=t((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),N=t((t,n,r)=>{let i=n.children(t);if(e.trace(`Searching children of id `,t,i),i.length<1)return t;let a;for(let e of i){let t=N(e,n,r),i=M(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),P=t(e=>!w.has(e)||!w.get(e).externalConnections?e:w.has(e)?w.get(e).id:e,`getAnchorId`),F=t((t,n)=>{if(!t||n>10){e.debug(`Opting out, no graph `);return}else e.debug(`Opting in, graph `);t.nodes().forEach(function(n){t.children(n).length>0&&(e.warn(`Cluster identified`,n,` Replacement id in edges: `,N(n,t,n)),T.set(n,j(n,t)),w.set(n,{id:N(n,t,n),clusterData:t.node(n)}))}),t.nodes().forEach(function(n){let r=t.children(n),i=t.edges();r.length>0?(e.debug(`Cluster identified`,n,T),i.forEach(t=>{O(t.v,n)^O(t.w,n)&&(e.warn(`Edge: `,t,` leaves cluster `,n),e.warn(`Descendants of XXX `,n,`: `,T.get(n)),w.get(n).externalConnections=!0)})):e.debug(`Not a cluster `,n,T)});for(let e of w.keys()){let n=w.get(e).id,r=t.parent(n);r!==e&&w.has(r)&&!w.get(r).externalConnections&&(w.get(e).id=r)}t.edges().forEach(function(n){let r=t.edge(n);e.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),e.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(t.edge(n)));let i=n.v,a=n.w;if(e.warn(`Fix XXX`,w,`ids:`,n.v,n.w,`Translating: `,w.get(n.v),` --- `,w.get(n.w)),w.get(n.v)||w.get(n.w)){if(e.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=P(n.v),a=P(n.w),t.removeEdge(n.v,n.w,n.name),i!==n.v){let e=t.parent(i);w.get(e).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let e=t.parent(a);w.get(e).externalConnections=!0,r.toCluster=n.w}e.warn(`Fix Replacing with XXX`,i,a,n.name),t.setEdge(i,a,r,n.name)}}),e.warn(`Adjusted Graph`,x(t)),I(t,0),e.trace(w)},`adjustClustersAndEdges`),I=t((t,n)=>{if(e.warn(`extractor - `,n,x(t),t.children(`D`)),n>10){e.error(`Bailing out`);return}let r=t.nodes(),i=!1;for(let e of r){let n=t.children(e);i||=n.length>0}if(!i){e.debug(`Done, no node has children`,t.nodes());return}e.debug(`Nodes = `,r,n);for(let i of r)if(e.debug(`Extracting node`,i,w,w.has(i)&&!w.get(i).externalConnections,!t.parent(i),t.node(i),t.children(`D`),` Depth `,n),!w.has(i))e.debug(`Not a cluster`,i,n);else if(!w.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){e.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=t.graph().rankdir===`TB`?`LR`:`TB`;w.get(i)?.clusterData?.dir&&(r=w.get(i).clusterData.dir,e.warn(`Fixing dir`,w.get(i).clusterData.dir,r));let a=new v({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});e.warn(`Old graph before copy`,x(t)),A(i,t,a,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:w.get(i).clusterData,label:w.get(i).label,graph:a}),e.warn(`New graph after copy node: (`,i,`)`,x(a)),e.debug(`Old graph after copy`,x(t))}else e.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!w.get(i).externalConnections,` no parent: `,!t.parent(i),` children `,t.children(i)&&t.children(i).length>0,t.children(`D`),n),e.debug(w);r=t.nodes(),e.warn(`New list of nodes`,r);for(let i of r){let r=t.node(i);e.warn(` Now next level`,i,r),r?.clusterNode&&I(r.graph,n+1)}},`extractor`),L=t((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=L(e,e.children(t));n=[...n,...r]}),n},`sorter`),R=t(e=>L(e,e.children()),`sortNodesByHierarchy`),z=t(async(n,c,l,f,h,g)=>{e.warn(`Graph in recursive render:XAX`,x(c),h);let _=c.graph().rankdir;e.trace(`Dir in recursive render - dir:`,_);let v=n.insert(`g`).attr(`class`,`root`);c.nodes()?e.info(`Recursive render XXX`,c.nodes()):e.info(`No nodes found for`,c),c.edges().length>0&&e.info(`Recursive edges`,c.edge(c.edges()[0]));let y=v.insert(`g`).attr(`class`,`clusters`),S=v.insert(`g`).attr(`class`,`edgePaths`),C=v.insert(`g`).attr(`class`,`edgeLabels`),T=v.insert(`g`).attr(`class`,`nodes`);await Promise.all(c.nodes().map(async function(t){let n=c.node(t);if(h!==void 0){let n=JSON.parse(JSON.stringify(h.clusterData));e.trace(`Setting data for parent cluster XXX
2
2
  Node.id = `,t,`
3
3
  data=`,n.height,`
4
4
  Parent cluster`,h.height),c.setNode(h.id,n),c.parent(t)||(e.trace(`Setting parent`,t,h.id),c.setParent(t,h.id,n))}if(e.info(`(Insert) Node XXX`+t+`: `+JSON.stringify(c.node(t))),n?.clusterNode){e.info(`Cluster identified XBX`,t,n.width,c.node(t));let{ranksep:r,nodesep:i}=c.graph();n.graph.setGraph({...n.graph.graph(),ranksep:r+25,nodesep:i});let a=await z(T,n.graph,l,f,c.node(t),g),o=a.elem;u(n,o),n.diff=a.diff||0,e.info(`New compound node after recursive render XAX`,t,`width`,n.width,`height`,n.height),s(o,n)}else c.children(t).length>0?(e.trace(`Cluster - the non recursive path XBX`,t,n.id,n,n.width,`Graph:`,c),e.trace(N(n.id,c)),w.set(n.id,{id:N(n.id,c),node:n})):(e.trace(`Node - the non recursive path XAX`,t,T,c.node(t),_),await i(T,c.node(t),{config:g,dir:_}))})),await t(async()=>{let t=c.edges().map(async function(t){let n=c.edge(t.v,t.w,t.name);e.info(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(t)),e.info(`Edge `+t.v+` -> `+t.w+`: `,t,` `,JSON.stringify(c.edge(t))),e.info(`Fix`,w,`ids:`,t.v,t.w,`Translating: `,w.get(t.v),w.get(t.w)),await m(C,n)});await Promise.all(t)},`processEdges`)(),e.info(`Graph before layout:`,JSON.stringify(x(c))),e.info(`############################################# XXX`),e.info(`### Layout ### XXX`),e.info(`############################################# XXX`),b(c),e.info(`Graph after layout:`,JSON.stringify(x(c)));let E=0,{subGraphTitleTotalMargin:D}=r(g);return await Promise.all(R(c).map(async function(t){let n=c.node(t);if(e.info(`Position XBX => `+t+`: (`+n.x,`,`+n.y,`) width: `,n.width,` height: `,n.height),n?.clusterNode)n.y+=D,e.info(`A tainted cluster node XBX1`,t,n.id,n.width,n.height,n.x,n.y,c.parent(t)),w.get(n.id).node=n,a(n);else if(c.children(t).length>0){e.info(`A pure cluster node XBX1`,t,n.id,n.x,n.y,n.width,n.height,c.parent(t)),n.height+=D,c.node(n.parentId);let r=n?.padding/2||0,i=n?.labelBBox?.height||0,a=i-r||0;e.debug(`OffsetY`,a,`labelHeight`,i,`halfPadding`,r),await o(y,n),w.get(n.id).node=n}else{let t=c.node(n.parentId);n.y+=D/2,e.info(`A regular node XBX1 - using the padding`,n.id,`parent`,n.parentId,n.width,n.height,n.x,n.y,`offsetY`,n.offsetY,`parent`,t,t?.offsetY,n),a(n)}})),c.edges().forEach(function(t){let n=c.edge(t);e.info(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(n),n),n.points.forEach(e=>e.y+=D/2);let r=c.node(t.v);var i=c.node(t.w);d(n,p(S,n,w,l,r,i,f))}),c.nodes().forEach(function(t){let n=c.node(t);e.info(t,n.type,n.diff),n.isGroup&&(E=n.diff)}),e.warn(`Returning from recursive render XAX`,v,E),{elem:v,diff:E}},`recursiveRender`),B=t(async(t,r)=>{let i=new v({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.config?.flowchart?.nodeSpacing||t.nodeSpacing,ranksep:t.config?.rankSpacing||t.config?.flowchart?.rankSpacing||t.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=r.select(`g`);f(a,t.markers,t.type,t.diagramId),c(),h(),l(),D(),t.nodes.forEach(e=>{i.setNode(e.id,{...e}),e.parentId&&i.setParent(e.id,e.parentId)}),e.debug(`Edges:`,t.edges),t.edges.forEach(e=>{if(e.start===e.end){let t=e.start,n=t+`---`+t+`---1`,r=t+`---`+t+`---2`,a=i.node(t);i.setNode(n,{domId:n,id:n,parentId:a.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),i.setParent(n,a.parentId),i.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),i.setParent(r,a.parentId);let o=structuredClone(e),s=structuredClone(e),c=structuredClone(e);o.label=``,o.arrowTypeEnd=`none`,o.id=t+`-cyclic-special-1`,s.arrowTypeStart=`none`,s.arrowTypeEnd=`none`,s.id=t+`-cyclic-special-mid`,c.label=``,a.isGroup&&(o.fromCluster=t,c.toCluster=t),c.id=t+`-cyclic-special-2`,c.arrowTypeStart=`none`,i.setEdge(t,n,o,t+`-cyclic-special-0`),i.setEdge(n,r,s,t+`-cyclic-special-1`),i.setEdge(r,t,c,t+`-cyc<lic-special-2`)}else i.setEdge(e.start,e.end,{...e},e.id)}),e.warn(`Graph at first:`,JSON.stringify(x(i))),F(i),e.warn(`Graph after XAX:`,JSON.stringify(x(i)));let o=n();await z(a,i,t.type,t.diagramId,void 0,o)},`render`);export{B as render};
@@ -1 +1 @@
1
- import{C as e,N as t,S as n,T as r,_ as i,b as a,v as o,x as s,y as c}from"./chunk-5PVQY5BW-PKb2UfEn.js";import{E as l,O as u,T as d,c as f,f as p,g as m,o as ee,r as te,t as ne,u as h,x as re}from"./identity-Co3Kha3t.js";import{h as ie,p as ae}from"./index-Bp2DjxBi.js";import{E as g,_ as oe,c as _,d as v,f as se,g as ce,h as le,m as ue,n as y,o as de,p as fe,r as pe,s as me,t as b,u as he,v as ge,x as _e,y as x}from"./reduce-CSUAx4db.js";import{a as S,i as ve,n as C,o as ye,r as be,t as w}from"./flatten-D5sKD-5t.js";import{i as xe,n as T,r as E,t as D}from"./graphlib-DGfh1co3.js";var Se=/\s/;function Ce(e){for(var t=e.length;t--&&Se.test(e.charAt(t)););return t}var we=/^\s+/;function Te(e){return e&&e.slice(0,Ce(e)+1).replace(we,``)}var Ee=NaN,De=/^[-+]0x[0-9a-f]+$/i,Oe=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,Ae=parseInt;function je(e){if(typeof e==`number`)return e;if(x(e))return Ee;if(d(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=d(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Te(e);var n=Oe.test(e);return n||ke.test(e)?Ae(e.slice(2),n?2:8):De.test(e)?Ee:+e}var Me=1/0,Ne=17976931348623157e292;function O(e){return e?(e=je(e),e===Me||e===-Me?(e<0?-1:1)*Ne:e===e?e:0):e===0?e:0}function Pe(e){var t=O(e),n=t%1;return t===t?n?t-n:t:0}function Fe(e){return a(n(e,void 0,w),e+``)}var Ie=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Le(e){return Ie.test(e)}var Re=1,ze=4;function Be(e){return xe(e,Re|ze)}var Ve=function(){return u.Date.now()},He=Object.prototype,Ue=He.hasOwnProperty,We=c(function(t,n){t=Object(t);var r=-1,i=n.length,a=i>2?n[2]:void 0;for(a&&o(n[0],n[1],a)&&(i=1);++r<i;)for(var s=n[r],c=e(s),l=-1,u=c.length;++l<u;){var d=c[l],f=t[d];(f===void 0||re(f,He[d])&&!Ue.call(t,d))&&(t[d]=s[d])}return t});function k(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ge(e){return function(t,n,r){var i=Object(t);if(!f(t)){var a=v(n,3);t=_e(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var Ke=Math.max;function qe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Pe(n);return i<0&&(i=Ke(r+i,0)),de(e,v(t,3),i)}var A=Ge(qe);function Je(t,n){return t==null?t:m(t,pe(n),e)}function Ye(e,t){return e&&he(e,pe(t))}function Xe(e,t){return e>t}var Ze=Object.prototype.hasOwnProperty;function Qe(e,t){return e!=null&&Ze.call(e,t)}function $e(e,t){return e!=null&&ue(e,t,Qe)}var et=`[object String]`;function tt(e){return typeof e==`string`||!h(e)&&p(e)&&l(e)==et}function j(e,n){var r={};return n=v(n,3),he(e,function(e,i,a){t(r,i,n(e,i,a))}),r}function M(e){return e&&e.length?ve(e,ne,Xe):void 0}function N(e,t){return e&&e.length?ve(e,v(t,2),be):void 0}function nt(e,t,n,i){if(!d(e))return e;t=oe(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=ce(t[a]),u=n;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var f=c[l];u=i?i(f,l,c):void 0,u===void 0&&(u=d(f)?f:te(t[a+1])?[]:{})}r(c,l,u),c=c[l]}return e}function rt(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=le(e,o);n(s,o)&&nt(a,oe(o,e),s)}return a}function it(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function at(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=x(e),o=t!==void 0,s=t===null,c=t===t,l=x(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}function ot(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=at(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function st(e,t,n){t=t.length?g(t,function(e){return h(e)?function(t){return le(t,e.length===1?e[0]:e)}:e}):[ne];var r=-1;return t=g(t,ee(v)),it(ye(e,function(e,n,i){return{criteria:g(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return ot(e,t,n)})}var ct=se(`length`),lt=`\\ud800-\\udfff`,ut=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,dt=`\\ufe0e\\ufe0f`,ft=`[`+lt+`]`,P=`[`+ut+`]`,F=`\\ud83c[\\udffb-\\udfff]`,pt=`(?:`+P+`|`+F+`)`,mt=`[^`+lt+`]`,ht=`(?:\\ud83c[\\udde6-\\uddff]){2}`,gt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,_t=`\\u200d`,vt=pt+`?`,yt=`[`+dt+`]?`,bt=`(?:`+_t+`(?:`+[mt,ht,gt].join(`|`)+`)`+yt+vt+`)*`,xt=yt+vt+bt,St=`(?:`+[mt+P+`?`,P,ht,gt,ft].join(`|`)+`)`,Ct=RegExp(F+`(?=`+F+`)|`+St+xt,`g`);function wt(e){for(var t=Ct.lastIndex=0;Ct.test(e);)++t;return t}function Tt(e){return Le(e)?wt(e):ct(e)}function Et(e,t){return rt(e,t,function(t,n){return fe(e,n)})}var I=Fe(function(e,t){return e==null?{}:Et(e,t)}),Dt=Math.ceil,Ot=Math.max;function kt(e,t,n,r){for(var i=-1,a=Ot(Dt((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function At(e){return function(t,n,r){return r&&typeof r!=`number`&&o(t,n,r)&&(n=r=void 0),t=O(t),n===void 0?(n=t,t=0):n=O(n),r=r===void 0?t<n?1:-1:O(r),kt(t,n,r,e)}}var L=At(),jt=`[object Map]`,Mt=`[object Set]`;function Nt(e){if(e==null)return 0;if(f(e))return tt(e)?Tt(e):e.length;var t=ae(e);return t==jt||t==Mt?e.size:ie(e).length}var R=c(function(e,t){if(e==null)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),st(e,me(t,1),[])}),Pt=0;function z(e){var t=++Pt;return ge(e)+t}function Ft(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function It(e,t){return Ft(e||[],t||[],r)}var Lt=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return Rt(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&Rt(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,zt)),n=n._prev;return`[`+e.join(`, `)+`]`}};function Rt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function zt(e,t){if(e!==`_next`&&e!==`_prev`)return t}var Bt=s(1);function Vt(e,t){if(e.nodeCount()<=1)return[];var n=Ut(e,t||Bt);return w(S(Ht(n.graph,n.buckets,n.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}function Ht(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)B(e,t,n,o);for(;o=i.dequeue();)B(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(B(e,t,n,o,!0));break}}}return r}function B(e,t,n,r,i){var a=i?[]:void 0;return y(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,V(t,n,s)}),y(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,V(t,n,o)}),e.removeNode(r.v),a}function Ut(e,t){var n=new D,r=0,i=0;y(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),y(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=L(i+r+3).map(function(){return new Lt}),o=r+1;return y(n.nodes(),function(e){V(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function V(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function Wt(e){y(e.graph().acyclicer===`greedy`?Vt(e,t(e)):Gt(e),function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,z(`rev`))});function t(e){return function(t){return e.edge(t).weight}}}function Gt(e){var t=[],n={},r={};function i(a){Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,n[a]=!0,y(e.outEdges(a),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[a])}return y(e.nodes(),i),t}function Kt(e){y(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}function H(e,t,n,r){var i;do i=z(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function qt(e){var t=new D().setGraph(e.graph());return y(e.nodes(),function(n){t.setNode(n,e.node(n))}),y(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function Jt(e){var t=new D({multigraph:e.isMultigraph()}).setGraph(e.graph());return y(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),y(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function Yt(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function U(e){var t=S(L($t(e)+1),function(){return[]});return y(e.nodes(),function(n){var r=e.node(n),i=r.rank;T(i)||(t[i][r.order]=n)}),t}function Xt(e){var t=C(S(e.nodes(),function(t){return e.node(t).rank}));y(e.nodes(),function(n){var r=e.node(n);$e(r,`rank`)&&(r.rank-=t)})}function Zt(e){var t=C(S(e.nodes(),function(t){return e.node(t).rank})),n=[];y(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;y(n,function(t,n){T(t)&&n%i!==0?--r:r&&y(t,function(t){e.node(t).rank+=r})})}function Qt(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),H(e,`border`,i,t)}function $t(e){return M(S(e.nodes(),function(t){var n=e.node(t).rank;if(!T(n))return n}))}function en(e,t){var n={lhs:[],rhs:[]};return y(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function tn(e,t){var n=Ve();try{return t()}finally{console.log(e+` time: `+(Ve()-n)+`ms`)}}function nn(e,t){return t()}function rn(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&y(r,t),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)an(e,`borderLeft`,`_bl`,n,i,a),an(e,`borderRight`,`_br`,n,i,a)}}y(e.children(),t)}function an(e,t,n,r,i,a){var o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=H(e,`border`,o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}function on(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&cn(e)}function sn(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&un(e),(t===`lr`||t===`rl`)&&(dn(e),cn(e))}function cn(e){y(e.nodes(),function(t){ln(e.node(t))}),y(e.edges(),function(t){ln(e.edge(t))})}function ln(e){var t=e.width;e.width=e.height,e.height=t}function un(e){y(e.nodes(),function(t){W(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);y(n.points,W),Object.prototype.hasOwnProperty.call(n,`y`)&&W(n)})}function W(e){e.y=-e.y}function dn(e){y(e.nodes(),function(t){G(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);y(n.points,G),Object.prototype.hasOwnProperty.call(n,`x`)&&G(n)})}function G(e){var t=e.x;e.x=e.y,e.y=t}function fn(e){e.graph().dummyChains=[],y(e.edges(),function(t){pn(e,t)})}function pn(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l=void 0,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],l={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},u=H(e,`edge`,l,`_d`),r===c&&(l.width=s.width,l.height=s.height,l.dummy=`edge-label`,l.labelpos=s.labelpos),e.setEdge(n,u,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,i,{weight:s.weight},o)}}function mn(e){y(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}function K(e){var t={};function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var a=C(S(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||a==null)&&(a=0),i.rank=a}y(e.sources(),n)}function q(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function hn(e){var t=new D({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;gn(t,e)<r;)i=_n(t,e),a=t.hasNode(i.v)?q(e,i):-q(e,i),vn(t,e,a);return t}function gn(e,t){function n(r){y(t.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;!e.hasNode(o)&&!q(t,i)&&(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}return y(e.nodes(),n),e.nodeCount()}function _n(e,t){return N(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return q(t,n)})}function vn(e,t,n){y(e.nodes(),function(e){t.node(e).rank+=n})}s(1),s(1),yn.CycleException=J;function yn(e){var t={},n={},r=[];function i(a){if(Object.prototype.hasOwnProperty.call(n,a))throw new J;Object.prototype.hasOwnProperty.call(t,a)||(n[a]=!0,t[a]=!0,y(e.predecessors(a),i),delete n[a],r.push(a))}if(y(e.sinks(),i),Nt(t)!==e.nodeCount())throw new J;return r}function J(){}J.prototype=Error();function bn(e,t,n){h(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return y(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);xn(e,t,n===`post`,a,r,i)}),i}function xn(e,t,n,r,i,a){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||a.push(t),y(i(t),function(t){xn(e,t,n,r,i,a)}),n&&a.push(t))}function Sn(e,t){return bn(e,t,`post`)}function Cn(e,t){return bn(e,t,`pre`)}Y.initLowLimValues=Z,Y.initCutValues=X,Y.calcCutValue=Tn,Y.leaveEdge=Dn,Y.enterEdge=On,Y.exchangeEdges=kn;function Y(e){e=qt(e),K(e);var t=hn(e);Z(t),X(t,e);for(var n,r;n=Dn(t);)r=On(t,e,n),kn(t,e,n,r)}function X(e,t){var n=Sn(e,e.nodes());n=n.slice(0,n.length-1),y(n,function(n){wn(e,t,n)})}function wn(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=Tn(e,t,n)}function Tn(e,t,n){var r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;return a||=(i=!1,t.edge(r,n)),o=a.weight,y(t.nodeEdges(n),function(a){var s=a.v===n,c=s?a.w:a.v;if(c!==r){var l=s===i,u=t.edge(a).weight;if(o+=l?u:-u,jn(e,n,c)){var d=e.edge(n,c).cutvalue;o+=l?-d:d}}}),o}function Z(e,t){arguments.length<2&&(t=e.nodes()[0]),En(e,{},1,t)}function En(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,y(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=En(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function Dn(e){return A(e.edges(),function(t){return e.edge(t).cutvalue<0})}function On(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),o=e.node(i),s=a,c=!1;return a.lim>o.lim&&(s=o,c=!0),N(_(t.edges(),function(t){return c===Mn(e,e.node(t.v),s)&&c!==Mn(e,e.node(t.w),s)}),function(e){return q(t,e)})}function kn(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),Z(e),X(e,t),An(e,t)}function An(e,t){var n=Cn(e,A(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),y(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function jn(e,t,n){return e.hasEdge(t,n)}function Mn(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function Nn(e){switch(e.graph().ranker){case`network-simplex`:In(e);break;case`tight-tree`:Fn(e);break;case`longest-path`:Pn(e);break;default:In(e)}}var Pn=K;function Fn(e){K(e),hn(e)}function In(e){Y(e)}function Ln(e){var t=H(e,`root`,{},`_root`),n=zn(e),r=M(E(n))-1,i=2*r+1;e.graph().nestingRoot=t,y(e.edges(),function(t){e.edge(t).minlen*=i});var a=Bn(e)+1;y(e.children(),function(o){Rn(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function Rn(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var c=Qt(e,`_bt`),l=Qt(e,`_bb`),u=e.node(o);e.setParent(c,o),u.borderTop=c,e.setParent(l,o),u.borderBottom=l,y(s,function(s){Rn(e,t,n,r,i,a,s);var u=e.node(s),d=u.borderTop?u.borderTop:s,f=u.borderBottom?u.borderBottom:s,p=u.borderTop?r:2*r,m=d===f?i-a[o]+1:1;e.setEdge(c,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,l,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,c,{weight:0,minlen:i+a[o]})}function zn(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&y(a,function(e){n(e,i+1)}),t[r]=i}return y(e.children(),function(e){n(e,1)}),t}function Bn(e){return b(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function Vn(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,y(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}function Hn(e,t,n){var r={},i;y(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}function Un(e,t,n){var r=Wn(e),i=new D({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return y(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),y(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=T(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function Wn(e){for(var t;e.hasNode(t=z(`_root`)););return t}function Gn(e,t){for(var n=0,r=1;r<t.length;++r)n+=Kn(e,t[r-1],t[r]);return n}function Kn(e,t,n){for(var r=It(n,S(n,function(e,t){return t})),i=w(S(t,function(t){return R(S(e.outEdges(t),function(t){return{pos:r[t.w],weight:e.edge(t).weight}}),`pos`)})),a=1;a<n.length;)a<<=1;var o=2*a-1;--a;var s=S(Array(o),function(){return 0}),c=0;return y(i.forEach(function(e){var t=e.pos+a;s[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;c+=e.weight*n})),c}function qn(e){var t={},n=_(e.nodes(),function(t){return!e.children(t).length}),r=S(L(M(S(n,function(t){return e.node(t).rank}))+1),function(){return[]});function i(n){$e(t,n)||(t[n]=!0,r[e.node(n).rank].push(n),y(e.successors(n),i))}return y(R(n,function(t){return e.node(t).rank}),i),r}function Jn(e,t){return S(t,function(t){var n=e.inEdges(t);if(n.length){var r=b(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}else return{v:t}})}function Yn(e,t){var n={};return y(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};T(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),y(t.edges(),function(e){var t=n[e.v],r=n[e.w];!T(t)&&!T(r)&&(r.indegree++,t.out.push(n[e.w]))}),Xn(_(n,function(e){return!e.indegree}))}function Xn(e){var t=[];function n(e){return function(t){t.merged||(T(t.barycenter)||T(e.barycenter)||t.barycenter>=e.barycenter)&&Zn(e,t)}}function r(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),y(i.in.reverse(),n(i)),y(i.out,r(i))}return S(_(t,function(e){return!e.merged}),function(e){return I(e,[`vs`,`i`,`barycenter`,`weight`])})}function Zn(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function Qn(e,t){var n=en(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),r=n.lhs,i=R(n.rhs,function(e){return-e.i}),a=[],o=0,s=0,c=0;r.sort(er(!!t)),c=$n(a,i,c),y(r,function(e){c+=e.vs.length,a.push(e.vs),o+=e.barycenter*e.weight,s+=e.weight,c=$n(a,i,c)});var l={vs:w(a)};return s&&(l.barycenter=o/s,l.weight=s),l}function $n(e,t,n){for(var r;t.length&&(r=k(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function er(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}function tr(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,c={};o&&(i=_(i,function(e){return e!==o&&e!==s}));var l=Jn(e,i);y(l,function(t){if(e.children(t.v).length){var i=tr(e,t.v,n,r);c[t.v]=i,Object.prototype.hasOwnProperty.call(i,`barycenter`)&&rr(t,i)}});var u=Yn(l,n);nr(u,c);var d=Qn(u,r);if(o&&(d.vs=w([o,d.vs,s]),e.predecessors(o).length)){var f=e.node(e.predecessors(o)[0]),p=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(d,`barycenter`)||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+f.order+p.order)/(d.weight+2),d.weight+=2}return d}function nr(e,t){y(e,function(e){e.vs=w(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function rr(e,t){T(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function ir(e){var t=$t(e),n=ar(e,L(1,t+1),`inEdges`),r=ar(e,L(t-1,-1,-1),`outEdges`),i=qn(e);sr(e,i);for(var a=1/0,o,s=0,c=0;c<4;++s,++c){or(s%2?n:r,s%4>=2),i=U(e);var l=Gn(e,i);l<a&&(c=0,o=Be(i),a=l)}sr(e,o)}function ar(e,t,n){return S(t,function(t){return Un(e,t,n)})}function or(e,t){var n=new D;y(e,function(e){var r=e.graph().root,i=tr(e,r,n,t);y(i.vs,function(t,n){e.node(t).order=n}),Hn(e,n,i.vs)})}function sr(e,t){y(t,function(t){y(t,function(t,n){e.node(t).order=n})})}function cr(e){var t=ur(e);y(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=lr(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}e.setParent(n,l),n=e.successors(n)[0]}})}function lr(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c=n,l;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function ur(e){var t={},n=0;function r(i){var a=n;y(e.children(i),r),t[i]={low:a,lim:n++}}return y(e.children(),r),t}function dr(e,t){var n={};function r(t,r){var i=0,a=0,o=t.length,s=k(r);return y(r,function(t,c){var l=pr(e,t),u=l?e.node(l).order:o;(l||t===s)&&(y(r.slice(a,c+1),function(t){y(e.predecessors(t),function(r){var a=e.node(r),o=a.order;(o<i||u<o)&&!(a.dummy&&e.node(t).dummy)&&mr(n,r,t)})}),a=c+1,i=u)}),r}return b(t,r),n}function fr(e,t){var n={};function r(t,r,i,a,o){var s;y(L(r,i),function(r){s=t[r],e.node(s).dummy&&y(e.predecessors(s),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>o)&&mr(n,t,s)})})}function i(t,n){var i=-1,a,o=0;return y(n,function(s,c){if(e.node(s).dummy===`border`){var l=e.predecessors(s);l.length&&(a=e.node(l[0]).order,r(n,o,c,i,a),o=c,i=a)}r(n,o,n.length,a,t.length)}),n}return b(t,i),n}function pr(e,t){if(e.node(t).dummy)return A(e.predecessors(t),function(t){return e.node(t).dummy})}function mr(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function hr(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function gr(e,t,n,r){var i={},a={},o={};return y(t,function(e){y(e,function(e,t){i[e]=e,a[e]=e,o[e]=t})}),y(t,function(e){var t=-1;y(e,function(e){var s=r(e);if(s.length){s=R(s,function(e){return o[e]});for(var c=(s.length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var d=s[l];a[e]===e&&t<o[d]&&!hr(n,e,d)&&(a[d]=e,a[e]=i[e]=i[d],t=o[d])}}})}),{root:i,align:a}}function _r(e,t,n,r,i){var a={},o=vr(e,t,n,i),s=i?`borderLeft`:`borderRight`;function c(e,t){for(var n=o.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function l(e){a[e]=o.inEdges(e).reduce(function(e,t){return Math.max(e,a[t.v]+o.edge(t))},0)}function u(t){var n=o.outEdges(t).reduce(function(e,t){return Math.min(e,a[t.w]-o.edge(t))},1/0),r=e.node(t);n!==1/0&&r.borderType!==s&&(a[t]=Math.max(a[t],n))}return c(l,o.predecessors.bind(o)),c(u,o.successors.bind(o)),y(r,function(e){a[e]=a[n[e]]}),a}function vr(e,t,n,r){var i=new D,a=e.graph(),o=Cr(a.nodesep,a.edgesep,r);return y(t,function(t){var r;y(t,function(t){var a=n[t];if(i.setNode(a),r){var s=n[r],c=i.edge(s,a);i.setEdge(s,a,Math.max(o(e,t,r),c||0))}r=t})}),i}function yr(e,t){return N(E(t),function(t){var n=-1/0,r=1/0;return Je(t,function(t,i){var a=wr(e,i)/2;n=Math.max(t+a,n),r=Math.min(t-a,r)}),n-r})}function br(e,t){var n=E(t),r=C(n),i=M(n);y([`u`,`d`],function(n){y([`l`,`r`],function(a){var o=n+a,s=e[o],c;if(s!==t){var l=E(s);c=a===`l`?r-C(l):i-M(l),c&&(e[o]=j(s,function(e){return e+c}))}})})}function xr(e,t){return j(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=R(S(e,r));return(i[1]+i[2])/2})}function Sr(e){var t=U(e),n=i(dr(e,t),fr(e,t)),r={},a;return y([`u`,`d`],function(i){a=i===`u`?t:E(t).reverse(),y([`l`,`r`],function(t){t===`r`&&(a=S(a,function(e){return E(e).reverse()}));var o=(i===`u`?e.predecessors:e.successors).bind(e),s=gr(e,a,n,o),c=_r(e,a,s.root,s.align,t===`r`);t===`r`&&(c=j(c,function(e){return-e})),r[i+t]=c})}),br(r,yr(e,r)),xr(r,e.graph().align)}function Cr(e,t,n){return function(r,i,a){var o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Object.prototype.hasOwnProperty.call(o,`labelpos`))switch(o.labelpos.toLowerCase()){case`l`:l=-o.width/2;break;case`r`:l=o.width/2;break}if(l&&(c+=n?l:-l),l=0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Object.prototype.hasOwnProperty.call(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:l=s.width/2;break;case`r`:l=-s.width/2;break}return l&&(c+=n?l:-l),l=0,c}}function wr(e,t){return e.node(t).width}function Tr(e){e=Jt(e),Er(e),Ye(Sr(e),function(t,n){e.node(n).x=t})}function Er(e){var t=U(e),n=e.graph().ranksep,r=0;y(t,function(t){var i=M(S(t,function(t){return e.node(t).height}));y(t,function(t){e.node(t).y=r+i/2}),r+=i+n})}function Dr(e,t){var n=t&&t.debugTiming?tn:nn;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>Rr(e));n(` runLayout`,()=>Or(t,n)),n(` updateInputGraph`,()=>kr(e,t))})}function Or(e,t){t(` makeSpaceForEdgeLabels`,()=>zr(e)),t(` removeSelfEdges`,()=>Jr(e)),t(` acyclic`,()=>Wt(e)),t(` nestingGraph.run`,()=>Ln(e)),t(` rank`,()=>Nn(Jt(e))),t(` injectEdgeLabelProxies`,()=>Br(e)),t(` removeEmptyRanks`,()=>Zt(e)),t(` nestingGraph.cleanup`,()=>Vn(e)),t(` normalizeRanks`,()=>Xt(e)),t(` assignRankMinMax`,()=>Vr(e)),t(` removeEdgeLabelProxies`,()=>Hr(e)),t(` normalize.run`,()=>fn(e)),t(` parentDummyChains`,()=>cr(e)),t(` addBorderSegments`,()=>rn(e)),t(` order`,()=>ir(e)),t(` insertSelfEdges`,()=>Yr(e)),t(` adjustCoordinateSystem`,()=>on(e)),t(` position`,()=>Tr(e)),t(` positionSelfEdges`,()=>Xr(e)),t(` removeBorderNodes`,()=>qr(e)),t(` normalize.undo`,()=>mn(e)),t(` fixupEdgeLabelCoords`,()=>Gr(e)),t(` undoCoordinateSystem`,()=>sn(e)),t(` translateGraph`,()=>Ur(e)),t(` assignNodeIntersects`,()=>Wr(e)),t(` reversePoints`,()=>Kr(e)),t(` acyclic.undo`,()=>Kt(e))}function kr(e,t){y(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),y(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var Ar=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],jr={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Mr=[`acyclicer`,`ranker`,`rankdir`,`align`],Nr=[`width`,`height`],Pr={width:0,height:0},Fr=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Ir={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},Lr=[`labelpos`];function Rr(e){var t=new D({multigraph:!0,compound:!0}),n=$(e.graph());return t.setGraph(i({},jr,Q(n,Ar),I(n,Mr))),y(e.nodes(),function(n){var r=$(e.node(n));t.setNode(n,We(Q(r,Nr),Pr)),t.setParent(n,e.parent(n))}),y(e.edges(),function(n){var r=$(e.edge(n));t.setEdge(n,i({},Ir,Q(r,Fr),I(r,Lr)))}),t}function zr(e){var t=e.graph();t.ranksep/=2,y(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function Br(e){y(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);H(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function Vr(e){var t=0;y(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=M(t,r.maxRank))}),e.graph().maxRank=t}function Hr(e){y(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function Ur(e){var t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function c(e){var a=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-c/2),i=Math.max(i,o+c/2)}y(e.nodes(),function(t){c(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&c(n)}),t-=o,r-=s,y(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),y(e.edges(),function(n){var i=e.edge(n);y(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,`x`)&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function Wr(e){y(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(Yt(r,a)),n.points.push(Yt(i,o))})}function Gr(e){y(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}function Kr(e){y(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function qr(e){y(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(k(n.borderLeft)),o=e.node(k(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),y(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function Jr(e){y(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Yr(e){y(U(e),function(t){var n=0;y(t,function(t,r){var i=e.node(t);i.order=r+n,y(i.selfEdges,function(t){H(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}function Xr(e){y(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function Q(e,t){return j(I(e,t),Number)}function $(e){var t={};return y(e,function(e,n){t[n.toLowerCase()]=e}),t}export{Dr as t};
1
+ import{C as e,N as t,S as n,T as r,_ as i,b as a,v as o,x as s,y as c}from"./chunk-5PVQY5BW-CJjwZOXY.js";import{E as l,O as u,T as d,c as f,f as p,g as m,o as ee,r as te,t as ne,u as h,x as re}from"./identity-Co3Kha3t.js";import{h as ie,p as ae}from"./index-Cns0vbRE.js";import{E as g,_ as oe,c as _,d as v,f as se,g as ce,h as le,m as ue,n as y,o as de,p as fe,r as pe,s as me,t as b,u as he,v as ge,x as _e,y as x}from"./reduce-D02udmm3.js";import{a as S,i as ve,n as C,o as ye,r as be,t as w}from"./flatten-xEDtzclq.js";import{i as xe,n as T,r as E,t as D}from"./graphlib-JzRJ1o1K.js";var Se=/\s/;function Ce(e){for(var t=e.length;t--&&Se.test(e.charAt(t)););return t}var we=/^\s+/;function Te(e){return e&&e.slice(0,Ce(e)+1).replace(we,``)}var Ee=NaN,De=/^[-+]0x[0-9a-f]+$/i,Oe=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,Ae=parseInt;function je(e){if(typeof e==`number`)return e;if(x(e))return Ee;if(d(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=d(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Te(e);var n=Oe.test(e);return n||ke.test(e)?Ae(e.slice(2),n?2:8):De.test(e)?Ee:+e}var Me=1/0,Ne=17976931348623157e292;function O(e){return e?(e=je(e),e===Me||e===-Me?(e<0?-1:1)*Ne:e===e?e:0):e===0?e:0}function Pe(e){var t=O(e),n=t%1;return t===t?n?t-n:t:0}function Fe(e){return a(n(e,void 0,w),e+``)}var Ie=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Le(e){return Ie.test(e)}var Re=1,ze=4;function Be(e){return xe(e,Re|ze)}var Ve=function(){return u.Date.now()},He=Object.prototype,Ue=He.hasOwnProperty,We=c(function(t,n){t=Object(t);var r=-1,i=n.length,a=i>2?n[2]:void 0;for(a&&o(n[0],n[1],a)&&(i=1);++r<i;)for(var s=n[r],c=e(s),l=-1,u=c.length;++l<u;){var d=c[l],f=t[d];(f===void 0||re(f,He[d])&&!Ue.call(t,d))&&(t[d]=s[d])}return t});function k(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ge(e){return function(t,n,r){var i=Object(t);if(!f(t)){var a=v(n,3);t=_e(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var Ke=Math.max;function qe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Pe(n);return i<0&&(i=Ke(r+i,0)),de(e,v(t,3),i)}var A=Ge(qe);function Je(t,n){return t==null?t:m(t,pe(n),e)}function Ye(e,t){return e&&he(e,pe(t))}function Xe(e,t){return e>t}var Ze=Object.prototype.hasOwnProperty;function Qe(e,t){return e!=null&&Ze.call(e,t)}function $e(e,t){return e!=null&&ue(e,t,Qe)}var et=`[object String]`;function tt(e){return typeof e==`string`||!h(e)&&p(e)&&l(e)==et}function j(e,n){var r={};return n=v(n,3),he(e,function(e,i,a){t(r,i,n(e,i,a))}),r}function M(e){return e&&e.length?ve(e,ne,Xe):void 0}function N(e,t){return e&&e.length?ve(e,v(t,2),be):void 0}function nt(e,t,n,i){if(!d(e))return e;t=oe(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=ce(t[a]),u=n;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var f=c[l];u=i?i(f,l,c):void 0,u===void 0&&(u=d(f)?f:te(t[a+1])?[]:{})}r(c,l,u),c=c[l]}return e}function rt(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=le(e,o);n(s,o)&&nt(a,oe(o,e),s)}return a}function it(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function at(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=x(e),o=t!==void 0,s=t===null,c=t===t,l=x(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}function ot(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=at(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function st(e,t,n){t=t.length?g(t,function(e){return h(e)?function(t){return le(t,e.length===1?e[0]:e)}:e}):[ne];var r=-1;return t=g(t,ee(v)),it(ye(e,function(e,n,i){return{criteria:g(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return ot(e,t,n)})}var ct=se(`length`),lt=`\\ud800-\\udfff`,ut=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,dt=`\\ufe0e\\ufe0f`,ft=`[`+lt+`]`,P=`[`+ut+`]`,F=`\\ud83c[\\udffb-\\udfff]`,pt=`(?:`+P+`|`+F+`)`,mt=`[^`+lt+`]`,ht=`(?:\\ud83c[\\udde6-\\uddff]){2}`,gt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,_t=`\\u200d`,vt=pt+`?`,yt=`[`+dt+`]?`,bt=`(?:`+_t+`(?:`+[mt,ht,gt].join(`|`)+`)`+yt+vt+`)*`,xt=yt+vt+bt,St=`(?:`+[mt+P+`?`,P,ht,gt,ft].join(`|`)+`)`,Ct=RegExp(F+`(?=`+F+`)|`+St+xt,`g`);function wt(e){for(var t=Ct.lastIndex=0;Ct.test(e);)++t;return t}function Tt(e){return Le(e)?wt(e):ct(e)}function Et(e,t){return rt(e,t,function(t,n){return fe(e,n)})}var I=Fe(function(e,t){return e==null?{}:Et(e,t)}),Dt=Math.ceil,Ot=Math.max;function kt(e,t,n,r){for(var i=-1,a=Ot(Dt((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function At(e){return function(t,n,r){return r&&typeof r!=`number`&&o(t,n,r)&&(n=r=void 0),t=O(t),n===void 0?(n=t,t=0):n=O(n),r=r===void 0?t<n?1:-1:O(r),kt(t,n,r,e)}}var L=At(),jt=`[object Map]`,Mt=`[object Set]`;function Nt(e){if(e==null)return 0;if(f(e))return tt(e)?Tt(e):e.length;var t=ae(e);return t==jt||t==Mt?e.size:ie(e).length}var R=c(function(e,t){if(e==null)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),st(e,me(t,1),[])}),Pt=0;function z(e){var t=++Pt;return ge(e)+t}function Ft(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function It(e,t){return Ft(e||[],t||[],r)}var Lt=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return Rt(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&Rt(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,zt)),n=n._prev;return`[`+e.join(`, `)+`]`}};function Rt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function zt(e,t){if(e!==`_next`&&e!==`_prev`)return t}var Bt=s(1);function Vt(e,t){if(e.nodeCount()<=1)return[];var n=Ut(e,t||Bt);return w(S(Ht(n.graph,n.buckets,n.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}function Ht(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)B(e,t,n,o);for(;o=i.dequeue();)B(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(B(e,t,n,o,!0));break}}}return r}function B(e,t,n,r,i){var a=i?[]:void 0;return y(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,V(t,n,s)}),y(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,V(t,n,o)}),e.removeNode(r.v),a}function Ut(e,t){var n=new D,r=0,i=0;y(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),y(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=L(i+r+3).map(function(){return new Lt}),o=r+1;return y(n.nodes(),function(e){V(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function V(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function Wt(e){y(e.graph().acyclicer===`greedy`?Vt(e,t(e)):Gt(e),function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,z(`rev`))});function t(e){return function(t){return e.edge(t).weight}}}function Gt(e){var t=[],n={},r={};function i(a){Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,n[a]=!0,y(e.outEdges(a),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[a])}return y(e.nodes(),i),t}function Kt(e){y(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}function H(e,t,n,r){var i;do i=z(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function qt(e){var t=new D().setGraph(e.graph());return y(e.nodes(),function(n){t.setNode(n,e.node(n))}),y(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function Jt(e){var t=new D({multigraph:e.isMultigraph()}).setGraph(e.graph());return y(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),y(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function Yt(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function U(e){var t=S(L($t(e)+1),function(){return[]});return y(e.nodes(),function(n){var r=e.node(n),i=r.rank;T(i)||(t[i][r.order]=n)}),t}function Xt(e){var t=C(S(e.nodes(),function(t){return e.node(t).rank}));y(e.nodes(),function(n){var r=e.node(n);$e(r,`rank`)&&(r.rank-=t)})}function Zt(e){var t=C(S(e.nodes(),function(t){return e.node(t).rank})),n=[];y(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;y(n,function(t,n){T(t)&&n%i!==0?--r:r&&y(t,function(t){e.node(t).rank+=r})})}function Qt(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),H(e,`border`,i,t)}function $t(e){return M(S(e.nodes(),function(t){var n=e.node(t).rank;if(!T(n))return n}))}function en(e,t){var n={lhs:[],rhs:[]};return y(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function tn(e,t){var n=Ve();try{return t()}finally{console.log(e+` time: `+(Ve()-n)+`ms`)}}function nn(e,t){return t()}function rn(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&y(r,t),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)an(e,`borderLeft`,`_bl`,n,i,a),an(e,`borderRight`,`_br`,n,i,a)}}y(e.children(),t)}function an(e,t,n,r,i,a){var o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=H(e,`border`,o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}function on(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&cn(e)}function sn(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&un(e),(t===`lr`||t===`rl`)&&(dn(e),cn(e))}function cn(e){y(e.nodes(),function(t){ln(e.node(t))}),y(e.edges(),function(t){ln(e.edge(t))})}function ln(e){var t=e.width;e.width=e.height,e.height=t}function un(e){y(e.nodes(),function(t){W(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);y(n.points,W),Object.prototype.hasOwnProperty.call(n,`y`)&&W(n)})}function W(e){e.y=-e.y}function dn(e){y(e.nodes(),function(t){G(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);y(n.points,G),Object.prototype.hasOwnProperty.call(n,`x`)&&G(n)})}function G(e){var t=e.x;e.x=e.y,e.y=t}function fn(e){e.graph().dummyChains=[],y(e.edges(),function(t){pn(e,t)})}function pn(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l=void 0,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],l={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},u=H(e,`edge`,l,`_d`),r===c&&(l.width=s.width,l.height=s.height,l.dummy=`edge-label`,l.labelpos=s.labelpos),e.setEdge(n,u,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,i,{weight:s.weight},o)}}function mn(e){y(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}function K(e){var t={};function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var a=C(S(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||a==null)&&(a=0),i.rank=a}y(e.sources(),n)}function q(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function hn(e){var t=new D({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;gn(t,e)<r;)i=_n(t,e),a=t.hasNode(i.v)?q(e,i):-q(e,i),vn(t,e,a);return t}function gn(e,t){function n(r){y(t.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;!e.hasNode(o)&&!q(t,i)&&(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}return y(e.nodes(),n),e.nodeCount()}function _n(e,t){return N(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return q(t,n)})}function vn(e,t,n){y(e.nodes(),function(e){t.node(e).rank+=n})}s(1),s(1),yn.CycleException=J;function yn(e){var t={},n={},r=[];function i(a){if(Object.prototype.hasOwnProperty.call(n,a))throw new J;Object.prototype.hasOwnProperty.call(t,a)||(n[a]=!0,t[a]=!0,y(e.predecessors(a),i),delete n[a],r.push(a))}if(y(e.sinks(),i),Nt(t)!==e.nodeCount())throw new J;return r}function J(){}J.prototype=Error();function bn(e,t,n){h(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return y(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);xn(e,t,n===`post`,a,r,i)}),i}function xn(e,t,n,r,i,a){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||a.push(t),y(i(t),function(t){xn(e,t,n,r,i,a)}),n&&a.push(t))}function Sn(e,t){return bn(e,t,`post`)}function Cn(e,t){return bn(e,t,`pre`)}Y.initLowLimValues=Z,Y.initCutValues=X,Y.calcCutValue=Tn,Y.leaveEdge=Dn,Y.enterEdge=On,Y.exchangeEdges=kn;function Y(e){e=qt(e),K(e);var t=hn(e);Z(t),X(t,e);for(var n,r;n=Dn(t);)r=On(t,e,n),kn(t,e,n,r)}function X(e,t){var n=Sn(e,e.nodes());n=n.slice(0,n.length-1),y(n,function(n){wn(e,t,n)})}function wn(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=Tn(e,t,n)}function Tn(e,t,n){var r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;return a||=(i=!1,t.edge(r,n)),o=a.weight,y(t.nodeEdges(n),function(a){var s=a.v===n,c=s?a.w:a.v;if(c!==r){var l=s===i,u=t.edge(a).weight;if(o+=l?u:-u,jn(e,n,c)){var d=e.edge(n,c).cutvalue;o+=l?-d:d}}}),o}function Z(e,t){arguments.length<2&&(t=e.nodes()[0]),En(e,{},1,t)}function En(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,y(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=En(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function Dn(e){return A(e.edges(),function(t){return e.edge(t).cutvalue<0})}function On(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),o=e.node(i),s=a,c=!1;return a.lim>o.lim&&(s=o,c=!0),N(_(t.edges(),function(t){return c===Mn(e,e.node(t.v),s)&&c!==Mn(e,e.node(t.w),s)}),function(e){return q(t,e)})}function kn(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),Z(e),X(e,t),An(e,t)}function An(e,t){var n=Cn(e,A(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),y(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function jn(e,t,n){return e.hasEdge(t,n)}function Mn(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function Nn(e){switch(e.graph().ranker){case`network-simplex`:In(e);break;case`tight-tree`:Fn(e);break;case`longest-path`:Pn(e);break;default:In(e)}}var Pn=K;function Fn(e){K(e),hn(e)}function In(e){Y(e)}function Ln(e){var t=H(e,`root`,{},`_root`),n=zn(e),r=M(E(n))-1,i=2*r+1;e.graph().nestingRoot=t,y(e.edges(),function(t){e.edge(t).minlen*=i});var a=Bn(e)+1;y(e.children(),function(o){Rn(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function Rn(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var c=Qt(e,`_bt`),l=Qt(e,`_bb`),u=e.node(o);e.setParent(c,o),u.borderTop=c,e.setParent(l,o),u.borderBottom=l,y(s,function(s){Rn(e,t,n,r,i,a,s);var u=e.node(s),d=u.borderTop?u.borderTop:s,f=u.borderBottom?u.borderBottom:s,p=u.borderTop?r:2*r,m=d===f?i-a[o]+1:1;e.setEdge(c,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,l,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,c,{weight:0,minlen:i+a[o]})}function zn(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&y(a,function(e){n(e,i+1)}),t[r]=i}return y(e.children(),function(e){n(e,1)}),t}function Bn(e){return b(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function Vn(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,y(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}function Hn(e,t,n){var r={},i;y(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}function Un(e,t,n){var r=Wn(e),i=new D({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return y(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),y(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=T(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function Wn(e){for(var t;e.hasNode(t=z(`_root`)););return t}function Gn(e,t){for(var n=0,r=1;r<t.length;++r)n+=Kn(e,t[r-1],t[r]);return n}function Kn(e,t,n){for(var r=It(n,S(n,function(e,t){return t})),i=w(S(t,function(t){return R(S(e.outEdges(t),function(t){return{pos:r[t.w],weight:e.edge(t).weight}}),`pos`)})),a=1;a<n.length;)a<<=1;var o=2*a-1;--a;var s=S(Array(o),function(){return 0}),c=0;return y(i.forEach(function(e){var t=e.pos+a;s[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;c+=e.weight*n})),c}function qn(e){var t={},n=_(e.nodes(),function(t){return!e.children(t).length}),r=S(L(M(S(n,function(t){return e.node(t).rank}))+1),function(){return[]});function i(n){$e(t,n)||(t[n]=!0,r[e.node(n).rank].push(n),y(e.successors(n),i))}return y(R(n,function(t){return e.node(t).rank}),i),r}function Jn(e,t){return S(t,function(t){var n=e.inEdges(t);if(n.length){var r=b(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}else return{v:t}})}function Yn(e,t){var n={};return y(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};T(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),y(t.edges(),function(e){var t=n[e.v],r=n[e.w];!T(t)&&!T(r)&&(r.indegree++,t.out.push(n[e.w]))}),Xn(_(n,function(e){return!e.indegree}))}function Xn(e){var t=[];function n(e){return function(t){t.merged||(T(t.barycenter)||T(e.barycenter)||t.barycenter>=e.barycenter)&&Zn(e,t)}}function r(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),y(i.in.reverse(),n(i)),y(i.out,r(i))}return S(_(t,function(e){return!e.merged}),function(e){return I(e,[`vs`,`i`,`barycenter`,`weight`])})}function Zn(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function Qn(e,t){var n=en(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),r=n.lhs,i=R(n.rhs,function(e){return-e.i}),a=[],o=0,s=0,c=0;r.sort(er(!!t)),c=$n(a,i,c),y(r,function(e){c+=e.vs.length,a.push(e.vs),o+=e.barycenter*e.weight,s+=e.weight,c=$n(a,i,c)});var l={vs:w(a)};return s&&(l.barycenter=o/s,l.weight=s),l}function $n(e,t,n){for(var r;t.length&&(r=k(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function er(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}function tr(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,c={};o&&(i=_(i,function(e){return e!==o&&e!==s}));var l=Jn(e,i);y(l,function(t){if(e.children(t.v).length){var i=tr(e,t.v,n,r);c[t.v]=i,Object.prototype.hasOwnProperty.call(i,`barycenter`)&&rr(t,i)}});var u=Yn(l,n);nr(u,c);var d=Qn(u,r);if(o&&(d.vs=w([o,d.vs,s]),e.predecessors(o).length)){var f=e.node(e.predecessors(o)[0]),p=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(d,`barycenter`)||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+f.order+p.order)/(d.weight+2),d.weight+=2}return d}function nr(e,t){y(e,function(e){e.vs=w(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function rr(e,t){T(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function ir(e){var t=$t(e),n=ar(e,L(1,t+1),`inEdges`),r=ar(e,L(t-1,-1,-1),`outEdges`),i=qn(e);sr(e,i);for(var a=1/0,o,s=0,c=0;c<4;++s,++c){or(s%2?n:r,s%4>=2),i=U(e);var l=Gn(e,i);l<a&&(c=0,o=Be(i),a=l)}sr(e,o)}function ar(e,t,n){return S(t,function(t){return Un(e,t,n)})}function or(e,t){var n=new D;y(e,function(e){var r=e.graph().root,i=tr(e,r,n,t);y(i.vs,function(t,n){e.node(t).order=n}),Hn(e,n,i.vs)})}function sr(e,t){y(t,function(t){y(t,function(t,n){e.node(t).order=n})})}function cr(e){var t=ur(e);y(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=lr(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}e.setParent(n,l),n=e.successors(n)[0]}})}function lr(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c=n,l;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function ur(e){var t={},n=0;function r(i){var a=n;y(e.children(i),r),t[i]={low:a,lim:n++}}return y(e.children(),r),t}function dr(e,t){var n={};function r(t,r){var i=0,a=0,o=t.length,s=k(r);return y(r,function(t,c){var l=pr(e,t),u=l?e.node(l).order:o;(l||t===s)&&(y(r.slice(a,c+1),function(t){y(e.predecessors(t),function(r){var a=e.node(r),o=a.order;(o<i||u<o)&&!(a.dummy&&e.node(t).dummy)&&mr(n,r,t)})}),a=c+1,i=u)}),r}return b(t,r),n}function fr(e,t){var n={};function r(t,r,i,a,o){var s;y(L(r,i),function(r){s=t[r],e.node(s).dummy&&y(e.predecessors(s),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>o)&&mr(n,t,s)})})}function i(t,n){var i=-1,a,o=0;return y(n,function(s,c){if(e.node(s).dummy===`border`){var l=e.predecessors(s);l.length&&(a=e.node(l[0]).order,r(n,o,c,i,a),o=c,i=a)}r(n,o,n.length,a,t.length)}),n}return b(t,i),n}function pr(e,t){if(e.node(t).dummy)return A(e.predecessors(t),function(t){return e.node(t).dummy})}function mr(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function hr(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function gr(e,t,n,r){var i={},a={},o={};return y(t,function(e){y(e,function(e,t){i[e]=e,a[e]=e,o[e]=t})}),y(t,function(e){var t=-1;y(e,function(e){var s=r(e);if(s.length){s=R(s,function(e){return o[e]});for(var c=(s.length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var d=s[l];a[e]===e&&t<o[d]&&!hr(n,e,d)&&(a[d]=e,a[e]=i[e]=i[d],t=o[d])}}})}),{root:i,align:a}}function _r(e,t,n,r,i){var a={},o=vr(e,t,n,i),s=i?`borderLeft`:`borderRight`;function c(e,t){for(var n=o.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function l(e){a[e]=o.inEdges(e).reduce(function(e,t){return Math.max(e,a[t.v]+o.edge(t))},0)}function u(t){var n=o.outEdges(t).reduce(function(e,t){return Math.min(e,a[t.w]-o.edge(t))},1/0),r=e.node(t);n!==1/0&&r.borderType!==s&&(a[t]=Math.max(a[t],n))}return c(l,o.predecessors.bind(o)),c(u,o.successors.bind(o)),y(r,function(e){a[e]=a[n[e]]}),a}function vr(e,t,n,r){var i=new D,a=e.graph(),o=Cr(a.nodesep,a.edgesep,r);return y(t,function(t){var r;y(t,function(t){var a=n[t];if(i.setNode(a),r){var s=n[r],c=i.edge(s,a);i.setEdge(s,a,Math.max(o(e,t,r),c||0))}r=t})}),i}function yr(e,t){return N(E(t),function(t){var n=-1/0,r=1/0;return Je(t,function(t,i){var a=wr(e,i)/2;n=Math.max(t+a,n),r=Math.min(t-a,r)}),n-r})}function br(e,t){var n=E(t),r=C(n),i=M(n);y([`u`,`d`],function(n){y([`l`,`r`],function(a){var o=n+a,s=e[o],c;if(s!==t){var l=E(s);c=a===`l`?r-C(l):i-M(l),c&&(e[o]=j(s,function(e){return e+c}))}})})}function xr(e,t){return j(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=R(S(e,r));return(i[1]+i[2])/2})}function Sr(e){var t=U(e),n=i(dr(e,t),fr(e,t)),r={},a;return y([`u`,`d`],function(i){a=i===`u`?t:E(t).reverse(),y([`l`,`r`],function(t){t===`r`&&(a=S(a,function(e){return E(e).reverse()}));var o=(i===`u`?e.predecessors:e.successors).bind(e),s=gr(e,a,n,o),c=_r(e,a,s.root,s.align,t===`r`);t===`r`&&(c=j(c,function(e){return-e})),r[i+t]=c})}),br(r,yr(e,r)),xr(r,e.graph().align)}function Cr(e,t,n){return function(r,i,a){var o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Object.prototype.hasOwnProperty.call(o,`labelpos`))switch(o.labelpos.toLowerCase()){case`l`:l=-o.width/2;break;case`r`:l=o.width/2;break}if(l&&(c+=n?l:-l),l=0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Object.prototype.hasOwnProperty.call(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:l=s.width/2;break;case`r`:l=-s.width/2;break}return l&&(c+=n?l:-l),l=0,c}}function wr(e,t){return e.node(t).width}function Tr(e){e=Jt(e),Er(e),Ye(Sr(e),function(t,n){e.node(n).x=t})}function Er(e){var t=U(e),n=e.graph().ranksep,r=0;y(t,function(t){var i=M(S(t,function(t){return e.node(t).height}));y(t,function(t){e.node(t).y=r+i/2}),r+=i+n})}function Dr(e,t){var n=t&&t.debugTiming?tn:nn;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>Rr(e));n(` runLayout`,()=>Or(t,n)),n(` updateInputGraph`,()=>kr(e,t))})}function Or(e,t){t(` makeSpaceForEdgeLabels`,()=>zr(e)),t(` removeSelfEdges`,()=>Jr(e)),t(` acyclic`,()=>Wt(e)),t(` nestingGraph.run`,()=>Ln(e)),t(` rank`,()=>Nn(Jt(e))),t(` injectEdgeLabelProxies`,()=>Br(e)),t(` removeEmptyRanks`,()=>Zt(e)),t(` nestingGraph.cleanup`,()=>Vn(e)),t(` normalizeRanks`,()=>Xt(e)),t(` assignRankMinMax`,()=>Vr(e)),t(` removeEdgeLabelProxies`,()=>Hr(e)),t(` normalize.run`,()=>fn(e)),t(` parentDummyChains`,()=>cr(e)),t(` addBorderSegments`,()=>rn(e)),t(` order`,()=>ir(e)),t(` insertSelfEdges`,()=>Yr(e)),t(` adjustCoordinateSystem`,()=>on(e)),t(` position`,()=>Tr(e)),t(` positionSelfEdges`,()=>Xr(e)),t(` removeBorderNodes`,()=>qr(e)),t(` normalize.undo`,()=>mn(e)),t(` fixupEdgeLabelCoords`,()=>Gr(e)),t(` undoCoordinateSystem`,()=>sn(e)),t(` translateGraph`,()=>Ur(e)),t(` assignNodeIntersects`,()=>Wr(e)),t(` reversePoints`,()=>Kr(e)),t(` acyclic.undo`,()=>Kt(e))}function kr(e,t){y(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),y(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var Ar=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],jr={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Mr=[`acyclicer`,`ranker`,`rankdir`,`align`],Nr=[`width`,`height`],Pr={width:0,height:0},Fr=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Ir={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},Lr=[`labelpos`];function Rr(e){var t=new D({multigraph:!0,compound:!0}),n=$(e.graph());return t.setGraph(i({},jr,Q(n,Ar),I(n,Mr))),y(e.nodes(),function(n){var r=$(e.node(n));t.setNode(n,We(Q(r,Nr),Pr)),t.setParent(n,e.parent(n))}),y(e.edges(),function(n){var r=$(e.edge(n));t.setEdge(n,i({},Ir,Q(r,Fr),I(r,Lr)))}),t}function zr(e){var t=e.graph();t.ranksep/=2,y(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function Br(e){y(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);H(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function Vr(e){var t=0;y(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=M(t,r.maxRank))}),e.graph().maxRank=t}function Hr(e){y(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function Ur(e){var t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function c(e){var a=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-c/2),i=Math.max(i,o+c/2)}y(e.nodes(),function(t){c(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&c(n)}),t-=o,r-=s,y(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),y(e.edges(),function(n){var i=e.edge(n);y(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,`x`)&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function Wr(e){y(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(Yt(r,a)),n.points.push(Yt(i,o))})}function Gr(e){y(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}function Kr(e){y(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function qr(e){y(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(k(n.borderLeft)),o=e.node(k(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),y(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function Jr(e){y(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Yr(e){y(U(e),function(t){var n=0;y(t,function(t,r){var i=e.node(t);i.order=r+n,y(i.selfEdges,function(t){H(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}function Xr(e){y(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function Q(e,t){return j(I(e,t),Number)}function $(e){var t={};return y(e,function(e,n){t[n.toLowerCase()]=e}),t}export{Dr as t};
@@ -1,4 +1,4 @@
1
- import{g as e,h as t}from"./src-DEzQF-Xc.js";import{B as n,C as r,V as i,W as a,_ as o,a as s,c,d as l,v as u,y as d}from"./chunk-ICPOFSXX-CbeWjtve.js";import{r as f}from"./chunk-5PVQY5BW-PKb2UfEn.js";import{b as p}from"./index-Bp2DjxBi.js";import{t as m}from"./mermaid-parser.core-Ds0FSkVW.js";import{t as h}from"./chunk-4BX2VUAB-TekC62G8.js";import{t as g}from"./chunk-QZHKN3VN-Cql2fGuf.js";var _=new g(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),v=t(()=>{_.reset(),s()},`clear`),y=t(()=>_.records.stack[0],`getRoot`),b=t(()=>_.records.cnt,`getCount`),x=l.treeView,S={clear:v,addNode:t((e,t)=>{for(;e<=_.records.stack[_.records.stack.length-1].level;)_.records.stack.pop();let n={id:_.records.cnt++,level:e,name:t,children:[]};_.records.stack[_.records.stack.length-1].children.push(n),_.records.stack.push(n)},`addNode`),getRoot:y,getCount:b,getConfig:t(()=>f(x,d().treeView),`getConfig`),getAccTitle:u,getAccDescription:o,getDiagramTitle:r,setAccDescription:n,setAccTitle:i,setDiagramTitle:a},C=t(e=>{h(e,S),e.nodes.map(e=>S.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),w={parse:t(async t=>{let n=await m(`treeView`,t);e.debug(n),C(n)},`parse`)},T=t((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),E=t((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),D=t((e,n,r)=>{let i=0,a=0,o=t((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);T(o,i,t,e,n);let{height:s,width:c}=t.BBox;E(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=t((t,n=0)=>{o(e,t,r,n),t.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=t.BBox;if(t.children.length){let{y:n,height:o}=t.children[t.children.length-1].BBox;E(e,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),O={draw:t((t,n,r,i)=>{e.debug(`Rendering treeView diagram
1
+ import{g as e,h as t}from"./src-DEzQF-Xc.js";import{B as n,C as r,V as i,W as a,_ as o,a as s,c,d as l,v as u,y as d}from"./chunk-ICPOFSXX-Dwv7Fn2n.js";import{r as f}from"./chunk-5PVQY5BW-CJjwZOXY.js";import{b as p}from"./index-Cns0vbRE.js";import{t as m}from"./mermaid-parser.core-DvuoaBUx.js";import{t as h}from"./chunk-4BX2VUAB-TekC62G8.js";import{t as g}from"./chunk-QZHKN3VN-Cql2fGuf.js";var _=new g(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),v=t(()=>{_.reset(),s()},`clear`),y=t(()=>_.records.stack[0],`getRoot`),b=t(()=>_.records.cnt,`getCount`),x=l.treeView,S={clear:v,addNode:t((e,t)=>{for(;e<=_.records.stack[_.records.stack.length-1].level;)_.records.stack.pop();let n={id:_.records.cnt++,level:e,name:t,children:[]};_.records.stack[_.records.stack.length-1].children.push(n),_.records.stack.push(n)},`addNode`),getRoot:y,getCount:b,getConfig:t(()=>f(x,d().treeView),`getConfig`),getAccTitle:u,getAccDescription:o,getDiagramTitle:r,setAccDescription:n,setAccTitle:i,setDiagramTitle:a},C=t(e=>{h(e,S),e.nodes.map(e=>S.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),w={parse:t(async t=>{let n=await m(`treeView`,t);e.debug(n),C(n)},`parse`)},T=t((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),E=t((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),D=t((e,n,r)=>{let i=0,a=0,o=t((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);T(o,i,t,e,n);let{height:s,width:c}=t.BBox;E(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=t((t,n=0)=>{o(e,t,r,n),t.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=t.BBox;if(t.children.length){let{y:n,height:o}=t.children[t.children.length-1].BBox;E(e,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),O={draw:t((t,n,r,i)=>{e.debug(`Rendering treeView diagram
2
2
  `+t);let a=i.db,o=a.getRoot(),s=a.getConfig(),l=p(n),u=l.append(`g`);u.attr(`class`,`tree-view`);let{totalHeight:d,totalWidth:f}=D(u,o,s);l.attr(`viewBox`,`-${s.lineThickness/2} 0 ${f} ${d}`),c(l,d,f,s.useMaxWidth)},`draw`)},k={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`},A={db:S,renderer:O,parser:w,styles:t(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:r}=f(k,e);return`
3
3
  .treeView-node-label {
4
4
  font-size: ${t};