@i14ks/ccv 0.51.0 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/assets/{MarkdownTextEditor-JS5gfhvn.js → MarkdownTextEditor-BIFEJNef.js} +1 -1
- package/web/assets/{abnfDiagram-S7VZAUFO-NiQLnUk4.js → abnfDiagram-S7VZAUFO-PxAPu8yc.js} +1 -1
- package/web/assets/{architectureDiagram-YGSQEFNW-CacJXhkP.js → architectureDiagram-YGSQEFNW-DTbKZSgE.js} +1 -1
- package/web/assets/{blockDiagram-APKKGZFW-CQmfctFs.js → blockDiagram-APKKGZFW-BLpAnO86.js} +1 -1
- package/web/assets/{c4Diagram-KJ2TOQU5-BvlnxWev.js → c4Diagram-KJ2TOQU5-0c71mRhk.js} +1 -1
- package/web/assets/{chunk-2Q5K7J3B-Cgc58TSE.js → chunk-2Q5K7J3B-BjVCDOxa.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-C1bWQfyK.js → chunk-5VM5RSS4-DI_P3CD-.js} +1 -1
- package/web/assets/{chunk-HFQBQIA3-C7a1_mVn.js → chunk-HFQBQIA3-D7JelBkC.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-C18blVa-.js → chunk-JWPE2WC7-DViBoUd7.js} +1 -1
- package/web/assets/{chunk-KQLB2F66-CI40AH6D.js → chunk-KQLB2F66-B5lYURho.js} +2 -2
- package/web/assets/{chunk-KS47KZWR-DqUN9A3o.js → chunk-KS47KZWR-6KKVV3bb.js} +1 -1
- package/web/assets/{chunk-OY52VR5R-NLJNl2SH.js → chunk-OY52VR5R-DhJv-npE.js} +1 -1
- package/web/assets/{chunk-TU62E6Q5-Dfc2QrQc.js → chunk-TU62E6Q5-C2EMV_EL.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-BbvDRTY2.js → chunk-XXDRQBXY-W6EPffTM.js} +1 -1
- package/web/assets/{classDiagram-v2-L25IHNXF-C70BAnHO.js → classDiagram-v2-L25IHNXF-BLw99iUE.js} +1 -1
- package/web/assets/{codemirror-C9-rbUS5.js → codemirror-BZIHS6Y4.js} +1 -1
- package/web/assets/{codemirrorImages-Ddzgh4gP.js → codemirrorImages-BLPDadol.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-BpSbzUvj.js → cose-bilkent-JH36ORCC-D7OUJYUx.js} +1 -1
- package/web/assets/{cynefin-EF2NZ3EQ-BOIqStKg.js → cynefin-EF2NZ3EQ-BkJ9Ys0f.js} +1 -1
- package/web/assets/{cynefinDiagram-L36ESFBY-DfDb4Bbh.js → cynefinDiagram-L36ESFBY-a9Mz3IWv.js} +1 -1
- package/web/assets/{dagre-SPEB5RXH-B21shBDF.js → dagre-SPEB5RXH-BGvBQ1JJ.js} +1 -1
- package/web/assets/{diagram-3B7GL73J-D5GyZahr.js → diagram-3B7GL73J-BB-OGRG4.js} +1 -1
- package/web/assets/{diagram-DNEMPZML-l_jbAuYI.js → diagram-DNEMPZML-pVP1U_3t.js} +1 -1
- package/web/assets/{diagram-L3MUGCDN-Dxg4m10Z.js → diagram-L3MUGCDN-RJis0nI0.js} +1 -1
- package/web/assets/{diagram-LA4NIPWU-Cel9qbbE.js → diagram-LA4NIPWU-abNtUOgC.js} +1 -1
- package/web/assets/{diagram-MHCOC4E2-BiOEXYq3.js → diagram-MHCOC4E2-BluxAEc9.js} +1 -1
- package/web/assets/{diagram-XPFHEONP-BvK5PJyb.js → diagram-XPFHEONP-B-iDKzmS.js} +1 -1
- package/web/assets/{ebnfDiagram-UZSYDL2S-6zLeUUGj.js → ebnfDiagram-UZSYDL2S-DvrL6XM7.js} +1 -1
- package/web/assets/{elk-XV6XMXQE-vHNWsDBP.js → elk-XV6XMXQE-rBP63iHG.js} +1 -1
- package/web/assets/{erDiagram-EYBAPDEH-B_0_-AXN.js → erDiagram-EYBAPDEH-Bz-CI5Ad.js} +1 -1
- package/web/assets/{flowDiagram-MALGAFMO-DHbDByLY.js → flowDiagram-MALGAFMO-CuZ-qxXu.js} +1 -1
- package/web/assets/{ganttDiagram-23REXITY-B80CTXbo.js → ganttDiagram-23REXITY-D0NL8MsN.js} +1 -1
- package/web/assets/{gitGraphDiagram-STJD7YCW-CkacpGe7.js → gitGraphDiagram-STJD7YCW-DVK15w1H.js} +1 -1
- package/web/assets/{index-pc3Dhu5R.js → index-8thykVyW.js} +1 -1
- package/web/assets/{index-BWlmCdoh.js → index-Bx5KoulY.js} +1 -1
- package/web/assets/{index-C8qdu2Ys.js → index-C-y2hGlr.js} +1 -1
- package/web/assets/{index-DSvz1p_2.js → index-C3sgKrKm.js} +1 -1
- package/web/assets/{index-CIuxUzk9.js → index-CBL6a7v6.js} +1 -1
- package/web/assets/{index-DmzLc_Io.css → index-CE6j3gk_.css} +1 -1
- package/web/assets/{index-C-Hx4d-f.js → index-CQ616cZ-.js} +1 -1
- package/web/assets/{index-CVL9Nmm_.js → index-CZImp-mV.js} +1 -1
- package/web/assets/{index-Cm5B9oUk.js → index-CiCsKZJJ.js} +1 -1
- package/web/assets/{index-BPYt9SZ5.js → index-CpdrbcyL.js} +1 -1
- package/web/assets/{index-BiVTsO6O.js → index-D4XCa8rw.js} +1 -1
- package/web/assets/{index-C_2wUJRx.js → index-D6PgK7Rj.js} +1 -1
- package/web/assets/{index-Ea4Oi4uX.js → index-D6RqSPP1.js} +1 -1
- package/web/assets/{index-g768jR3q.js → index-DPIf-x-z.js} +1 -1
- package/web/assets/{index-CuT0yXRF.js → index-EkowKQcB.js} +1 -1
- package/web/assets/{index-92k3_wJu.js → index-N3HP-ren.js} +1 -1
- package/web/assets/{index-FQtowISJ.js → index-NdAR8ey0.js} +1 -1
- package/web/assets/{index-DC0nz24L.js → index-Sbwl34DE.js} +1 -1
- package/web/assets/{index-kN0c62Qc.js → index-g5NZFHh-.js} +1 -1
- package/web/assets/{index-CnDNc_gM.js → index-nHoWKKiY.js} +69 -69
- package/web/assets/{index-B36m2pd4.js → index-wmfsTRb2.js} +1 -1
- package/web/assets/{infoDiagram-KBXO4MBG-CU1EkG0-.js → infoDiagram-KBXO4MBG-DyqlFY5x.js} +1 -1
- package/web/assets/{ishikawaDiagram-M35NCXHK-BZmugbzW.js → ishikawaDiagram-M35NCXHK-_Vm9QN3f.js} +1 -1
- package/web/assets/{journeyDiagram-OPLOXDXO-DDidfWhw.js → journeyDiagram-OPLOXDXO-Bd7hG7eI.js} +1 -1
- package/web/assets/{kanban-definition-BZKZHSQY-DT8uvOWy.js → kanban-definition-BZKZHSQY-D1c3SCqg.js} +1 -1
- package/web/assets/{mermaid.core-L3hD6CUN.js → mermaid.core-DjyhFRJs.js} +4 -4
- package/web/assets/{mindmap-definition-I2QAS2VK-CglnosNO.js → mindmap-definition-I2QAS2VK--m4_NDPW.js} +1 -1
- package/web/assets/{pegDiagram-FD4XPPHP-Riow5Koi.js → pegDiagram-FD4XPPHP-D5d8ScZG.js} +1 -1
- package/web/assets/{pieDiagram-J4AKIIQI-CK0itELu.js → pieDiagram-J4AKIIQI-BOwYtqfK.js} +1 -1
- package/web/assets/{quadrantDiagram-XTYBLID2-a0cZCRAm.js → quadrantDiagram-XTYBLID2-u5znlo3M.js} +1 -1
- package/web/assets/{railroadDiagram-MRQ6NCDL-C-JOz99A.js → railroadDiagram-MRQ6NCDL-D7jiW3__.js} +1 -1
- package/web/assets/{requirementDiagram-Y7LWUY3S-C6ek4quK.js → requirementDiagram-Y7LWUY3S-Cpt1GlyO.js} +1 -1
- package/web/assets/{sankeyDiagram-WGJFYUXA-CV0CpeMd.js → sankeyDiagram-WGJFYUXA-_JyZCeTQ.js} +1 -1
- package/web/assets/{sequenceDiagram-5NDRBG5M-UAB57p0q.js → sequenceDiagram-5NDRBG5M-CbYA777-.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-CEP45PjG.js → sizeCapture-INFHLROL-DmnizpVE.js} +1 -1
- package/web/assets/{stateDiagram-v2-FJ4FJNEA-DtxyTD99.js → stateDiagram-v2-FJ4FJNEA-FvAiEdvY.js} +1 -1
- package/web/assets/{swimlanes-UMQ2AFYF-D0-FWl64.js → swimlanes-UMQ2AFYF-BfeMkSWP.js} +1 -1
- package/web/assets/swimlanesDiagram-OMPLPG4O-Dixvh2s6.js +8 -0
- package/web/assets/{timeline-definition-SEUHKTQE-OQG2waQW.js → timeline-definition-SEUHKTQE-ryDw6wbV.js} +1 -1
- package/web/assets/{usecaseDiagram-AFA6YXN4-DxTFx1Wc.js → usecaseDiagram-AFA6YXN4-DiwJEYD6.js} +1 -1
- package/web/assets/{vennDiagram-NNMJR3RB-1Uym6RqY.js → vennDiagram-NNMJR3RB-BW4IZXpZ.js} +1 -1
- package/web/assets/{wardleyDiagram-S7YFUSEH-CqeyKfQR.js → wardleyDiagram-S7YFUSEH-B1ngysj0.js} +1 -1
- package/web/assets/{xychartDiagram-GGNKY7IX-CGvFnidy.js → xychartDiagram-GGNKY7IX-BhBXCKWG.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/swimlanesDiagram-OMPLPG4O-B5BeOS4_.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as L,N as $,a as E,D as j,b as y,T as S,I as G}from"./index-CnDNc_gM.js";var N={};class v{constructor(t,e,s,i,h,r,n,o,a,u=0,f){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new v(t,[],e,s,s,0,[],0,i?new R(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),n=h.dynamicPrecedence(i);if(n&&(this.score+=n),s==0){i<h.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i<h.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,r?8:4,!0),this.reduceContext(i,this.reducePos);return}let o=this.stack.length-(s-1)*3-(t&262144?6:0),a=o?this.stack[o-2]:this.p.ranges[0].from;i<h.minRepeatTerm&&a==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let u=this.reducePos-a;u>=2e3&&!(!((e=this.p.parser.nodeSet.types[i])===null||e===void 0)&&e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=u));let f=o?this.stack[o-1]:0,d=this.bufferBase+this.buffer.length-f;if(i<h.minRepeatTerm||t&131072){let c=h.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,c,d+4,!0)}if(t&262144)this.state=this.stack[o];else{let c=this.stack[o-3];this.state=h.getGoto(c,i,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this.buffer.length;if(r>0&&this.buffer[r-4]==0&&this.buffer[r-1]>-1){if(e==s)return;if(this.buffer[r-2]>=e){this.buffer[r-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&(this.buffer[r-4]!=0||this.buffer[r-1]<0)){let n=!1;for(let o=r;o>0&&this.buffer[o-2]>s;o-=4)if(this.buffer[o-1]>=0){n=!0;break}if(n)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4)}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let h=t,{parser:r}=this.p;this.pos=i;let n=r.stateFlag(h,1);!n&&(i>s||e<=r.maxNode)&&(this.reducePos=i),this.pushState(h,n?s:Math.min(s,this.reducePos)),this.shiftContext(e,s),e<=r.maxNode&&this.buffer.push(e,s,i,4)}else this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4)}apply(t,e,s,i){t&65536?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(e&&t.buffer[e-4]==0&&(e-=4);e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new v(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new U(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if((s&65536)==0)return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;h<e.length;h+=2)(r=e[h+1])!=this.state&&this.p.parser.hasAction(r,t)&&i.push(e[h],r);if(this.stack.length<120)for(let h=0;i.length<8&&h<e.length;h+=2){let r=e[h+1];i.some((n,o)=>o&1&&n==r)||i.push(e[h],r)}e=i}let s=[];for(let i=0;i<e.length&&s.length<4;i+=2){let h=e[i+1];if(h==this.state)continue;let r=this.split();r.pushState(h,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[i],this.pos),r.reducePos=this.pos,r.score-=200,s.push(r)}return s}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if((e&65536)==0)return!1;if(!t.validAction(this.state,e)){let s=e>>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(!e.includes(i))return e.push(i),t.allActions(i,r=>{if(!(r&393216))if(r&65536){let n=(r>>19)-h;if(n>1){let o=r&65535,a=this.stack.length-n*3;if(a>=0&&t.getGoto(this.stack[a],o,!1)>=0)return n<<19|65536|o}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new R(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){return t<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class R{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class U{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class A{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new A(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new A(this.stack,this.pos,this.index)}}function x(l,t=Uint16Array){if(typeof l!="string")return l;let e=null;for(let s=0,i=0;s<l.length;){let h=0;for(;;){let r=l.charCodeAt(s++),n=!1;if(r==126){h=65535;break}r>=92&&r--,r>=34&&r--;let o=r-32;if(o>=46&&(o-=46,n=!0),h+=o,n)break;h*=46}e?e[i++]=h:e=new t(h)}return e}class P{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const z=new P;class H{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=z,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;for(;h<s.from;){if(!i)return null;let r=this.ranges[--i];h-=s.from-r.to,s=r}for(;e<0?h>s.to:h>=s.to;){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e<this.chunk.length)s=this.pos+t,i=this.chunk.charCodeAt(e);else{let h=this.resolveOffset(t,1);if(h==null)return-1;if(s=h,s>=this.chunk2Pos&&s<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(s-this.chunk2Pos);else{let r=this.rangeIndex,n=this.range;for(;n.to<=s;)n=this.ranges[++r];this.chunk2=this.input.chunk(this.chunk2Pos=s),s+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-s)),i=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=s}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=z,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;O(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class W{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(O(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(h||i++,r==null)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}W.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class Z{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function O(l,t,e,s,i,h){let r=0,n=1<<s,{dialect:o}=e.p.parser;t:for(;(n&l[r])!=0;){let a=l[r+1];for(let c=r+3;c<a;c+=2)if((l[c+1]&n)>0){let p=l[c];if(o.allows(p)&&(t.token.value==-1||t.token.value==p||q(p,t.token.value,i,h))){t.acceptToken(p);break}}let u=t.next,f=0,d=l[r+2];if(t.next<0&&d>f&&l[a+d*3-3]==65535){r=l[a+d*3-1];continue t}for(;f<d;){let c=f+d>>1,p=a+c+(c<<1),b=l[p],M=l[p+1]||65536;if(u<b)d=c;else if(u>=M)f=c+1;else{r=l[p+2],t.advance();continue t}}break}}function I(l,t,e){for(let s=t,i;(i=l[s])!=65535;s++)if(i==e)return s-t;return-1}function q(l,t,e,s){let i=I(e,s,t);return i<0||I(e,s,l)<i}const g=typeof process<"u"&&N&&/\bparse\b/.test(N.LOG);let T=null;function D(l,t,e){let s=l.cursor(G.IncludeAnonymous);for(s.moveTo(t);;)if(!(e<0?s.childBefore(t):s.childAfter(t)))for(;;){if((e<0?s.to<t:s.from>t)&&!s.type.isError)return e<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(l.length,Math.max(s.from+1,t+25));if(e<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return e<0?0:l.length}}class J{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?D(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?D(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let s=this.trees[e],i=this.index[e];if(i==s.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let h=s.children[i],r=this.start[e]+s.positions[i];if(r>t)return this.nextStart=r,null;if(h instanceof S){if(r==t){if(r<this.safeFrom)return null;let n=r+h.length;if(n<=this.safeTo){let o=h.prop(y.lookAhead);if(!o||n+o<this.fragment.to)return h}}this.index[e]++,r+h.length>=Math.max(this.safeFrom,t)&&(this.trees.push(h),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+h.length}}}class K{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(s=>new P)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let a=0;a<h.length;a++){if((1<<a&r)==0)continue;let u=h[a],f=this.tokens[a];if(!(s&&!u.fallback)&&((u.contextual||f.start!=t.pos||f.mask!=r||f.context!=n)&&(this.updateCachedToken(f,u,t),f.mask=r,f.context=n),f.lookAhead>f.end+25&&(o=Math.max(f.lookAhead,o)),f.value!=0)){let d=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(s=f,e>d))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),!s&&t.pos==this.stream.end&&(s=new P,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new P,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r<h.specialized.length;r++)if(h.specialized[r]==t.value){let n=h.specializers[r](this.stream.read(t.start,t.end),s);if(n>=0&&s.p.parser.dialect.allows(n>>1)){(n&1)==0?t.value=n>>1:t.extended=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;h<i;h+=3)if(this.actions[h]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=s,i}addActions(t,e,s,i){let{state:h}=t,{parser:r}=t.p,{data:n}=r;for(let o=0;o<2;o++)for(let a=r.stateSlot(h,o?2:1);;a+=3){if(n[a]==65535)if(n[a+1]==1)a=k(n,a+2);else{i==0&&n[a+1]==2&&(i=this.putAction(k(n,a+2),e,s,i));break}n[a]==e&&(i=this.putAction(k(n,a+1),e,s,i))}return i}}class Q{constructor(t,e,s,i){this.parser=t,this.input=e,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new H(e,i),this.tokens=new K(t,this.stream),this.topTerm=t.top[1];let{from:h}=i[0];this.stacks=[v.start(this,t.top[0],h)],this.fragments=s.length&&this.stream.end-h>t.bufferLength*4?new J(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<t.length;r++){let n=t[r];for(;;){if(this.tokens.mainToken=null,n.pos>e)s.push(n);else{if(this.advanceStack(n,s,t))continue;{i||(i=[],h=[]),i.push(n);let o=this.tokens.getMainToken(n);h.push(o.value,o.end)}}break}}if(!s.length){let r=i&&X(i);if(r)return g&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw g&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r)return g&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r)for(s.sort((n,o)=>o.score-n.score);s.length>r;)s.pop();s.some(n=>n.reducePos>e)&&this.recovering--}else if(s.length>1){t:for(let r=0;r<s.length-1;r++){let n=s[r];for(let o=r+1;o<s.length;o++){let a=s[o];if(n.sameState(a)||n.buffer.length>500&&a.buffer.length>500)if((n.score-a.score||n.buffer.length-a.buffer.length)>0)s.splice(o--,1);else{s.splice(r--,1);continue t}}}s.length>12&&(s.sort((r,n)=>n.score-r.score),s.splice(12,s.length-12))}this.minStackPos=s[0].pos;for(let r=1;r<s.length;r++)s[r].pos<this.minStackPos&&(this.minStackPos=s[r].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,s){let i=t.pos,{parser:h}=this,r=g?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,u=a?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?h.getGoto(t.state,f.type.id):-1;if(d>-1&&f.length&&(!a||(f.prop(y.contextHash)||0)==u))return t.useNode(f,d),g&&console.log(r+this.stackID(t)+` (via reuse of ${h.getName(f.type.id)})`),!0;if(!(f instanceof S)||f.children.length==0||f.positions[0]>0)break;let c=f.children[0];if(c instanceof S&&f.positions[0]==0)f=c;else break}}let n=h.stateSlot(t.state,4);if(n>0)return t.reduce(n),g&&console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let o=this.tokens.getActions(t);for(let a=0;a<o.length;){let u=o[a++],f=o[a++],d=o[a++],c=a==o.length||!s,p=c?t:t.split(),b=this.tokens.mainToken;if(p.apply(u,f,b?b.start:p.pos,d),g&&console.log(r+this.stackID(p)+` (via ${(u&65536)==0?"shift":`reduce of ${h.getName(u&65535)}`} for ${h.getName(f)} @ ${i}${p==t?"":", split"})`),c)return!0;p.pos>i?e.push(p):s.push(p)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return B(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r<t.length;r++){let n=t[r],o=e[r<<1],a=e[(r<<1)+1],u=g?this.stackID(n)+" -> ":"";if(n.deadEnd&&(h||(h=!0,n.restart(),g&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))))continue;let f=n.split(),d=u;for(let c=0;c<10&&f.forceReduce()&&(g&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,s));c++)g&&(d=this.stackID(f)+" -> ");for(let c of n.recoverByInsert(o))g&&console.log(u+this.stackID(c)+" (via recover-insert)"),this.advanceFully(c,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),g&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),B(n,s)):(!i||i.score<f.score)&&(i=f)}return i}stackToTree(t){return t.close(),S.build({buffer:A.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(T||(T=new WeakMap)).get(t);return e||T.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function B(l,t){for(let e=0;e<t.length;e++){let s=t[e];if(s.pos==l.pos&&s.sameState(l)){t[e].score<l.score&&(t[e]=l);return}}t.push(l)}class V{constructor(t,e,s){this.source=t,this.flags=e,this.disabled=s}allows(t){return!this.disabled||this.disabled[t]==0}}const C=l=>l;class _{constructor(t){this.start=t.start,this.shift=t.shift||C,this.reduce=t.reduce||C,this.reuse=t.reuse||C,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class w extends L{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;n<t.repeatNodeCount;n++)e.push("");let s=Object.keys(t.topRules).map(n=>t.topRules[n][1]),i=[];for(let n=0;n<e.length;n++)i.push([]);function h(n,o,a){i[n].push([o,o.deserialize(String(a))])}if(t.nodeProps)for(let n of t.nodeProps){let o=n[0];typeof o=="string"&&(o=y[o]);for(let a=1;a<n.length;){let u=n[a++];if(u>=0)h(u,o,n[a++]);else{let f=n[a+-u];for(let d=-u;d>0;d--)h(n[a++],o,f);a++}}}this.nodeSet=new $(e.map((n,o)=>E.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=j;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;n<this.specializerSpecs.length;n++)this.specialized[n]=this.specializerSpecs[n].term;this.specializers=this.specializerSpecs.map(F),this.states=x(t.states,Uint32Array),this.data=x(t.stateData),this.goto=x(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(n=>typeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new Q(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,o=i[h++];if(n&&s)return o;for(let a=h+(r>>1);h<a;h++)if(i[h]==t)return o;if(n)return-1}}hasAction(t,e){let s=this.data;for(let i=0;i<2;i++)for(let h=this.stateSlot(t,i?2:1),r;;h+=3){if((r=s[h])==65535)if(s[h+1]==1)r=s[h=k(s,h+2)];else{if(s[h+1]==2)return k(s,h+2);break}if(r==e||r==0)return k(s,h+1)}return 0}stateSlot(t,e){return this.states[t*6+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,s=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if((this.data[s+2]&1)==0){let i=this.data[s+1];e.some((h,r)=>r&1&&h==i)||e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(w.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(s=>{let i=t.tokenizers.find(h=>h.from==s);return i?i.to:s})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find(n=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=F(r),r})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);r>=0&&(s[r]=!0)}let i=null;for(let h=0;h<e.length;h++)if(!s[h])for(let r=this.dialects[e[h]],n;(n=this.data[r++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[n]=1;return new V(t,s,i)}static deserialize(t){return new w(t)}}function k(l,t){return l[t]|l[t+1]<<16}function X(l){let t=null;for(let e of l){let s=e.p.stoppedAt;(e.pos==e.p.stream.end||s!=null&&e.pos>s)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.score<e.score)&&(t=e)}return t}function F(l){if(l.external){let t=l.extend?1:0;return(e,s)=>l.external(e,s)<<1|t}return l.get}export{_ as C,Z as E,w as L,W as a};
|
|
1
|
+
import{P as L,N as $,a as E,D as j,b as y,T as S,I as G}from"./index-nHoWKKiY.js";var N={};class v{constructor(t,e,s,i,h,r,n,o,a,u=0,f){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new v(t,[],e,s,s,0,[],0,i?new R(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),n=h.dynamicPrecedence(i);if(n&&(this.score+=n),s==0){i<h.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i<h.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,r?8:4,!0),this.reduceContext(i,this.reducePos);return}let o=this.stack.length-(s-1)*3-(t&262144?6:0),a=o?this.stack[o-2]:this.p.ranges[0].from;i<h.minRepeatTerm&&a==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let u=this.reducePos-a;u>=2e3&&!(!((e=this.p.parser.nodeSet.types[i])===null||e===void 0)&&e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=u));let f=o?this.stack[o-1]:0,d=this.bufferBase+this.buffer.length-f;if(i<h.minRepeatTerm||t&131072){let c=h.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,c,d+4,!0)}if(t&262144)this.state=this.stack[o];else{let c=this.stack[o-3];this.state=h.getGoto(c,i,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this.buffer.length;if(r>0&&this.buffer[r-4]==0&&this.buffer[r-1]>-1){if(e==s)return;if(this.buffer[r-2]>=e){this.buffer[r-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&(this.buffer[r-4]!=0||this.buffer[r-1]<0)){let n=!1;for(let o=r;o>0&&this.buffer[o-2]>s;o-=4)if(this.buffer[o-1]>=0){n=!0;break}if(n)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4)}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let h=t,{parser:r}=this.p;this.pos=i;let n=r.stateFlag(h,1);!n&&(i>s||e<=r.maxNode)&&(this.reducePos=i),this.pushState(h,n?s:Math.min(s,this.reducePos)),this.shiftContext(e,s),e<=r.maxNode&&this.buffer.push(e,s,i,4)}else this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4)}apply(t,e,s,i){t&65536?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(e&&t.buffer[e-4]==0&&(e-=4);e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new v(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new U(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if((s&65536)==0)return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;h<e.length;h+=2)(r=e[h+1])!=this.state&&this.p.parser.hasAction(r,t)&&i.push(e[h],r);if(this.stack.length<120)for(let h=0;i.length<8&&h<e.length;h+=2){let r=e[h+1];i.some((n,o)=>o&1&&n==r)||i.push(e[h],r)}e=i}let s=[];for(let i=0;i<e.length&&s.length<4;i+=2){let h=e[i+1];if(h==this.state)continue;let r=this.split();r.pushState(h,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[i],this.pos),r.reducePos=this.pos,r.score-=200,s.push(r)}return s}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if((e&65536)==0)return!1;if(!t.validAction(this.state,e)){let s=e>>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(!e.includes(i))return e.push(i),t.allActions(i,r=>{if(!(r&393216))if(r&65536){let n=(r>>19)-h;if(n>1){let o=r&65535,a=this.stack.length-n*3;if(a>=0&&t.getGoto(this.stack[a],o,!1)>=0)return n<<19|65536|o}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new R(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){return t<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class R{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class U{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class A{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new A(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new A(this.stack,this.pos,this.index)}}function x(l,t=Uint16Array){if(typeof l!="string")return l;let e=null;for(let s=0,i=0;s<l.length;){let h=0;for(;;){let r=l.charCodeAt(s++),n=!1;if(r==126){h=65535;break}r>=92&&r--,r>=34&&r--;let o=r-32;if(o>=46&&(o-=46,n=!0),h+=o,n)break;h*=46}e?e[i++]=h:e=new t(h)}return e}class P{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const z=new P;class H{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=z,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;for(;h<s.from;){if(!i)return null;let r=this.ranges[--i];h-=s.from-r.to,s=r}for(;e<0?h>s.to:h>=s.to;){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e<this.chunk.length)s=this.pos+t,i=this.chunk.charCodeAt(e);else{let h=this.resolveOffset(t,1);if(h==null)return-1;if(s=h,s>=this.chunk2Pos&&s<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(s-this.chunk2Pos);else{let r=this.rangeIndex,n=this.range;for(;n.to<=s;)n=this.ranges[++r];this.chunk2=this.input.chunk(this.chunk2Pos=s),s+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-s)),i=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=s}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=z,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;O(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class W{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(O(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(h||i++,r==null)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}W.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class Z{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function O(l,t,e,s,i,h){let r=0,n=1<<s,{dialect:o}=e.p.parser;t:for(;(n&l[r])!=0;){let a=l[r+1];for(let c=r+3;c<a;c+=2)if((l[c+1]&n)>0){let p=l[c];if(o.allows(p)&&(t.token.value==-1||t.token.value==p||q(p,t.token.value,i,h))){t.acceptToken(p);break}}let u=t.next,f=0,d=l[r+2];if(t.next<0&&d>f&&l[a+d*3-3]==65535){r=l[a+d*3-1];continue t}for(;f<d;){let c=f+d>>1,p=a+c+(c<<1),b=l[p],M=l[p+1]||65536;if(u<b)d=c;else if(u>=M)f=c+1;else{r=l[p+2],t.advance();continue t}}break}}function I(l,t,e){for(let s=t,i;(i=l[s])!=65535;s++)if(i==e)return s-t;return-1}function q(l,t,e,s){let i=I(e,s,t);return i<0||I(e,s,l)<i}const g=typeof process<"u"&&N&&/\bparse\b/.test(N.LOG);let T=null;function D(l,t,e){let s=l.cursor(G.IncludeAnonymous);for(s.moveTo(t);;)if(!(e<0?s.childBefore(t):s.childAfter(t)))for(;;){if((e<0?s.to<t:s.from>t)&&!s.type.isError)return e<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(l.length,Math.max(s.from+1,t+25));if(e<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return e<0?0:l.length}}class J{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?D(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?D(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let s=this.trees[e],i=this.index[e];if(i==s.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let h=s.children[i],r=this.start[e]+s.positions[i];if(r>t)return this.nextStart=r,null;if(h instanceof S){if(r==t){if(r<this.safeFrom)return null;let n=r+h.length;if(n<=this.safeTo){let o=h.prop(y.lookAhead);if(!o||n+o<this.fragment.to)return h}}this.index[e]++,r+h.length>=Math.max(this.safeFrom,t)&&(this.trees.push(h),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+h.length}}}class K{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(s=>new P)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let a=0;a<h.length;a++){if((1<<a&r)==0)continue;let u=h[a],f=this.tokens[a];if(!(s&&!u.fallback)&&((u.contextual||f.start!=t.pos||f.mask!=r||f.context!=n)&&(this.updateCachedToken(f,u,t),f.mask=r,f.context=n),f.lookAhead>f.end+25&&(o=Math.max(f.lookAhead,o)),f.value!=0)){let d=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(s=f,e>d))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),!s&&t.pos==this.stream.end&&(s=new P,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new P,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r<h.specialized.length;r++)if(h.specialized[r]==t.value){let n=h.specializers[r](this.stream.read(t.start,t.end),s);if(n>=0&&s.p.parser.dialect.allows(n>>1)){(n&1)==0?t.value=n>>1:t.extended=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;h<i;h+=3)if(this.actions[h]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=s,i}addActions(t,e,s,i){let{state:h}=t,{parser:r}=t.p,{data:n}=r;for(let o=0;o<2;o++)for(let a=r.stateSlot(h,o?2:1);;a+=3){if(n[a]==65535)if(n[a+1]==1)a=k(n,a+2);else{i==0&&n[a+1]==2&&(i=this.putAction(k(n,a+2),e,s,i));break}n[a]==e&&(i=this.putAction(k(n,a+1),e,s,i))}return i}}class Q{constructor(t,e,s,i){this.parser=t,this.input=e,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new H(e,i),this.tokens=new K(t,this.stream),this.topTerm=t.top[1];let{from:h}=i[0];this.stacks=[v.start(this,t.top[0],h)],this.fragments=s.length&&this.stream.end-h>t.bufferLength*4?new J(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<t.length;r++){let n=t[r];for(;;){if(this.tokens.mainToken=null,n.pos>e)s.push(n);else{if(this.advanceStack(n,s,t))continue;{i||(i=[],h=[]),i.push(n);let o=this.tokens.getMainToken(n);h.push(o.value,o.end)}}break}}if(!s.length){let r=i&&X(i);if(r)return g&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw g&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r)return g&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r)for(s.sort((n,o)=>o.score-n.score);s.length>r;)s.pop();s.some(n=>n.reducePos>e)&&this.recovering--}else if(s.length>1){t:for(let r=0;r<s.length-1;r++){let n=s[r];for(let o=r+1;o<s.length;o++){let a=s[o];if(n.sameState(a)||n.buffer.length>500&&a.buffer.length>500)if((n.score-a.score||n.buffer.length-a.buffer.length)>0)s.splice(o--,1);else{s.splice(r--,1);continue t}}}s.length>12&&(s.sort((r,n)=>n.score-r.score),s.splice(12,s.length-12))}this.minStackPos=s[0].pos;for(let r=1;r<s.length;r++)s[r].pos<this.minStackPos&&(this.minStackPos=s[r].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,s){let i=t.pos,{parser:h}=this,r=g?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,u=a?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?h.getGoto(t.state,f.type.id):-1;if(d>-1&&f.length&&(!a||(f.prop(y.contextHash)||0)==u))return t.useNode(f,d),g&&console.log(r+this.stackID(t)+` (via reuse of ${h.getName(f.type.id)})`),!0;if(!(f instanceof S)||f.children.length==0||f.positions[0]>0)break;let c=f.children[0];if(c instanceof S&&f.positions[0]==0)f=c;else break}}let n=h.stateSlot(t.state,4);if(n>0)return t.reduce(n),g&&console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let o=this.tokens.getActions(t);for(let a=0;a<o.length;){let u=o[a++],f=o[a++],d=o[a++],c=a==o.length||!s,p=c?t:t.split(),b=this.tokens.mainToken;if(p.apply(u,f,b?b.start:p.pos,d),g&&console.log(r+this.stackID(p)+` (via ${(u&65536)==0?"shift":`reduce of ${h.getName(u&65535)}`} for ${h.getName(f)} @ ${i}${p==t?"":", split"})`),c)return!0;p.pos>i?e.push(p):s.push(p)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return B(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r<t.length;r++){let n=t[r],o=e[r<<1],a=e[(r<<1)+1],u=g?this.stackID(n)+" -> ":"";if(n.deadEnd&&(h||(h=!0,n.restart(),g&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))))continue;let f=n.split(),d=u;for(let c=0;c<10&&f.forceReduce()&&(g&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,s));c++)g&&(d=this.stackID(f)+" -> ");for(let c of n.recoverByInsert(o))g&&console.log(u+this.stackID(c)+" (via recover-insert)"),this.advanceFully(c,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),g&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),B(n,s)):(!i||i.score<f.score)&&(i=f)}return i}stackToTree(t){return t.close(),S.build({buffer:A.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(T||(T=new WeakMap)).get(t);return e||T.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function B(l,t){for(let e=0;e<t.length;e++){let s=t[e];if(s.pos==l.pos&&s.sameState(l)){t[e].score<l.score&&(t[e]=l);return}}t.push(l)}class V{constructor(t,e,s){this.source=t,this.flags=e,this.disabled=s}allows(t){return!this.disabled||this.disabled[t]==0}}const C=l=>l;class _{constructor(t){this.start=t.start,this.shift=t.shift||C,this.reduce=t.reduce||C,this.reuse=t.reuse||C,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class w extends L{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;n<t.repeatNodeCount;n++)e.push("");let s=Object.keys(t.topRules).map(n=>t.topRules[n][1]),i=[];for(let n=0;n<e.length;n++)i.push([]);function h(n,o,a){i[n].push([o,o.deserialize(String(a))])}if(t.nodeProps)for(let n of t.nodeProps){let o=n[0];typeof o=="string"&&(o=y[o]);for(let a=1;a<n.length;){let u=n[a++];if(u>=0)h(u,o,n[a++]);else{let f=n[a+-u];for(let d=-u;d>0;d--)h(n[a++],o,f);a++}}}this.nodeSet=new $(e.map((n,o)=>E.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=j;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;n<this.specializerSpecs.length;n++)this.specialized[n]=this.specializerSpecs[n].term;this.specializers=this.specializerSpecs.map(F),this.states=x(t.states,Uint32Array),this.data=x(t.stateData),this.goto=x(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(n=>typeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new Q(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,o=i[h++];if(n&&s)return o;for(let a=h+(r>>1);h<a;h++)if(i[h]==t)return o;if(n)return-1}}hasAction(t,e){let s=this.data;for(let i=0;i<2;i++)for(let h=this.stateSlot(t,i?2:1),r;;h+=3){if((r=s[h])==65535)if(s[h+1]==1)r=s[h=k(s,h+2)];else{if(s[h+1]==2)return k(s,h+2);break}if(r==e||r==0)return k(s,h+1)}return 0}stateSlot(t,e){return this.states[t*6+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,s=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if((this.data[s+2]&1)==0){let i=this.data[s+1];e.some((h,r)=>r&1&&h==i)||e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(w.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(s=>{let i=t.tokenizers.find(h=>h.from==s);return i?i.to:s})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find(n=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=F(r),r})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);r>=0&&(s[r]=!0)}let i=null;for(let h=0;h<e.length;h++)if(!s[h])for(let r=this.dialects[e[h]],n;(n=this.data[r++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[n]=1;return new V(t,s,i)}static deserialize(t){return new w(t)}}function k(l,t){return l[t]|l[t+1]<<16}function X(l){let t=null;for(let e of l){let s=e.p.stoppedAt;(e.pos==e.p.stream.end||s!=null&&e.pos>s)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.score<e.score)&&(t=e)}return t}function F(l){if(l.external){let t=l.extend?1:0;return(e,s)=>l.external(e,s)<<1|t}return l.get}export{_ as C,Z as E,w as L,W as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,l as s,S as n,d as i}from"./mermaid.core-
|
|
1
|
+
import{_ as e,l as s,S as n,d as i}from"./mermaid.core-DjyhFRJs.js";import{p}from"./cynefin-EF2NZ3EQ-BkJ9Ys0f.js";import"./index-nHoWKKiY.js";import"./_commonjsHelpers-CqkleIqs.js";var g={parse:e(async r=>{const a=await p("info",r);s.debug(a)},"parse")},d={version:"12.3.0"},v=e(()=>d.version,"getVersion"),m={getVersion:v},c=e((r,a,o)=>{s.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=n(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),l={draw:c},b={parser:g,db:m,renderer:l};export{b as diagram};
|
package/web/assets/{ishikawaDiagram-M35NCXHK-BZmugbzW.js → ishikawaDiagram-M35NCXHK-_Vm9QN3f.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as o,c as ot,T as ut,S as dt,ah as yt,z as ft,m as pt,q as it,a as gt,b as kt,g as mt,s as wt,t as _t,d as bt}from"./mermaid.core-
|
|
1
|
+
import{_ as o,c as ot,T as ut,S as dt,ah as yt,z as ft,m as pt,q as it,a as gt,b as kt,g as mt,s as wt,t as _t,d as bt}from"./mermaid.core-DjyhFRJs.js";import"./index-nHoWKKiY.js";import"./_commonjsHelpers-CqkleIqs.js";var tt=(function(){var e=o(function(M,t,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],N={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,u,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],u=[],p=[null],n=[],v=this.table,w="",I=0,S=0,L=2,E=1,R=n.slice.call(arguments,1),b=Object.create(this.lexer),C={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(C.yy[z]=this.yy[z]);b.setInput(t,C.yy),C.yy.lexer=b,C.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var T=b.yylloc;n.push(T);var D=b.options&&b.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function F(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(F,"popStack");function j(){var P;return P=u.pop()||b.lex()||E,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}o(j,"lex");for(var A,W,B,K,H={},X,V,et,Y;;){if(W=i[i.length-1],this.defaultActions[W]?B=this.defaultActions[W]:((A===null||typeof A>"u")&&(A=j()),B=v[W]&&v[W][A]),typeof B>"u"||!B.length||!B[0]){var Q="";Y=[];for(X in v[W])this.terminals_[X]&&X>L&&Y.push("'"+this.terminals_[X]+"'");b.showPosition?Q="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+Y.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Q="Parse error on line "+(I+1)+": Unexpected "+(A==E?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Q,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:T,expected:Y})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(B[0]){case 1:i.push(A),p.push(b.yytext),n.push(b.yylloc),i.push(B[1]),A=null,S=b.yyleng,w=b.yytext,I=b.yylineno,T=b.yylloc;break;case 2:if(V=this.productions_[B[1]][1],H.$=p[p.length-V],H._$={first_line:n[n.length-(V||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(V||1)].first_column,last_column:n[n.length-1].last_column},D&&(H._$.range=[n[n.length-(V||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(H,[w,S,I,C.yy,B[1],p,n].concat(R)),typeof K<"u")return K;V&&(i=i.slice(0,-1*V*2),p=p.slice(0,-1*V),n=n.slice(0,-1*V)),i.push(this.productions_[B[1]][0]),p.push(H.$),n.push(H._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var M={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=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),i.length-1&&(this.yylineno-=i.length-1);var p=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:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
package/web/assets/{journeyDiagram-OPLOXDXO-DDidfWhw.js → journeyDiagram-OPLOXDXO-Bd7hG7eI.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as gt}from"./chunk-5VM5RSS4-
|
|
1
|
+
import{g as gt}from"./chunk-5VM5RSS4-DI_P3CD-.js";import{a as mt,b as lt,h as xt,d as kt}from"./chunk-HFQBQIA3-D7JelBkC.js";import{g as _t,s as vt,a as bt,b as wt,t as Tt,q as St,_ as s,c as R,k as X,d as $t,z as Mt,U as it}from"./mermaid.core-DjyhFRJs.js";import"./index-nHoWKKiY.js";import"./_commonjsHelpers-CqkleIqs.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,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:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=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),l.length-1&&(this.yylineno-=l.length-1);var d=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
package/web/assets/{kanban-definition-BZKZHSQY-DT8uvOWy.js → kanban-definition-BZKZHSQY-D1c3SCqg.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as fe}from"./chunk-5VM5RSS4-
|
|
1
|
+
import{g as fe}from"./chunk-5VM5RSS4-DI_P3CD-.js";import{_ as c,l as te,c as W,S as ye,ab as be,ac as me,ad as _e,a8 as ke,Q as Y,j as G,v as Ee,J as Se,a5 as Ne,a6 as le,a7 as ce}from"./mermaid.core-DjyhFRJs.js";import"./index-nHoWKKiY.js";import"./_commonjsHelpers-CqkleIqs.js";var $=(function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],k=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],j=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],M=[1,35],U=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:j}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(P,[2,14],{7:M,11:U}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:j}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:M,11:U}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);m.setInput(s,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Q=m.yylloc;e.push(Q);var de=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var E,R,v,q,F={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((E===null||typeof E>"u")&&(E=ae()),v=B[R]&&B[R][E]),typeof v>"u"||!v.length||!v[0]){var Z="";K=[];for(X in B[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");m.showPosition?Z="Parse error on line "+(z+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+K.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Z="Parse error on line "+(z+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Z,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:Q,expected:K})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+E);switch(v[0]){case 1:a.push(E),u.push(m.yytext),e.push(m.yylloc),a.push(v[1]),E=null,ie=m.yyleng,l=m.yytext,z=m.yylineno,Q=m.yylloc;break;case 2:if(I=this.productions_[v[1]][1],F.$=u[u.length-I],F._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},de&&(F._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),q=this.performAction.apply(F,[l,ie,z,T.yy,v[1],u,e].concat(ge)),typeof q<"u")return q;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),e=e.slice(0,-1*I)),a.push(this.productions_[v[1]][0]),u.push(F.$),e.push(F._$),oe=B[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},y=(function(){var _={EOF:1,parseError:c(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:c(function(s,n){return this.yy=n||this.yy||{},this._input=s,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:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),a.length-1&&(this.yylineno-=a.length-1);var u=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:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./elk-XV6XMXQE-
|
|
2
|
-
var Cf=Object.defineProperty;var xf=(e,t,r)=>t in e?Cf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var qt=(e,t,r)=>xf(e,typeof t!="symbol"?t+"":t,r);import{g as Qr,_ as Et}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./elk-XV6XMXQE-rBP63iHG.js","./chunk-KS47KZWR-6KKVV3bb.js","./chunk-KQLB2F66-B5lYURho.js","./index-nHoWKKiY.js","./index-CE6j3gk_.css","./graph-Bn3Yngep.js","./_commonjsHelpers-CqkleIqs.js","./dagre-SPEB5RXH-BGvBQ1JJ.js","./swimlanes-UMQ2AFYF-BfeMkSWP.js","./cose-bilkent-JH36ORCC-D7OUJYUx.js","./cytoscape.esm-Bw5aGq32.js","./c4Diagram-KJ2TOQU5-0c71mRhk.js","./chunk-HFQBQIA3-D7JelBkC.js","./flowDiagram-MALGAFMO-CuZ-qxXu.js","./chunk-5VM5RSS4-DI_P3CD-.js","./chunk-XXDRQBXY-W6EPffTM.js","./chunk-TU62E6Q5-C2EMV_EL.js","./diagram-3B7GL73J-BB-OGRG4.js","./swimlanesDiagram-OMPLPG4O-Dixvh2s6.js","./erDiagram-EYBAPDEH-Bz-CI5Ad.js","./gitGraphDiagram-STJD7YCW-DVK15w1H.js","./chunk-2Q5K7J3B-BjVCDOxa.js","./chunk-JWPE2WC7-DViBoUd7.js","./cynefin-EF2NZ3EQ-BkJ9Ys0f.js","./ganttDiagram-23REXITY-D0NL8MsN.js","./d3-scale-4DPf7zan.js","./infoDiagram-KBXO4MBG-DyqlFY5x.js","./pieDiagram-J4AKIIQI-BOwYtqfK.js","./quadrantDiagram-XTYBLID2-u5znlo3M.js","./xychartDiagram-GGNKY7IX-BhBXCKWG.js","./requirementDiagram-Y7LWUY3S-Cpt1GlyO.js","./sequenceDiagram-5NDRBG5M-CbYA777-.js","./classDiagram-v2-L25IHNXF-BLw99iUE.js","./stateDiagram-v2-FJ4FJNEA-FvAiEdvY.js","./journeyDiagram-OPLOXDXO-Bd7hG7eI.js","./timeline-definition-SEUHKTQE-ryDw6wbV.js","./mindmap-definition-I2QAS2VK--m4_NDPW.js","./kanban-definition-BZKZHSQY-D1c3SCqg.js","./sankeyDiagram-WGJFYUXA-_JyZCeTQ.js","./diagram-DNEMPZML-pVP1U_3t.js","./diagram-L3MUGCDN-RJis0nI0.js","./blockDiagram-APKKGZFW-BLpAnO86.js","./diagram-XPFHEONP-B-iDKzmS.js","./architectureDiagram-YGSQEFNW-DTbKZSgE.js","./diagram-MHCOC4E2-BluxAEc9.js","./ishikawaDiagram-M35NCXHK-_Vm9QN3f.js","./vennDiagram-NNMJR3RB-BW4IZXpZ.js","./diagram-LA4NIPWU-abNtUOgC.js","./usecaseDiagram-AFA6YXN4-DiwJEYD6.js","./wardleyDiagram-S7YFUSEH-B1ngysj0.js","./cynefinDiagram-L36ESFBY-a9Mz3IWv.js","./railroadDiagram-MRQ6NCDL-D7jiW3__.js","./chunk-OY52VR5R-DhJv-npE.js","./ebnfDiagram-UZSYDL2S-DvrL6XM7.js","./abnfDiagram-S7VZAUFO-PxAPu8yc.js","./pegDiagram-FD4XPPHP-D5d8ScZG.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Cf=Object.defineProperty;var xf=(e,t,r)=>t in e?Cf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var qt=(e,t,r)=>xf(e,typeof t!="symbol"?t+"":t,r);import{g as Qr,_ as Et}from"./index-nHoWKKiY.js";import{g as bf}from"./_commonjsHelpers-CqkleIqs.js";var Gh=Object.defineProperty,p=(e,t)=>Gh(e,"name",{value:t,configurable:!0}),kf=(e,t)=>{for(var r in t)Gh(e,r,{get:t[r],enumerable:!0})};function Xh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}p(Xh,"getDefaultExportFromCjs");var Jt={},Zi={},Ge={},Wn;function ri(){if(Wn)return Ge;Wn=1;function e(n){return typeof n>"u"||n===null}p(e,"isNothing");function t(n){return typeof n=="object"&&n!==null}p(t,"isObject");function r(n){return Array.isArray(n)?n:e(n)?[]:[n]}p(r,"toArray");function i(n,o){if(o){const c=Object.keys(o);for(let h=0,l=c.length;h<l;h+=1){const u=c[h];n[u]=o[u]}}return n}p(i,"extend");function s(n,o){let c="";for(let h=0;h<o;h+=1)c+=n;return c}p(s,"repeat");function a(n){return n===0&&Number.NEGATIVE_INFINITY===1/n}return p(a,"isNegativeZero"),Ge.isNothing=e,Ge.isObject=t,Ge.toArray=r,Ge.repeat=s,Ge.isNegativeZero=a,Ge.extend=i,Ge}p(ri,"requireCommon");var ha,Nn;function ii(){if(Nn)return ha;Nn=1;function e(r,i){let s="";const a=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(s+='in "'+r.mark.name+'" '),s+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(s+=`
|
|
3
3
|
|
|
4
4
|
`+r.mark.snippet),a+" "+s):a}p(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return p(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=p(function(i){return this.name+": "+e(this,i)},"toString"),ha=t,ha}p(ii,"requireException");var ca,zn;function Vh(){if(zn)return ca;zn=1;const e=ri();function t(s,a,n,o,c){let h="",l="";const u=Math.floor(c/2)-1;return o-a>u&&(h=" ... ",a=o-u+h.length),n-o>u&&(l=" ...",n=o+u-l.length),{str:h+s.slice(a,n).replace(/\t/g,"→")+l,pos:o-a+h.length}}p(t,"getLine");function r(s,a){return e.repeat(" ",a-s.length)+s}p(r,"padStart");function i(s,a){if(a=Object.create(a||null),!s.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);const n=/\r?\n|\r|\0/g,o=[0],c=[];let h,l=-1;for(;h=n.exec(s.buffer);)c.push(h.index),o.push(h.index+h[0].length),s.position<=h.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u="";const d=Math.min(s.line+a.linesAfter,c.length).toString().length,g=a.maxLength-(a.indent+d+3);for(let y=1;y<=a.linesBefore&&!(l-y<0);y++){const x=t(s.buffer,o[l-y],c[l-y],s.position-(o[l]-o[l-y]),g);u=e.repeat(" ",a.indent)+r((s.line-y+1).toString(),d)+" | "+x.str+`
|
|
5
5
|
`+u}const f=t(s.buffer,o[l],c[l],s.position,g);u+=e.repeat(" ",a.indent)+r((s.line+1).toString(),d)+" | "+f.str+`
|
|
@@ -298,8 +298,8 @@ ${a.join(`
|
|
|
298
298
|
L0,20`)},"requirement_arrow"),g2=p((e,t,r)=>{const i=Nt(),{themeVariables:s}=i,{strokeWidth:a}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
299
299
|
L20,10
|
|
300
300
|
M20,10
|
|
301
|
-
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),p2=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),f2=p((e,t,r)=>{const i=Nt(),{themeVariables:s}=i,{strokeWidth:a}=s,n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),n.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),m2=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),y2=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),C2=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),x2={extension:X1,composition:V1,aggregation:Z1,dependency:K1,lollipop:Q1,point:J1,circle:t2,cross:e2,barb:r2,barbNeo:i2,hierarchy:m2,only_one:s2,zero_or_one:a2,one_or_more:o2,zero_or_more:n2,only_one_neo:l2,zero_or_one_neo:h2,one_or_more_neo:c2,zero_or_more_neo:u2,requirement_arrow:d2,requirement_contains:p2,requirement_arrow_neo:g2,requirement_contains_neo:f2,openArrow:y2,hollowCircle:C2},b2=G1,k2={common:Ni,getConfig:Nt,insertCluster:Jk,insertEdge:U1,insertEdgeLabel:R1,insertMarkers:b2,insertNode:Vg,interpolateToCurve:hn,labelHelper:mt,log:J,positionEdgeLabel:W1},w2=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],Ri=Object.create(null),pp=p(e=>{for(const t of e)Ri[t.name]=t},"registerLayoutLoaders"),S2=p(()=>{const e=p(async()=>await Et(()=>import("./elk-XV6XMXQE-vHNWsDBP.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...w2.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),T2=p(()=>{pp([{name:"dagre",loader:p(async()=>await Et(()=>import("./dagre-SPEB5RXH-B21shBDF.js"),__vite__mapDeps([7,2,3,4,5,6]),import.meta.url),"loader")},{name:"swimlane",loader:p(async()=>await Et(()=>import("./swimlanes-UMQ2AFYF-D0-FWl64.js"),__vite__mapDeps([8,1,2,3,4,5,6]),import.meta.url),"loader")},{name:"cose-bilkent",loader:p(async()=>await Et(()=>import("./cose-bilkent-JH36ORCC-BpSbzUvj.js"),__vite__mapDeps([9,10,6,3,4]),import.meta.url),"loader")},...S2()])},"registerDefaultLayoutLoaders");T2();var VB=p(async(e,t)=>{if(!Object.hasOwn(Ri,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const n=a.domId||a.id;a.domId=`${e.diagramId}-${n}`}const r=Ri[e.layoutAlgorithm],i=await r.loader();vf(t,e.config);const s=await i.render(e,t,k2,{algorithm:r.algorithm});return E1(t.node()),s},"render"),Ua="dagre",ZB=p((e="",{fallback:t=Ua}={})=>{if(Object.hasOwn(Ri,e))return e;for(const r of[t,Ua])if(Object.hasOwn(Ri,r))return J.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${Ua} is registered.`)},"getRegisteredLayoutAlgorithm"),B2=p(e=>{var s;const{securityLevel:t}=Mt();let r=Ft("body");if(t==="sandbox"){const n=((s=Ft(`#i${e}`).node())==null?void 0:s.contentDocument)??document;r=Ft(n.body)}return r.select(`#${e}`)},"selectSvgElement"),Dn="comm",fp="rule",mp="decl",v2="@media",_2="@import",L2="@supports",F2="@namespace",To="@keyframes",yp="@layer",M2="@scope",A2=Math.abs,Ii=String.fromCharCode;function Cp(e){return e.trim()}function Bo(e,t,r){return e.replace(t,r)}function Dr(e,t){return e.charCodeAt(t)|0}function ti(e,t,r){return e.slice(t,r)}function Me(e){return e.length}function xp(e){return e.length}function os(e,t){return t.push(e),e}var oa=1,ei=1,bp=0,me=0,jt=0,oi="";function Pn(e,t,r,i,s,a,n,o){return{value:e,root:t,parent:r,type:i,props:s,children:a,line:oa,column:ei,length:n,return:"",siblings:o}}function E2(){return jt}function $2(){return jt=me>0?Dr(oi,--me):0,ei--,jt===10&&(ei=1,oa--),jt}function be(){return jt=me<bp?Dr(oi,me++):0,ei++,jt===10&&(ei=1,oa++),jt}function Ve(){return Dr(oi,me)}function ys(){return me}function na(e,t){return ti(oi,e,t)}function qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function O2(e){return oa=ei=1,bp=Me(oi=e),me=0,[]}function I2(e){return oi="",e}function Ga(e){return Cp(na(me-1,vo(e===91?e+2:e===40?e+1:e)))}function D2(e){for(;(jt=Ve())&&jt<33;)be();return qi(e)>2||qi(jt)>3?"":" "}function P2(e,t){for(;--t&&be()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return na(e,ys()+(t<6&&Ve()==32&&be()==32))}function vo(e){for(;be();)switch(jt){case e:return me;case 34:case 39:e!==34&&e!==39&&vo(jt);break;case 40:e===41&&vo(e);break;case 92:be();break}return me}function R2(e,t){for(;be()&&e+jt!==57;)if(e+jt===84&&Ve()===47)break;return"/*"+na(t,me-1)+"*"+Ii(e===47?e:be())}function q2(e){for(;!qi(Ve());)be();return na(e,me)}function W2(e){return I2(Cs("",null,null,null,[""],e=O2(e),0,[0],e))}function Cs(e,t,r,i,s,a,n,o,c){for(var h=0,l=0,u=n,d=0,g=0,f=0,y=1,x=1,C=1,b=0,k=0,T="",B=s,_=a,M=i,L=T;x;)switch(f=k,k=be()){case 40:f!=108&&Dr(L,u-1)==58?(b++,L+="("):L+=Ga(k);break;case 41:b--,L+=")";break;case 34:case 39:case 91:L+=Ga(k);break;case 9:case 10:case 13:case 32:if(b>0){L+=Ii(k);break}L+=D2(f);break;case 92:L+=P2(ys()-1,7);continue;case 47:switch(Ve()){case 42:case 47:os(N2(R2(be(),ys()),t,r,c),c),(qi(f||1)==5||qi(Ve()||1)==5)&&Me(L)&&ti(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*y:o[h++]=Me(L)*C;case 125*y:case 59:case 0:if(b>0&&k){L+=Ii(k);break}switch(k){case 0:case 125:x=0;case 59+l:C==-1&&(L=Bo(L,/\f/g,"")),g>0&&(Me(L)-u||y===0)&&os(g>32?qh(L+";",i,r,u-1,c):qh(Bo(L," ","")+";",i,r,u-2,c),c);break;case 59:L+=";";default:if(os(M=Rh(L,t,r,h,l,s,o,T,B=[],_=[],u,a),a),k===123)if(l===0)Cs(L,t,M,M,B,a,u,o,_);else{switch(d){case 99:if(Dr(L,3)===110)break;case 108:if(Dr(L,2)===97)break;default:l=0;case 100:case 109:case 115:}l?Cs(e,M,M,i&&os(Rh(e,M,M,0,0,s,o,T,s,B=[],u,_),_),s,_,u,o,i?B:_):Cs(L,M,M,M,[""],_,0,o,_)}}h=l=g=0,y=C=1,T=L="",u=n;break;case 58:u=1+Me(L),g=f;default:if(y<1){if(k==123)--y;else if(k==125&&y++==0&&$2()==125)continue}switch(L+=Ii(k),k*y){case 38:C=l>0?1:(L+="\f",-1);break;case 44:if(b>0)break;o[h++]=(Me(L)-1)*C,C=1;break;case 64:Ve()===45&&(L+=Ga(be())),d=Ve(),l=u=Me(T=L+=q2(ys())),k++;break;case 45:f===45&&Me(L)==2&&(y=0)}}return a}function Rh(e,t,r,i,s,a,n,o,c,h,l,u){for(var d=s-1,g=s===0?a:[""],f=xp(g),y=0,x=0,C=0;y<i;++y)for(var b=0,k=ti(e,d+1,d=A2(x=n[y])),T=e;b<f;++b)(T=Cp(x>0?g[b]+" "+k:Bo(k,/&\f/g,g[b])))&&(c[C++]=T);return Pn(e,t,r,s===0?fp:o,c,h,l,u)}function N2(e,t,r,i){return Pn(e,t,r,Dn,Ii(E2()),ti(e,2,-2),0,i)}function qh(e,t,r,i,s){return Pn(e,t,r,mp,ti(e,0,i),ti(e,i+1,-1),i,s)}function _o(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function z2(e,t,r,i){switch(e.type){case yp:if(e.children.length)break;case _2:case F2:case mp:return e.return=e.return||e.value;case Dn:return"";case To:return e.return=e.value+"{"+_o(e.children,i)+"}";case fp:if(!Me(e.value=e.props.join(",")))return""}return Me(r=_o(e.children,i))?e.return=e.value+"{"+r+"}":""}function H2(e){var t=xp(e);return function(r,i,s,a){for(var n="",o=0;o<t;o++)n+=e[o](r,i,s,a)||"";return n}}var kp="c4",Y2=p(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),j2=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./c4Diagram-KJ2TOQU5-BvlnxWev.js");return{diagram:t}},__vite__mapDeps([11,12,3,4,6]),import.meta.url);return{id:kp,diagram:e}},"loader"),U2={id:kp,detector:Y2,loader:j2},G2=U2,wp="flowchart-v2",X2=p(e=>/^\s*(graph|flowchart)/.test(e),"detector"),V2=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./flowDiagram-MALGAFMO-DHbDByLY.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,3,4]),import.meta.url);return{id:wp,diagram:e}},"loader"),Z2={id:wp,detector:X2,loader:V2},K2=Z2,Sp="agentflow",Q2=p(e=>/^\s*agentflow-beta\b/.test(e),"detector"),J2=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-3B7GL73J-D5GyZahr.js");return{diagram:t}},__vite__mapDeps([17,14,15,16,12,3,4,6]),import.meta.url);return{id:Sp,diagram:e}},"loader"),tw={id:Sp,detector:Q2,loader:J2},ew=tw,Tp="swimlane",rw=p(e=>/^\s*swimlane-beta\b/.test(e),"detector"),iw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./swimlanesDiagram-OMPLPG4O-B5BeOS4_.js");return{diagram:t}},__vite__mapDeps([18,13,14,15,16,12,3,4,6]),import.meta.url);return{id:Tp,diagram:e}},"loader"),sw={id:Tp,detector:rw,loader:iw},aw=sw,Bp="er",ow=p(e=>/^\s*erDiagram/.test(e),"detector"),nw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./erDiagram-EYBAPDEH-B_0_-AXN.js");return{diagram:t}},__vite__mapDeps([19,15,16,3,4,6]),import.meta.url);return{id:Bp,diagram:e}},"loader"),lw={id:Bp,detector:ow,loader:nw},hw=lw,vp="gitGraph",cw=p(e=>/^\s*gitGraph/.test(e),"detector"),uw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./gitGraphDiagram-STJD7YCW-CkacpGe7.js");return{diagram:t}},__vite__mapDeps([20,21,22,23,3,4,6]),import.meta.url);return{id:vp,diagram:e}},"loader"),dw={id:vp,detector:cw,loader:uw},gw=dw,_p="gantt",pw=p(e=>/^\s*gantt/.test(e),"detector"),fw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./ganttDiagram-23REXITY-B80CTXbo.js");return{diagram:t}},__vite__mapDeps([24,6,25,3,4]),import.meta.url);return{id:_p,diagram:e}},"loader"),mw={id:_p,detector:pw,loader:fw},yw=mw,Lp="info",Cw=p(e=>/^\s*info/.test(e),"detector"),xw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./infoDiagram-KBXO4MBG-CU1EkG0-.js");return{diagram:t}},__vite__mapDeps([26,23,3,4,6]),import.meta.url);return{id:Lp,diagram:e}},"loader"),bw={id:Lp,detector:Cw,loader:xw},Fp="pie",kw=p(e=>/^\s*pie/.test(e),"detector"),ww=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./pieDiagram-J4AKIIQI-CK0itELu.js");return{diagram:t}},__vite__mapDeps([27,22,23,3,4,25,6]),import.meta.url);return{id:Fp,diagram:e}},"loader"),Sw={id:Fp,detector:kw,loader:ww},Mp="quadrantChart",Tw=p(e=>/^\s*quadrantChart/.test(e),"detector"),Bw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./quadrantDiagram-XTYBLID2-a0cZCRAm.js");return{diagram:t}},__vite__mapDeps([28,25,3,4,6]),import.meta.url);return{id:Mp,diagram:e}},"loader"),vw={id:Mp,detector:Tw,loader:Bw},_w=vw,Ap="xychart",Lw=p(e=>/^\s*xychart(-beta)?/.test(e),"detector"),Fw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./xychartDiagram-GGNKY7IX-CGvFnidy.js");return{diagram:t}},__vite__mapDeps([29,25,3,4,6]),import.meta.url);return{id:Ap,diagram:e}},"loader"),Mw={id:Ap,detector:Lw,loader:Fw},Aw=Mw,Ep="requirement",Ew=p(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),$w=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./requirementDiagram-Y7LWUY3S-C6ek4quK.js");return{diagram:t}},__vite__mapDeps([30,15,16,3,4,6]),import.meta.url);return{id:Ep,diagram:e}},"loader"),Ow={id:Ep,detector:Ew,loader:$w},Iw=Ow,$p="sequence",Dw=p(e=>/^\s*sequenceDiagram/.test(e),"detector"),Pw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./sequenceDiagram-5NDRBG5M-UAB57p0q.js");return{diagram:t}},__vite__mapDeps([31,21,12,3,4,6]),import.meta.url);return{id:$p,diagram:e}},"loader"),Rw={id:$p,detector:Dw,loader:Pw},qw=Rw,Op="classDiagram",Ww=p(e=>/^\s*classDiagram/.test(e),"detector"),Nw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./classDiagram-v2-L25IHNXF-C70BAnHO.js");return{diagram:t}},__vite__mapDeps([32,14,15,16,12,3,4,6]),import.meta.url);return{id:Op,diagram:e}},"loader"),zw={id:Op,detector:Ww,loader:Nw},Hw=zw,Ip="stateDiagram",Yw=p(e=>/^\s*stateDiagram/.test(e),"detector"),jw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./stateDiagram-v2-FJ4FJNEA-DtxyTD99.js");return{diagram:t}},__vite__mapDeps([33,15,16,12,3,4,6]),import.meta.url);return{id:Ip,diagram:e}},"loader"),Uw={id:Ip,detector:Yw,loader:jw},Gw=Uw,Dp="journey",Xw=p(e=>/^\s*journey/.test(e),"detector"),Vw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./journeyDiagram-OPLOXDXO-DDidfWhw.js");return{diagram:t}},__vite__mapDeps([34,14,12,3,4,6]),import.meta.url);return{id:Dp,diagram:e}},"loader"),Zw={id:Dp,detector:Xw,loader:Vw},Kw=Zw,ns=4,bi=75,Qw=p(e=>{const t=[];for(const s of e.split(/\s+/)){let a=[...s];for(;a.length>bi;)t.push(a.slice(0,bi).join("")),a=a.slice(bi);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const s of t){const a=i?`${i} ${s}`:s;[...a].length>bi?(r.push(i),i=s):i=a}if(i&&r.push(i),r.length>ns){r.length=ns;const s=r[ns-1]??"";r[ns-1]=`${[...s].slice(0,bi-3).join("")}...`}return r},"wrapErrorMessage"),Jw=p((e,t,r,i)=>{var c,h;J.debug(`rendering svg for syntax error
|
|
302
|
-
`);const s=B2(t),a=s.append("g"),n=Qw(((h=i==null?void 0:(c=i.db).getErrorMessage)==null?void 0:h.call(c))??""),o=n.length>0?500+n.length*56:512;s.attr("viewBox",`0 0 2412 ${o}`),fc(s,100,o,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),n.forEach((l,u)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+u*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Pp={draw:Jw},tS=Pp,Xa,eS={clear(){Xa=void 0},setErrorMessage(e){Xa=e},getErrorMessage(){return Xa}},rS={db:eS,renderer:Pp,parser:{parse:p(()=>{},"parse")}},iS=rS,Rp="flowchart-elk",sS=p((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),aS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./flowDiagram-MALGAFMO-DHbDByLY.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,3,4]),import.meta.url);return{id:Rp,diagram:e}},"loader"),oS={id:Rp,detector:sS,loader:aS},nS=oS,qp="timeline",lS=p(e=>/^\s*timeline/.test(e),"detector"),hS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./timeline-definition-SEUHKTQE-OQG2waQW.js");return{diagram:t}},__vite__mapDeps([35,3,4,6]),import.meta.url);return{id:qp,diagram:e}},"loader"),cS={id:qp,detector:lS,loader:hS},uS=cS,Wp="mindmap",dS=p(e=>/^\s*mindmap/.test(e),"detector"),gS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./mindmap-definition-I2QAS2VK-CglnosNO.js");return{diagram:t}},__vite__mapDeps([36,15,16,3,4,6]),import.meta.url);return{id:Wp,diagram:e}},"loader"),pS={id:Wp,detector:dS,loader:gS},fS=pS,Np="kanban",mS=p(e=>/^\s*kanban/.test(e),"detector"),yS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./kanban-definition-BZKZHSQY-DT8uvOWy.js");return{diagram:t}},__vite__mapDeps([37,14,3,4,6]),import.meta.url);return{id:Np,diagram:e}},"loader"),CS={id:Np,detector:mS,loader:yS},xS=CS,zp="sankey",bS=p(e=>/^\s*sankey(-beta)?/.test(e),"detector"),kS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./sankeyDiagram-WGJFYUXA-CV0CpeMd.js");return{diagram:t}},__vite__mapDeps([38,25,3,4,6]),import.meta.url);return{id:zp,diagram:e}},"loader"),wS={id:zp,detector:bS,loader:kS},SS=wS,Hp="packet",TS=p(e=>/^\s*packet(-beta)?/.test(e),"detector"),BS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-DNEMPZML-l_jbAuYI.js");return{diagram:t}},__vite__mapDeps([39,22,23,3,4,6]),import.meta.url);return{id:Hp,diagram:e}},"loader"),vS={id:Hp,detector:TS,loader:BS},Yp="radar",_S=p(e=>/^\s*radar-beta/.test(e),"detector"),LS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-L3MUGCDN-Dxg4m10Z.js");return{diagram:t}},__vite__mapDeps([40,22,23,3,4,6]),import.meta.url);return{id:Yp,diagram:e}},"loader"),FS={id:Yp,detector:_S,loader:LS},jp="block",MS=p(e=>/^\s*block(-beta)?/.test(e),"detector"),AS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./blockDiagram-APKKGZFW-CQmfctFs.js");return{diagram:t}},__vite__mapDeps([41,14,5,3,4,6]),import.meta.url);return{id:jp,diagram:e}},"loader"),ES={id:jp,detector:MS,loader:AS},$S=ES,Up="treeView",OS=p(e=>/^\s*treeView-beta/.test(e),"detector"),IS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-XPFHEONP-BvK5PJyb.js");return{diagram:t}},__vite__mapDeps([42,21,22,23,3,4,6]),import.meta.url);return{id:Up,diagram:e}},"loader"),DS={id:Up,detector:OS,loader:IS},PS=DS,Gp="architecture",RS=p(e=>/^\s*architecture/.test(e),"detector"),qS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./architectureDiagram-YGSQEFNW-CacJXhkP.js");return{diagram:t}},__vite__mapDeps([43,22,23,3,4,10,6]),import.meta.url);return{id:Gp,diagram:e}},"loader"),WS={id:Gp,detector:RS,loader:qS},NS=WS,Xp="eventmodeling",zS=p(e=>/^\s*eventmodeling/.test(e),"detector"),HS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-MHCOC4E2-BiOEXYq3.js");return{diagram:t}},__vite__mapDeps([44,22,23,3,4,6]),import.meta.url);return{id:Xp,diagram:e}},"loader"),YS={id:Xp,detector:zS,loader:HS},jS=YS,Vp="ishikawa",US=p(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),GS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./ishikawaDiagram-M35NCXHK-BZmugbzW.js");return{diagram:t}},__vite__mapDeps([45,3,4,6]),import.meta.url);return{id:Vp,diagram:e}},"loader"),XS={id:Vp,detector:US,loader:GS},Zp="venn",VS=p(e=>/^\s*venn-beta/.test(e),"detector"),ZS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./vennDiagram-NNMJR3RB-1Uym6RqY.js");return{diagram:t}},__vite__mapDeps([46,3,4,6]),import.meta.url);return{id:Zp,diagram:e}},"loader"),KS={id:Zp,detector:VS,loader:ZS},QS=KS,Kp="treemap",JS=p(e=>/^\s*treemap/.test(e),"detector"),tT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-LA4NIPWU-Cel9qbbE.js");return{diagram:t}},__vite__mapDeps([47,16,22,23,3,4,25,6]),import.meta.url);return{id:Kp,diagram:e}},"loader"),eT={id:Kp,detector:JS,loader:tT},Qp="usecase",rT=p(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),iT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./usecaseDiagram-AFA6YXN4-DxTFx1Wc.js");return{diagram:t}},__vite__mapDeps([48,15,16,3,4,6]),import.meta.url);return{id:Qp,diagram:e}},"loader"),sT={id:Qp,detector:rT,loader:iT},Jp="wardley",aT=p(e=>/^\s*wardley-beta/i.test(e),"detector"),oT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./wardleyDiagram-S7YFUSEH-CqeyKfQR.js");return{diagram:t}},__vite__mapDeps([49,22,23,3,4,6]),import.meta.url);return{id:Jp,diagram:e}},"loader"),nT={id:Jp,detector:aT,loader:oT},lT=nT,tf="cynefin",hT=p(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),cT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./cynefinDiagram-L36ESFBY-DfDb4Bbh.js");return{diagram:t}},__vite__mapDeps([50,22,23,3,4,6]),import.meta.url);return{id:tf,diagram:e}},"loader"),uT={id:tf,detector:hT,loader:cT},ef="railroad",dT=p(e=>/^\s*railroad-beta/i.test(e),"detector"),gT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./railroadDiagram-MRQ6NCDL-C-JOz99A.js");return{diagram:t}},__vite__mapDeps([51,52,22,23,3,4,6]),import.meta.url);return{id:ef,diagram:e}},"loader"),pT={id:ef,detector:dT,loader:gT},rf="railroadEbnf",fT=p(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),mT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./ebnfDiagram-UZSYDL2S-6zLeUUGj.js");return{diagram:t}},__vite__mapDeps([53,52,22,23,3,4,6]),import.meta.url);return{id:rf,diagram:e}},"loader"),yT={id:rf,detector:fT,loader:mT},sf="railroadAbnf",CT=p(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),xT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./abnfDiagram-S7VZAUFO-NiQLnUk4.js");return{diagram:t}},__vite__mapDeps([54,52,22,23,3,4,6]),import.meta.url);return{id:sf,diagram:e}},"loader"),bT={id:sf,detector:CT,loader:xT},af="railroadPeg",kT=p(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),wT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./pegDiagram-FD4XPPHP-Riow5Koi.js");return{diagram:t}},__vite__mapDeps([55,52,22,23,3,4,6]),import.meta.url);return{id:af,diagram:e}},"loader"),ST={id:af,detector:kT,loader:wT},Wh=!1,la=p(()=>{Wh||(Wh=!0,Bs("error",iS,e=>e.toLowerCase().trim()==="error"),Bs("---",{db:{clear:p(()=>{},"clear")},styles:{},renderer:{draw:p(()=>{},"draw")},parser:{parse:p(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:p(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Za(nS,fS,NS),Za(ew,G2,xS,Hw,hw,yw,bw,Sw,Iw,qw,aw,K2,uS,gw,Gw,Kw,_w,SS,vS,Aw,$S,jS,PS,FS,XS,eT,pT,yT,bT,ST,QS,lT,uT,sT))},"addDiagrams"),TT=p(async()=>{J.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(gr).map(async([r,{detector:i,loader:s}])=>{if(s)try{eo(r)}catch{try{const{diagram:a,id:n}=await s();Bs(n,a,i)}catch(a){throw J.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete gr[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){J.error(`Failed to load ${t.length} external diagrams`);for(const r of t)J.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),BT="graphics-document document";function of(e,t){e.attr("role",BT),t!==""&&e.attr("aria-roledescription",t)}p(of,"setA11yDiagramInfo");function nf(e,t,r,i){if(e.insert!==void 0){if(r){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}p(nf,"addSVGa11yTitleDescription");var dr,js=(dr=class{constructor(t,r,i,s,a){this.type=t,this.text=r,this.db=i,this.parser=s,this.renderer=a}static async fromText(t,r={}){var d,g,f;const i=typeof t=="string"?{cleaned:t}:t,s=Nt(),a=Vs(i.cleaned,s);try{eo(a)}catch{const y=Nf(a);if(!y)throw new rc(`Diagram ${a} not found.`);const{id:x,diagram:C}=await y();Bs(x,C)}const{db:n,parser:o,renderer:c,init:h}=eo(a);o.parser&&(o.parser.yy=n),(d=n.clear)==null||d.call(n),h==null||h(s),r.title&&((g=n.setDiagramTitle)==null||g.call(n,r.title));let l=i.cleaned;if(n.preserveCommentsWhenParsing&&i.withComments){const y=s.maxTextSize??Go.maxTextSize;i.withComments.length>y?J.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${y}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):l=i.withComments}const u=Ax(l)+`
|
|
301
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),p2=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),f2=p((e,t,r)=>{const i=Nt(),{themeVariables:s}=i,{strokeWidth:a}=s,n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),n.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),m2=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),y2=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),C2=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),x2={extension:X1,composition:V1,aggregation:Z1,dependency:K1,lollipop:Q1,point:J1,circle:t2,cross:e2,barb:r2,barbNeo:i2,hierarchy:m2,only_one:s2,zero_or_one:a2,one_or_more:o2,zero_or_more:n2,only_one_neo:l2,zero_or_one_neo:h2,one_or_more_neo:c2,zero_or_more_neo:u2,requirement_arrow:d2,requirement_contains:p2,requirement_arrow_neo:g2,requirement_contains_neo:f2,openArrow:y2,hollowCircle:C2},b2=G1,k2={common:Ni,getConfig:Nt,insertCluster:Jk,insertEdge:U1,insertEdgeLabel:R1,insertMarkers:b2,insertNode:Vg,interpolateToCurve:hn,labelHelper:mt,log:J,positionEdgeLabel:W1},w2=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],Ri=Object.create(null),pp=p(e=>{for(const t of e)Ri[t.name]=t},"registerLayoutLoaders"),S2=p(()=>{const e=p(async()=>await Et(()=>import("./elk-XV6XMXQE-rBP63iHG.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...w2.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),T2=p(()=>{pp([{name:"dagre",loader:p(async()=>await Et(()=>import("./dagre-SPEB5RXH-BGvBQ1JJ.js"),__vite__mapDeps([7,2,3,4,5,6]),import.meta.url),"loader")},{name:"swimlane",loader:p(async()=>await Et(()=>import("./swimlanes-UMQ2AFYF-BfeMkSWP.js"),__vite__mapDeps([8,1,2,3,4,5,6]),import.meta.url),"loader")},{name:"cose-bilkent",loader:p(async()=>await Et(()=>import("./cose-bilkent-JH36ORCC-D7OUJYUx.js"),__vite__mapDeps([9,10,6,3,4]),import.meta.url),"loader")},...S2()])},"registerDefaultLayoutLoaders");T2();var VB=p(async(e,t)=>{if(!Object.hasOwn(Ri,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const n=a.domId||a.id;a.domId=`${e.diagramId}-${n}`}const r=Ri[e.layoutAlgorithm],i=await r.loader();vf(t,e.config);const s=await i.render(e,t,k2,{algorithm:r.algorithm});return E1(t.node()),s},"render"),Ua="dagre",ZB=p((e="",{fallback:t=Ua}={})=>{if(Object.hasOwn(Ri,e))return e;for(const r of[t,Ua])if(Object.hasOwn(Ri,r))return J.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${Ua} is registered.`)},"getRegisteredLayoutAlgorithm"),B2=p(e=>{var s;const{securityLevel:t}=Mt();let r=Ft("body");if(t==="sandbox"){const n=((s=Ft(`#i${e}`).node())==null?void 0:s.contentDocument)??document;r=Ft(n.body)}return r.select(`#${e}`)},"selectSvgElement"),Dn="comm",fp="rule",mp="decl",v2="@media",_2="@import",L2="@supports",F2="@namespace",To="@keyframes",yp="@layer",M2="@scope",A2=Math.abs,Ii=String.fromCharCode;function Cp(e){return e.trim()}function Bo(e,t,r){return e.replace(t,r)}function Dr(e,t){return e.charCodeAt(t)|0}function ti(e,t,r){return e.slice(t,r)}function Me(e){return e.length}function xp(e){return e.length}function os(e,t){return t.push(e),e}var oa=1,ei=1,bp=0,me=0,jt=0,oi="";function Pn(e,t,r,i,s,a,n,o){return{value:e,root:t,parent:r,type:i,props:s,children:a,line:oa,column:ei,length:n,return:"",siblings:o}}function E2(){return jt}function $2(){return jt=me>0?Dr(oi,--me):0,ei--,jt===10&&(ei=1,oa--),jt}function be(){return jt=me<bp?Dr(oi,me++):0,ei++,jt===10&&(ei=1,oa++),jt}function Ve(){return Dr(oi,me)}function ys(){return me}function na(e,t){return ti(oi,e,t)}function qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function O2(e){return oa=ei=1,bp=Me(oi=e),me=0,[]}function I2(e){return oi="",e}function Ga(e){return Cp(na(me-1,vo(e===91?e+2:e===40?e+1:e)))}function D2(e){for(;(jt=Ve())&&jt<33;)be();return qi(e)>2||qi(jt)>3?"":" "}function P2(e,t){for(;--t&&be()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return na(e,ys()+(t<6&&Ve()==32&&be()==32))}function vo(e){for(;be();)switch(jt){case e:return me;case 34:case 39:e!==34&&e!==39&&vo(jt);break;case 40:e===41&&vo(e);break;case 92:be();break}return me}function R2(e,t){for(;be()&&e+jt!==57;)if(e+jt===84&&Ve()===47)break;return"/*"+na(t,me-1)+"*"+Ii(e===47?e:be())}function q2(e){for(;!qi(Ve());)be();return na(e,me)}function W2(e){return I2(Cs("",null,null,null,[""],e=O2(e),0,[0],e))}function Cs(e,t,r,i,s,a,n,o,c){for(var h=0,l=0,u=n,d=0,g=0,f=0,y=1,x=1,C=1,b=0,k=0,T="",B=s,_=a,M=i,L=T;x;)switch(f=k,k=be()){case 40:f!=108&&Dr(L,u-1)==58?(b++,L+="("):L+=Ga(k);break;case 41:b--,L+=")";break;case 34:case 39:case 91:L+=Ga(k);break;case 9:case 10:case 13:case 32:if(b>0){L+=Ii(k);break}L+=D2(f);break;case 92:L+=P2(ys()-1,7);continue;case 47:switch(Ve()){case 42:case 47:os(N2(R2(be(),ys()),t,r,c),c),(qi(f||1)==5||qi(Ve()||1)==5)&&Me(L)&&ti(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*y:o[h++]=Me(L)*C;case 125*y:case 59:case 0:if(b>0&&k){L+=Ii(k);break}switch(k){case 0:case 125:x=0;case 59+l:C==-1&&(L=Bo(L,/\f/g,"")),g>0&&(Me(L)-u||y===0)&&os(g>32?qh(L+";",i,r,u-1,c):qh(Bo(L," ","")+";",i,r,u-2,c),c);break;case 59:L+=";";default:if(os(M=Rh(L,t,r,h,l,s,o,T,B=[],_=[],u,a),a),k===123)if(l===0)Cs(L,t,M,M,B,a,u,o,_);else{switch(d){case 99:if(Dr(L,3)===110)break;case 108:if(Dr(L,2)===97)break;default:l=0;case 100:case 109:case 115:}l?Cs(e,M,M,i&&os(Rh(e,M,M,0,0,s,o,T,s,B=[],u,_),_),s,_,u,o,i?B:_):Cs(L,M,M,M,[""],_,0,o,_)}}h=l=g=0,y=C=1,T=L="",u=n;break;case 58:u=1+Me(L),g=f;default:if(y<1){if(k==123)--y;else if(k==125&&y++==0&&$2()==125)continue}switch(L+=Ii(k),k*y){case 38:C=l>0?1:(L+="\f",-1);break;case 44:if(b>0)break;o[h++]=(Me(L)-1)*C,C=1;break;case 64:Ve()===45&&(L+=Ga(be())),d=Ve(),l=u=Me(T=L+=q2(ys())),k++;break;case 45:f===45&&Me(L)==2&&(y=0)}}return a}function Rh(e,t,r,i,s,a,n,o,c,h,l,u){for(var d=s-1,g=s===0?a:[""],f=xp(g),y=0,x=0,C=0;y<i;++y)for(var b=0,k=ti(e,d+1,d=A2(x=n[y])),T=e;b<f;++b)(T=Cp(x>0?g[b]+" "+k:Bo(k,/&\f/g,g[b])))&&(c[C++]=T);return Pn(e,t,r,s===0?fp:o,c,h,l,u)}function N2(e,t,r,i){return Pn(e,t,r,Dn,Ii(E2()),ti(e,2,-2),0,i)}function qh(e,t,r,i,s){return Pn(e,t,r,mp,ti(e,0,i),ti(e,i+1,-1),i,s)}function _o(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function z2(e,t,r,i){switch(e.type){case yp:if(e.children.length)break;case _2:case F2:case mp:return e.return=e.return||e.value;case Dn:return"";case To:return e.return=e.value+"{"+_o(e.children,i)+"}";case fp:if(!Me(e.value=e.props.join(",")))return""}return Me(r=_o(e.children,i))?e.return=e.value+"{"+r+"}":""}function H2(e){var t=xp(e);return function(r,i,s,a){for(var n="",o=0;o<t;o++)n+=e[o](r,i,s,a)||"";return n}}var kp="c4",Y2=p(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),j2=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./c4Diagram-KJ2TOQU5-0c71mRhk.js");return{diagram:t}},__vite__mapDeps([11,12,3,4,6]),import.meta.url);return{id:kp,diagram:e}},"loader"),U2={id:kp,detector:Y2,loader:j2},G2=U2,wp="flowchart-v2",X2=p(e=>/^\s*(graph|flowchart)/.test(e),"detector"),V2=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./flowDiagram-MALGAFMO-CuZ-qxXu.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,3,4]),import.meta.url);return{id:wp,diagram:e}},"loader"),Z2={id:wp,detector:X2,loader:V2},K2=Z2,Sp="agentflow",Q2=p(e=>/^\s*agentflow-beta\b/.test(e),"detector"),J2=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-3B7GL73J-BB-OGRG4.js");return{diagram:t}},__vite__mapDeps([17,14,15,16,12,3,4,6]),import.meta.url);return{id:Sp,diagram:e}},"loader"),tw={id:Sp,detector:Q2,loader:J2},ew=tw,Tp="swimlane",rw=p(e=>/^\s*swimlane-beta\b/.test(e),"detector"),iw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./swimlanesDiagram-OMPLPG4O-Dixvh2s6.js");return{diagram:t}},__vite__mapDeps([18,13,14,15,16,12,3,4,6]),import.meta.url);return{id:Tp,diagram:e}},"loader"),sw={id:Tp,detector:rw,loader:iw},aw=sw,Bp="er",ow=p(e=>/^\s*erDiagram/.test(e),"detector"),nw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./erDiagram-EYBAPDEH-Bz-CI5Ad.js");return{diagram:t}},__vite__mapDeps([19,15,16,3,4,6]),import.meta.url);return{id:Bp,diagram:e}},"loader"),lw={id:Bp,detector:ow,loader:nw},hw=lw,vp="gitGraph",cw=p(e=>/^\s*gitGraph/.test(e),"detector"),uw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./gitGraphDiagram-STJD7YCW-DVK15w1H.js");return{diagram:t}},__vite__mapDeps([20,21,22,23,3,4,6]),import.meta.url);return{id:vp,diagram:e}},"loader"),dw={id:vp,detector:cw,loader:uw},gw=dw,_p="gantt",pw=p(e=>/^\s*gantt/.test(e),"detector"),fw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./ganttDiagram-23REXITY-D0NL8MsN.js");return{diagram:t}},__vite__mapDeps([24,6,25,3,4]),import.meta.url);return{id:_p,diagram:e}},"loader"),mw={id:_p,detector:pw,loader:fw},yw=mw,Lp="info",Cw=p(e=>/^\s*info/.test(e),"detector"),xw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./infoDiagram-KBXO4MBG-DyqlFY5x.js");return{diagram:t}},__vite__mapDeps([26,23,3,4,6]),import.meta.url);return{id:Lp,diagram:e}},"loader"),bw={id:Lp,detector:Cw,loader:xw},Fp="pie",kw=p(e=>/^\s*pie/.test(e),"detector"),ww=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./pieDiagram-J4AKIIQI-BOwYtqfK.js");return{diagram:t}},__vite__mapDeps([27,22,23,3,4,25,6]),import.meta.url);return{id:Fp,diagram:e}},"loader"),Sw={id:Fp,detector:kw,loader:ww},Mp="quadrantChart",Tw=p(e=>/^\s*quadrantChart/.test(e),"detector"),Bw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./quadrantDiagram-XTYBLID2-u5znlo3M.js");return{diagram:t}},__vite__mapDeps([28,25,3,4,6]),import.meta.url);return{id:Mp,diagram:e}},"loader"),vw={id:Mp,detector:Tw,loader:Bw},_w=vw,Ap="xychart",Lw=p(e=>/^\s*xychart(-beta)?/.test(e),"detector"),Fw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./xychartDiagram-GGNKY7IX-BhBXCKWG.js");return{diagram:t}},__vite__mapDeps([29,25,3,4,6]),import.meta.url);return{id:Ap,diagram:e}},"loader"),Mw={id:Ap,detector:Lw,loader:Fw},Aw=Mw,Ep="requirement",Ew=p(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),$w=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./requirementDiagram-Y7LWUY3S-Cpt1GlyO.js");return{diagram:t}},__vite__mapDeps([30,15,16,3,4,6]),import.meta.url);return{id:Ep,diagram:e}},"loader"),Ow={id:Ep,detector:Ew,loader:$w},Iw=Ow,$p="sequence",Dw=p(e=>/^\s*sequenceDiagram/.test(e),"detector"),Pw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./sequenceDiagram-5NDRBG5M-CbYA777-.js");return{diagram:t}},__vite__mapDeps([31,21,12,3,4,6]),import.meta.url);return{id:$p,diagram:e}},"loader"),Rw={id:$p,detector:Dw,loader:Pw},qw=Rw,Op="classDiagram",Ww=p(e=>/^\s*classDiagram/.test(e),"detector"),Nw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./classDiagram-v2-L25IHNXF-BLw99iUE.js");return{diagram:t}},__vite__mapDeps([32,14,15,16,12,3,4,6]),import.meta.url);return{id:Op,diagram:e}},"loader"),zw={id:Op,detector:Ww,loader:Nw},Hw=zw,Ip="stateDiagram",Yw=p(e=>/^\s*stateDiagram/.test(e),"detector"),jw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./stateDiagram-v2-FJ4FJNEA-FvAiEdvY.js");return{diagram:t}},__vite__mapDeps([33,15,16,12,3,4,6]),import.meta.url);return{id:Ip,diagram:e}},"loader"),Uw={id:Ip,detector:Yw,loader:jw},Gw=Uw,Dp="journey",Xw=p(e=>/^\s*journey/.test(e),"detector"),Vw=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./journeyDiagram-OPLOXDXO-Bd7hG7eI.js");return{diagram:t}},__vite__mapDeps([34,14,12,3,4,6]),import.meta.url);return{id:Dp,diagram:e}},"loader"),Zw={id:Dp,detector:Xw,loader:Vw},Kw=Zw,ns=4,bi=75,Qw=p(e=>{const t=[];for(const s of e.split(/\s+/)){let a=[...s];for(;a.length>bi;)t.push(a.slice(0,bi).join("")),a=a.slice(bi);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const s of t){const a=i?`${i} ${s}`:s;[...a].length>bi?(r.push(i),i=s):i=a}if(i&&r.push(i),r.length>ns){r.length=ns;const s=r[ns-1]??"";r[ns-1]=`${[...s].slice(0,bi-3).join("")}...`}return r},"wrapErrorMessage"),Jw=p((e,t,r,i)=>{var c,h;J.debug(`rendering svg for syntax error
|
|
302
|
+
`);const s=B2(t),a=s.append("g"),n=Qw(((h=i==null?void 0:(c=i.db).getErrorMessage)==null?void 0:h.call(c))??""),o=n.length>0?500+n.length*56:512;s.attr("viewBox",`0 0 2412 ${o}`),fc(s,100,o,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),n.forEach((l,u)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+u*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Pp={draw:Jw},tS=Pp,Xa,eS={clear(){Xa=void 0},setErrorMessage(e){Xa=e},getErrorMessage(){return Xa}},rS={db:eS,renderer:Pp,parser:{parse:p(()=>{},"parse")}},iS=rS,Rp="flowchart-elk",sS=p((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),aS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./flowDiagram-MALGAFMO-CuZ-qxXu.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,3,4]),import.meta.url);return{id:Rp,diagram:e}},"loader"),oS={id:Rp,detector:sS,loader:aS},nS=oS,qp="timeline",lS=p(e=>/^\s*timeline/.test(e),"detector"),hS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./timeline-definition-SEUHKTQE-ryDw6wbV.js");return{diagram:t}},__vite__mapDeps([35,3,4,6]),import.meta.url);return{id:qp,diagram:e}},"loader"),cS={id:qp,detector:lS,loader:hS},uS=cS,Wp="mindmap",dS=p(e=>/^\s*mindmap/.test(e),"detector"),gS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./mindmap-definition-I2QAS2VK--m4_NDPW.js");return{diagram:t}},__vite__mapDeps([36,15,16,3,4,6]),import.meta.url);return{id:Wp,diagram:e}},"loader"),pS={id:Wp,detector:dS,loader:gS},fS=pS,Np="kanban",mS=p(e=>/^\s*kanban/.test(e),"detector"),yS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./kanban-definition-BZKZHSQY-D1c3SCqg.js");return{diagram:t}},__vite__mapDeps([37,14,3,4,6]),import.meta.url);return{id:Np,diagram:e}},"loader"),CS={id:Np,detector:mS,loader:yS},xS=CS,zp="sankey",bS=p(e=>/^\s*sankey(-beta)?/.test(e),"detector"),kS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./sankeyDiagram-WGJFYUXA-_JyZCeTQ.js");return{diagram:t}},__vite__mapDeps([38,25,3,4,6]),import.meta.url);return{id:zp,diagram:e}},"loader"),wS={id:zp,detector:bS,loader:kS},SS=wS,Hp="packet",TS=p(e=>/^\s*packet(-beta)?/.test(e),"detector"),BS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-DNEMPZML-pVP1U_3t.js");return{diagram:t}},__vite__mapDeps([39,22,23,3,4,6]),import.meta.url);return{id:Hp,diagram:e}},"loader"),vS={id:Hp,detector:TS,loader:BS},Yp="radar",_S=p(e=>/^\s*radar-beta/.test(e),"detector"),LS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-L3MUGCDN-RJis0nI0.js");return{diagram:t}},__vite__mapDeps([40,22,23,3,4,6]),import.meta.url);return{id:Yp,diagram:e}},"loader"),FS={id:Yp,detector:_S,loader:LS},jp="block",MS=p(e=>/^\s*block(-beta)?/.test(e),"detector"),AS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./blockDiagram-APKKGZFW-BLpAnO86.js");return{diagram:t}},__vite__mapDeps([41,14,5,3,4,6]),import.meta.url);return{id:jp,diagram:e}},"loader"),ES={id:jp,detector:MS,loader:AS},$S=ES,Up="treeView",OS=p(e=>/^\s*treeView-beta/.test(e),"detector"),IS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-XPFHEONP-B-iDKzmS.js");return{diagram:t}},__vite__mapDeps([42,21,22,23,3,4,6]),import.meta.url);return{id:Up,diagram:e}},"loader"),DS={id:Up,detector:OS,loader:IS},PS=DS,Gp="architecture",RS=p(e=>/^\s*architecture/.test(e),"detector"),qS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./architectureDiagram-YGSQEFNW-DTbKZSgE.js");return{diagram:t}},__vite__mapDeps([43,22,23,3,4,10,6]),import.meta.url);return{id:Gp,diagram:e}},"loader"),WS={id:Gp,detector:RS,loader:qS},NS=WS,Xp="eventmodeling",zS=p(e=>/^\s*eventmodeling/.test(e),"detector"),HS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-MHCOC4E2-BluxAEc9.js");return{diagram:t}},__vite__mapDeps([44,22,23,3,4,6]),import.meta.url);return{id:Xp,diagram:e}},"loader"),YS={id:Xp,detector:zS,loader:HS},jS=YS,Vp="ishikawa",US=p(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),GS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./ishikawaDiagram-M35NCXHK-_Vm9QN3f.js");return{diagram:t}},__vite__mapDeps([45,3,4,6]),import.meta.url);return{id:Vp,diagram:e}},"loader"),XS={id:Vp,detector:US,loader:GS},Zp="venn",VS=p(e=>/^\s*venn-beta/.test(e),"detector"),ZS=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./vennDiagram-NNMJR3RB-BW4IZXpZ.js");return{diagram:t}},__vite__mapDeps([46,3,4,6]),import.meta.url);return{id:Zp,diagram:e}},"loader"),KS={id:Zp,detector:VS,loader:ZS},QS=KS,Kp="treemap",JS=p(e=>/^\s*treemap/.test(e),"detector"),tT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./diagram-LA4NIPWU-abNtUOgC.js");return{diagram:t}},__vite__mapDeps([47,16,22,23,3,4,25,6]),import.meta.url);return{id:Kp,diagram:e}},"loader"),eT={id:Kp,detector:JS,loader:tT},Qp="usecase",rT=p(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),iT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./usecaseDiagram-AFA6YXN4-DiwJEYD6.js");return{diagram:t}},__vite__mapDeps([48,15,16,3,4,6]),import.meta.url);return{id:Qp,diagram:e}},"loader"),sT={id:Qp,detector:rT,loader:iT},Jp="wardley",aT=p(e=>/^\s*wardley-beta/i.test(e),"detector"),oT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./wardleyDiagram-S7YFUSEH-B1ngysj0.js");return{diagram:t}},__vite__mapDeps([49,22,23,3,4,6]),import.meta.url);return{id:Jp,diagram:e}},"loader"),nT={id:Jp,detector:aT,loader:oT},lT=nT,tf="cynefin",hT=p(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),cT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./cynefinDiagram-L36ESFBY-a9Mz3IWv.js");return{diagram:t}},__vite__mapDeps([50,22,23,3,4,6]),import.meta.url);return{id:tf,diagram:e}},"loader"),uT={id:tf,detector:hT,loader:cT},ef="railroad",dT=p(e=>/^\s*railroad-beta/i.test(e),"detector"),gT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./railroadDiagram-MRQ6NCDL-D7jiW3__.js");return{diagram:t}},__vite__mapDeps([51,52,22,23,3,4,6]),import.meta.url);return{id:ef,diagram:e}},"loader"),pT={id:ef,detector:dT,loader:gT},rf="railroadEbnf",fT=p(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),mT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./ebnfDiagram-UZSYDL2S-DvrL6XM7.js");return{diagram:t}},__vite__mapDeps([53,52,22,23,3,4,6]),import.meta.url);return{id:rf,diagram:e}},"loader"),yT={id:rf,detector:fT,loader:mT},sf="railroadAbnf",CT=p(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),xT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./abnfDiagram-S7VZAUFO-PxAPu8yc.js");return{diagram:t}},__vite__mapDeps([54,52,22,23,3,4,6]),import.meta.url);return{id:sf,diagram:e}},"loader"),bT={id:sf,detector:CT,loader:xT},af="railroadPeg",kT=p(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),wT=p(async()=>{const{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./pegDiagram-FD4XPPHP-D5d8ScZG.js");return{diagram:t}},__vite__mapDeps([55,52,22,23,3,4,6]),import.meta.url);return{id:af,diagram:e}},"loader"),ST={id:af,detector:kT,loader:wT},Wh=!1,la=p(()=>{Wh||(Wh=!0,Bs("error",iS,e=>e.toLowerCase().trim()==="error"),Bs("---",{db:{clear:p(()=>{},"clear")},styles:{},renderer:{draw:p(()=>{},"draw")},parser:{parse:p(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:p(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Za(nS,fS,NS),Za(ew,G2,xS,Hw,hw,yw,bw,Sw,Iw,qw,aw,K2,uS,gw,Gw,Kw,_w,SS,vS,Aw,$S,jS,PS,FS,XS,eT,pT,yT,bT,ST,QS,lT,uT,sT))},"addDiagrams"),TT=p(async()=>{J.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(gr).map(async([r,{detector:i,loader:s}])=>{if(s)try{eo(r)}catch{try{const{diagram:a,id:n}=await s();Bs(n,a,i)}catch(a){throw J.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete gr[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){J.error(`Failed to load ${t.length} external diagrams`);for(const r of t)J.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),BT="graphics-document document";function of(e,t){e.attr("role",BT),t!==""&&e.attr("aria-roledescription",t)}p(of,"setA11yDiagramInfo");function nf(e,t,r,i){if(e.insert!==void 0){if(r){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}p(nf,"addSVGa11yTitleDescription");var dr,js=(dr=class{constructor(t,r,i,s,a){this.type=t,this.text=r,this.db=i,this.parser=s,this.renderer=a}static async fromText(t,r={}){var d,g,f;const i=typeof t=="string"?{cleaned:t}:t,s=Nt(),a=Vs(i.cleaned,s);try{eo(a)}catch{const y=Nf(a);if(!y)throw new rc(`Diagram ${a} not found.`);const{id:x,diagram:C}=await y();Bs(x,C)}const{db:n,parser:o,renderer:c,init:h}=eo(a);o.parser&&(o.parser.yy=n),(d=n.clear)==null||d.call(n),h==null||h(s),r.title&&((g=n.setDiagramTitle)==null||g.call(n,r.title));let l=i.cleaned;if(n.preserveCommentsWhenParsing&&i.withComments){const y=s.maxTextSize??Go.maxTextSize;i.withComments.length>y?J.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${y}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):l=i.withComments}const u=Ax(l)+`
|
|
303
303
|
`;return i.frontmatterLineOffset&&((f=n.setFrontmatterLineOffset)==null||f.call(n,i.frontmatterLineOffset)),await o.parse(u),new dr(a,u,n,o,c)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},p(dr,"Diagram"),dr),Nh=[],vT=p(()=>{Nh.forEach(e=>{e()}),Nh=[]},"attachFunctions"),_T=p(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function lf(e){const t=ec(e);if(!t)return{text:e,metadata:{}};const r=t.indent,i=r?t.body.split(`
|
|
304
304
|
`).map(n=>n.startsWith(r)?n.slice(r.length):n).join(`
|
|
305
305
|
`):t.body;let s=Bf(i,{schema:Tf})??{};s=typeof s=="object"&&!Array.isArray(s)?s:{};const a={};return s.displayMode&&(a.displayMode=s.displayMode.toString()),s.title&&(a.title=s.title.toString()),s.config&&(a.config=s.config),{text:e.slice(t.length),metadata:a}}p(lf,"extractFrontMatter");var LT=p(e=>e.replace(/\r\n?/g,`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ae}from"./chunk-XXDRQBXY-
|
|
1
|
+
import{g as ae}from"./chunk-XXDRQBXY-W6EPffTM.js";import{s as ce}from"./chunk-TU62E6Q5-C2EMV_EL.js";import{_ as l,l as w,p as le,r as he,N as de,Q as H,c as M,j,aa as ge,a5 as ue,a6 as pe,a7 as fe}from"./mermaid.core-DjyhFRJs.js";import"./index-nHoWKKiY.js";import"./_commonjsHelpers-CqkleIqs.js";var q=(function(){var n=l(function(T,s,i,o){for(i=i||{},o=T.length;o--;i[T[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],g=[1,20],f=[1,19],E=[6,7,8],L=[1,26],_=[1,24],x=[1,25],k=[6,7,11],A=[1,6,13,15,16,19,22],m=[1,33],$=[1,34],B=[1,6,7,11,13,15,16,19,22],W={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,p,r,P){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:g,22:f},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:g,22:f},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:g,22:f},{6:L,7:_,10:23,11:x},n(k,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:g,22:f}),n(k,[2,18]),n(k,[2,19]),n(k,[2,20]),n(k,[2,21]),n(k,[2,23]),n(k,[2,24]),n(k,[2,26],{19:[1,30]}),{20:[1,31]},{6:L,7:_,10:32,11:x},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:g,22:f},n(A,[2,14],{7:m,11:$}),n(B,[2,8]),n(B,[2,9]),n(B,[2,10]),n(k,[2,15]),n(k,[2,16]),n(k,[2,17]),{20:[1,35]},{21:[1,36]},n(A,[2,13],{7:m,11:$}),n(B,[2,11]),n(B,[2,12]),{21:[1,37]},n(k,[2,25]),n(k,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],p=[null],r=[],P=this.table,u="",V=0,J=0,ie=2,K=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),O={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(O.yy[z]=this.yy[z]);y.setInput(s,O.yy),O.yy.lexer=y,O.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var X=y.yylloc;r.push(X);var re=y.options&&y.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(S){o.length=o.length-2*S,p.length=p.length-S,r.length=r.length-S}l(oe,"popStack");function Z(){var S;return S=c.pop()||y.lex()||K,typeof S!="number"&&(S instanceof Array&&(c=S,S=c.pop()),S=i.symbols_[S]||S),S}l(Z,"lex");for(var b,C,N,Y,I={},F,D,ee,G;;){if(C=o[o.length-1],this.defaultActions[C]?N=this.defaultActions[C]:((b===null||typeof b>"u")&&(b=Z()),N=P[C]&&P[C][b]),typeof N>"u"||!N.length||!N[0]){var Q="";G=[];for(F in P[C])this.terminals_[F]&&F>ie&&G.push("'"+this.terminals_[F]+"'");y.showPosition?Q="Parse error on line "+(V+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+G.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Q="Parse error on line "+(V+1)+": Unexpected "+(b==K?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Q,{text:y.match,token:this.terminals_[b]||b,line:y.yylineno,loc:X,expected:G})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(N[0]){case 1:o.push(b),p.push(y.yytext),r.push(y.yylloc),o.push(N[1]),b=null,J=y.yyleng,u=y.yytext,V=y.yylineno,X=y.yylloc;break;case 2:if(D=this.productions_[N[1]][1],I.$=p[p.length-D],I._$={first_line:r[r.length-(D||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(D||1)].first_column,last_column:r[r.length-1].last_column},re&&(I._$.range=[r[r.length-(D||1)].range[0],r[r.length-1].range[1]]),Y=this.performAction.apply(I,[u,J,V,O.yy,N[1],p,r].concat(se)),typeof Y<"u")return Y;D&&(o=o.slice(0,-1*D*2),p=p.slice(0,-1*D),r=r.slice(0,-1*D)),o.push(this.productions_[N[1]][0]),p.push(I.$),r.push(I._$),ee=P[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var T={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,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:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=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),o.length-1&&(this.yylineno-=o.length-1);var p=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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./chunk-OY52VR5R-
|
|
1
|
+
import{g as l,r as m,d as a}from"./chunk-OY52VR5R-DhJv-npE.js";import{p}from"./chunk-JWPE2WC7-DViBoUd7.js";import{_ as t,l as o}from"./mermaid.core-DjyhFRJs.js";import{M as u,d as c}from"./cynefin-EF2NZ3EQ-BkJ9Ys0f.js";import"./index-nHoWKKiY.js";import"./_commonjsHelpers-CqkleIqs.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},L={parser:b,db:a,renderer:m,styles:l};export{L as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as et}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as et}from"./chunk-JWPE2WC7-DViBoUd7.js";import{g as at,s as rt,a as it,b as nt,t as st,q as ot,_ as l,l as E,c as lt,P as ct,S as dt,T as gt,U,d as ht,z as pt,V as ft,Q as ut}from"./mermaid.core-DjyhFRJs.js";import{p as mt}from"./cynefin-EF2NZ3EQ-BkJ9Ys0f.js";import{o as vt}from"./d3-scale-4DPf7zan.js";import"./index-nHoWKKiY.js";import"./_commonjsHelpers-CqkleIqs.js";var St=ut.pie,R={sections:new Map,showData:!1},T=R.sections,L=R.showData,xt=structuredClone(St),wt=l(()=>structuredClone(xt),"getConfig"),$t=l(()=>{T=new Map,L=R.showData,pt()},"clear"),Ct=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);T.has(t)||(T.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Dt=l(()=>T,"getSections"),yt=l(t=>{L=t},"setShowData"),Tt=l(()=>L,"getShowData"),V={getConfig:wt,clear:$t,setDiagramTitle:ot,getDiagramTitle:st,setAccTitle:nt,getAccTitle:it,setAccDescription:rt,getAccDescription:at,addSection:Ct,getSections:Dt,setShowData:yt,getShowData:Tt},bt=l((t,a)=>{et(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),At={parse:l(async t=>{const a=await mt("pie",t);E.debug(a),bt(a,V)},"parse")},_t=l(t=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${t.pieStrokeColor};
|
|
4
4
|
stroke-width : ${t.pieStrokeWidth};
|
package/web/assets/{quadrantDiagram-XTYBLID2-a0cZCRAm.js → quadrantDiagram-XTYBLID2-u5znlo3M.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as Ae,g as ke,t as ae,q as Fe,a as Pe,b as ve,_ as o,c as wt,l as At,k as zt,d as Ce,z as Le,Q as z,j as Ee,W as De}from"./mermaid.core-
|
|
1
|
+
import{s as Ae,g as ke,t as ae,q as Fe,a as Pe,b as ve,_ as o,c as wt,l as At,k as zt,d as Ce,z as Le,Q as z,j as Ee,W as De}from"./mermaid.core-DjyhFRJs.js";import{l as ie}from"./d3-scale-4DPf7zan.js";import"./index-nHoWKKiY.js";import"./_commonjsHelpers-CqkleIqs.js";var Vt=(function(){var t=o(function(j,r,l,g){for(l=l||{},g=j.length;g--;l[j[g]]=r);return l},"o"),n=[1,3],u=[1,4],c=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],d=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],x=[1,41],_=[1,45],Y=[1,14],G=[1,23],yt=[1,18],Tt=[1,19],dt=[1,20],Ft=[1,21],ut=[1,22],xt=[1,24],ft=[1,25],gt=[1,26],i=[1,27],Bt=[1,28],Rt=[1,29],Q=[1,32],U=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],H=[1,63],X=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Qt=[1,68],Ut=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,91],$=[1,92],tt=[1,93],et=[1,100],it=[1,94],at=[1,97],nt=[1,95],st=[1,96],rt=[1,98],ot=[1,99],Pt=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],vt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,g,f,A,e,pt){var s=e.length-1;switch(A){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],f.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:f.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:f.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:f.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:f.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:f.setXAxisLeftText(e[s-2]),f.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",f.setXAxisLeftText(e[s-1]);break;case 53:f.setXAxisLeftText(e[s]);break;case 54:f.setYAxisBottomText(e[s-2]),f.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",f.setYAxisBottomText(e[s-1]);break;case 56:f.setYAxisBottomText(e[s]);break;case 57:f.setQuadrant1Text(e[s]);break;case 58:f.setQuadrant2Text(e[s]);break;case 59:f.setQuadrant3Text(e[s]);break;case 60:f.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:u,55:c,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:u,55:c,56:h,57:p},{18:n,26:9,27:2,28:u,55:c,56:h,57:p},t(y,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:T,10:q,12:m,13:b,14:x,15:_,18:Y,25:G,35:yt,37:Tt,39:dt,41:Ft,42:ut,48:xt,50:ft,51:gt,52:i,53:Bt,54:Rt,60:Q,61:U,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:c,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:T,10:q,12:m,13:b,14:x,15:_,18:Y,25:G,35:yt,37:Tt,39:dt,41:Ft,42:ut,48:xt,50:ft,51:gt,52:i,53:Bt,54:Rt,60:Q,61:U,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:52,58:31,60:Q,61:U,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:53,58:31,60:Q,61:U,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:54,58:31,60:Q,61:U,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:55,58:31,60:Q,61:U,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:56,58:31,60:Q,61:U,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:57,58:31,60:Q,61:U,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Qt,7:Ut,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Qt,7:Ut,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:d,5:T,10:q,12:m,13:b,14:x,15:_,60:Q,61:U,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:d,5:T,10:q,12:m,13:b,14:x,15:_,60:Q,61:U,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:J,5:$,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:ot,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,102]},t(a,[2,29],{10:Pt}),t(Zt,[2,27],{16:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:Pt}),t(a,[2,48],{22:89,16:90,23:105,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:J,5:$,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:ot,22:106},t(N,[2,26]),t(a,[2,50],{10:Pt}),t(Zt,[2,28],{16:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=l,g}},"parseError"),parse:o(function(r){var l=this,g=[0],f=[],A=[null],e=[],pt=this.table,s="",mt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),K={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(K.yy[Ct]=this.yy[Ct]);D.setInput(r,K.yy),K.yy.lexer=D,K.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Lt=D.yylloc;e.push(Lt);var Se=D.options&&D.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){g.length=g.length-2*R,A.length=A.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=f.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(f=R,R=f.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,Z,W,Et,lt={},bt,M,ee,St;;){if(Z=g[g.length-1],this.defaultActions[Z]?W=this.defaultActions[Z]:((B===null||typeof B>"u")&&(B=te()),W=pt[Z]&&pt[Z][B]),typeof W>"u"||!W.length||!W[0]){var Dt="";St=[];for(bt in pt[Z])this.terminals_[bt]&&bt>me&&St.push("'"+this.terminals_[bt]+"'");D.showPosition?Dt="Parse error on line "+(mt+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+St.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Dt="Parse error on line "+(mt+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Dt,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Lt,expected:St})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+B);switch(W[0]){case 1:g.push(B),A.push(D.yytext),e.push(D.yylloc),g.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,mt=D.yylineno,Lt=D.yylloc;break;case 2:if(M=this.productions_[W[1]][1],lt.$=A[A.length-M],lt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Se&&(lt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),Et=this.performAction.apply(lt,[s,Jt,mt,K.yy,W[1],A,e].concat(be)),typeof Et<"u")return Et;M&&(g=g.slice(0,-1*M*2),A=A.slice(0,-1*M),e=e.slice(0,-1*M)),g.push(this.productions_[W[1]][0]),A.push(lt.$),e.push(lt._$),ee=pt[g[g.length-2]][g[g.length-1]],g.push(ee);break;case 3:return!0}}return!0},"parse")},qe=(function(){var j={EOF:1,parseError:o(function(l,g){if(this.yy.parser)this.yy.parser.parseError(l,g);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,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:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,g=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var f=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),g.length-1&&(this.yylineno-=g.length-1);var A=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:g?(g.length===f.length?this.yylloc.first_column:0)+f[f.length-g.length].length-g[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|