ryugi-artifacts 1.18.4 → 1.20.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/dist/cli.cjs +1 -1
- package/dist/server.cjs +122 -18
- package/dist/viewer/CloudDocument-fPJO17RB.js +1 -0
- package/dist/viewer/{CloudLiveDocument-DS85XF0L.js → CloudLiveDocument-cfa_fMZ_.js} +1 -1
- package/dist/viewer/{DocumentLayout-BmFhvhLU.js → DocumentLayout-D4LN2imT.js} +144 -144
- package/dist/viewer/DocumentPage-DU7AlIYi.js +1 -0
- package/dist/viewer/{abnfDiagram-VCTEODGH-CV9ilrv6.js → abnfDiagram-VCTEODGH-BwLfP_w2.js} +1 -1
- package/dist/viewer/{ar-SA-G6X2FPQ2-oZEeiz6u.js → ar-SA-G6X2FPQ2-BI0wJ8yR.js} +1 -1
- package/dist/viewer/{architectureDiagram-5GKGNRK7-B7gMzXkW.js → architectureDiagram-5GKGNRK7-CRQpQyO-.js} +1 -1
- package/dist/viewer/{az-AZ-76LH7QW2-yL1UB6w_.js → az-AZ-76LH7QW2-CxsCUo3P.js} +1 -1
- package/dist/viewer/{bg-BG-XCXSNQG7-BVuMowqe.js → bg-BG-XCXSNQG7-zmLNtpI8.js} +1 -1
- package/dist/viewer/{blockDiagram-I7D4REHJ-BvS7PEBE.js → blockDiagram-I7D4REHJ-BJJKBHFX.js} +1 -1
- package/dist/viewer/{bn-BD-2XOGV67Q-TK2Nt4AS.js → bn-BD-2XOGV67Q-D6zzfXu3.js} +1 -1
- package/dist/viewer/{c4Diagram-7LVT6UL2-DiPixCgw.js → c4Diagram-7LVT6UL2-CLivMEyH.js} +1 -1
- package/dist/viewer/{ca-ES-6MX7JW3Y-ssAQ_aeA.js → ca-ES-6MX7JW3Y-G1FH_576.js} +1 -1
- package/dist/viewer/{chunk-4HAMMTFA-Dx6b40xi.js → chunk-4HAMMTFA-Di0xdyz8.js} +1 -1
- package/dist/viewer/{chunk-EIO257PC-BtM_VLQE.js → chunk-EIO257PC-C_A0ItX_.js} +1 -1
- package/dist/viewer/{chunk-GMAD6QVW-COZQExf-.js → chunk-GMAD6QVW-Yd9B1P6N.js} +1 -1
- package/dist/viewer/{chunk-GVQU2GXP-BzZEH01V.js → chunk-GVQU2GXP-BlQ5Hc4C.js} +1 -1
- package/dist/viewer/{chunk-IMKFNOWR-DoSmXTi7.js → chunk-IMKFNOWR-sLl17KlZ.js} +1 -1
- package/dist/viewer/{chunk-L3NEJ4N5-BoNKpHsG.js → chunk-L3NEJ4N5-ByzPblyy.js} +1 -1
- package/dist/viewer/{chunk-OSK3NFVY-fma5qDgd.js → chunk-OSK3NFVY-B8lsSjgE.js} +1 -1
- package/dist/viewer/{chunk-PWAF6VOD-B-FOPc-q.js → chunk-PWAF6VOD-Dt03PokQ.js} +1 -1
- package/dist/viewer/{chunk-SHT3W25Y-Bo8j1N02.js → chunk-SHT3W25Y-D8tOADu9.js} +1 -1
- package/dist/viewer/{chunk-SVP7TREG-B62eBjLz.js → chunk-SVP7TREG-BCCTaJFp.js} +1 -1
- package/dist/viewer/{chunk-TICWLB2K-p6Tzdi_n.js → chunk-TICWLB2K-CKvZ1F5E.js} +1 -1
- package/dist/viewer/{classDiagram-ZZMXUADV-yDzvlm9G.js → classDiagram-ZZMXUADV-BPsoNR3A.js} +1 -1
- package/dist/viewer/{classDiagram-v2-VYDZK3BY-yDzvlm9G.js → classDiagram-v2-VYDZK3BY-BPsoNR3A.js} +1 -1
- package/dist/viewer/{cs-CZ-2BRQDIVT-CJRjmWM6.js → cs-CZ-2BRQDIVT-KdoHU-Qi.js} +1 -1
- package/dist/viewer/{cynefinDiagram-5FMLGOSQ-B5NowWLs.js → cynefinDiagram-5FMLGOSQ-CPAZlTbz.js} +1 -1
- package/dist/viewer/{da-DK-5WZEPLOC-D-dHqXdP.js → da-DK-5WZEPLOC-D_MTuSXJ.js} +1 -1
- package/dist/viewer/{dagre-GXQ25YYZ-CnMtZyQJ.js → dagre-GXQ25YYZ-CGJi5tfA.js} +1 -1
- package/dist/viewer/{de-DE-XR44H4JA-C-TB_N6V.js → de-DE-XR44H4JA-BLOov6di.js} +1 -1
- package/dist/viewer/{diagram-S7CK7UJ4-BUqW7fG2.js → diagram-S7CK7UJ4-v4jY9cY2.js} +1 -1
- package/dist/viewer/{diagram-UQ7AKVKN-8txdjYKW.js → diagram-UQ7AKVKN-CHWKBoDd.js} +1 -1
- package/dist/viewer/{diagram-VX7I27RA-VRK1Xx-r.js → diagram-VX7I27RA-BVUIPSa6.js} +1 -1
- package/dist/viewer/{diagram-Z3DM3KII-CFTEE6hm.js → diagram-Z3DM3KII-C4Y7zZHg.js} +1 -1
- package/dist/viewer/{dist-GYlII7AN.js → dist-1IcdPIYN.js} +2 -2
- package/dist/viewer/dist-B2FPj3Qt.js +9 -0
- package/dist/viewer/{dist-4VxRqYLb.js → dist-B3RoMAF6.js} +1 -1
- package/dist/viewer/{dist-SaSQiH_S.js → dist-BQs1NNpk.js} +1 -1
- package/dist/viewer/{dist-BBOT2Dod.js → dist-BVTHDHV6.js} +1 -1
- package/dist/viewer/{dist-U9k2HrGK.js → dist-Bc8tMTe5.js} +1 -1
- package/dist/viewer/dist-Bqez8J_a.js +1 -0
- package/dist/viewer/dist-C4Lc0ZFP.js +1 -0
- package/dist/viewer/{dist-CmRhIDCA.js → dist-CCwaS8Bu.js} +1 -1
- package/dist/viewer/{dist-CFAaHddG.js → dist-CRx0ZMXK.js} +1 -1
- package/dist/viewer/{dist-B7cBbeKI.js → dist-CeYG0ueU.js} +1 -1
- package/dist/viewer/{dist-DI46xOxZ.js → dist-Ct-E_S8r.js} +1 -1
- package/dist/viewer/{dist-6lhXFIAO.js → dist-D8bI9sBL.js} +1 -1
- package/dist/viewer/{dist-DhFC_v-5.js → dist-DFGQshKp.js} +4 -4
- package/dist/viewer/{dist-Du5bWJ2g.js → dist-DXnqzoeB.js} +1 -1
- package/dist/viewer/{dist-D_UP42BZ.js → dist-DYMwViBu.js} +1 -1
- package/dist/viewer/dist-DpVonJ_O.js +1 -0
- package/dist/viewer/{dist-CydgyGeV.js → dist-DsDINnzX.js} +1 -1
- package/dist/viewer/{dist-BCqz-HqX.js → dist-JfoSPkrU.js} +1 -1
- package/dist/viewer/{dist-CH0akeCq.js → dist-KZC5UOjy.js} +9 -9
- package/dist/viewer/dist-TLcUQst5.js +6 -0
- package/dist/viewer/{dist-DbkbyA0U.js → dist-WN2tr_mQ.js} +1 -1
- package/dist/viewer/{dist-BPVVld5s.js → dist-_d7trXgy.js} +1 -1
- package/dist/viewer/{dist-CPVcHWlQ.js → dist-xVN1cHRs.js} +2 -2
- package/dist/viewer/{ebnfDiagram-PWID7BFC-B2uFP8zT.js → ebnfDiagram-PWID7BFC-BfH0Kwma.js} +1 -1
- package/dist/viewer/{el-GR-BZB4AONW-Cin0hSuv.js → el-GR-BZB4AONW-DytlrCPc.js} +1 -1
- package/dist/viewer/{en-B4ZKOASM-r25weJ3i.js → en-B4ZKOASM-CxMHMjTS.js} +1 -1
- package/dist/viewer/{erDiagram-RLTQ6QDP-C_wdcD3l.js → erDiagram-RLTQ6QDP-DiANaX5a.js} +1 -1
- package/dist/viewer/{es-ES-U4NZUMDT-BTfNIW-f.js → es-ES-U4NZUMDT-CWOlOrxS.js} +1 -1
- package/dist/viewer/{eu-ES-A7QVB2H4-CwpkrMfM.js → eu-ES-A7QVB2H4-7rIki6yl.js} +1 -1
- package/dist/viewer/{fa-IR-HGAKTJCU-xR6FbJG0.js → fa-IR-HGAKTJCU-XuLQk-Tn.js} +1 -1
- package/dist/viewer/{fi-FI-Z5N7JZ37-aFZzomat.js → fi-FI-Z5N7JZ37-BVT2imWO.js} +1 -1
- package/dist/viewer/flowDiagram-HODETNUW-CCTrPmhX.js +1 -0
- package/dist/viewer/{fr-FR-RHASNOE6-CudNlR7s.js → fr-FR-RHASNOE6-BDrE0Sar.js} +1 -1
- package/dist/viewer/ganttDiagram-EL5Y4UJY-C0kMmivD.js +292 -0
- package/dist/viewer/{gl-ES-HMX3MZ6V-gVz21kpP.js → gl-ES-HMX3MZ6V-BGePYNwa.js} +1 -1
- package/dist/viewer/{he-IL-6SHJWFNN-BJKBOspV.js → he-IL-6SHJWFNN-C_h7ANwh.js} +1 -1
- package/dist/viewer/{hi-IN-IWLTKZ5I-CbzuQ896.js → hi-IN-IWLTKZ5I-DO6JQv11.js} +1 -1
- package/dist/viewer/{hu-HU-A5ZG7DT2-B_jSyb1P.js → hu-HU-A5ZG7DT2-CYW6-QvY.js} +1 -1
- package/dist/viewer/{id-ID-SAP4L64H-DG5B5Nbw.js → id-ID-SAP4L64H-lnrwwUQv.js} +1 -1
- package/dist/viewer/{image-GAAHSSAO-Daq9X6yp.js → image-GAAHSSAO-DPKo0Z9B.js} +1 -1
- package/dist/viewer/index.html +1 -1
- package/dist/viewer/index.js +6 -6
- package/dist/viewer/index2.css +141 -50
- package/dist/viewer/{infoDiagram-27XIBGKW-BEcf3Mgz.js → infoDiagram-27XIBGKW-BrpKtrz1.js} +1 -1
- package/dist/viewer/{ishikawaDiagram-5VMMS53U-BaiLcmxa.js → ishikawaDiagram-5VMMS53U-Bzzm1Qn9.js} +1 -1
- package/dist/viewer/{it-IT-JPQ66NNP-Be6ERDzQ.js → it-IT-JPQ66NNP-Bmrd9W_k.js} +1 -1
- package/dist/viewer/{ja-JP-DBVTYXUO-rzX72p52.js → ja-JP-DBVTYXUO-BzIPu9Sq.js} +1 -1
- package/dist/viewer/{journeyDiagram-3NMN7TZE-CF0kgq6e.js → journeyDiagram-3NMN7TZE-BnypDAuH.js} +1 -1
- package/dist/viewer/{kaa-6HZHGXH3-xkB9EtaK.js → kaa-6HZHGXH3-DKokUJUv.js} +1 -1
- package/dist/viewer/{kab-KAB-ZGHBKWFO-A9TW4l6B.js → kab-KAB-ZGHBKWFO-DPboBUhX.js} +1 -1
- package/dist/viewer/{kanban-definition-UXKFOSKX-B1yViTEB.js → kanban-definition-UXKFOSKX-xl1KXBhm.js} +1 -1
- package/dist/viewer/{kk-KZ-P5N5QNE5-D-_fY8Gw.js → kk-KZ-P5N5QNE5-CW1AnK2i.js} +1 -1
- package/dist/viewer/{km-KH-HSX4SM5Z-BcY5m6VJ.js → km-KH-HSX4SM5Z-Cy-Jz187.js} +1 -1
- package/dist/viewer/{ko-KR-MTYHY66A-et49DOjn.js → ko-KR-MTYHY66A-ENrzcom-.js} +1 -1
- package/dist/viewer/{ku-TR-6OUDTVRD-CctJtizJ.js → ku-TR-6OUDTVRD-ujaIeZ6d.js} +1 -1
- package/dist/viewer/{lt-LT-XHIRWOB4-CKIcj0xZ.js → lt-LT-XHIRWOB4-DCHudAUH.js} +1 -1
- package/dist/viewer/{lv-LV-5QDEKY6T-eD_nIZ1C.js → lv-LV-5QDEKY6T-CkczV-YS.js} +1 -1
- package/dist/viewer/{mindmap-definition-YA3MSWOX-eSx4puWQ.js → mindmap-definition-YA3MSWOX-Cmaw8zST.js} +1 -1
- package/dist/viewer/{mr-IN-CRQNXWMA-DZE-1OVW.js → mr-IN-CRQNXWMA-CAULhacb.js} +1 -1
- package/dist/viewer/{my-MM-5M5IBNSE-C4RtxqYT.js → my-MM-5M5IBNSE-CIK3iNzd.js} +1 -1
- package/dist/viewer/{nb-NO-T6EIAALU-BR4xmg8K.js → nb-NO-T6EIAALU-awDYmeD3.js} +1 -1
- package/dist/viewer/{nl-NL-IS3SIHDZ-CC_ODK0w.js → nl-NL-IS3SIHDZ-DnN7YgqH.js} +1 -1
- package/dist/viewer/{nn-NO-6E72VCQL-B1B5ggd_.js → nn-NO-6E72VCQL-CirX0qpy.js} +1 -1
- package/dist/viewer/{oc-FR-POXYY2M6-C4ylGoRV.js → oc-FR-POXYY2M6-BmRoBPJJ.js} +1 -1
- package/dist/viewer/{pa-IN-N4M65BXN-CeGYxP4x.js → pa-IN-N4M65BXN-C3t1i1uP.js} +1 -1
- package/dist/viewer/{pegDiagram-XKGWAZYB-Dh89osCP.js → pegDiagram-XKGWAZYB-CRs_uYT9.js} +1 -1
- package/dist/viewer/percentages-BXMCSKIN-BgW3KG9t.js +1 -0
- package/dist/viewer/{pieDiagram-E7YTZNPT-DLjCSZj7.js → pieDiagram-E7YTZNPT-CX1dwbeD.js} +3 -3
- package/dist/viewer/{pl-PL-T2D74RX3-DG-CBlvr.js → pl-PL-T2D74RX3-LcmmmlyH.js} +1 -1
- package/dist/viewer/{prod-BkhfMLuD.js → prod-B8PlumMX.js} +9 -9
- package/dist/viewer/{pt-BR-5N22H2LF-DHX82eiC.js → pt-BR-5N22H2LF-CSwh6Qow.js} +1 -1
- package/dist/viewer/{pt-PT-UZXXM6DQ-C7hcCDRC.js → pt-PT-UZXXM6DQ-Dik_tH8d.js} +1 -1
- package/dist/viewer/{quadrantDiagram-AXDQQJYC-C8ex_GP4.js → quadrantDiagram-AXDQQJYC-DAlIHzj1.js} +1 -1
- package/dist/viewer/{railroadDiagram-O6MQD6OU-1tVqy-R1.js → railroadDiagram-O6MQD6OU-3sbXCT8O.js} +1 -1
- package/dist/viewer/{requirementDiagram-BXWQKSXE-MJWMqh0i.js → requirementDiagram-BXWQKSXE-_SmB-iGu.js} +1 -1
- package/dist/viewer/{ro-RO-JPDTUUEW-kNmvlxGQ.js → ro-RO-JPDTUUEW-5pEQNah0.js} +1 -1
- package/dist/viewer/{ru-RU-B4JR7IUQ-DIPjZ7JJ.js → ru-RU-B4JR7IUQ-D_Kg9Hzp.js} +1 -1
- package/dist/viewer/{sequenceDiagram-WJ2MYXX4-BmytocXO.js → sequenceDiagram-WJ2MYXX4-CNxS0HZg.js} +1 -1
- package/dist/viewer/{si-LK-N5RQ5JYF-CklMTI2L.js → si-LK-N5RQ5JYF-Bp_qk_kO.js} +1 -1
- package/dist/viewer/{sk-SK-C5VTKIMK-TIEeBTSD.js → sk-SK-C5VTKIMK-dZmproWt.js} +1 -1
- package/dist/viewer/{sl-SI-NN7IZMDC-BzfdTTSQ.js → sl-SI-NN7IZMDC-DCPnVelb.js} +1 -1
- package/dist/viewer/{stateDiagram-D77RDMKH-ASSh2jQr.js → stateDiagram-D77RDMKH-DLlcIj9E.js} +1 -1
- package/dist/viewer/{stateDiagram-v2-MP3YSRHH-QqO49gLr.js → stateDiagram-v2-MP3YSRHH-BQGIuopX.js} +1 -1
- package/dist/viewer/subset-shared.chunk-CvpSwkWA.js +1 -0
- package/dist/viewer/{subset-worker.chunk-ByFgYWrP.js → subset-worker.chunk-KysBifhs.js} +1 -1
- package/dist/viewer/{sv-SE-XGPEYMSR-Ca92kj7e.js → sv-SE-XGPEYMSR-DQC8YOoA.js} +1 -1
- package/dist/viewer/{swimlanes-42K2YHIH-B6PLFQO7.js → swimlanes-42K2YHIH-pPhC0efI.js} +1 -1
- package/dist/viewer/{swimlanesDiagram-VR7AAH4N-N8AFiqh9.js → swimlanesDiagram-VR7AAH4N-BknwjiJI.js} +1 -1
- package/dist/viewer/{ta-IN-2NMHFXQM-VcTgcAra.js → ta-IN-2NMHFXQM-XJN8sySm.js} +1 -1
- package/dist/viewer/{th-TH-HPSO5L25-CQK6U6zN.js → th-TH-HPSO5L25-CrVxkBUt.js} +1 -1
- package/dist/viewer/{timeline-definition-24CTP7MA-bdnxX84c.js → timeline-definition-24CTP7MA-djWWXfng.js} +1 -1
- package/dist/viewer/{tr-TR-DEFEU3FU-BK4O5HPq.js → tr-TR-DEFEU3FU-CL6S5zlq.js} +1 -1
- package/dist/viewer/{uk-UA-QMV73CPH-Dgto1rbO.js → uk-UA-QMV73CPH-CMrgmof-.js} +1 -1
- package/dist/viewer/{useSandboxFrame-3fuBOs0A.js → useSandboxFrame-Cx7xofoM.js} +1 -1
- package/dist/viewer/{vennDiagram-4TSXK5OY-DPdqusDE.js → vennDiagram-4TSXK5OY-DnkQnhE7.js} +1 -1
- package/dist/viewer/{vi-VN-M7AON7JQ-dbrYvw7t.js → vi-VN-M7AON7JQ-DcU7HmKI.js} +1 -1
- package/dist/viewer/{wardleyDiagram-VM6X3IG4-B4FxaO_K.js → wardleyDiagram-VM6X3IG4-BiN7N4S8.js} +1 -1
- package/dist/viewer/{xychartDiagram-S5SC5T6Z-B-xgw6AE.js → xychartDiagram-S5SC5T6Z-DR4L47nZ.js} +1 -1
- package/dist/viewer/{zh-CN-LNUGB5OW-B9JwAL-C.js → zh-CN-LNUGB5OW-B58c_p8w.js} +1 -1
- package/dist/viewer/{zh-HK-E62DVLB3-yrlUVHxC.js → zh-HK-E62DVLB3-D-pcM14T.js} +1 -1
- package/dist/viewer/{zh-TW-RAJ6MFWO-6sxLjcXU.js → zh-TW-RAJ6MFWO-Dcb5-RNU.js} +1 -1
- package/package.json +1 -1
- package/dist/viewer/CloudDocument-CotgQhd8.js +0 -1
- package/dist/viewer/DocumentPage-0GGJlY-j.js +0 -1
- package/dist/viewer/dist-C10VRgAd.js +0 -1
- package/dist/viewer/dist-CL7kKeXL.js +0 -1
- package/dist/viewer/dist-DAw97NG5.js +0 -1
- package/dist/viewer/dist-DGBiXrP7.js +0 -9
- package/dist/viewer/dist-DTI9Lw8b.js +0 -6
- package/dist/viewer/flowDiagram-HODETNUW-DuNy2QCx.js +0 -1
- package/dist/viewer/ganttDiagram-EL5Y4UJY-CmFhbbr4.js +0 -292
- package/dist/viewer/percentages-BXMCSKIN-BlwZCNS5.js +0 -1
- package/dist/viewer/subset-shared.chunk-CThXukp8.js +0 -1
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{At as e,Ct as t,Et as n,Gt as r,It as i,Kt as a,Lt as o,Mt as s,Nt as c,Pt as l,Rt as u,St as d,Ut as f,Vt as p,Yt as m,an as h,bt as ee,cn as te,in as g,jt as ne,ln as _,on as v,tn as y,un as re,xt as ie,zt as b}from"./DocumentLayout-BmFhvhLU.js";import{t as ae}from"./dist-BPVVld5s.js";import{html as oe,htmlCompletionSource as se}from"./dist-CL7kKeXL.js";var ce=class e{static create(t,n,r,i,a){let o=i+(i<<8)+t+(n<<4)|0;return new e(t,n,r,o,a,[],[])}constructor(e,t,n,r,i,a,o){this.type=e,this.value=t,this.from=n,this.hash=r,this.end=i,this.children=a,this.positions=o,this.hashProp=[[g.contextHash,r]]}addChild(e,t){e.prop(g.contextHash)!=this.hash&&(e=new _(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new _(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new _(v.none,e,t,n,this.hashProp)})}},x;(function(e){e[e.Document=1]=`Document`,e[e.CodeBlock=2]=`CodeBlock`,e[e.FencedCode=3]=`FencedCode`,e[e.Blockquote=4]=`Blockquote`,e[e.HorizontalRule=5]=`HorizontalRule`,e[e.BulletList=6]=`BulletList`,e[e.OrderedList=7]=`OrderedList`,e[e.ListItem=8]=`ListItem`,e[e.ATXHeading1=9]=`ATXHeading1`,e[e.ATXHeading2=10]=`ATXHeading2`,e[e.ATXHeading3=11]=`ATXHeading3`,e[e.ATXHeading4=12]=`ATXHeading4`,e[e.ATXHeading5=13]=`ATXHeading5`,e[e.ATXHeading6=14]=`ATXHeading6`,e[e.SetextHeading1=15]=`SetextHeading1`,e[e.SetextHeading2=16]=`SetextHeading2`,e[e.HTMLBlock=17]=`HTMLBlock`,e[e.LinkReference=18]=`LinkReference`,e[e.Paragraph=19]=`Paragraph`,e[e.CommentBlock=20]=`CommentBlock`,e[e.ProcessingInstructionBlock=21]=`ProcessingInstructionBlock`,e[e.Escape=22]=`Escape`,e[e.Entity=23]=`Entity`,e[e.HardBreak=24]=`HardBreak`,e[e.Emphasis=25]=`Emphasis`,e[e.StrongEmphasis=26]=`StrongEmphasis`,e[e.Link=27]=`Link`,e[e.Image=28]=`Image`,e[e.InlineCode=29]=`InlineCode`,e[e.HTMLTag=30]=`HTMLTag`,e[e.Comment=31]=`Comment`,e[e.ProcessingInstruction=32]=`ProcessingInstruction`,e[e.Autolink=33]=`Autolink`,e[e.HeaderMark=34]=`HeaderMark`,e[e.QuoteMark=35]=`QuoteMark`,e[e.ListMark=36]=`ListMark`,e[e.LinkMark=37]=`LinkMark`,e[e.EmphasisMark=38]=`EmphasisMark`,e[e.CodeMark=39]=`CodeMark`,e[e.CodeText=40]=`CodeText`,e[e.CodeInfo=41]=`CodeInfo`,e[e.LinkTitle=42]=`LinkTitle`,e[e.LinkLabel=43]=`LinkLabel`,e[e.URL=44]=`URL`})(x||={});var le=class{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}},ue=class{constructor(){this.text=``,this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return C(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=this.text.charCodeAt(t)==9?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e=``;for(let t=0;t<this.basePos;t++)e+=` `;return e+this.text.slice(this.basePos)}};function de(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==x.OrderedList?E:T)(n,t,!1);return r>0&&(e.type!=x.BulletList||w(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}var fe={[x.Blockquote](e,t,n){return n.next==62&&(n.markers.push(L(x.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(S(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[x.ListItem](e,t,n){return n.indent<n.baseIndent+e.value&&n.next>-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[x.OrderedList]:de,[x.BulletList]:de,[x.Document](){return!0}};function S(e){return e==32||e==9||e==10||e==13}function C(e,t=0){for(;t<e.length&&S(e.charCodeAt(t));)t++;return t}function pe(e,t,n){for(;t>n&&S(e.charCodeAt(t-1));)t--;return t}function me(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(e.next==96){for(let n=t;n<e.text.length;n++)if(e.text.charCodeAt(n)==96)return-1}return t}function he(e){return e.next==62?e.text.charCodeAt(e.pos+1)==32?2:1:-1}function w(e,t,n){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let r=1;for(let t=e.pos+1;t<e.text.length;t++){let n=e.text.charCodeAt(t);if(n==e.next)r++;else if(!S(n))return-1}return n&&e.next==45&&ve(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(Te.SetextHeading)>-1||r<3?-1:1}function ge(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function T(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||S(e.text.charCodeAt(e.pos+1)))&&(!n||ge(t,x.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function E(e,t,n){let r=e.pos,i=e.next;for(;i>=48&&i<=57;){if(r++,r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||r<e.text.length-1&&!S(e.text.charCodeAt(r+1))||n&&!ge(t,x.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||e.next!=49)?-1:r+1-e.pos}function _e(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==35;)t++;if(t<e.text.length&&e.text.charCodeAt(t)!=32)return-1;let n=t-e.pos;return n>6?-1:n}function ve(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let n=t;for(;t<e.text.length&&S(e.text.charCodeAt(t));)t++;return t==e.text.length?n:-1}var D=/^[ \t]*$/,ye=/-->/,be=/\?>/,O=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,ye],[/^\s*<\?/,be],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,D],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,D]];function xe(e,t,n){if(e.next!=60)return-1;let r=e.text.slice(e.pos);for(let e=0,t=O.length-+!!n;e<t;e++)if(O[e][0].test(r))return e;return-1}function Se(e,t){let n=e.countIndent(t,e.pos,e.indent),r=e.skipSpace(t),i=e.countIndent(r,t,n);return i>=n+5||r==e.text.length?n+1:i}function k(e,t,n){let r=e.length-1;r>=0&&e[r].to==t&&e[r].type==x.CodeText?e[r].to=n:e.push(L(x.CodeText,t,n))}var A={LinkReference:void 0,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return!1;let r=t.findColumn(n),i=e.lineStart+r,a=e.lineStart+t.text.length,o=[],s=[];for(k(o,i,a);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){k(s,e.lineStart-1,e.lineStart);for(let e of t.markers)s.push(e)}else if(t.indent<n)break;else{if(s.length){for(let e of s)e.type==x.CodeText?k(o,e.from,e.to):o.push(e);s=[]}k(o,e.lineStart-1,e.lineStart);for(let e of t.markers)o.push(e);a=e.lineStart+t.text.length;let n=e.lineStart+t.findColumn(t.baseIndent+4);n<a&&k(o,n,a)}return s.length&&(s=s.filter(e=>e.type!=x.CodeText),s.length&&(t.markers=s.concat(t.markers))),e.addNode(e.buffer.writeElements(o,-i).finish(x.CodeBlock,a-i),i),!0},FencedCode(e,t){let n=me(t);if(n<0)return!1;let r=e.lineStart+t.pos,i=t.next,a=n-t.pos,o=t.skipSpace(n),s=pe(t.text,t.text.length,o),c=[L(x.CodeMark,r,r+a)];o<s&&c.push(L(x.CodeInfo,e.lineStart+o,e.lineStart+s));for(let n=!0,r=!0,o=!1;e.nextLine()&&t.depth>=e.stack.length;n=!1){let s=t.pos;if(t.indent-t.baseIndent<4)for(;s<t.text.length&&t.text.charCodeAt(s)==i;)s++;if(s-t.pos>=a&&t.skipSpace(s)==t.text.length){for(let e of t.markers)c.push(e);r&&o&&k(c,e.lineStart-1,e.lineStart),c.push(L(x.CodeMark,e.lineStart+t.pos,e.lineStart+s)),e.nextLine();break}{o=!0,n||(k(c,e.lineStart-1,e.lineStart),r=!1);for(let e of t.markers)c.push(e);let i=e.lineStart+t.basePos,a=e.lineStart+t.text.length;i<a&&(k(c,i,a),r=!1)}}return e.addNode(e.buffer.writeElements(c,-r).finish(x.FencedCode,e.prevLineEnd()-r),r),!0},Blockquote(e,t){let n=he(t);return n<0?!1:(e.startContext(x.Blockquote,t.pos),e.addNode(x.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+n),null)},HorizontalRule(e,t){if(w(t,e,!1)<0)return!1;let n=e.lineStart+t.pos;return e.nextLine(),e.addNode(x.HorizontalRule,n),!0},BulletList(e,t){let n=T(t,e,!1);if(n<0)return!1;e.block.type!=x.BulletList&&e.startContext(x.BulletList,t.basePos,t.next);let r=Se(t,t.pos+1);return e.startContext(x.ListItem,t.basePos,r-t.baseIndent),e.addNode(x.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},OrderedList(e,t){let n=E(t,e,!1);if(n<0)return!1;e.block.type!=x.OrderedList&&e.startContext(x.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let r=Se(t,t.pos+n);return e.startContext(x.ListItem,t.basePos,r-t.baseIndent),e.addNode(x.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},ATXHeading(e,t){let n=_e(t);if(n<0)return!1;let r=t.pos,i=e.lineStart+r,a=pe(t.text,t.text.length,r),o=a;for(;o>r&&t.text.charCodeAt(o-1)==t.next;)o--;(o==a||o==r||!S(t.text.charCodeAt(o-1)))&&(o=t.text.length);let s=e.buffer.write(x.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(r+n+1,o),i+n+1),-i);o<t.text.length&&s.write(x.HeaderMark,o-r,a-r);let c=s.finish(x.ATXHeading1-1+n,t.text.length-r);return e.nextLine(),e.addNode(c,i),!0},HTMLBlock(e,t){let n=xe(t,e,!1);if(n<0)return!1;let r=e.lineStart+t.pos,i=O[n][1],a=[],o=i!=D;for(;!i.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){o=!1;break}for(let e of t.markers)a.push(e)}o&&e.nextLine();let s=i==ye?x.CommentBlock:i==be?x.ProcessingInstructionBlock:x.HTMLBlock,c=e.prevLineEnd();return e.addNode(e.buffer.writeElements(a,-r).finish(s,c-r),r),!0},SetextHeading:void 0},Ce=class{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(this.stage==-1)return!1;let r=n.content+`
|
|
2
|
-
`+t.scrub(),i=this.advance(r);return i>-1&&i<r.length&&this.complete(e,n,i)}finish(e,t){return(this.stage==2||this.stage==3)&&C(t.content,this.pos)==t.content.length&&this.complete(e,t,t.content.length)}complete(e,t,n){return e.addLeafElement(t,L(x.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;)if(this.stage==-1)return-1;else if(this.stage==0){if(!this.nextStage(Re(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(L(x.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(Ie(e,C(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=C(e,this.pos),n=0;if(t>this.pos){let r=Le(e,t,this.start);if(r){let t=j(e,r.to-this.start);t>0&&(this.nextStage(r),n=t)}}return n||=j(e,this.pos),n>0&&n<e.length?n:-1}else return j(e,this.pos)}};function j(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n==10)break;if(!S(n))return-1}return t}var we=class{nextLine(e,t,n){let r=t.depth<e.stack.length?-1:ve(t),i=t.next;if(r<0)return!1;let a=L(x.HeaderMark,e.lineStart+t.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,L(i==61?x.SetextHeading1:x.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),a])),!0}finish(){return!1}},Te={LinkReference(e,t){return t.content.charCodeAt(0)==91?new Ce(t):null},SetextHeading(){return new we}},Ee=[(e,t)=>_e(t)>=0,(e,t)=>me(t)>=0,(e,t)=>he(t)>=0,(e,t)=>T(t,e,!0)>=0,(e,t)=>E(t,e,!0)>=0,(e,t)=>w(t,e,!0)>=0,(e,t)=>xe(t,e,!0)>=0],De={text:``,end:0},Oe=class{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.line=new ue,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=ce.create(x.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new Be(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let t=0;;){let n=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;t<e.markers.length&&(!n||e.markers[t].from<n.end);){let n=e.markers[t++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;start:for(;;){for(let t of this.parser.blockParsers)if(t){let n=t(this,e);if(n!=0){if(n==1)return null;e.forward();continue start}}break}if(e.pos==e.text.length)return this.nextLine()?null:this.finish();let t=new le(this.lineStart+e.pos,e.text.slice(e.pos));for(let e of this.parser.leafBlockParsers)if(e){let n=e(this,t);n&&t.parsers.push(n)}lines:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,t))break lines}for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+=`
|
|
3
|
-
`+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=Ve(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=De;if(t.end=e,e>=this.to)t.text=``;else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<t.end;){n++;let r=this.ranges[n].from,i=this.lineChunkAt(r);t.end=r+i.length,t.text=t.text.slice(0,this.ranges[n-1].to-e)+i,e=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw Error(`Unhandled block context `+x[t.type]);let r=this.line.markers.length;if(!n(t,this,e)){this.line.markers.length>r&&(t.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),n;if(this.input.lineChunks)n=t==`
|
|
4
|
-
`?``:t;else{let e=t.indexOf(`
|
|
5
|
-
`);n=e<0?t:t.slice(0,e)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=ce.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){typeof e==`number`&&(e=new _(this.parser.nodeSet.types[e],F,F,(n??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(K(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?ke(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let t of e.parsers)if(t.finish(this,e))return;let t=K(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(x.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return typeof e==`string`?L(this.parser.getNodeType(e),t,n,r):new Ne(e,t)}get buffer(){return new Me(this.parser.nodeSet)}};function ke(e,t,n,r,i){let a=e[t].to,o=[],s=[],c=n.from+r;function l(n,i){for(;i?n>=a:n>a;){let i=e[t+1].from-a;r+=i,n+=i,t++,a=e[t].to}}for(let u=n.firstChild;u;u=u.nextSibling){l(u.from+r,!0);let n=u.from+r,d,f=i.get(u.tree);f?d=f:u.to+r>a?(d=ke(e,t,u,r,i),l(u.to+r,!1)):d=u.toTree(),o.push(d),s.push(n-c)}return l(n.to+r,!1),new _(n.type,o,s,n.to+r-c,n.tree?n.tree.propValues:void 0)}var Ae=class e extends te{constructor(e,t,n,r,i,a,o,s,c){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=a,this.inlineParsers=o,this.inlineNames=s,this.wrappers=c,this.nodeTypes=Object.create(null);for(let t of e.types)this.nodeTypes[t.name]=t.id}createParse(e,t,n){let r=new Oe(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}configure(t){let n=N(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,a=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),c=this.blockNames.slice(),l=this.inlineParsers.slice(),d=this.inlineNames.slice(),f=this.endLeafBlock.slice(),p=this.wrappers;if(M(n.defineNodes)){i=Object.assign({},i);let e=r.types.slice(),t;for(let r of n.defineNodes){let{name:n,block:a,composite:s,style:c}=typeof r==`string`?{name:r}:r;if(e.some(e=>e.name==n))continue;s&&(i[e.length]=(e,t,n)=>s(t,n,e.value));let l=e.length,u=s?[`Block`,`BlockContext`]:a?l>=x.ATXHeading1&&l<=x.SetextHeading2?[`Block`,`LeafBlock`,`Heading`]:[`Block`,`LeafBlock`]:void 0;e.push(v.define({id:l,name:n,props:u&&[[g.group,u]]})),c&&(t||={},Array.isArray(c)||c instanceof o?t[n]=c:Object.assign(t,c))}r=new h(e),t&&(r=r.extend(u(t)))}if(M(n.props)&&(r=r.extend(...n.props)),M(n.remove))for(let e of n.remove){let t=this.blockNames.indexOf(e),n=this.inlineNames.indexOf(e);t>-1&&(a[t]=s[t]=void 0),n>-1&&(l[n]=void 0)}if(M(n.parseBlock))for(let e of n.parseBlock){let t=c.indexOf(e.name);if(t>-1)a[t]=e.parse,s[t]=e.leaf;else{let t=e.before?P(c,e.before):e.after?P(c,e.after)+1:c.length-1;a.splice(t,0,e.parse),s.splice(t,0,e.leaf),c.splice(t,0,e.name)}e.endLeaf&&f.push(e.endLeaf)}if(M(n.parseInline))for(let e of n.parseInline){let t=d.indexOf(e.name);if(t>-1)l[t]=e.parse;else{let t=e.before?P(d,e.before):e.after?P(d,e.after)+1:d.length-1;l.splice(t,0,e.parse),d.splice(t,0,e.name)}}return n.wrap&&(p=p.concat(n.wrap)),new e(r,a,s,c,f,i,l,d,p)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new G(this,e,t);outer:for(let e=t;e<n.end;){let t=n.char(e);for(let r of this.inlineParsers)if(r){let i=r(n,t,e);if(i>=0){e=i;continue outer}}e++}return n.resolveMarkers(0)}};function M(e){return e!=null&&e.length>0}function N(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=N(e[0]);if(e.length==1)return t;let n=N(e.slice(1));if(!n||!t)return t||n;let r=(e,t)=>(e||F).concat(t||F),i=t.wrap,a=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?a?(e,t,n,r)=>i(a(e,t,n,r),t,n,r):i:a}}function P(e,t){let n=e.indexOf(t);if(n<0)throw RangeError(`Position specified relative to unknown parser ${t}`);return n}var je=[v.none];for(let e=1,t;t=x[e];e++)je[e]=v.define({id:e,name:t,props:e>=x.Escape?[]:[[g.group,e in fe?[`Block`,`BlockContext`]:[`Block`,`LeafBlock`]]],top:t==`Document`});var F=[],Me=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+r*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return _.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}},I=class{constructor(e,t,n,r=F){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new Me(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},Ne=class{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return F}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}};function L(e,t,n,r){return new I(e,t,n,r)}var R={resolve:`Emphasis`,mark:`EmphasisMark`},z={resolve:`Emphasis`,mark:`EmphasisMark`},B={},V={},H=class{constructor(e,t,n,r,i=n-t){this.type=e,this.from=t,this.to=n,this.side=r,this.size=i}},Pe=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~`,U=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{U=RegExp(`[\\p{S}|\\p{P}]`,`u`)}catch{}var W={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let t=0;t<32;t++)if(Pe.charCodeAt(t)==r)return e.append(L(x.Escape,n,n+2));return-1},Entity(e,t,n){if(t!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return r?e.append(L(x.Entity,n,n+1+r[0].length)):-1},InlineCode(e,t,n){if(t!=96||n&&e.char(n-1)==96)return-1;let r=n+1;for(;r<e.end&&e.char(r)==96;)r++;let i=r-n,a=0;for(;r<e.end;r++)if(e.char(r)==96){if(a++,a==i&&e.char(r+1)!=96)return e.append(L(x.InlineCode,n,r+1,[L(x.CodeMark,n,n+i),L(x.CodeMark,r+1-i,r+1)]))}else a=0;return-1},HTMLTag(e,t,n){if(t!=60||n==e.end-1)return-1;let r=e.slice(n+1,e.end),i=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(L(x.Autolink,n,n+1+i[0].length,[L(x.LinkMark,n,n+1),L(x.URL,n+1,n+i[0].length),L(x.LinkMark,n+i[0].length,n+1+i[0].length)]));let a=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(a)return e.append(L(x.Comment,n,n+1+a[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(L(x.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(L(x.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),o=U.test(i),s=U.test(a),c=/\s|^$/.test(i),l=/\s|^$/.test(a),u=!l&&(!s||c||o),d=!c&&(!o||l||s),f=u&&(t==42||!d||o),p=d&&(t==42||!u||s);return e.append(new H(t==95?R:z,n,r,!!f|(p?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(L(x.HardBreak,n,n+2));if(t==32){let t=n+1;for(;e.char(t)==32;)t++;if(e.char(t)==10&&t>=n+2)return e.append(L(x.HardBreak,n,t+1))}return-1},Link(e,t,n){return t==91?e.append(new H(B,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new H(V,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let t=e.parts.length-1;t>=0;t--){let r=e.parts[t];if(r instanceof H&&(r.type==B||r.type==V)){if(!r.side||e.skipSpace(r.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let i=e.takeContent(t),a=e.parts[t]=Fe(e,i,r.type==B?x.Link:x.Image,r.from,n+1);if(r.type==B)for(let n=0;n<t;n++){let t=e.parts[n];t instanceof H&&t.type==B&&(t.side=0)}return a.to}}return-1}};function Fe(e,t,n,r,i){let{text:a}=e,o=e.char(i),s=i;if(t.unshift(L(x.LinkMark,r,r+(n==x.Image?2:1))),t.push(L(x.LinkMark,i-1,i)),o==40){let n=e.skipSpace(i+1),r=Ie(a,n-e.offset,e.offset),o;r&&(n=e.skipSpace(r.to),n!=r.to&&(o=Le(a,n-e.offset,e.offset),o&&(n=e.skipSpace(o.to)))),e.char(n)==41&&(t.push(L(x.LinkMark,i,i+1)),s=n+1,r&&t.push(r),o&&t.push(o),t.push(L(x.LinkMark,n,s)))}else if(o==91){let n=Re(a,i-e.offset,e.offset,!1);n&&(t.push(n),s=n.to)}return L(n,r,s,t)}function Ie(e,t,n){if(e.charCodeAt(t)==60){for(let r=t+1;r<e.length;r++){let i=e.charCodeAt(r);if(i==62)return L(x.URL,t+n,r+1+n);if(i==60||i==10)return!1}return null}{let r=0,i=t;for(let t=!1;i<e.length;i++){let n=e.charCodeAt(i);if(S(n))break;if(t)t=!1;else if(n==40)r++;else if(n==41){if(!r)break;r--}else n==92&&(t=!0)}return i>t?L(x.URL,t+n,i+n):i==e.length&&null}}function Le(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let r=t+1,a=!1;r<e.length;r++){let o=e.charCodeAt(r);if(a)a=!1;else if(o==i)return L(x.LinkTitle,t+n,r+1+n);else o==92&&(a=!0)}return null}function Re(e,t,n,r){for(let i=!1,a=t+1,o=Math.min(e.length,a+999);a<o;a++){let o=e.charCodeAt(a);if(i)i=!1;else if(o==93)return!r&&L(x.LinkLabel,t+n,a+1+n);else{if(r&&!S(o)&&(r=!1),o==91)return!1;o==92&&(i=!0)}}return null}var G=class{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new H(e,t,n,!!r|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof H&&(t.type==B||t.type==V))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t<this.parts.length;t++){let n=this.parts[t];if(!(n instanceof H&&n.type.resolve&&n.side&2))continue;let r=n.type==R||n.type==z,i=n.to-n.from,a,o=t-1;for(;o>=e;o--){let e=this.parts[o];if(e instanceof H&&e.side&1&&e.type==n.type&&!(r&&(n.side&1||e.side&2)&&(e.size+n.size)%3==0&&(e.size%3||n.size%3))){a=e;break}}if(!a)continue;let s=n.type.resolve,c=[],l=a.from,u=n.to;if(r){let e=Math.min(2,a.to-a.from,i);l=a.to-e,u=n.from+e,s=e==1?`Emphasis`:`StrongEmphasis`}a.type.mark&&c.push(this.elt(a.type.mark,l,a.to));for(let e=o+1;e<t;e++)this.parts[e]instanceof I&&c.push(this.parts[e]),this.parts[e]=null;n.type.mark&&c.push(this.elt(n.type.mark,n.from,u));let d=this.elt(s,l,u,c);this.parts[o]=r&&a.from!=l?new H(a.type,a.from,l,a.side,a.size):null,(this.parts[t]=r&&n.to!=u?new H(n.type,u,n.to,n.side,n.size):null)?this.parts.splice(t,0,d):this.parts[t]=d}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];e instanceof I&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof H&&n.type==e&&n.side&1)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}getDelimiterAt(e){let t=this.parts[e];return t instanceof H?t:null}skipSpace(e){return C(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return typeof e==`string`?L(this.parser.getNodeType(e),t,n,r):new Ne(e,t)}};G.linkStart=B,G.imageStart=V,G.emphasisAsterisk=z,G.emphasisUnderscore=R;function K(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r<n.length&&n[r].to<e.to;)r++;if(r<n.length&&n[r].from<e.from){let t=n[r];t instanceof I&&(n[r]=new I(t.type,t.from,t.to,K(t.children,[e])))}else n.splice(r++,0,e)}return n}var ze=[x.CodeBlock,x.ListItem,x.OrderedList,x.BulletList],Be=class{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&this.input.read(e-1,e)!=`
|
|
6
|
-
`;)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(g.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-+!!this.fragment.openEnd,i=e.absoluteLineStart,a=i,o=e.block.children.length,s=a,c=o;for(;;){if(t.to-n>r||t.to-n>e.to){if(t.type.isAnonymous&&t.firstChild())continue;break}let i=Ve(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,i);else{let n=new _(e.parser.nodeSet.types[x.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,i)}if(t.type.is(`Block`)&&(ze.indexOf(t.type.id)<0?(a=t.to-n,o=e.block.children.length):(a=s,o=c),s=t.to-n,c=e.block.children.length),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return a-i}};function Ve(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,a=t[r].from;i<e&&(n-=a-i)}return n}var He=u({"Blockquote/...":b.quote,HorizontalRule:b.contentSeparator,"ATXHeading1/... SetextHeading1/...":b.heading1,"ATXHeading2/... SetextHeading2/...":b.heading2,"ATXHeading3/...":b.heading3,"ATXHeading4/...":b.heading4,"ATXHeading5/...":b.heading5,"ATXHeading6/...":b.heading6,"Comment CommentBlock":b.comment,Escape:b.escape,Entity:b.character,"Emphasis/...":b.emphasis,"StrongEmphasis/...":b.strong,"Link/... Image/...":b.link,"OrderedList/... BulletList/...":b.list,"BlockQuote/...":b.quote,"InlineCode CodeText":b.monospace,"URL Autolink":b.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":b.processingInstruction,"CodeInfo LinkLabel":b.labelName,LinkTitle:b.string,Paragraph:b.content}),Ue=new Ae(new h(je).extend(He),Object.keys(A).map(e=>A[e]),Object.keys(A).map(e=>Te[e]),Object.keys(A),Ee,fe,Object.keys(W).map(e=>W[e]),Object.keys(W),[]);function We(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let e=i?i.from:n;if(e>a&&r.push({from:a,to:e}),!i)break;a=i.to}return r}function Ge(e){let{codeParser:t,htmlParser:n}=e;return{wrap:re((e,r)=>{let i=e.type.id;if(t&&(i==x.CodeBlock||i==x.FencedCode)){let n=``;if(i==x.FencedCode){let t=e.node.getChild(x.CodeInfo);t&&(n=r.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==x.CodeText,bracketed:i==x.FencedCode}}else if(n&&(i==x.HTMLBlock||i==x.HTMLTag||i==x.CommentBlock))return{parser:n,overlay:We(e.node,e.from,e.to)};return null})}}var Ke={resolve:`Strikethrough`,mark:`StrikethroughMark`},qe={defineNodes:[{name:`Strikethrough`,style:{"Strikethrough/...":b.strikethrough}},{name:`StrikethroughMark`,style:b.processingInstruction}],parseInline:[{name:`Strikethrough`,parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),o=/\s|^$/.test(i),s=U.test(r),c=U.test(i);return e.addDelimiter(Ke,n,n+2,!o&&(!c||a||s),!a&&(!s||o||c))},after:`Emphasis`}]};function q(e,t,n=0,r,i=0){let a=0,o=!0,s=-1,c=-1,l=!1,u=()=>{r.push(e.elt(`TableCell`,i+s,i+c,e.parser.parseInline(t.slice(s,c),i+s)))};for(let d=n;d<t.length;d++){let n=t.charCodeAt(d);n==124&&!l?((!o||s>-1)&&a++,o=!1,r&&(s>-1&&u(),r.push(e.elt(`TableDelimiter`,d+i,d+i+1))),s=c=-1):(l||n!=32&&n!=9)&&(s<0&&(s=d),c=d+1),l=!l&&n==92}return s>-1&&(a++,r&&u()),a}function Je(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t==124)return!0;t==92&&n++}return!1}var Ye=/^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,Xe=class{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&Ye.test(r=t.text.slice(t.pos))){let i=[];q(e,n.content,0,i,n.start)==q(e,r,0)&&(this.rows=[e.elt(`TableHeader`,n.start,n.start+n.content.length,i),e.elt(`TableDelimiter`,e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let n=[];q(e,t.text,t.pos,n,e.lineStart),this.rows.push(e.elt(`TableRow`,e.lineStart+t.pos,e.lineStart+t.text.length,n))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt(`Table`,t.start,t.start+t.content.length,this.rows)),!0):!1}},Ze={defineNodes:[{name:`Table`,block:!0},{name:`TableHeader`,style:{"TableHeader/...":b.heading}},`TableRow`,{name:`TableCell`,style:b.content},{name:`TableDelimiter`,style:b.processingInstruction}],parseBlock:[{name:`Table`,leaf(e,t){return Je(t.content,0)?new Xe:null},endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof Xe)||!Je(t.text,t.basePos))return!1;let r=e.peekLine();return Ye.test(r)&&q(e,t.text,t.basePos)==q(e,r,t.basePos)},before:`SetextHeading`}]},Qe=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt(`Task`,t.start,t.start+t.content.length,[e.elt(`TaskMarker`,t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},$e={defineNodes:[{name:`Task`,block:!0,style:b.list},{name:`TaskMarker`,style:b.atom}],parseBlock:[{name:`TaskList`,leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name==`ListItem`?new Qe:null},after:`SetextHeading`}]},et=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,tt=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,nt=/[\w-]+\.[\w-]+($|[/:])/,rt=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,it=/\/[a-zA-Z\d@.]+/gy;function at(e,t,n,r){let i=0;for(let a=t;a<n;a++)e[a]==r&&i++;return i}function ot(e,t){tt.lastIndex=t;let n=tt.exec(e);if(!n||nt.exec(n[0])[0].indexOf(`_`)>-1)return-1;let r=t+n[0].length;for(;;){let n=e[r-1],i;if(/[?!.,:*_~]/.test(n)||n==`)`&&at(e,t,r,`)`)>at(e,t,r,`(`))r--;else if(n==`;`&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+i.index;else break}return r}function st(e,t){rt.lastIndex=t;let n=rt.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r==`_`||r==`-`?-1:t+n[0].length-+(r==`.`)}var ct=[Ze,$e,qe,{parseInline:[{name:`Autolink`,parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;et.lastIndex=r;let i=et.exec(e.text),a=-1;return!i||(i[1]||i[2]?(a=ot(e.text,r+i[0].length),a>-1&&e.hasOpenLink&&(a=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a))[0].length)):i[3]?a=st(e.text,r):(a=st(e.text,r+i[0].length),a>-1&&i[0]==`xmpp:`&&(it.lastIndex=a,i=it.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt(`URL`,n,a+e.offset)),a+e.offset)}}]}];function lt(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let o=[r.elt(n,a,a+1)];for(let i=a+1;i<r.end;i++){let s=r.char(i);if(s==e)return r.addElement(r.elt(t,a,i+1,o.concat(r.elt(n,i,i+1))));if(s==92&&o.push(r.elt(`Escape`,i,i+++2)),S(s))break}return-1}}var ut={defineNodes:[{name:`Superscript`,style:b.special(b.content)},{name:`SuperscriptMark`,style:b.processingInstruction}],parseInline:[{name:`Superscript`,parse:lt(94,`Superscript`,`SuperscriptMark`)}]},dt={defineNodes:[{name:`Subscript`,style:b.special(b.content)},{name:`SubscriptMark`,style:b.processingInstruction}],parseInline:[{name:`Subscript`,parse:lt(126,`Subscript`,`SubscriptMark`)}]},ft={defineNodes:[{name:`Emoji`,style:b.character}],parseInline:[{name:`Emoji`,parse(e,t,n){let r;return t!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?-1:e.addElement(e.elt(`Emoji`,n,n+1+r[0].length))}}]},pt=n({commentTokens:{block:{open:`<!--`,close:`-->`}}}),mt=new g,ht=Ue.configure({props:[e.add(e=>!e.is(`Block`)||e.is(`Document`)||J(e)!=null||gt(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),mt.add(J),s.add({Document:()=>null}),l.add({Document:pt})]});function J(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function gt(e){return e.name==`OrderedList`||e.name==`BulletList`}function _t(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=J(e.type))!=null&&r<=t)break;n=e}return n.to}var vt=ne.of((e,t,n)=>{for(let r=i(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(mt);if(e==null)continue;let t=_t(r,e);if(t>n)return{from:n,to:t}}return null});function Y(e){return new ee(pt,e,[],`markdown`)}var yt=Y(ht),X=Y(ht.configure([ct,dt,ut,ft,{props:[e.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function bt(e,n){return r=>{if(r&&e){let n=null;if(r=/\S*/.exec(r)[0],n=typeof e==`function`?e(r):ie.matchLanguageName(e,r,!0),n instanceof ie)return n.support?n.support.language.parser:t.getSkippingParser(n.load());if(n)return n.parser}return n?n.parser:null}}var Z=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}marker(e,t){let n=this.node.name==`OrderedList`?String(+St(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function xt(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new Z(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new Z(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new Z(i.parent,s,s+t,a[1],e,n,i))}}return r}function St(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function Q(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=St(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function $(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(c)!=` `)return e;let r=y(e,4,n),i=``;for(let e=r;e>0;)e>=4?(i+=` `,e-=4):(i+=` `,e--);return i+e.slice(n)}var Ct=((e={})=>({state:t,dispatch:n})=>{let a=i(t),{doc:o}=t,s=null,c=t.changeByRange(n=>{if(!n.empty||!X.isActiveAt(t,n.from,-1)&&!X.isActiveAt(t,n.from,1))return s={range:n};let i=n.from,c=o.lineAt(i),l=xt(a.resolveInner(i,-1),o);for(;l.length&&l[l.length-1].from>i-c.from;)l.pop();if(!l.length)return s={range:n};let u=l[l.length-1];if(u.to-u.spaceAfter.length>i-c.from)return s={range:n};let d=i>=u.to-u.spaceAfter.length&&!/\S/.test(c.text.slice(u.to));if(u.item&&d){if(u.item.from<c.from&&!/^[\s>]*$/.test(c.text.slice(0,u.to)))return s={range:n};let a=u.node.firstChild,d=u.node.getChild(`ListItem`,`ListItem`);if(a.to>=i||d&&d.to<i||c.from>0&&!/[^\s>]/.test(o.lineAt(c.from-1).text)||e.nonTightLists===!1){let e=l.length>1?l[l.length-2]:null,t,n=``;e&&e.item?(t=c.from+e.from,n=e.marker(o,1)):t=c.from+(e?e.to:0);let a=[{from:t,to:i,insert:n}];return u.node.name==`OrderedList`&&Q(u.item,o,a,-2),e&&e.node.name==`OrderedList`&&Q(e.item,o,a),{range:r.cursor(t+n.length),changes:a}}{let e=Et(l,t,c);return{range:r.cursor(i+e.length+1),changes:{from:c.from,insert:e+t.lineBreak}}}}if(u.node.name==`Blockquote`&&d&&c.from){let e=o.lineAt(c.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==u.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:c.from+u.from,to:c.to}]);return{range:n.map(i),changes:i}}}let f=[];u.node.name==`OrderedList`&&Q(u.item,o,f);let p=u.item&&u.item.from<c.from,m=``;if(!p||/^[\s\d.)\-+*>]*/.exec(c.text)[0].length>=u.to)for(let e=0,t=l.length-1;e<=t;e++)m+=e==t&&!p?l[e].marker(o,1):l[e].blank(e<t?y(c.text,4,l[e+1].from)-m.length:null);let h=i;for(;h>c.from&&/\s/.test(c.text.charAt(h-c.from-1));)h--;return m=$(m,t),Tt(u.node,t.doc)&&(m=Et(l,t,c)+t.lineBreak+m),f.push({from:h,to:i,insert:t.lineBreak+m}),{range:r.cursor(h+m.length+1),changes:f}});return!s&&(n(t.update(c,{scrollIntoView:!0,userEvent:`input`})),!0)})();function wt(e){return e.name==`QuoteMark`||e.name==`ListMark`}function Tt(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function Et(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?y(n.text,4,e[t+1].from)-r.length:null,t<i);return $(r,t)}function Dt(e,t){let n=e.resolveInner(t,-1),r=t;wt(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(wt(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var Ot=[{key:`Enter`,run:Ct},{key:`Backspace`,run:({state:e,dispatch:t})=>{let n=i(e),a=null,o=e.changeByRange(t=>{let i=t.from,{doc:o}=e;if(t.empty&&X.isActiveAt(e,t.from)){let t=o.lineAt(i),a=xt(Dt(n,i),o);if(a.length){let n=a[a.length-1],o=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>o&&!/\S/.test(t.text.slice(o,i-t.from)))return{range:r.cursor(t.from+o),changes:{from:t.from+o,to:i}};if(i-t.from==o&&(n.item&&t.from<=n.item.from||/^[\s>]*$/.test(t.text.slice(0,n.to)))){let a=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(y(t.text,4,n.to)-y(t.text,4,n.from));return a==t.from&&(i=$(i,e)),{range:r.cursor(a+i.length),changes:{from:a,to:t.from+n.to,insert:i}}}if(a<i)return{range:r.cursor(a),changes:{from:a,to:i}}}}}return a={range:t}});return!a&&(t(e.update(o,{scrollIntoView:!0,userEvent:`delete`})),!0)}}],kt=oe({matchClosingTags:!1});function At(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=yt,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=kt}=e;if(!(i instanceof Ae))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,vt],u;o&&l.push(Ft),n instanceof d?(l.push(n.support),u=n.language):n&&(u=n);let p=t||u?bt(t,u):void 0;c.push(Ge({codeParser:p,htmlParser:s.language.parser})),r&&l.push(m.high(f.of(Ot)));let h=Y(i.configure(c));return a&&l.push(h.data.of({autocomplete:jt})),new d(h,l)}function jt(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let a=i(t).resolveInner(n,-1);for(;a&&!a.type.isTop;){if(a.name==`CodeBlock`||a.name==`FencedCode`||a.name==`ProcessingInstructionBlock`||a.name==`CommentBlock`||a.name==`Link`||a.name==`Image`)return null;a=a.parent}return{from:n-r[0].length,to:n,options:Nt(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var Mt=null;function Nt(){if(Mt)return Mt;let e=se(new ae(a.create({extensions:kt}),0,!0));return Mt=e?e.options:[]}var Pt=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Ft=p.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!X.isActiveAt(t.state,n.from,1)))return!1;let a=i(t.state),o=!1;return a.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||Pt.test(e.name))&&(o=!0)},leave:e=>{e.to<n.to&&(o=!0)}}),!o&&(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}});export{At as markdown};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-75Z2AOVW-A-EObLCy.js";import"./src-Caqqw6Gw.js";import"./chunk-DU6HZSFF-CDWc5UBY.js";import"./chunk-P2QGCYS3-DJOHCBv0.js";import"./chunk-PWAF6VOD-B-FOPc-q.js";import"./chunk-GMAD6QVW-COZQExf-.js";import"./chunk-4HAMMTFA-Dx6b40xi.js";import"./chunk-GVQU2GXP-BzZEH01V.js";import"./chunk-L3NEJ4N5-BoNKpHsG.js";import"./chunk-OSK3NFVY-fma5qDgd.js";import"./dist-DhFC_v-5.js";import"./chunk-F27PBJKO-qGDpbSI2.js";import"./chunk-XXDRQBXY-CRm7H5Qv.js";import"./chunk-POPQ4Y6H-at1Afs_1.js";export{n as diagram}from"./chunk-SHT3W25Y-Bo8j1N02.js";
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";import{$ as n,A as r,B as i,F as a,G as o,H as s,I as c,J as l,K as u,L as d,M as f,N as p,O as m,P as h,Q as g,R as _,U as v,V as y,W as b,X as x,Y as S,Z as C,at as w,dt as T,et as E,it as D,j as O,k,lt as A,nt as j,ot as ee,q as M,rt as te,tt as ne,ut as re,z as ie}from"./DocumentLayout-BmFhvhLU.js";import{g as ae}from"./chunk-75Z2AOVW-A-EObLCy.js";import{i as oe,n as N,t as se}from"./src-Caqqw6Gw.js";import{n as P}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as ce,K as le,U as ue,a as de,c as fe,s as pe,v as me,w as he,x as F,y as ge}from"./chunk-DU6HZSFF-CDWc5UBY.js";import{t as _e}from"./init-C-OQMol4.js";import{t as ve}from"./dist-CN30VTUJ.js";var ye=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(n,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),be=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(n,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))}));function xe(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Se(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Ce(e){return e}var we=1,Te=2,Ee=3,De=4,Oe=1e-6;function ke(e){return`translate(`+e+`,0)`}function Ae(e){return`translate(0,`+e+`)`}function je(e){return t=>+e(t)}function Me(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Ne(){return!this.__axis}function Pe(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===we||e===De?-1:1,u=e===De||e===Te?`x`:`y`,d=e===we||e===Ee?ke:Ae;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):Ce),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?Me:je)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===we?`0em`:e===Ee?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,Oe).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,Oe).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===De||e===Te?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(Ne).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===Te?`start`:e===De?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function Fe(e){return Pe(we,e)}function Ie(e){return Pe(Ee,e)}function Le(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var I=te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);I.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?te(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):I),I.range;function Re(e,t,r,i,a,o){let s=[[S,1,E],[S,5,5*E],[S,15,15*E],[S,30,30*E],[o,1,g],[o,5,5*g],[o,15,15*g],[o,30,30*g],[a,1,C],[a,3,3*C],[a,6,6*C],[a,12,12*C],[i,1,x],[i,2,2*x],[r,1,ne],[t,1,n],[t,3,3*n],[e,1,j]];function c(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:l(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function l(t,n,r){let i=Math.abs(n-t)/r,a=T(([,,e])=>e).right(s,i);if(a===s.length)return e.every(re(t/j,n/j,r));if(a===0)return I.every(Math.max(re(t,n,r),1));let[o,c]=s[i/s[a-1][2]<s[a][2]/i?a-1:a];return o.every(c)}return[c,l]}var[ze,Be]=Re(k,O,i,v,u,l),[Ve,He]=Re(m,r,a,s,o,M);function Ue(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function We(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function L(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,c=e.months,l=e.shortMonths,u=B(i),d=V(i),f=B(a),m=V(a),h=B(o),g=V(o),_=B(c),v=V(c),y=B(l),x=V(l),S={a:re,A:ae,b:oe,B:N,c:null,d:gt,e:gt,f:xt,g:Mt,G:Pt,H:_t,I:vt,j:yt,L:bt,m:St,M:Ct,p:se,q:P,Q:rn,s:an,S:wt,u:Tt,U:Et,V:Ot,w:kt,W:At,x:null,X:null,y:jt,Y:Nt,Z:Ft,"%":nn},C={a:ce,A:le,b:ue,B:de,c:null,d:It,e:It,f:Vt,g:Qt,G:en,H:Lt,I:Rt,j:zt,L:Bt,m:Ht,M:Ut,p:fe,q:pe,Q:rn,s:an,S:Wt,u:Gt,U:Kt,V:Jt,w:Yt,W:Xt,x:null,X:null,y:Zt,Y:$t,Z:tn,"%":nn},w={a:k,A,b:j,B:ee,c:M,d:ot,e:ot,f:ft,g:nt,G:tt,H:ct,I:ct,j:st,L:dt,m:at,M:lt,p:O,q:it,Q:mt,s:ht,S:ut,u:Ze,U:Qe,V:$e,w:Xe,W:et,x:te,X:ne,y:nt,Y:tt,Z:rt,"%":pt};S.x=T(n,S),S.X=T(r,S),S.c=T(t,S),C.x=T(n,C),C.X=T(r,C),C.c=T(t,C);function T(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=Ke[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function E(e,t){return function(n){var r=L(1900,void 0,1),i=D(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=We(L(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?ie.ceil(a):ie(a),a=b.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Ue(L(r.y,0,1)),o=a.getDay(),a=o>4||o===0?p.ceil(a):p(a),a=s.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?We(L(r.y,0,1)).getUTCDay():Ue(L(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,We(r)):Ue(r)}}function D(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=w[s in Ke?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function O(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=d.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function j(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=x.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function M(e,n,r){return D(e,t,n,r)}function te(e,t,r){return D(e,n,t,r)}function ne(e,t,n){return D(e,r,t,n)}function re(e){return o[e.getDay()]}function ae(e){return a[e.getDay()]}function oe(e){return l[e.getMonth()]}function N(e){return c[e.getMonth()]}function se(e){return i[+(e.getHours()>=12)]}function P(e){return 1+~~(e.getMonth()/3)}function ce(e){return o[e.getUTCDay()]}function le(e){return a[e.getUTCDay()]}function ue(e){return l[e.getUTCMonth()]}function de(e){return c[e.getUTCMonth()]}function fe(e){return i[+(e.getUTCHours()>=12)]}function pe(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=T(e+=``,S);return t.toString=function(){return e},t},parse:function(e){var t=E(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=T(e+=``,C);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+=``,!0);return t.toString=function(){return e},t}}}var Ke={"-":``,_:` `,0:`0`},R=/^\s*\d+/,qe=/^%/,Je=/[\\^$*+?|[\]().{}]/g;function z(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Ye(e){return e.replace(Je,`\\$&`)}function B(e){return RegExp(`^(?:`+e.map(Ye).join(`|`)+`)`,`i`)}function V(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Xe(e,t,n){var r=R.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ze(e,t,n){var r=R.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Qe(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $e(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function et(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tt(e,t,n){var r=R.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nt(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function it(e,t,n){var r=R.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function at(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ot(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function st(e,t,n){var r=R.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ct(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lt(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ut(e,t,n){var r=R.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dt(e,t,n){var r=R.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ft(e,t,n){var r=R.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pt(e,t,n){var r=qe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function mt(e,t,n){var r=R.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ht(e,t,n){var r=R.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function gt(e,t){return z(e.getDate(),t,2)}function _t(e,t){return z(e.getHours(),t,2)}function vt(e,t){return z(e.getHours()%12||12,t,2)}function yt(e,t){return z(1+s.count(m(e),e),t,3)}function bt(e,t){return z(e.getMilliseconds(),t,3)}function xt(e,t){return bt(e,t)+`000`}function St(e,t){return z(e.getMonth()+1,t,2)}function Ct(e,t){return z(e.getMinutes(),t,2)}function wt(e,t){return z(e.getSeconds(),t,2)}function Tt(e){var t=e.getDay();return t===0?7:t}function Et(e,t){return z(a.count(m(e)-1,e),t,2)}function Dt(e){var t=e.getDay();return t>=4||t===0?c(e):c.ceil(e)}function Ot(e,t){return e=Dt(e),z(c.count(m(e),e)+(m(e).getDay()===4),t,2)}function kt(e){return e.getDay()}function At(e,t){return z(p.count(m(e)-1,e),t,2)}function jt(e,t){return z(e.getFullYear()%100,t,2)}function Mt(e,t){return e=Dt(e),z(e.getFullYear()%100,t,2)}function Nt(e,t){return z(e.getFullYear()%1e4,t,4)}function Pt(e,t){var n=e.getDay();return e=n>=4||n===0?c(e):c.ceil(e),z(e.getFullYear()%1e4,t,4)}function Ft(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+z(t/60|0,`0`,2)+z(t%60,`0`,2)}function It(e,t){return z(e.getUTCDate(),t,2)}function Lt(e,t){return z(e.getUTCHours(),t,2)}function Rt(e,t){return z(e.getUTCHours()%12||12,t,2)}function zt(e,t){return z(1+b.count(k(e),e),t,3)}function Bt(e,t){return z(e.getUTCMilliseconds(),t,3)}function Vt(e,t){return Bt(e,t)+`000`}function Ht(e,t){return z(e.getUTCMonth()+1,t,2)}function Ut(e,t){return z(e.getUTCMinutes(),t,2)}function Wt(e,t){return z(e.getUTCSeconds(),t,2)}function Gt(e){var t=e.getUTCDay();return t===0?7:t}function Kt(e,t){return z(i.count(k(e)-1,e),t,2)}function qt(e){var t=e.getUTCDay();return t>=4||t===0?y(e):y.ceil(e)}function Jt(e,t){return e=qt(e),z(y.count(k(e),e)+(k(e).getUTCDay()===4),t,2)}function Yt(e){return e.getUTCDay()}function Xt(e,t){return z(ie.count(k(e)-1,e),t,2)}function Zt(e,t){return z(e.getUTCFullYear()%100,t,2)}function Qt(e,t){return e=qt(e),z(e.getUTCFullYear()%100,t,2)}function $t(e,t){return z(e.getUTCFullYear()%1e4,t,4)}function en(e,t){var n=e.getUTCDay();return e=n>=4||n===0?y(e):y.ceil(e),z(e.getUTCFullYear()%1e4,t,4)}function tn(){return`+0000`}function nn(){return`%`}function rn(e){return+e}function an(e){return Math.floor(e/1e3)}var H,on;sn({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function sn(e){return H=Ge(e),on=H.format,H.parse,H.utcFormat,H.utcParse,H}function cn(e){return new Date(e)}function ln(e){return e instanceof Date?+e:+new Date(+e)}function un(e,t,n,r,i,a,o,s,c,l){var u=w(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,ln)):f().map(cn)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(Le(n,e)):u},u.copy=function(){return ee(u,un(e,t,n,r,i,a,o,s,c,l))},u}function dn(){return _e.apply(un(Ve,He,m,r,a,s,o,M,S,on).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var fn=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(n,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),c=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(c,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),pn=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(n,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms;return f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),mn=ve(),U=e(oe(),1),hn=e(fn(),1),gn=e(be(),1),_n=e(ye(),1),vn=e(pn(),1),yn=(function(){var e=P(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],o=[1,30],s=[1,31],c=[1,32],l=[1,33],u=[1,34],d=[1,9],f=[1,10],p=[1,11],m=[1,12],h=[1,13],g=[1,14],_=[1,15],v=[1,16],y=[1,19],b=[1,20],x=[1,21],S=[1,22],C=[1,23],w=[1,25],T=[1,35],E={trace:P(function(){},`trace`),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:`error`,4:`gantt`,6:`EOF`,8:`SPACE`,10:`NL`,12:`weekday_monday`,13:`weekday_tuesday`,14:`weekday_wednesday`,15:`weekday_thursday`,16:`weekday_friday`,17:`weekday_saturday`,18:`weekday_sunday`,20:`weekend_friday`,21:`weekend_saturday`,22:`dateFormat`,23:`inclusiveEndDates`,24:`topAxis`,25:`axisFormat`,26:`tickInterval`,27:`excludes`,28:`includes`,29:`todayMarker`,30:`title`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,36:`section`,38:`taskTxt`,39:`taskData`,40:`click`,41:`callbackname`,42:`callbackargs`,43:`href`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:P(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:c,19:18,20:l,21:u,22:d,23:f,24:p,25:m,26:h,27:g,28:_,29:v,30:y,31:b,33:x,35:S,36:C,37:24,38:w,40:T},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:c,19:18,20:l,21:u,22:d,23:f,24:p,25:m,26:h,27:g,28:_,29:v,30:y,31:b,33:x,35:S,36:C,37:24,38:w,40:T},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:P(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:P(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var v=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function y(e){n.length-=2*e,i.length-=e,a.length-=e}P(y,`popStack`);function b(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}P(b,`lex`);for(var x,S,C,w,T,E={},D,O,k,A;;){if(C=n[n.length-1],this.defaultActions[C]?w=this.defaultActions[C]:(x??=b(),w=o[C]&&o[C][x]),w===void 0||!w.length||!w[0]){var j=``;for(D in A=[],o[C])this.terminals_[D]&&D>d&&A.push(`'`+this.terminals_[D]+`'`);j=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
-
`+m.showPosition()+`
|
|
3
|
-
Expecting `+A.join(`, `)+`, got '`+(this.terminals_[x]||x)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(x==f?`end of input`:`'`+(this.terminals_[x]||x)+`'`),this.parseError(j,{text:m.match,token:this.terminals_[x]||x,line:m.yylineno,loc:_,expected:A})}if(w[0]instanceof Array&&w.length>1)throw Error(`Parse Error: multiple actions possible at state: `+C+`, token: `+x);switch(w[0]){case 1:n.push(x),i.push(m.yytext),a.push(m.yylloc),n.push(w[1]),x=null,S?(x=S,S=null):(l=m.yyleng,s=m.yytext,c=m.yylineno,_=m.yylloc,u>0&&u--);break;case 2:if(O=this.productions_[w[1]][1],E.$=i[i.length-O],E._$={first_line:a[a.length-(O||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(O||1)].first_column,last_column:a[a.length-1].last_column},v&&(E._$.range=[a[a.length-(O||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(E,[s,l,c,h.yy,w[1],i,a].concat(p)),T!==void 0)return T;O&&(n=n.slice(0,-1*O*2),i=i.slice(0,-1*O),a=a.slice(0,-1*O)),n.push(this.productions_[w[1]][0]),i.push(E.$),a.push(E._$),k=o[n[n.length-2]][n[n.length-1]],n.push(k);break;case 3:return!0}}return!0},`parse`)};E.lexer=(function(){return{EOF:1,parseError:P(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:P(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:P(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:P(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:P(function(){return this._more=!0,this},`more`),reject:P(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
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:P(function(e){this.unput(this.match.slice(e))},`less`),pastInput:P(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:P(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:P(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
-
`+t+`^`},`showPosition`),test_match:P(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:P(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:P(function(){return this.next()||this.lex()},`lex`),begin:P(function(e){this.conditionStack.push(e)},`begin`),popState:P(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:P(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:P(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:P(function(e){this.begin(e)},`pushState`),stateStackSize:P(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:P(function(e,t,n,r){switch(n){case 0:return this.begin(`open_directive`),`open_directive`;case 1:return this.begin(`acc_title`),31;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),33;case 4:return this.popState(),`acc_descr_value`;case 5:this.begin(`acc_descr_multiline`);break;case 6:this.popState();break;case 7:return`acc_descr_multiline_value`;case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin(`href`);break;case 15:this.popState();break;case 16:return 43;case 17:this.begin(`callbackname`);break;case 18:this.popState();break;case 19:this.popState(),this.begin(`callbackargs`);break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin(`click`);break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return`date`;case 45:return 30;case 46:return`accDescription`;case 47:return 36;case 48:return 38;case 49:return 39;case 50:return`:`;case 51:return 6;case 52:return`INVALID`}},`anonymous`),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function D(){this.yy={}}return P(D,`Parser`),D.prototype=E,E.Parser=D,new D})();yn.parser=yn;var bn=yn;U.default.extend(hn.default),U.default.extend(gn.default),U.default.extend(_n.default);var xn={friday:5,saturday:6},W=``,Sn=``,Cn=void 0,wn=``,G=[],K=[],Tn=new Map,En=[],Dn=[],q=``,On=``,kn=[`active`,`done`,`crit`,`milestone`,`vert`],An=[],J=``,Y=!1,jn=!1,Mn=`sunday`,Nn=`saturday`,Pn=0,Fn=P(function(){En=[],Dn=[],q=``,An=[],hr=0,vr=void 0,yr=void 0,Z=[],W=``,Sn=``,On=``,Cn=void 0,wn=``,G=[],K=[],Y=!1,jn=!1,Pn=0,Tn=new Map,J=``,de(),Mn=`sunday`,Nn=`saturday`},`clear`),In=P(function(e){J=e},`setDiagramId`),Ln=P(function(e){Sn=e},`setAxisFormat`),Rn=P(function(){return Sn},`getAxisFormat`),zn=P(function(e){Cn=e},`setTickInterval`),Bn=P(function(){return Cn},`getTickInterval`),Vn=P(function(e){wn=e},`setTodayMarker`),Hn=P(function(){return wn},`getTodayMarker`),Un=P(function(e){W=e},`setDateFormat`),Wn=P(function(){Y=!0},`enableInclusiveEndDates`),Gn=P(function(){return Y},`endDatesAreInclusive`),Kn=P(function(){jn=!0},`enableTopAxis`),qn=P(function(){return jn},`topAxisEnabled`),Jn=P(function(e){On=e},`setDisplayMode`),Yn=P(function(){return On},`getDisplayMode`),Xn=P(function(){return W},`getDateFormat`),Zn=P((e,t)=>{let n=t.toLowerCase().split(/[\s,]+/).filter(e=>e!==``);return[...new Set([...e,...n])]},`mergeTokens`),Qn=P(function(e){G=Zn(G,e)},`setIncludes`),$n=P(function(){return G},`getIncludes`),er=P(function(e){K=Zn(K,e)},`setExcludes`),tr=P(function(){return K},`getExcludes`),nr=P(function(){return Tn},`getLinks`),rr=P(function(e){q=e,En.push(e)},`addSection`),ir=P(function(){return En},`getSections`),ar=P(function(){let e=Cr(),t=0;for(;!e&&t<10;)e=Cr(),t++;return Dn=Z,Dn},`getTasks`),or=P(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===xn[Nn]||e.isoWeekday()===xn[Nn]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),sr=P(function(e){Mn=e},`setWeekday`),cr=P(function(){return Mn},`getWeekday`),lr=P(function(e){Nn=e},`setWeekend`),ur=P(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,U.default)(e.startTime):(0,U.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,U.default)(e.endTime):(0,U.default)(e.endTime,t,!0);let[o,s]=dr(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),dr=P(function(e,t,n,r,i){let a=!1,o=null,s=t.add(1e4,`d`);for(;e<=t;){if(a||(o=t.toDate()),a=or(e,n,r,i),a&&(t=t.add(1,`d`),t>s))throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,`d`)}return[t,o]},`fixTaskDates`),fr=P(function(e,t,n){if(n=n.trim(),P(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(t)&&/^\d+$/.test(n))return new Date(Number(n));let r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(r!==null){let e=null;for(let t of r.groups.ids.split(` `)){let n=Q(t);n!==void 0&&(!e||n.endTime>e.endTime)&&(e=n)}if(e)return e.endTime;let t=new Date;return t.setHours(0,0,0,0),t}let i=(0,U.default)(n,t.trim(),!0);if(i.isValid())return i.toDate();{N.debug(`Invalid date:`+n),N.debug(`With date format:`+t.trim());let e=new Date(n);if(e===void 0||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw Error(`Invalid date:`+n);return e}},`getStartDate`),pr=P(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),mr=P(function(e,t,n,r=!1){n=n.trim();let i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=Q(t);n!==void 0&&(!e||n.startTime<e.startTime)&&(e=n)}if(e)return e.startTime;let t=new Date;return t.setHours(0,0,0,0),t}let a=(0,U.default)(n,t.trim(),!0);if(a.isValid())return r&&(a=a.add(1,`d`)),a.toDate();let o=(0,U.default)(e),[s,c]=pr(n);if(!Number.isNaN(s)){let e=o.add(s,c);e.isValid()&&(o=e)}return o.toDate()},`getEndDate`),hr=0,X=P(function(e){return e===void 0?(hr+=1,`task`+hr):e},`parseId`),gr=P(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};kr(r,i,kn);for(let e=0;e<r.length;e++)r[e]=r[e].trim();let a=``;switch(r.length){case 1:i.id=X(),i.startTime=e.endTime,a=r[0];break;case 2:i.id=X(),i.startTime=fr(void 0,W,r[0]),a=r[1];break;case 3:i.id=X(r[0]),i.startTime=fr(void 0,W,r[1]),a=r[2]}return a&&(i.endTime=mr(i.startTime,W,a,Y),i.manualEndTime=(0,U.default)(a,`YYYY-MM-DD`,!0).isValid(),ur(i,W,K,G)),i},`compileData`),_r=P(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};kr(r,i,kn);for(let e=0;e<r.length;e++)r[e]=r[e].trim();switch(r.length){case 1:i.id=X(),i.startTime={type:`prevTaskEnd`,id:e},i.endTime={data:r[0]};break;case 2:i.id=X(),i.startTime={type:`getStartDate`,startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=X(r[0]),i.startTime={type:`getStartDate`,startData:r[1]},i.endTime={data:r[2]}}return i},`parseData`),vr,yr,Z=[],br={},xr=P(function(e,t){let n={section:q,type:q,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=_r(yr,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=yr,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.vert?n.order=-1:(n.order=Pn,Pn++);let i=Z.push(n);yr=n.id,br[n.id]=i-1},`addTask`),Q=P(function(e){let t=br[e];return Z[t]},`findTaskById`),Sr=P(function(e,t){let n={section:q,type:q,description:e,task:e,classes:[]},r=gr(vr,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,vr=n,Dn.push(n)},`addTaskOrg`),Cr=P(function(){let e=P(function(e){let t=Z[e],n=``;switch(Z[e].raw.startTime.type){case`prevTaskEnd`:t.startTime=Q(t.prevTaskId).endTime;break;case`getStartDate`:n=fr(void 0,W,Z[e].raw.startTime.startData),n&&(Z[e].startTime=n)}return Z[e].startTime&&(Z[e].endTime=mr(Z[e].startTime,W,Z[e].raw.endTime.data,Y),Z[e].endTime&&(Z[e].processed=!0,Z[e].manualEndTime=(0,U.default)(Z[e].raw.endTime.data,`YYYY-MM-DD`,!0).isValid(),ur(Z[e],W,K,G))),Z[e].processed},`compileTask`),t=!0;for(let[n,r]of Z.entries())e(n),t&&=r.processed;return t},`compileTasks`),wr=P(function(e,t){let n=t;F().securityLevel!==`loose`&&(n=(0,mn.sanitizeUrl)(t)),e.split(`,`).forEach(function(e){Q(e)!==void 0&&(Dr(e,()=>{window.open(n,`_self`)}),Tn.set(e,n))}),Tr(e,`clickable`)},`setLink`),Tr=P(function(e,t){e.split(`,`).forEach(function(e){let n=Q(e);n!==void 0&&n.classes.push(t)})},`setClass`),Er=P(function(e,t,n){if(F().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();t.startsWith(`"`)&&t.endsWith(`"`)&&(t=t.substr(1,t.length-2)),r[e]=t}}r.length===0&&r.push(e),Q(e)!==void 0&&Dr(e,()=>{ae.runFunc(t,...r)})},`setClickFun`),Dr=P(function(e,t){An.push(function(){let n=J?`${J}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=J?`${J}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),Or={getConfig:P(()=>F().gantt,`getConfig`),clear:Fn,setDateFormat:Un,getDateFormat:Xn,enableInclusiveEndDates:Wn,endDatesAreInclusive:Gn,enableTopAxis:Kn,topAxisEnabled:qn,setAxisFormat:Ln,getAxisFormat:Rn,setTickInterval:zn,getTickInterval:Bn,setTodayMarker:Vn,getTodayMarker:Hn,setAccTitle:ue,getAccTitle:ge,setDiagramTitle:le,getDiagramTitle:he,setDiagramId:In,setDisplayMode:Jn,getDisplayMode:Yn,setAccDescription:ce,getAccDescription:me,addSection:rr,getSections:ir,getTasks:ar,addTask:xr,findTaskById:Q,addTaskOrg:Sr,setIncludes:Qn,getIncludes:$n,setExcludes:er,getExcludes:tr,setClickEvent:P(function(e,t,n){e.split(`,`).forEach(function(e){Er(e,t,n)}),Tr(e,`clickable`)},`setClickEvent`),setLink:wr,getLinks:nr,bindFunctions:P(function(e){An.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:pr,isInvalidDate:or,setWeekday:sr,getWeekday:cr,setWeekend:lr};function kr(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}P(kr,`getTaskTags`),U.default.extend(vn.default);var Ar=P(function(){N.debug(`Something is calling, setConf, remove the call`)},`setConf`),jr={monday:p,tuesday:d,wednesday:_,thursday:c,friday:f,saturday:h,sunday:a},Mr=P((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r<n.length;r++)if(e.startTime>=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),$,Nr=1e4,Pr={parser:bn,db:Or,renderer:{setConf:Ar,draw:P(function(e,t,n,i){let a=F().gantt;i.db.setDiagramId(t);let c=F().securityLevel,l;c===`sandbox`&&(l=se(`#i`+t));let u=se(c===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=c===`sandbox`?l.nodes()[0].contentDocument:document,f=d.getElementById(t);$=f.parentElement.offsetWidth,$===void 0&&($=1200),a.useWidth!==void 0&&($=a.useWidth);let p=i.db.getTasks(),m=p.filter(e=>!e.vert),h=[];for(let e of m)h.push(e.type);h=j(h);let g={},_=2*a.topPadding;if(i.db.getDisplayMode()===`compact`||a.displayMode===`compact`){let e={};for(let t of m)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=Mr(e[n],t)+1;t+=r,_+=r*(a.barHeight+a.barGap),g[n]=r}}else{_+=m.length*(a.barHeight+a.barGap);for(let e of h)g[e]=m.filter(t=>t.type===e).length}f.setAttribute(`viewBox`,`0 0 `+$+` `+_);let v=u.select(`[id="${t}"]`),y=dn().domain([Se(p,function(e){return e.startTime}),xe(p,function(e){return e.endTime})]).rangeRound([0,$-a.leftPadding-a.rightPadding]);function b(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:n<r&&(i=-1),i}P(b,`taskCompare`),p.sort(b),x(p,$,_),fe(v,_,$,a.useMaxWidth),v.append(`text`).text(i.db.getDiagramTitle()).attr(`x`,$/2).attr(`y`,a.titleTopMargin).attr(`class`,`titleText`);function x(e,t,n){let r=a.barHeight,o=r+a.barGap,s=a.topPadding,c=a.leftPadding,l=D().domain([0,h.length]).range([`#00B9FA`,`#F95002`]).interpolate(A);w(o,s,c,t,n,e,i.db.getExcludes(),i.db.getIncludes()),E(c,s,t,n),C(e,o,s,c,r,l,t,n),O(o,s,c,r,l),k(c,s,t,n)}P(x,`makeGantt`);function C(e,n,r,o,s,c,l){e.sort((e,t)=>e.vert===t.vert?0:e.vert?1:-1);let u=e.filter(e=>!e.vert),d=[...new Set(u.map(e=>e.order))].map(e=>u.find(t=>t.order===e));v.append(`g`).selectAll(`rect`).data(d).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,t){return t=e.order,t*n+r-2}).attr(`width`,function(){return l-a.rightPadding/2}).attr(`height`,n).attr(`class`,function(e){for(let[t,n]of h.entries())if(e.type===n)return`section section`+t%a.numberSectionStyles;return`section section0`}).enter();let f=v.append(`g`).selectAll(`rect`).data(e).enter(),p=i.db.getLinks();if(f.append(`rect`).attr(`id`,function(e){return t+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?y(e.startTime)+o+.5*(y(e.endTime)-y(e.startTime))-.5*s:y(e.startTime)+o}).attr(`y`,function(e,t){return t=e.order,e.vert?a.gridLineStartPadding:t*n+r}).attr(`width`,function(e){return e.milestone?s:e.vert?.08*s:y(e.renderEndTime||e.endTime)-y(e.startTime)}).attr(`height`,function(e){return e.vert?u.length*(a.barHeight+a.barGap)+a.barHeight*2:s}).attr(`transform-origin`,function(e,t){return t=e.order,(y(e.startTime)+o+.5*(y(e.endTime)-y(e.startTime))).toString()+`px `+(t*n+r+.5*s).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of h.entries())e.type===r&&(n=t%a.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),f.append(`text`).attr(`id`,function(e){return t+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,a.fontSize).attr(`x`,function(e){let t=y(e.startTime),n=y(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(y(e.endTime)-y(e.startTime))-.5*s,n=t+s),e.vert)return y(e.startTime)+o;let r=this.getBBox().width;return r>n-t?n+r+1.5*a.leftPadding>l?t+o-5:n+o+5:(n-t)/2+t+o}).attr(`y`,function(e,t){return e.vert?a.gridLineStartPadding+u.length*(a.barHeight+a.barGap)+60:(t=e.order,t*n+a.barHeight/2+(a.fontSize/2-2)+r)}).attr(`text-height`,s).attr(`class`,function(e){let t=y(e.startTime),n=y(e.endTime);e.milestone&&(n=t+s);let r=this.getBBox().width,i=``;e.classes.length>0&&(i=e.classes.join(` `));let o=0;for(let[t,n]of h.entries())e.type===n&&(o=t%a.numberSectionStyles);let c=``;return e.active&&(c=e.crit?`activeCritText`+o:`activeText`+o),e.done?c=e.crit?c+` doneCritText`+o:c+` doneText`+o:e.crit&&(c=c+` critText`+o),e.milestone&&(c+=` milestoneText`),e.vert&&(c+=` vertText`),r>n-t?n+r+1.5*a.leftPadding>l?i+` taskTextOutsideLeft taskTextOutside`+o+` `+c:i+` taskTextOutsideRight taskTextOutside`+o+` `+c+` width-`+r:i+` taskText taskText`+o+` `+c+` width-`+r}),F().securityLevel===`sandbox`){let e;e=se(`#i`+t);let n=e.nodes()[0].contentDocument;f.filter(function(e){return p.has(e.id)}).each(function(e){var r=n.querySelector(`#`+CSS.escape(t+`-`+e.id)),i=n.querySelector(`#`+CSS.escape(t+`-`+e.id+`-text`));let a=r.parentNode;var o=n.createElement(`a`);o.setAttribute(`xlink:href`,p.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(r),o.appendChild(i)})}}P(C,`drawRects`);function w(e,n,r,o,s,c,l,u){if(l.length===0&&u.length===0)return;let d,f;for(let{startTime:e,endTime:t}of c)(d===void 0||e<d)&&(d=e),(f===void 0||t>f)&&(f=t);if(!d||!f)return;if((0,U.default)(f).diff((0,U.default)(d),`year`)>5){N.warn(`The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.`);return}let p=i.db.getDateFormat(),m=[],h=null,g=(0,U.default)(d);for(;g.valueOf()<=f;)i.db.isInvalidDate(g,p,l,u)?h?h.end=g:h={start:g,end:g}:h&&=(m.push(h),null),g=g.add(1,`d`);v.append(`g`).selectAll(`rect`).data(m).enter().append(`rect`).attr(`id`,e=>t+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>y(e.start.startOf(`day`))+r).attr(`y`,a.gridLineStartPadding).attr(`width`,e=>y(e.end.endOf(`day`))-y(e.start.startOf(`day`))).attr(`height`,s-n-a.gridLineStartPadding).attr(`transform-origin`,function(t,n){return(y(t.start)+r+.5*(y(t.end)-y(t.start))).toString()+`px `+(n*e+.5*s).toString()+`px`}).attr(`class`,`exclude-range`)}P(w,`drawExcludeDays`);function T(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=U.default.duration({[r??`day`]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}P(T,`getEstimatedTickCount`);function E(e,t,n,c){let l=i.db.getDateFormat(),u=i.db.getAxisFormat(),d;d=u||(l===`D`?`%d`:a.axisFormat??`%Y-%m-%d`);let f=Ie(y).tickSize(-c+t+a.gridLineStartPadding).tickFormat(on(d)),p=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||a.tickInterval);if(p!==null){let e=parseInt(p[1],10);if(isNaN(e)||e<=0)N.warn(`Invalid tick interval value: "${p[1]}". Skipping custom tick interval.`);else{let t=p[2],n=i.db.getWeekday()||a.weekday,c=y.domain(),l=c[0],u=c[1],d=T(l,u,e,t);if(d>Nr)N.warn(`The tick interval "${e}${t}" would generate ${d} ticks, which exceeds the maximum allowed (${Nr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case`millisecond`:f.ticks(I.every(e));break;case`second`:f.ticks(S.every(e));break;case`minute`:f.ticks(M.every(e));break;case`hour`:f.ticks(o.every(e));break;case`day`:f.ticks(s.every(e));break;case`week`:f.ticks(jr[n].every(e));break;case`month`:f.ticks(r.every(e))}}}if(v.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+(c-50)+`)`).call(f).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),i.db.topAxisEnabled()||a.topAxis){let n=Fe(y).tickSize(-c+t+a.gridLineStartPadding).tickFormat(on(d));if(p!==null){let e=parseInt(p[1],10);if(isNaN(e)||e<=0)N.warn(`Invalid tick interval value: "${p[1]}". Skipping custom tick interval.`);else{let t=p[2],c=i.db.getWeekday()||a.weekday,l=y.domain(),u=l[0],d=l[1];if(T(u,d,e,t)<=Nr)switch(t){case`millisecond`:n.ticks(I.every(e));break;case`second`:n.ticks(S.every(e));break;case`minute`:n.ticks(M.every(e));break;case`hour`:n.ticks(o.every(e));break;case`day`:n.ticks(s.every(e));break;case`week`:n.ticks(jr[c].every(e));break;case`month`:n.ticks(r.every(e))}}}v.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+t+`)`).call(n).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}P(E,`makeGrid`);function O(e,t){let n=0,r=Object.keys(g).map(e=>[e,g[e]]);v.append(`g`).selectAll(`text`).data(r).enter().append(function(e){let t=e[0].split(pe.lineBreakRegex),n=-(t.length-1)/2,r=d.createElementNS(`http://www.w3.org/2000/svg`,`text`);r.setAttribute(`dy`,n+`em`);for(let[e,n]of t.entries()){let t=d.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttribute(`alignment-baseline`,`central`),t.setAttribute(`x`,`10`),e>0&&t.setAttribute(`dy`,`1em`),t.textContent=n,r.appendChild(t)}return r}).attr(`x`,10).attr(`y`,function(i,a){if(a>0)for(let o=0;o<a;o++)return n+=r[a-1][1],i[1]*e/2+n*e+t;else return i[1]*e/2+t}).attr(`font-size`,a.sectionFontSize).attr(`class`,function(e){for(let[t,n]of h.entries())if(e[0]===n)return`sectionTitle sectionTitle`+t%a.numberSectionStyles;return`sectionTitle`})}P(O,`vertLabels`);function k(e,t,n,r){let o=i.db.getTodayMarker();if(o===`off`)return;let s=v.append(`g`).attr(`class`,`today`),c=new Date,l=s.append(`line`);l.attr(`x1`,y(c)+e).attr(`x2`,y(c)+e).attr(`y1`,a.titleTopMargin).attr(`y2`,r-a.titleTopMargin).attr(`class`,`today`),o!==``&&l.attr(`style`,o.replace(/,/g,`;`))}P(k,`drawToday`);function j(e){let t={},n=[];for(let r=0,i=e.length;r<i;++r)Object.prototype.hasOwnProperty.call(t,e[r])||(t[e[r]]=!0,n.push(e[r]));return n}P(j,`checkUnique`)},`draw`)},styles:P(e=>`
|
|
7
|
-
.mermaid-main-font {
|
|
8
|
-
font-family: ${e.fontFamily};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.exclude-range {
|
|
12
|
-
fill: ${e.excludeBkgColor};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.section {
|
|
16
|
-
stroke: none;
|
|
17
|
-
opacity: 0.2;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.section0 {
|
|
21
|
-
fill: ${e.sectionBkgColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.section2 {
|
|
25
|
-
fill: ${e.sectionBkgColor2};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.section1,
|
|
29
|
-
.section3 {
|
|
30
|
-
fill: ${e.altSectionBkgColor};
|
|
31
|
-
opacity: 0.2;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.sectionTitle0 {
|
|
35
|
-
fill: ${e.titleColor};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.sectionTitle1 {
|
|
39
|
-
fill: ${e.titleColor};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.sectionTitle2 {
|
|
43
|
-
fill: ${e.titleColor};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.sectionTitle3 {
|
|
47
|
-
fill: ${e.titleColor};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.sectionTitle {
|
|
51
|
-
text-anchor: start;
|
|
52
|
-
font-family: ${e.fontFamily};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/* Grid and axis */
|
|
57
|
-
|
|
58
|
-
.grid .tick {
|
|
59
|
-
stroke: ${e.gridColor};
|
|
60
|
-
opacity: 0.8;
|
|
61
|
-
shape-rendering: crispEdges;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.grid .tick text {
|
|
65
|
-
font-family: ${e.fontFamily};
|
|
66
|
-
fill: ${e.textColor};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.grid path {
|
|
70
|
-
stroke-width: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/* Today line */
|
|
75
|
-
|
|
76
|
-
.today {
|
|
77
|
-
fill: none;
|
|
78
|
-
stroke: ${e.todayLineColor};
|
|
79
|
-
stroke-width: 2px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/* Task styling */
|
|
84
|
-
|
|
85
|
-
/* Default task */
|
|
86
|
-
|
|
87
|
-
.task {
|
|
88
|
-
stroke-width: 2;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.taskText {
|
|
92
|
-
text-anchor: middle;
|
|
93
|
-
font-family: ${e.fontFamily};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.taskTextOutsideRight {
|
|
97
|
-
fill: ${e.taskTextDarkColor};
|
|
98
|
-
text-anchor: start;
|
|
99
|
-
font-family: ${e.fontFamily};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.taskTextOutsideLeft {
|
|
103
|
-
fill: ${e.taskTextDarkColor};
|
|
104
|
-
text-anchor: end;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/* Special case clickable */
|
|
109
|
-
|
|
110
|
-
.task.clickable {
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.taskText.clickable {
|
|
115
|
-
cursor: pointer;
|
|
116
|
-
fill: ${e.taskTextClickableColor} !important;
|
|
117
|
-
font-weight: bold;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.taskTextOutsideLeft.clickable {
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
fill: ${e.taskTextClickableColor} !important;
|
|
123
|
-
font-weight: bold;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.taskTextOutsideRight.clickable {
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
fill: ${e.taskTextClickableColor} !important;
|
|
129
|
-
font-weight: bold;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/* Specific task settings for the sections*/
|
|
134
|
-
|
|
135
|
-
.taskText0,
|
|
136
|
-
.taskText1,
|
|
137
|
-
.taskText2,
|
|
138
|
-
.taskText3 {
|
|
139
|
-
fill: ${e.taskTextColor};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.task0,
|
|
143
|
-
.task1,
|
|
144
|
-
.task2,
|
|
145
|
-
.task3 {
|
|
146
|
-
fill: ${e.taskBkgColor};
|
|
147
|
-
stroke: ${e.taskBorderColor};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.taskTextOutside0,
|
|
151
|
-
.taskTextOutside2
|
|
152
|
-
{
|
|
153
|
-
fill: ${e.taskTextOutsideColor};
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.taskTextOutside1,
|
|
157
|
-
.taskTextOutside3 {
|
|
158
|
-
fill: ${e.taskTextOutsideColor};
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
/* Active task */
|
|
163
|
-
|
|
164
|
-
.active0,
|
|
165
|
-
.active1,
|
|
166
|
-
.active2,
|
|
167
|
-
.active3 {
|
|
168
|
-
fill: ${e.activeTaskBkgColor};
|
|
169
|
-
stroke: ${e.activeTaskBorderColor};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.activeText0,
|
|
173
|
-
.activeText1,
|
|
174
|
-
.activeText2,
|
|
175
|
-
.activeText3 {
|
|
176
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/* Completed task */
|
|
181
|
-
|
|
182
|
-
.done0,
|
|
183
|
-
.done1,
|
|
184
|
-
.done2,
|
|
185
|
-
.done3 {
|
|
186
|
-
stroke: ${e.doneTaskBorderColor};
|
|
187
|
-
fill: ${e.doneTaskBkgColor};
|
|
188
|
-
stroke-width: 2;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.doneText0,
|
|
192
|
-
.doneText1,
|
|
193
|
-
.doneText2,
|
|
194
|
-
.doneText3 {
|
|
195
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* Done task text displayed outside the bar sits against the diagram background,
|
|
199
|
-
not against the done-task bar, so it must use the outside/contrast color. */
|
|
200
|
-
.doneText0.taskTextOutsideLeft,
|
|
201
|
-
.doneText0.taskTextOutsideRight,
|
|
202
|
-
.doneText1.taskTextOutsideLeft,
|
|
203
|
-
.doneText1.taskTextOutsideRight,
|
|
204
|
-
.doneText2.taskTextOutsideLeft,
|
|
205
|
-
.doneText2.taskTextOutsideRight,
|
|
206
|
-
.doneText3.taskTextOutsideLeft,
|
|
207
|
-
.doneText3.taskTextOutsideRight {
|
|
208
|
-
fill: ${e.taskTextOutsideColor} !important;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
/* Tasks on the critical line */
|
|
213
|
-
|
|
214
|
-
.crit0,
|
|
215
|
-
.crit1,
|
|
216
|
-
.crit2,
|
|
217
|
-
.crit3 {
|
|
218
|
-
stroke: ${e.critBorderColor};
|
|
219
|
-
fill: ${e.critBkgColor};
|
|
220
|
-
stroke-width: 2;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.activeCrit0,
|
|
224
|
-
.activeCrit1,
|
|
225
|
-
.activeCrit2,
|
|
226
|
-
.activeCrit3 {
|
|
227
|
-
stroke: ${e.critBorderColor};
|
|
228
|
-
fill: ${e.activeTaskBkgColor};
|
|
229
|
-
stroke-width: 2;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.doneCrit0,
|
|
233
|
-
.doneCrit1,
|
|
234
|
-
.doneCrit2,
|
|
235
|
-
.doneCrit3 {
|
|
236
|
-
stroke: ${e.critBorderColor};
|
|
237
|
-
fill: ${e.doneTaskBkgColor};
|
|
238
|
-
stroke-width: 2;
|
|
239
|
-
cursor: pointer;
|
|
240
|
-
shape-rendering: crispEdges;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.milestone {
|
|
244
|
-
transform: rotate(45deg) scale(0.8,0.8);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.milestoneText {
|
|
248
|
-
font-style: italic;
|
|
249
|
-
}
|
|
250
|
-
.doneCritText0,
|
|
251
|
-
.doneCritText1,
|
|
252
|
-
.doneCritText2,
|
|
253
|
-
.doneCritText3 {
|
|
254
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
|
|
258
|
-
.doneCritText0.taskTextOutsideLeft,
|
|
259
|
-
.doneCritText0.taskTextOutsideRight,
|
|
260
|
-
.doneCritText1.taskTextOutsideLeft,
|
|
261
|
-
.doneCritText1.taskTextOutsideRight,
|
|
262
|
-
.doneCritText2.taskTextOutsideLeft,
|
|
263
|
-
.doneCritText2.taskTextOutsideRight,
|
|
264
|
-
.doneCritText3.taskTextOutsideLeft,
|
|
265
|
-
.doneCritText3.taskTextOutsideRight {
|
|
266
|
-
fill: ${e.taskTextOutsideColor} !important;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.vert {
|
|
270
|
-
stroke: ${e.vertLineColor};
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.vertText {
|
|
274
|
-
font-size: 15px;
|
|
275
|
-
text-anchor: middle;
|
|
276
|
-
fill: ${e.vertLineColor} !important;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.activeCritText0,
|
|
280
|
-
.activeCritText1,
|
|
281
|
-
.activeCritText2,
|
|
282
|
-
.activeCritText3 {
|
|
283
|
-
fill: ${e.taskTextDarkColor} !important;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.titleText {
|
|
287
|
-
text-anchor: middle;
|
|
288
|
-
font-size: 18px;
|
|
289
|
-
fill: ${e.titleColor||e.textColor};
|
|
290
|
-
font-family: ${e.fontFamily};
|
|
291
|
-
}
|
|
292
|
-
`,`getStyles`)};export{Pr as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{n as default,r as en,i as kaa}from"./prod-BkhfMLuD.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./prod-BkhfMLuD.js";export{n as Commands,i as subsetToBase64,r as subsetToBinary,t as toBase64}from"./chunk-EIO257PC-BtM_VLQE.js";
|