grimoire3d 0.4.0-dev.447716f → 0.4.0-dev.77a79c6
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/site/assets/{BookReader-CMVm2j3P.js → BookReader-SE4dJZfI.js} +2 -2
- package/dist/site/assets/{BookScene-CIoKx_8t.js → BookScene-D66opUpT.js} +1 -1
- package/dist/site/assets/{DiagramViewer-CYbBEQgH.js → DiagramViewer-D0KkUbyD.js} +1 -1
- package/dist/site/assets/{MermaidDiagram-B1zz-cJX.js → MermaidDiagram-ygffYb-m.js} +4 -4
- package/dist/site/assets/{PageMarkdown-nxVv69Vf.js → PageMarkdown-eYkrzJvo.js} +3 -3
- package/dist/site/assets/{SearchDialog-Df-utrwU.js → SearchDialog-BGpJffal.js} +1 -1
- package/dist/site/assets/{abnfDiagram-S7VZAUFO-BR8IGxQB.js → abnfDiagram-S7VZAUFO-DjLpWCRL.js} +1 -1
- package/dist/site/assets/{architecture-WOLXFQ4H-90MJGgT8.js → architecture-WOLXFQ4H-DdaUWoL1.js} +1 -1
- package/dist/site/assets/{architectureDiagram-YGSQEFNW-DxpbuJaR.js → architectureDiagram-YGSQEFNW-Bw5QOeTQ.js} +1 -1
- package/dist/site/assets/{blockDiagram-APKKGZFW-CKWSsD8U.js → blockDiagram-APKKGZFW--LOo2MWq.js} +1 -1
- package/dist/site/assets/{c4Diagram-KJ2TOQU5-CdqoyEn3.js → c4Diagram-KJ2TOQU5-Cc0ozzuL.js} +1 -1
- package/dist/site/assets/{chunk-6MUBBAK2-Dgz7ppMx.js → chunk-6MUBBAK2-CWlgffVt.js} +1 -1
- package/dist/site/assets/{chunk-AXFCVDMN-BqHDIzr7.js → chunk-AXFCVDMN-BLcMGoIA.js} +1 -1
- package/dist/site/assets/{chunk-BG4553SI-DKMzv0Bz.js → chunk-BG4553SI-BcspVJor.js} +1 -1
- package/dist/site/assets/{chunk-DQASFODM-BeNhzMJf.js → chunk-DQASFODM-D0xZNdZz.js} +1 -1
- package/dist/site/assets/{chunk-HFQBQIA3-Bm5lhsd5.js → chunk-HFQBQIA3-CwKG2G2g.js} +1 -1
- package/dist/site/assets/{chunk-KQLB2F66-UC6157Ue.js → chunk-KQLB2F66-CSXTl6Hq.js} +1 -1
- package/dist/site/assets/{chunk-KS47KZWR-BSd8af6M.js → chunk-KS47KZWR-DSCKZ1bH.js} +1 -1
- package/dist/site/assets/{chunk-LEVMRMFU-D0PIc1p1.js → chunk-LEVMRMFU-D2pNijXQ.js} +1 -1
- package/dist/site/assets/{chunk-M57EVK23-D-ico1Th.js → chunk-M57EVK23-CenoL2DJ.js} +1 -1
- package/dist/site/assets/{chunk-OY52VR5R-C_8A3BNy.js → chunk-OY52VR5R-XSlZiBnF.js} +1 -1
- package/dist/site/assets/{chunk-QB3YPZ4I-D90x0rRF.js → chunk-QB3YPZ4I-B_9JHWDh.js} +1 -1
- package/dist/site/assets/{chunk-R3KSYZAL-B7THQv9a.js → chunk-R3KSYZAL-B_uKHMt4.js} +1 -1
- package/dist/site/assets/{chunk-STOXU5M4-DQXfE8bD.js → chunk-STOXU5M4-CHtPv0Yd.js} +1 -1
- package/dist/site/assets/{chunk-TU62E6Q5-B5cs1tiB.js → chunk-TU62E6Q5-DS50zfhC.js} +1 -1
- package/dist/site/assets/{chunk-X4PVCEUW-DGKUon3k.js → chunk-X4PVCEUW-EYN8McR9.js} +1 -1
- package/dist/site/assets/{chunk-XXDRQBXY-B0eE8T6-.js → chunk-XXDRQBXY-DZhGcTjI.js} +1 -1
- package/dist/site/assets/{classDiagram-v2-L25IHNXF-Cz-9fhlG.js → classDiagram-v2-L25IHNXF-Ttm_J8E_.js} +1 -1
- package/dist/site/assets/{cose-bilkent-JH36ORCC-B92ZVq5z.js → cose-bilkent-JH36ORCC-CbEULJ3K.js} +1 -1
- package/dist/site/assets/cynefin-EF2NZ3EQ-DAsXpmei.js +1 -0
- package/dist/site/assets/{cynefinDiagram-L36ESFBY-yKHt1pcs.js → cynefinDiagram-L36ESFBY-Dnau00Hs.js} +1 -1
- package/dist/site/assets/{d3-selection-CVxgF8Ya.js → d3-selection-B6Leru-d.js} +1 -1
- package/dist/site/assets/{dagre-SPEB5RXH-BIZik_0j.js → dagre-SPEB5RXH-CDwGREeE.js} +1 -1
- package/dist/site/assets/{diagram-3B7GL73J-BwMAsTa9.js → diagram-3B7GL73J-CA1pGBb5.js} +1 -1
- package/dist/site/assets/{diagram-DNEMPZML-BQUlAJPu.js → diagram-DNEMPZML-yNx6L8u9.js} +1 -1
- package/dist/site/assets/{diagram-L3MUGCDN-fUIimxx6.js → diagram-L3MUGCDN-n6iu19Me.js} +1 -1
- package/dist/site/assets/{diagram-LA4NIPWU-5Of_CE5j.js → diagram-LA4NIPWU-DKjtOyDI.js} +1 -1
- package/dist/site/assets/{diagram-MHCOC4E2-B_2Yly0I.js → diagram-MHCOC4E2-xnmoraM_.js} +1 -1
- package/dist/site/assets/{diagram-XPFHEONP-CbTOu_Cl.js → diagram-XPFHEONP-Ctn7xQOg.js} +1 -1
- package/dist/site/assets/{dist-CAxpCi_w.js → dist-BXMzeT3a.js} +1 -1
- package/dist/site/assets/{ebnfDiagram-UZSYDL2S-CPiUy3zC.js → ebnfDiagram-UZSYDL2S-BEW44JPW.js} +1 -1
- package/dist/site/assets/{elk-XV6XMXQE-g9F7LdsC.js → elk-XV6XMXQE-B0fAqyx5.js} +1 -1
- package/dist/site/assets/{erDiagram-EYBAPDEH-Cqnqz-s8.js → erDiagram-EYBAPDEH-DpM7SiyR.js} +1 -1
- package/dist/site/assets/{eventmodeling-K75KTNOO--5jIqQqd.js → eventmodeling-K75KTNOO-C8T83l3X.js} +1 -1
- package/dist/site/assets/flowDiagram-MALGAFMO-T6NZR9vn.js +1 -0
- package/dist/site/assets/{ganttDiagram-23REXITY-C6aslBaf.js → ganttDiagram-23REXITY-DaJGMDM2.js} +1 -1
- package/dist/site/assets/gitGraph-VSP46ZUC-em89TqwX.js +1 -0
- package/dist/site/assets/{gitGraphDiagram-STJD7YCW-RAWwBnxA.js → gitGraphDiagram-STJD7YCW-y0P4gPBL.js} +1 -1
- package/dist/site/assets/{index-GvaNKs5v.js → index-BrMNyMWf.js} +2 -2
- package/dist/site/assets/{index-DMzLZTw8.css → index-DpI7mmzz.css} +1 -1
- package/dist/site/assets/info-OHQRW6UA-CMdbrl3c.js +1 -0
- package/dist/site/assets/{infoDiagram-KBXO4MBG-DyBbty8F.js → infoDiagram-KBXO4MBG-DnV-kliB.js} +1 -1
- package/dist/site/assets/{ishikawaDiagram-M35NCXHK-CSWNOLwv.js → ishikawaDiagram-M35NCXHK-CMBU1p4z.js} +1 -1
- package/dist/site/assets/{journeyDiagram-OPLOXDXO-BZPCEVyH.js → journeyDiagram-OPLOXDXO-IeFOJ4uq.js} +1 -1
- package/dist/site/assets/{kanban-definition-BZKZHSQY-DteyA0IO.js → kanban-definition-BZKZHSQY-BSB3BJom.js} +1 -1
- package/dist/site/assets/{mermaid-parser.core-PxovB7hr.js → mermaid-parser.core-CmuythWW.js} +3 -3
- package/dist/site/assets/{mindmap-definition-I2QAS2VK-Bmmuqiot.js → mindmap-definition-I2QAS2VK-Co9_BF4j.js} +1 -1
- package/dist/site/assets/packet-JDAUHWVQ-D9xTaS0e.js +1 -0
- package/dist/site/assets/{pegDiagram-FD4XPPHP-qhSCN5AW.js → pegDiagram-FD4XPPHP-DB5exPSQ.js} +1 -1
- package/dist/site/assets/pie-XZMESJXO-B6kvWsBj.js +1 -0
- package/dist/site/assets/{pieDiagram-J4AKIIQI-C_q7bEoU.js → pieDiagram-J4AKIIQI-B6Z0Zb-I.js} +1 -1
- package/dist/site/assets/{quadrantDiagram-XTYBLID2-uB-u2czb.js → quadrantDiagram-XTYBLID2-Dqim50_T.js} +1 -1
- package/dist/site/assets/radar-ABXABTNO-Cz83hQnV.js +1 -0
- package/dist/site/assets/railroad-I3PHUGI6-DM2Ofjr-.js +1 -0
- package/dist/site/assets/{railroad-abnf-LNEFI6M7-DUVxlunf.js → railroad-abnf-LNEFI6M7-CZh1X2K8.js} +1 -1
- package/dist/site/assets/{railroad-ebnf-DWYD2UWJ-CP_ugtYj.js → railroad-ebnf-DWYD2UWJ-CunUK1NN.js} +1 -1
- package/dist/site/assets/{railroad-peg-JR7BVNR7-CbBki0GK.js → railroad-peg-JR7BVNR7-C2xx1CZE.js} +1 -1
- package/dist/site/assets/{railroadDiagram-MRQ6NCDL-D-k3w0vd.js → railroadDiagram-MRQ6NCDL--zKhi2ZQ.js} +1 -1
- package/dist/site/assets/{requirementDiagram-Y7LWUY3S-D5Skozo6.js → requirementDiagram-Y7LWUY3S-B-_VAhZV.js} +1 -1
- package/dist/site/assets/{sankeyDiagram-WGJFYUXA-DrulYzdK.js → sankeyDiagram-WGJFYUXA-CqftTOgI.js} +1 -1
- package/dist/site/assets/{sequenceDiagram-5NDRBG5M-yKGWhmS2.js → sequenceDiagram-5NDRBG5M-BpiwP5hF.js} +1 -1
- package/dist/site/assets/{stateDiagram-v2-FJ4FJNEA-CUKsGWYN.js → stateDiagram-v2-FJ4FJNEA-C1diRqEB.js} +1 -1
- package/dist/site/assets/{swimlanes-UMQ2AFYF-Do_WCZrU.js → swimlanes-UMQ2AFYF-C8Nr9mE2.js} +1 -1
- package/dist/site/assets/swimlanesDiagram-OMPLPG4O-Dt6psXVk.js +8 -0
- package/dist/site/assets/{timeline-definition-SEUHKTQE-CWHDDSE-.js → timeline-definition-SEUHKTQE-B-_YLNbP.js} +1 -1
- package/dist/site/assets/treeView-D4JQ5SDB-Iyypracg.js +1 -0
- package/dist/site/assets/treemap-SAJKECNS-WKaBL1tm.js +1 -0
- package/dist/site/assets/{usecaseDiagram-AFA6YXN4-BHxDH4ur.js → usecaseDiagram-AFA6YXN4-Dqqhdt26.js} +1 -1
- package/dist/site/assets/{vennDiagram-NNMJR3RB-Bogzeqil.js → vennDiagram-NNMJR3RB-D2Sl9h0a.js} +1 -1
- package/dist/site/assets/wardley-7MLQ67FV-LACIidNW.js +1 -0
- package/dist/site/assets/{wardleyDiagram-S7YFUSEH-BA5OORVq.js → wardleyDiagram-S7YFUSEH-CyJ4Eojp.js} +1 -1
- package/dist/site/assets/{xychartDiagram-GGNKY7IX-DbEC6gtH.js → xychartDiagram-GGNKY7IX-C26zvBdA.js} +1 -1
- package/dist/site/index.html +2 -2
- package/package.json +1 -1
- package/dist/site/assets/cynefin-EF2NZ3EQ-B3m7fpVf.js +0 -1
- package/dist/site/assets/flowDiagram-MALGAFMO-BaEkQXGW.js +0 -1
- package/dist/site/assets/gitGraph-VSP46ZUC-D9rN03e-.js +0 -1
- package/dist/site/assets/info-OHQRW6UA-WHh3stkK.js +0 -1
- package/dist/site/assets/packet-JDAUHWVQ-C_UAajnp.js +0 -1
- package/dist/site/assets/pie-XZMESJXO-UzrpEVGj.js +0 -1
- package/dist/site/assets/radar-ABXABTNO-DzC9Oc5w.js +0 -1
- package/dist/site/assets/railroad-I3PHUGI6-D8bliAMX.js +0 -1
- package/dist/site/assets/swimlanesDiagram-OMPLPG4O-D3pKyr1_.js +0 -8
- package/dist/site/assets/treeView-D4JQ5SDB-DxTMmZMx.js +0 -1
- package/dist/site/assets/treemap-SAJKECNS-Bzf9exlH.js +0 -1
- package/dist/site/assets/wardley-7MLQ67FV-D7NEUI5n.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./chunk-XXDRQBXY-B0eE8T6-.js";import{t}from"./chunk-TU62E6Q5-B5cs1tiB.js";import{a as n,i as r}from"./MermaidDiagram-B1zz-cJX.js";import"./chunk-M57EVK23-D-ico1Th.js";import{h as i}from"./chunk-DQASFODM-BeNhzMJf.js";import"./chunk-LEVMRMFU-D0PIc1p1.js";import"./chunk-AXFCVDMN-BqHDIzr7.js";import"./chunk-X4PVCEUW-DGKUon3k.js";import"./chunk-STOXU5M4-DQXfE8bD.js";import"./chunk-R3KSYZAL-B7THQv9a.js";import{a,i as o,o as s,r as c,t as l}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{_ as u,c as d}from"./chunk-6MUBBAK2-Dgz7ppMx.js";import{C as f,H as p,U as m,_ as h,a as g,at as _,b as v,q as y,s as b,v as x}from"./chunk-BG4553SI-DKMzv0Bz.js";import{n as S,t as C}from"./d3-selection-CVxgF8Ya.js";import{n as w,t as T}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var E=(function(){var e=w(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],n=[2,2],r=[1,7],i=[1,9],a=[1,10],o=[1,11],s=[1,12],c=[1,30],l=[1,23],u=[1,24],d=[1,25],f=[1,26],p=[1,27],m=[1,19],h=[1,28],g=[1,29],_=[1,20],v=[1,18],y=[1,21],b=[1,22],x=[2,6],S=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],C=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],A=[1,46],j=[1,47],M=[1,57],N=[43,51,53,54,55,74,75],P=[1,70],F=[1,68],I=[1,65],L=[1,69],R=[1,71],z=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],B=[1,78],V=[1,77],H=[1,76],U=[69,70,71,72,73],W=[1,91],G=[6,9,45,50],K=[6,9,12,44,45,50,51,52],q=[1,101],J=[1,100],Y=[1,99],X=[18,61],ee=[1,110],te=[1,109],ne=[20,43,51,53,54,55],Z=[18,61,64,66],Q={trace:w(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,9:`NEWLINE`,12:`COLON`,14:`STYLE_SEPARATOR`,16:`BLOCK_START`,18:`BLOCK_STOP`,19:`SQS`,20:`SQE`,21:`title`,22:`title_value`,23:`acc_title`,24:`acc_title_value`,25:`acc_descr`,26:`acc_descr_value`,27:`acc_descr_multiline_value`,33:`END`,34:`SUBGRAPH`,37:`direction_tb`,38:`direction_bt`,39:`direction_rl`,40:`direction_lr`,41:`CLASSDEF`,43:`UNICODE_TEXT`,44:`STYLE_TEXT`,45:`COMMA`,46:`CLASS`,47:`STYLE`,50:`SEMI`,51:`NUM`,52:`BRKT`,53:`ENTITY_NAME`,54:`DECIMAL_NUM`,55:`ENTITY_ONE`,61:`ATTRIBUTE_WORD`,62:`?`,64:`,`,65:`ATTRIBUTE_KEY`,66:`COMMENT`,69:`ZERO_OR_ONE`,70:`ZERO_OR_MORE`,71:`ONE_OR_MORE`,72:`ONLY_ONE`,73:`MD_PARENT`,74:`NON_IDENTIFYING`,75:`IDENTIFYING`,76:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:w(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:this.$=a[s-1].concat(a[s]);break;case 4:this.$=a[s];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]),this.$=[a[s-4],a[s-2]];break;case 8:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-8],a[s-4]];break;case 9:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]),this.$=[a[s-6],a[s-2]];break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-6],a[s-4]];break;case 11:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]),this.$=[a[s-3]];break;case 12:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]),this.$=[a[s-5]];break;case 13:r.addEntity(a[s-2]),this.$=[a[s-2]];break;case 14:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-4]];break;case 15:r.addEntity(a[s]),this.$=[a[s]];break;case 16:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]),this.$=[a[s-2]];break;case 17:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]),this.$=[a[s-6]];break;case 18:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]),this.$=[a[s-8]];break;case 19:r.addEntity(a[s-5],a[s-3]),this.$=[a[s-5]];break;case 20:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]),this.$=[a[s-7]];break;case 21:r.addEntity(a[s-3],a[s-1]);break;case 22:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 23:case 24:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=a[s]:(r.setDirection(a[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:a[s-2].id},a[s-1],{text:a[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-1],text:a[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-4],text:a[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=a[s];break;case 35:this.$=a[s-1]+` `+a[s];break;case 36:this.$={stmt:`dir`,value:`TB`};break;case 37:this.$={stmt:`dir`,value:`BT`};break;case 38:this.$={stmt:`dir`,value:`RL`};break;case 39:this.$={stmt:`dir`,value:`LR`};break;case 40:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 41:case 42:case 63:case 72:this.$=[a[s]];break;case 43:case 44:this.$=a[s-2].concat([a[s]]);break;case 45:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 46:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 47:this.$=[a[s]];break;case 48:a[s-2].push(a[s]),this.$=a[s-2];break;case 50:this.$=a[s-1]+a[s];break;case 58:case 84:case 85:this.$=a[s].replace(/"/g,``);break;case 64:a[s].push(a[s-1]),this.$=a[s];break;case 65:this.$={type:a[s-1],name:a[s]};break;case 66:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 67:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 68:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 69:case 71:case 74:this.$=a[s];break;case 70:this.$=a[s-1]+a[s];break;case 73:a[s-2].push(a[s]),this.$=a[s-2];break;case 75:this.$=a[s].replace(/"/g,``);break;case 76:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,n,{5:3}),{6:[1,4],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,34:c,37:l,38:u,39:d,40:f,41:p,43:m,46:h,47:g,51:_,53:v,54:y,55:b},e(t,x,{1:[2,1]}),e(S,[2,3]),e(S,[2,4]),e(S,[2,5]),e(S,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:C,70:T,71:E,72:D,73:O}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(S,[2,26]),e(S,[2,27]),e(S,[2,28]),e(S,[2,29]),e(S,[2,30]),e(S,n,{5:44}),e(k,[2,58]),e(k,[2,59]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),e(S,[2,39]),{15:45,43:A,44:j},{15:48,43:A,44:j},{15:49,43:A,44:j},{10:50,43:m,51:_,53:v,54:y,55:b},{10:51,43:m,51:_,53:v,54:y,55:b},{15:52,43:A,44:j},{17:53,18:[1,54],56:55,57:56,61:M},{10:58,43:m,51:_,53:v,54:y,55:b},{68:59,74:[1,60],75:[1,61]},e(N,[2,77]),e(N,[2,78]),e(N,[2,79]),e(N,[2,80]),e(N,[2,81]),e(S,[2,23]),e(S,[2,24]),e(S,[2,25]),{6:[1,63],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:c,37:l,38:u,39:d,40:f,41:p,43:m,46:h,47:g,51:_,53:v,54:y,55:b},{12:P,42:64,44:F,45:I,48:66,49:67,51:L,52:R},e(z,[2,41]),e(z,[2,42]),{15:72,43:A,44:j,45:I},{12:P,42:73,44:F,45:I,48:66,49:67,51:L,52:R},{6:B,9:V,19:[1,75],35:74,50:H},{12:[1,79],14:[1,80]},e(S,[2,16],{67:35,11:81,16:[1,82],45:I,69:C,70:T,71:E,72:D,73:O}),{18:[1,83]},e(S,[2,13]),{17:84,18:[2,63],56:55,57:56,61:M},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:C,70:T,71:E,72:D,73:O},e(U,[2,82]),e(U,[2,83]),e(S,[2,31]),e(S,x),{6:B,9:V,35:90,45:W,50:H},{43:[1,92],44:[1,93]},e(G,[2,47],{49:94,12:P,44:F,51:L,52:R}),e(K,[2,49]),e(K,[2,54]),e(K,[2,55]),e(K,[2,56]),e(K,[2,57]),e(S,[2,45],{45:I}),{6:B,9:V,35:95,45:W,50:H},e(S,[2,32]),{10:97,36:96,43:m,51:_,53:v,54:y,55:b},e(S,[2,51]),e(S,[2,52]),e(S,[2,53]),{13:98,43:q,53:J,76:Y},{15:102,43:A,44:j},{10:103,43:m,51:_,53:v,54:y,55:b},{17:104,18:[1,105],56:55,57:56,61:M},e(S,[2,11]),{18:[2,64]},e(X,[2,65],{59:106,60:107,63:108,65:ee,66:te}),e([18,61,65,66],[2,71]),{61:[2,70]},e(S,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(S,[2,40]),{12:P,44:F,48:113,49:67,51:L,52:R},e(z,[2,43]),e(z,[2,44]),e(K,[2,50]),e(S,[2,46]),{10:115,20:[1,114],43:m,51:_,53:v,54:y,55:b},e(ne,[2,34]),e(S,[2,7]),e(S,[2,84]),e(S,[2,85]),e(S,[2,86]),{12:[1,116],45:I},{12:[1,118],14:[1,117]},{18:[1,119]},e(S,[2,14]),e(X,[2,66],{60:120,64:[1,121],66:te}),e(X,[2,67]),e(Z,[2,72]),e(X,[2,75]),e(Z,[2,74]),{17:122,18:[1,123],56:55,57:56,61:M},{15:124,43:A,44:j},e(G,[2,48],{49:94,12:P,44:F,51:L,52:R}),{6:B,9:V,35:125,50:H},e(ne,[2,35]),{13:126,43:q,53:J,76:Y},{15:127,43:A,44:j},{13:128,43:q,53:J,76:Y},e(S,[2,12]),e(X,[2,68]),{63:129,65:ee},{18:[1,130]},e(S,[2,19]),e(S,[2,22],{16:[1,131],45:I}),e(S,[2,33]),e(S,[2,10]),{12:[1,132],45:I},e(S,[2,9]),e(Z,[2,73]),e(S,[2,17]),{17:133,18:[1,134],56:55,57:56,61:M},{13:135,43:q,53:J,76:Y},{18:[1,136]},e(S,[2,20]),e(S,[2,8]),e(S,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:w(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:w(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}w(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}w(b,`lex`);for(var x,S,C,T,E,D={},O,k,A,j;;){if(C=n[n.length-1],this.defaultActions[C]?T=this.defaultActions[C]:(x??=b(),T=o[C]&&o[C][x]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[C])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
1
|
+
import{t as e}from"./chunk-XXDRQBXY-DZhGcTjI.js";import{t}from"./chunk-TU62E6Q5-DS50zfhC.js";import{a as n,i as r}from"./MermaidDiagram-ygffYb-m.js";import"./chunk-M57EVK23-CenoL2DJ.js";import{h as i}from"./chunk-DQASFODM-D0xZNdZz.js";import"./chunk-LEVMRMFU-D2pNijXQ.js";import"./chunk-AXFCVDMN-BLcMGoIA.js";import"./chunk-X4PVCEUW-EYN8McR9.js";import"./chunk-STOXU5M4-CHtPv0Yd.js";import"./chunk-R3KSYZAL-B_uKHMt4.js";import{a,i as o,o as s,r as c,t as l}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{_ as u,c as d}from"./chunk-6MUBBAK2-CWlgffVt.js";import{C as f,H as p,U as m,_ as h,a as g,at as _,b as v,q as y,s as b,v as x}from"./chunk-BG4553SI-BcspVJor.js";import{n as S,t as C}from"./d3-selection-B6Leru-d.js";import{n as w,t as T}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var E=(function(){var e=w(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],n=[2,2],r=[1,7],i=[1,9],a=[1,10],o=[1,11],s=[1,12],c=[1,30],l=[1,23],u=[1,24],d=[1,25],f=[1,26],p=[1,27],m=[1,19],h=[1,28],g=[1,29],_=[1,20],v=[1,18],y=[1,21],b=[1,22],x=[2,6],S=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],C=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],A=[1,46],j=[1,47],M=[1,57],N=[43,51,53,54,55,74,75],P=[1,70],F=[1,68],I=[1,65],L=[1,69],R=[1,71],z=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],B=[1,78],V=[1,77],H=[1,76],U=[69,70,71,72,73],W=[1,91],G=[6,9,45,50],K=[6,9,12,44,45,50,51,52],q=[1,101],J=[1,100],Y=[1,99],X=[18,61],ee=[1,110],te=[1,109],ne=[20,43,51,53,54,55],Z=[18,61,64,66],Q={trace:w(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,9:`NEWLINE`,12:`COLON`,14:`STYLE_SEPARATOR`,16:`BLOCK_START`,18:`BLOCK_STOP`,19:`SQS`,20:`SQE`,21:`title`,22:`title_value`,23:`acc_title`,24:`acc_title_value`,25:`acc_descr`,26:`acc_descr_value`,27:`acc_descr_multiline_value`,33:`END`,34:`SUBGRAPH`,37:`direction_tb`,38:`direction_bt`,39:`direction_rl`,40:`direction_lr`,41:`CLASSDEF`,43:`UNICODE_TEXT`,44:`STYLE_TEXT`,45:`COMMA`,46:`CLASS`,47:`STYLE`,50:`SEMI`,51:`NUM`,52:`BRKT`,53:`ENTITY_NAME`,54:`DECIMAL_NUM`,55:`ENTITY_ONE`,61:`ATTRIBUTE_WORD`,62:`?`,64:`,`,65:`ATTRIBUTE_KEY`,66:`COMMENT`,69:`ZERO_OR_ONE`,70:`ZERO_OR_MORE`,71:`ONE_OR_MORE`,72:`ONLY_ONE`,73:`MD_PARENT`,74:`NON_IDENTIFYING`,75:`IDENTIFYING`,76:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:w(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:this.$=a[s-1].concat(a[s]);break;case 4:this.$=a[s];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]),this.$=[a[s-4],a[s-2]];break;case 8:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-8],a[s-4]];break;case 9:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]),this.$=[a[s-6],a[s-2]];break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-6],a[s-4]];break;case 11:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]),this.$=[a[s-3]];break;case 12:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]),this.$=[a[s-5]];break;case 13:r.addEntity(a[s-2]),this.$=[a[s-2]];break;case 14:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-4]];break;case 15:r.addEntity(a[s]),this.$=[a[s]];break;case 16:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]),this.$=[a[s-2]];break;case 17:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]),this.$=[a[s-6]];break;case 18:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]),this.$=[a[s-8]];break;case 19:r.addEntity(a[s-5],a[s-3]),this.$=[a[s-5]];break;case 20:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]),this.$=[a[s-7]];break;case 21:r.addEntity(a[s-3],a[s-1]);break;case 22:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 23:case 24:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=a[s]:(r.setDirection(a[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:a[s-2].id},a[s-1],{text:a[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-1],text:a[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-4],text:a[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=a[s];break;case 35:this.$=a[s-1]+` `+a[s];break;case 36:this.$={stmt:`dir`,value:`TB`};break;case 37:this.$={stmt:`dir`,value:`BT`};break;case 38:this.$={stmt:`dir`,value:`RL`};break;case 39:this.$={stmt:`dir`,value:`LR`};break;case 40:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 41:case 42:case 63:case 72:this.$=[a[s]];break;case 43:case 44:this.$=a[s-2].concat([a[s]]);break;case 45:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 46:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 47:this.$=[a[s]];break;case 48:a[s-2].push(a[s]),this.$=a[s-2];break;case 50:this.$=a[s-1]+a[s];break;case 58:case 84:case 85:this.$=a[s].replace(/"/g,``);break;case 64:a[s].push(a[s-1]),this.$=a[s];break;case 65:this.$={type:a[s-1],name:a[s]};break;case 66:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 67:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 68:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 69:case 71:case 74:this.$=a[s];break;case 70:this.$=a[s-1]+a[s];break;case 73:a[s-2].push(a[s]),this.$=a[s-2];break;case 75:this.$=a[s].replace(/"/g,``);break;case 76:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,n,{5:3}),{6:[1,4],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,34:c,37:l,38:u,39:d,40:f,41:p,43:m,46:h,47:g,51:_,53:v,54:y,55:b},e(t,x,{1:[2,1]}),e(S,[2,3]),e(S,[2,4]),e(S,[2,5]),e(S,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:C,70:T,71:E,72:D,73:O}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(S,[2,26]),e(S,[2,27]),e(S,[2,28]),e(S,[2,29]),e(S,[2,30]),e(S,n,{5:44}),e(k,[2,58]),e(k,[2,59]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),e(S,[2,39]),{15:45,43:A,44:j},{15:48,43:A,44:j},{15:49,43:A,44:j},{10:50,43:m,51:_,53:v,54:y,55:b},{10:51,43:m,51:_,53:v,54:y,55:b},{15:52,43:A,44:j},{17:53,18:[1,54],56:55,57:56,61:M},{10:58,43:m,51:_,53:v,54:y,55:b},{68:59,74:[1,60],75:[1,61]},e(N,[2,77]),e(N,[2,78]),e(N,[2,79]),e(N,[2,80]),e(N,[2,81]),e(S,[2,23]),e(S,[2,24]),e(S,[2,25]),{6:[1,63],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:c,37:l,38:u,39:d,40:f,41:p,43:m,46:h,47:g,51:_,53:v,54:y,55:b},{12:P,42:64,44:F,45:I,48:66,49:67,51:L,52:R},e(z,[2,41]),e(z,[2,42]),{15:72,43:A,44:j,45:I},{12:P,42:73,44:F,45:I,48:66,49:67,51:L,52:R},{6:B,9:V,19:[1,75],35:74,50:H},{12:[1,79],14:[1,80]},e(S,[2,16],{67:35,11:81,16:[1,82],45:I,69:C,70:T,71:E,72:D,73:O}),{18:[1,83]},e(S,[2,13]),{17:84,18:[2,63],56:55,57:56,61:M},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:C,70:T,71:E,72:D,73:O},e(U,[2,82]),e(U,[2,83]),e(S,[2,31]),e(S,x),{6:B,9:V,35:90,45:W,50:H},{43:[1,92],44:[1,93]},e(G,[2,47],{49:94,12:P,44:F,51:L,52:R}),e(K,[2,49]),e(K,[2,54]),e(K,[2,55]),e(K,[2,56]),e(K,[2,57]),e(S,[2,45],{45:I}),{6:B,9:V,35:95,45:W,50:H},e(S,[2,32]),{10:97,36:96,43:m,51:_,53:v,54:y,55:b},e(S,[2,51]),e(S,[2,52]),e(S,[2,53]),{13:98,43:q,53:J,76:Y},{15:102,43:A,44:j},{10:103,43:m,51:_,53:v,54:y,55:b},{17:104,18:[1,105],56:55,57:56,61:M},e(S,[2,11]),{18:[2,64]},e(X,[2,65],{59:106,60:107,63:108,65:ee,66:te}),e([18,61,65,66],[2,71]),{61:[2,70]},e(S,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(S,[2,40]),{12:P,44:F,48:113,49:67,51:L,52:R},e(z,[2,43]),e(z,[2,44]),e(K,[2,50]),e(S,[2,46]),{10:115,20:[1,114],43:m,51:_,53:v,54:y,55:b},e(ne,[2,34]),e(S,[2,7]),e(S,[2,84]),e(S,[2,85]),e(S,[2,86]),{12:[1,116],45:I},{12:[1,118],14:[1,117]},{18:[1,119]},e(S,[2,14]),e(X,[2,66],{60:120,64:[1,121],66:te}),e(X,[2,67]),e(Z,[2,72]),e(X,[2,75]),e(Z,[2,74]),{17:122,18:[1,123],56:55,57:56,61:M},{15:124,43:A,44:j},e(G,[2,48],{49:94,12:P,44:F,51:L,52:R}),{6:B,9:V,35:125,50:H},e(ne,[2,35]),{13:126,43:q,53:J,76:Y},{15:127,43:A,44:j},{13:128,43:q,53:J,76:Y},e(S,[2,12]),e(X,[2,68]),{63:129,65:ee},{18:[1,130]},e(S,[2,19]),e(S,[2,22],{16:[1,131],45:I}),e(S,[2,33]),e(S,[2,10]),{12:[1,132],45:I},e(S,[2,9]),e(Z,[2,73]),e(S,[2,17]),{17:133,18:[1,134],56:55,57:56,61:M},{13:135,43:q,53:J,76:Y},{18:[1,136]},e(S,[2,20]),e(S,[2,8]),e(S,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:w(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:w(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}w(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}w(b,`lex`);for(var x,S,C,T,E,D={},O,k,A,j;;){if(C=n[n.length-1],this.defaultActions[C]?T=this.defaultActions[C]:(x??=b(),T=o[C]&&o[C][x]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[C])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[x]||x)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(x==f?`end of input`:`'`+(this.terminals_[x]||x)+`'`),this.parseError(M,{text:m.match,token:this.terminals_[x]||x,line:m.yylineno,loc:_,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+C+`, token: `+x);switch(T[0]){case 1:n.push(x),i.push(m.yytext),a.push(m.yylloc),n.push(T[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(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},v&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,h.yy,T[1],i,a].concat(p)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Q.lexer=(function(){return{EOF:1,parseError:w(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:w(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:w(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:w(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:w(function(){return this._more=!0,this},`more`),reject:w(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:w(function(e){this.unput(this.match.slice(e))},`less`),pastInput:w(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:w(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:w(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
package/dist/site/assets/{eventmodeling-K75KTNOO--5jIqQqd.js → eventmodeling-K75KTNOO-C8T83l3X.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{O as createEventModelingServices}from"./mermaid-parser.core-
|
|
1
|
+
export{O as createEventModelingServices}from"./mermaid-parser.core-CmuythWW.js";import"./chunk-NGNAAXSQ-DI_UYJZ4.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{n as diagram}from"./chunk-QB3YPZ4I-B_9JHWDh.js";import"./chunk-TU62E6Q5-DS50zfhC.js";import"./MermaidDiagram-ygffYb-m.js";import"./chunk-HFQBQIA3-CwKG2G2g.js";import"./chunk-M57EVK23-CenoL2DJ.js";import"./chunk-DQASFODM-D0xZNdZz.js";import"./chunk-LEVMRMFU-D2pNijXQ.js";import"./chunk-AXFCVDMN-BLcMGoIA.js";import"./chunk-X4PVCEUW-EYN8McR9.js";import"./chunk-STOXU5M4-CHtPv0Yd.js";import"./chunk-R3KSYZAL-B_uKHMt4.js";import"./chunk-6MUBBAK2-CWlgffVt.js";import"./chunk-BG4553SI-BcspVJor.js";import"./d3-selection-B6Leru-d.js";
|
package/dist/site/assets/{ganttDiagram-23REXITY-C6aslBaf.js → ganttDiagram-23REXITY-DaJGMDM2.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e}from"./chunk-6MUBBAK2-Dgz7ppMx.js";import{C as t,H as n,U as r,_ as i,a,b as o,c as s,q as c,s as l,v as u}from"./chunk-BG4553SI-DKMzv0Bz.js";import{i as d,n as f,t as p}from"./d3-selection-CVxgF8Ya.js";import{n as m}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as h}from"./dist-CAxpCi_w.js";import{E as g,T as _,_ as v,a as y,c as b,d as x,f as S,g as C,h as w,i as T,l as E,m as D,n as O,o as k,p as ee,s as A,u as j,v as M,x as te}from"./d3-scale-CElPUUud.js";import{i as N,t as P}from"./PageMarkdown-nxVv69Vf.js";function ne(e){return e}var F=1,I=2,L=3,R=4,z=1e-6;function re(e){return`translate(`+e+`,0)`}function ie(e){return`translate(0,`+e+`)`}function ae(e){return t=>+e(t)}function oe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function se(){return!this.__axis}function ce(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===F||e===R?-1:1,u=e===R||e===I?`x`:`y`,d=e===F||e===L?re:ie;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):ne),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?oe:ae)(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===F?`0em`:e===L?`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`,z).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,z).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===R||e===I?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(se).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===I?`start`:e===R?`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 le(e){return ce(F,e)}function ue(e){return ce(L,e)}var de=P(((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)}}}))})),fe=P(((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)}}}))})),pe=P(((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)}}}))})),me=P(((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)}}}))})),he=h(),B=N(d(),1),ge=N(de(),1),_e=N(fe(),1),ve=N(pe(),1),ye=N(me(),1),be=(function(){var e=m(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],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:m(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:m(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:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},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:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},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:m(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:m(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),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}m(b,`popStack`);function x(){var e=r.pop()||h.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}m(x,`lex`);for(var S,C,w,T,E,D={},O,k,ee,A;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var j=``;for(O in A=[],o[w])this.terminals_[O]&&O>d&&A.push(`'`+this.terminals_[O]+`'`);j=h.showPosition?`Parse error on line `+(c+1)+`:
|
|
1
|
+
import{_ as e}from"./chunk-6MUBBAK2-CWlgffVt.js";import{C as t,H as n,U as r,_ as i,a,b as o,c as s,q as c,s as l,v as u}from"./chunk-BG4553SI-BcspVJor.js";import{i as d,n as f,t as p}from"./d3-selection-B6Leru-d.js";import{n as m}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as h}from"./dist-BXMzeT3a.js";import{E as g,T as _,_ as v,a as y,c as b,d as x,f as S,g as C,h as w,i as T,l as E,m as D,n as O,o as k,p as ee,s as A,u as j,v as M,x as te}from"./d3-scale-CElPUUud.js";import{i as N,t as P}from"./PageMarkdown-eYkrzJvo.js";function ne(e){return e}var F=1,I=2,L=3,R=4,z=1e-6;function re(e){return`translate(`+e+`,0)`}function ie(e){return`translate(0,`+e+`)`}function ae(e){return t=>+e(t)}function oe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function se(){return!this.__axis}function ce(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===F||e===R?-1:1,u=e===R||e===I?`x`:`y`,d=e===F||e===L?re:ie;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):ne),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?oe:ae)(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===F?`0em`:e===L?`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`,z).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,z).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===R||e===I?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(se).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===I?`start`:e===R?`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 le(e){return ce(F,e)}function ue(e){return ce(L,e)}var de=P(((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)}}}))})),fe=P(((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)}}}))})),pe=P(((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)}}}))})),me=P(((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)}}}))})),he=h(),B=N(d(),1),ge=N(de(),1),_e=N(fe(),1),ve=N(pe(),1),ye=N(me(),1),be=(function(){var e=m(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],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:m(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:m(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:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},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:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},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:m(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:m(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),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}m(b,`popStack`);function x(){var e=r.pop()||h.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}m(x,`lex`);for(var S,C,w,T,E,D={},O,k,ee,A;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var j=``;for(O in A=[],o[w])this.terminals_[O]&&O>d&&A.push(`'`+this.terminals_[O]+`'`);j=h.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+A.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==f?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(j,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:A})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(p)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),ee=o[n[n.length-2]][n[n.length-1]],n.push(ee);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:m(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:m(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:m(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:m(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:m(function(){return this._more=!0,this},`more`),reject:m(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:m(function(e){this.unput(this.match.slice(e))},`less`),pastInput:m(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:m(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:m(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{E as createGitGraphServices}from"./mermaid-parser.core-CmuythWW.js";import"./chunk-NGNAAXSQ-DI_UYJZ4.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./chunk-2Q5K7J3B-C1jixKkw.js";import{t}from"./chunk-JWPE2WC7-DVXcaiue.js";import{_ as n,h as r,i}from"./chunk-6MUBBAK2-Dgz7ppMx.js";import{C as a,H as o,U as s,X as c,_ as l,a as u,b as d,f,q as p,s as m,v as h,y as g}from"./chunk-BG4553SI-DKMzv0Bz.js";import{n as _,t as v}from"./d3-selection-CVxgF8Ya.js";import{n as y}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as b}from"./mermaid-parser.core-PxovB7hr.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ee=f.gitGraph,S=y(()=>i({...ee,...g().gitGraph}),`getConfig`),C=new e(()=>{let e=S(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function w(){return r({length:7})}y(w,`getID`);function T(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}y(T,`uniqBy`);var te=y(function(e){C.records.direction=e},`setDirection`),ne=y(function(e){_.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{C.records.options=JSON.parse(e)}catch(e){_.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),re=y(function(){return C.records.options},`getOptions`),ie=y(function(e){let t=e.msg,n=e.id,r=e.type,i=e.tags;_.info(`commit`,t,n,r,i),_.debug(`Entering commit:`,t,n,r,i);let a=S();n=m.sanitizeText(n,a),t=m.sanitizeText(t,a),i=i?.map(e=>m.sanitizeText(e,a));let o={id:n||C.records.seq+`-`+w(),message:t,seq:C.records.seq++,type:r??x.NORMAL,tags:i??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};C.records.head=o,_.info(`main branch`,a.mainBranchName),C.records.commits.has(o.id)&&_.warn(`Commit ID ${o.id} already exists`),C.records.commits.set(o.id,o),C.records.branches.set(C.records.currBranch,o.id),_.debug(`in pushCommit `+o.id)},`commit`),ae=y(function(e){let t=e.name,n=e.order;if(t=m.sanitizeText(t,S()),C.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);C.records.branches.set(t,C.records.head==null?null:C.records.head.id),C.records.branchConfig.set(t,{name:t,order:n}),E(t),_.debug(`in createBranch`)},`branch`),oe=y(e=>{let t=e.branch,n=e.id,r=e.type,i=e.tags,a=S();t=m.sanitizeText(t,a),n&&=m.sanitizeText(n,a);let o=C.records.branches.get(C.records.currBranch),s=C.records.branches.get(t),c=o?C.records.commits.get(o):void 0,l=s?C.records.commits.get(s):void 0;if(c&&l&&c.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(C.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(c===void 0||!c){let e=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!C.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(c===l){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&C.records.commits.has(n)){let e=Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${r} ${i?.join(` `)}`,token:`merge ${t} ${n} ${r} ${i?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${r} ${i?.join(` `)}`]},e}let u=s||``,d={id:n||`${C.records.seq}-${w()}`,message:`merged branch ${t} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,u],branch:C.records.currBranch,type:x.MERGE,customType:r,customId:!!n,tags:i??[]};C.records.head=d,C.records.commits.set(d.id,d),C.records.branches.set(C.records.currBranch,d.id),_.debug(C.records.branches),_.debug(`in mergeBranch`)},`merge`),se=y(function(e){let t=e.id,n=e.targetId,r=e.tags,i=e.parent;_.debug(`Entering cherryPick:`,t,n,r);let a=S();if(t=m.sanitizeText(t,a),n=m.sanitizeText(n,a),r=r?.map(e=>m.sanitizeText(e,a)),i=m.sanitizeText(i,a),!t||!C.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let o=C.records.commits.get(t);if(o===void 0||!o)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(i&&!(Array.isArray(o.parents)&&o.parents.includes(i)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let s=o.branch;if(o.type===x.MERGE&&!i)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!C.records.commits.has(n)){if(s===C.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=C.records.branches.get(C.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let a=C.records.commits.get(e);if(a===void 0||!a){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let c={id:C.records.seq+`-`+w(),message:`cherry-picked ${o?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,o.id],branch:C.records.currBranch,type:x.CHERRY_PICK,tags:r?r.filter(Boolean):[`cherry-pick:${o.id}${o.type===x.MERGE?`|parent:${i}`:``}`]};C.records.head=c,C.records.commits.set(c.id,c),C.records.branches.set(C.records.currBranch,c.id),_.debug(C.records.branches),_.debug(`in cherryPick`)}},`cherryPick`),E=y(function(e){if(e=m.sanitizeText(e,S()),C.records.branches.has(e)){C.records.currBranch=e;let t=C.records.branches.get(C.records.currBranch);t===void 0||!t?C.records.head=null:C.records.head=C.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function D(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}y(D,`upsert`);function O(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let r=[n,t.id,t.seq];for(let e in C.records.branches)C.records.branches.get(e)===t.id&&r.push(e);if(_.debug(r.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=C.records.commits.get(t.parents[0]);D(e,t,n),t.parents[1]&&e.push(C.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=C.records.commits.get(t.parents[0]);D(e,t,n)}e=T(e,e=>e.id),O(e)}y(O,`prettyPrintCommitHistory`);var ce=y(function(){_.debug(C.records.commits);let e=k()[0];O([e])},`prettyPrint`),le=y(function(){C.reset(),u()},`clear`),ue=y(function(){return[...C.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),de=y(function(){return C.records.branches},`getBranches`),fe=y(function(){return C.records.commits},`getCommits`),k=y(function(){let e=[...C.records.commits.values()];return e.forEach(function(e){_.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),A={commitType:x,getConfig:S,setDirection:te,setOptions:ne,getOptions:re,commit:ie,branch:ae,merge:oe,cherryPick:se,checkout:E,prettyPrint:ce,clear:le,getBranchesAsObjArray:ue,getBranches:de,getCommits:fe,getCommitsArray:k,getCurrentBranch:y(function(){return C.records.currBranch},`getCurrentBranch`),getDirection:y(function(){return C.records.direction},`getDirection`),getHead:y(function(){return C.records.head},`getHead`),setAccTitle:s,getAccTitle:h,getAccDescription:l,setAccDescription:o,setDiagramTitle:p,getDiagramTitle:a},pe=y((e,n)=>{t(e,n),e.dir&&n.setDirection(e.dir);for(let t of e.statements)me(t,n)},`populate`),me=y((e,t)=>{let n={Commit:y(e=>t.commit(he(e)),`Commit`),Branch:y(e=>t.branch(ge(e)),`Branch`),Merge:y(e=>t.merge(_e(e)),`Merge`),Checkout:y(e=>t.checkout(ve(e)),`Checkout`),CherryPicking:y(e=>t.cherryPick(ye(e)),`CherryPicking`)}[e.$type];n?n(e):_.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),he=y(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?x.NORMAL:x[e.type],tags:e.tags??void 0}),`parseCommit`),ge=y(e=>({name:e.name,order:e.order??0}),`parseBranch`),_e=y(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:x[e.type],tags:e.tags??void 0}),`parseMerge`),ve=y(e=>e.branch,`parseCheckout`),ye=y(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),be={parse:y(async e=>{let t=await b(`gitGraph`,e);_.debug(t),pe(t,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),xe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=y((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,Se=y(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),q=y(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),J=y(e=>{let t,n,r;return K===`BT`?(n=y((e,t)=>e<=t,`comparisonFunc`),r=1/0):(n=y((e,t)=>e>=t,`comparisonFunc`),r=0),e.forEach(e=>{let i=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;i!==void 0&&n(i,r)&&(t=e,r=i)}),t},`findClosestParent`),Y=y(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),Ce=y((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Te(n),i=Math.max(r,i)):a.push(n),Ee(n,r)}),r=i,a.forEach(e=>{De(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Y(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),we=y(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Te=y(e=>we(e)+M,`calculateCommitPosition`),Ee=y((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),De=y((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),Oe=y((e,t,n,r,i,a)=>{let{theme:o}=d(),s=I.has(o??``),c=R.has(o??``),l=xe.has(o??``);if(a===x.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(i,F,c)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${z(i,F,c)} ${r}-inner`);else if(a===x.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${z(i,F,c)}`),a===x.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}if(a===x.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}}},`drawCommitBullet`),ke=y((e,t,n,r,i)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel)){if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),Ae=y((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
1
|
+
import{t as e}from"./chunk-2Q5K7J3B-C1jixKkw.js";import{t}from"./chunk-JWPE2WC7-DVXcaiue.js";import{_ as n,h as r,i}from"./chunk-6MUBBAK2-CWlgffVt.js";import{C as a,H as o,U as s,X as c,_ as l,a as u,b as d,f,q as p,s as m,v as h,y as g}from"./chunk-BG4553SI-BcspVJor.js";import{n as _,t as v}from"./d3-selection-B6Leru-d.js";import{n as y}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as b}from"./mermaid-parser.core-CmuythWW.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ee=f.gitGraph,S=y(()=>i({...ee,...g().gitGraph}),`getConfig`),C=new e(()=>{let e=S(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function w(){return r({length:7})}y(w,`getID`);function T(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}y(T,`uniqBy`);var te=y(function(e){C.records.direction=e},`setDirection`),ne=y(function(e){_.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{C.records.options=JSON.parse(e)}catch(e){_.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),re=y(function(){return C.records.options},`getOptions`),ie=y(function(e){let t=e.msg,n=e.id,r=e.type,i=e.tags;_.info(`commit`,t,n,r,i),_.debug(`Entering commit:`,t,n,r,i);let a=S();n=m.sanitizeText(n,a),t=m.sanitizeText(t,a),i=i?.map(e=>m.sanitizeText(e,a));let o={id:n||C.records.seq+`-`+w(),message:t,seq:C.records.seq++,type:r??x.NORMAL,tags:i??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};C.records.head=o,_.info(`main branch`,a.mainBranchName),C.records.commits.has(o.id)&&_.warn(`Commit ID ${o.id} already exists`),C.records.commits.set(o.id,o),C.records.branches.set(C.records.currBranch,o.id),_.debug(`in pushCommit `+o.id)},`commit`),ae=y(function(e){let t=e.name,n=e.order;if(t=m.sanitizeText(t,S()),C.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);C.records.branches.set(t,C.records.head==null?null:C.records.head.id),C.records.branchConfig.set(t,{name:t,order:n}),E(t),_.debug(`in createBranch`)},`branch`),oe=y(e=>{let t=e.branch,n=e.id,r=e.type,i=e.tags,a=S();t=m.sanitizeText(t,a),n&&=m.sanitizeText(n,a);let o=C.records.branches.get(C.records.currBranch),s=C.records.branches.get(t),c=o?C.records.commits.get(o):void 0,l=s?C.records.commits.get(s):void 0;if(c&&l&&c.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(C.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(c===void 0||!c){let e=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!C.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(c===l){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&C.records.commits.has(n)){let e=Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${r} ${i?.join(` `)}`,token:`merge ${t} ${n} ${r} ${i?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${r} ${i?.join(` `)}`]},e}let u=s||``,d={id:n||`${C.records.seq}-${w()}`,message:`merged branch ${t} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,u],branch:C.records.currBranch,type:x.MERGE,customType:r,customId:!!n,tags:i??[]};C.records.head=d,C.records.commits.set(d.id,d),C.records.branches.set(C.records.currBranch,d.id),_.debug(C.records.branches),_.debug(`in mergeBranch`)},`merge`),se=y(function(e){let t=e.id,n=e.targetId,r=e.tags,i=e.parent;_.debug(`Entering cherryPick:`,t,n,r);let a=S();if(t=m.sanitizeText(t,a),n=m.sanitizeText(n,a),r=r?.map(e=>m.sanitizeText(e,a)),i=m.sanitizeText(i,a),!t||!C.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let o=C.records.commits.get(t);if(o===void 0||!o)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(i&&!(Array.isArray(o.parents)&&o.parents.includes(i)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let s=o.branch;if(o.type===x.MERGE&&!i)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!C.records.commits.has(n)){if(s===C.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=C.records.branches.get(C.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let a=C.records.commits.get(e);if(a===void 0||!a){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let c={id:C.records.seq+`-`+w(),message:`cherry-picked ${o?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,o.id],branch:C.records.currBranch,type:x.CHERRY_PICK,tags:r?r.filter(Boolean):[`cherry-pick:${o.id}${o.type===x.MERGE?`|parent:${i}`:``}`]};C.records.head=c,C.records.commits.set(c.id,c),C.records.branches.set(C.records.currBranch,c.id),_.debug(C.records.branches),_.debug(`in cherryPick`)}},`cherryPick`),E=y(function(e){if(e=m.sanitizeText(e,S()),C.records.branches.has(e)){C.records.currBranch=e;let t=C.records.branches.get(C.records.currBranch);t===void 0||!t?C.records.head=null:C.records.head=C.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function D(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}y(D,`upsert`);function O(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let r=[n,t.id,t.seq];for(let e in C.records.branches)C.records.branches.get(e)===t.id&&r.push(e);if(_.debug(r.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=C.records.commits.get(t.parents[0]);D(e,t,n),t.parents[1]&&e.push(C.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=C.records.commits.get(t.parents[0]);D(e,t,n)}e=T(e,e=>e.id),O(e)}y(O,`prettyPrintCommitHistory`);var ce=y(function(){_.debug(C.records.commits);let e=k()[0];O([e])},`prettyPrint`),le=y(function(){C.reset(),u()},`clear`),ue=y(function(){return[...C.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),de=y(function(){return C.records.branches},`getBranches`),fe=y(function(){return C.records.commits},`getCommits`),k=y(function(){let e=[...C.records.commits.values()];return e.forEach(function(e){_.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),A={commitType:x,getConfig:S,setDirection:te,setOptions:ne,getOptions:re,commit:ie,branch:ae,merge:oe,cherryPick:se,checkout:E,prettyPrint:ce,clear:le,getBranchesAsObjArray:ue,getBranches:de,getCommits:fe,getCommitsArray:k,getCurrentBranch:y(function(){return C.records.currBranch},`getCurrentBranch`),getDirection:y(function(){return C.records.direction},`getDirection`),getHead:y(function(){return C.records.head},`getHead`),setAccTitle:s,getAccTitle:h,getAccDescription:l,setAccDescription:o,setDiagramTitle:p,getDiagramTitle:a},pe=y((e,n)=>{t(e,n),e.dir&&n.setDirection(e.dir);for(let t of e.statements)me(t,n)},`populate`),me=y((e,t)=>{let n={Commit:y(e=>t.commit(he(e)),`Commit`),Branch:y(e=>t.branch(ge(e)),`Branch`),Merge:y(e=>t.merge(_e(e)),`Merge`),Checkout:y(e=>t.checkout(ve(e)),`Checkout`),CherryPicking:y(e=>t.cherryPick(ye(e)),`CherryPicking`)}[e.$type];n?n(e):_.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),he=y(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?x.NORMAL:x[e.type],tags:e.tags??void 0}),`parseCommit`),ge=y(e=>({name:e.name,order:e.order??0}),`parseBranch`),_e=y(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:x[e.type],tags:e.tags??void 0}),`parseMerge`),ve=y(e=>e.branch,`parseCheckout`),ye=y(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),be={parse:y(async e=>{let t=await b(`gitGraph`,e);_.debug(t),pe(t,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),xe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=y((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,Se=y(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),q=y(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),J=y(e=>{let t,n,r;return K===`BT`?(n=y((e,t)=>e<=t,`comparisonFunc`),r=1/0):(n=y((e,t)=>e>=t,`comparisonFunc`),r=0),e.forEach(e=>{let i=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;i!==void 0&&n(i,r)&&(t=e,r=i)}),t},`findClosestParent`),Y=y(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),Ce=y((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Te(n),i=Math.max(r,i)):a.push(n),Ee(n,r)}),r=i,a.forEach(e=>{De(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Y(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),we=y(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Te=y(e=>we(e)+M,`calculateCommitPosition`),Ee=y((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),De=y((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),Oe=y((e,t,n,r,i,a)=>{let{theme:o}=d(),s=I.has(o??``),c=R.has(o??``),l=xe.has(o??``);if(a===x.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(i,F,c)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${z(i,F,c)} ${r}-inner`);else if(a===x.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${z(i,F,c)}`),a===x.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}if(a===x.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}}},`drawCommitBullet`),ke=y((e,t,n,r,i)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel)){if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),Ae=y((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
2
2
|
${r-a/2-N/2},${l+P}
|
|
3
3
|
${r-a/2-N/2},${l-P}
|
|
4
4
|
${n.posWithOffset-a/2-N},${l-s-P}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SearchDialog-
|
|
2
|
-
import{_ as e,a as t,d as n,f as r,g as i,h as a,i as o,l as s,m as c,o as l,p as u,r as d,s as f,t as p,u as m,v as h}from"./jsxRuntime-WpZ1bTm4.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function g(e){return{render:function(t){f(t,e)},unmount:function(){l(e)}}}function _(e,t,n){return h(`picture`,null,t&&h(`source`,{media:`(max-width: 699px)`,srcSet:t}),h(`img`,{className:`volume-render`,src:e,width:600,height:760,alt:``,loading:n,fetchPriority:`low`,decoding:`async`}))}function v({title:e,src:t,compact:n,artwork:r,loading:i,titleRef:a}){let o=h(`span`,{className:`volume-title`,ref:a},e),s=t&&_(t,n,i);return r?h(`span`,{className:`volume-face`},s,t&&h(`span`,{className:`volume-unmarked`,"aria-hidden":!0},_(t,n,i)),h(`span`,{className:`volume-cover-content`},o,h(`img`,{className:`volume-cover-image`,src:r,alt:``,loading:i,decoding:`async`,fetchPriority:`low`}))):h(`span`,{className:`volume-face`},s,o)}var y=2300;function b(e,t,n,r,i){let a=i*Math.PI/180,o=t+n;return Array.from({length:25},(i,s)=>{let c=s/24,l=c*a,u=r*Math.sin(l),d=t+n*Math.cos(l)/(1-u/y),f=Math.max(0,Math.min(1,(c-.35)/.4)),p=Math.max(0,(c-.8)/.2),m=o+(e.right+64-o)*f,h=Math.min(m,d+(e.left-64-d)*p);return{offset:c,clipPath:`inset(-64px ${e.right-m}px -64px ${h-e.left}px)`}})}var x=new URL(`resting-amber-BSjsErIg.avif`,import.meta.url).href,S=new URL(`resting-black-DDQ4XMJI.avif`,import.meta.url).href,C=new URL(`resting-blue-DDOT8IQ8.avif`,import.meta.url).href,w=new URL(`resting-green-DkRrV8eX.avif`,import.meta.url).href,T=new URL(`resting-ivory-CEqoG5yI.avif`,import.meta.url).href,E=new URL(`resting-plum-B-8tkSmP.avif`,import.meta.url).href,D=new URL(`resting-red-D0hLpMpz.avif`,import.meta.url).href,O=new URL(`resting-slate-CH8Z_Rky.avif`,import.meta.url).href,k=new URL(`resting-teal-CGt6jFmT.avif`,import.meta.url).href,A=new URL(`resting-walnut-t3WgHgUO.avif`,import.meta.url).href,j={red:{base:`red`,filter:`brightness(1)`,edge:`#6d2022`,mobile:`none`,hue:`0deg`,dye:``,light:`.22,.064,.060`},green:{base:`green`,filter:`brightness(1)`,edge:`#424624`,mobile:`hue-rotate(66deg) saturate(.62)`,hue:`72deg`,dye:`.57,.83,.25`,light:`.105,.128,.049`},blue:{base:`blue`,filter:`brightness(1)`,edge:`#34314c`,mobile:`hue-rotate(248deg) saturate(.62)`,hue:`235deg`,dye:`.37,.51,.85`,light:`.08,.102,.164`},plum:{base:`red`,filter:`hue-rotate(-47deg) saturate(.79)`,edge:`#572c50`,mobile:`hue-rotate(-47deg) saturate(.79)`,hue:`313deg`,dye:`.71,.31,.67`,light:`.15,.069,.14`},amber:{base:`red`,filter:`hue-rotate(34deg) saturate(.85) brightness(1.28)`,edge:`#8a551e`,mobile:`hue-rotate(34deg) brightness(1.28)`,hue:`34deg`,dye:`1.24,.68,.20`,light:`.27,.17,.055`},teal:{base:`green`,filter:`hue-rotate(63deg) saturate(.86) brightness(1.18)`,edge:`#245452`,mobile:`hue-rotate(152deg) saturate(.65)`,hue:`150deg`,dye:`.26,.81,.75`,light:`.06,.16,.15`},black:{base:`blue`,filter:`grayscale(1) brightness(.82)`,edge:`#252321`,mobile:`grayscale(1) brightness(.68)`,hue:`0deg`,dye:`.38,.37,.36`,light:`.072,.07,.068`},ivory:{base:`red`,filter:`grayscale(1) invert(.86) sepia(.33) brightness(1.05)`,edge:`#d9c5a3`,mobile:`grayscale(1) invert(.86) sepia(.33)`,hue:`32deg`,dye:`3.2,2.7,2.02`,light:`.38,.315,.22`,lettering:`#392518`},walnut:{base:`red`,filter:`hue-rotate(22deg) saturate(.58) brightness(.78)`,edge:`#50301c`,mobile:`hue-rotate(22deg) saturate(.58) brightness(.78)`,hue:`23deg`,dye:`.70,.43,.25`,light:`.15,.09,.048`},slate:{base:`blue`,filter:`grayscale(.66) brightness(1.42)`,edge:`#5e6570`,mobile:`hue-rotate(213deg) saturate(.24) brightness(1.23)`,hue:`220deg`,dye:`.75,.82,.91`,light:`.17,.19,.21`}},M=[`red`,`blue`,`green`];function N(e,t){if(t&&Object.hasOwn(j,t))return t;let n=2166136261;for(let t of e.replace(/^\d+[-_]+/,``))n=Math.imul(n^(t.codePointAt(0)??0),16777619);return M[(n>>>10)%M.length]}var P={red:{src:new URL(new URL(`cover-red-qvZEk3PI.avif`,import.meta.url).href,``+import.meta.url).href,compact:new URL(new URL(`cover-red-mobile-DHOCz3wI.avif`,import.meta.url).href,``+import.meta.url).href,opaqueBounds:[40,29,531,689]},blue:{src:new URL(new URL(`cover-blue-Bh8Xp4T5.avif`,import.meta.url).href,``+import.meta.url).href,compact:new URL(new URL(`cover-blue-mobile-YcuYIg0I.avif`,import.meta.url).href,``+import.meta.url).href,opaqueBounds:[8,4,582,715]},green:{src:new URL(new URL(`cover-green-By13JjUx.avif`,import.meta.url).href,``+import.meta.url).href,compact:new URL(new URL(`cover-green-mobile-BNTgNt7v.avif`,import.meta.url).href,``+import.meta.url).href,opaqueBounds:[49,42,507,637]}};function F(e,t){let n=N(e,t),r=j[n]??j.red,i={"--cover-filter":r.filter,"--cover-lettering":r.lettering,"--cover-title-shadow":r.lettering?`0 1px 1px #fbe9c6b0`:void 0,"--leather-edge":r.edge,"--leather-filter":r.mobile};return{...P[r.base],...r,binding:n,style:i}}var I=Object.assign({"./art/resting-amber.avif":x,"./art/resting-black.avif":S,"./art/resting-blue.avif":C,"./art/resting-green.avif":w,"./art/resting-ivory.avif":T,"./art/resting-plum.avif":E,"./art/resting-red.avif":D,"./art/resting-slate.avif":O,"./art/resting-teal.avif":k,"./art/resting-walnut.avif":A});function L(e){return I[`./art/resting-${e}.avif`]??I[`./art/resting-red.avif`]}var R=`(prefers-reduced-motion: reduce)`,z=410,B=420,V=e=>`translate3d(${e.left}px, ${e.top}px, 0)`;function H(e,t){let n=Math.min(e,t);return`scale(${n/e}, ${n/t})`}function U({origin:e,paper:t,direction:r,onStage:i,onDone:a}){let o=n(null),s=n(null),c=n(null),l=n(null),{rect:u}=e,{binding:d,opaqueBounds:f,style:h}=F(e.id,e.cover),[g,_,x,S]=f,C=g/600*u.width,w=_/760*u.height,T=x/600*u.width,E=S/760*u.height;return m(()=>{let e=o.current,n=s.current,d=c.current,f=l.current,p=t?.parentElement;if(!t||!p||!e||!n||!d||!f)return;let m=matchMedia(R),h=t.getBoundingClientRect();if(m.matches||!e.animate||!u.width||!h.width){a();return}let g=p.dataset.wide===`true`,_=g?h.width/2:h.width,v=g?h.left+_:h.left,y=_/T,x=h.height/E,S=`translate3d(${v-C*y}px, ${h.top-w*x}px, 0) scale(${y}, ${x})`,D=r===`close`,O=[],k=()=>{i(`travel`);let t=[V(u),S],n={duration:z,easing:D?`cubic-bezier(.42,0,.72,.97)`:`cubic-bezier(.24,.76,.28,1)`,fill:`forwards`},r=e.animate((D?t.reverse():t).map(e=>({transform:e})),n),o=Array.from({length:13},(e,t)=>{let n=t/12;return{transform:H(1+(y-1)*n,1+(x-1)*n)}});O.push(r,f.animate(D?o.reverse():o,n)),r.onfinish=D?a:A},A=()=>{i(`hinge`);let e=g?179:152,t={duration:B,direction:D?`reverse`:`normal`,easing:`ease-in-out`,fill:`both`},r=n.animate([{transform:`rotateY(0deg)`},{transform:`rotateY(-${e}deg)`}],t),o=p.animate(b(p.getBoundingClientRect(),v,_,T,e),t),s=d.animate([{opacity:1},{opacity:1,offset:.975},{opacity:0}],t);O.push(r,o,s);let c=p.parentElement?.querySelectorAll(`.reader-header, .reader-pagination`);for(let e of c??[])O.push(e.animate([{opacity:0},{opacity:0,offset:.7},{opacity:1}],t));r.onfinish=D?k:a};return D?(e.style.transform=S,f.style.transform=H(y,x),A()):k(),window.addEventListener(`resize`,a),m.addEventListener(`change`,a),()=>{for(let e of O)e.cancel();window.removeEventListener(`resize`,a),m.removeEventListener(`change`,a)}},[E,C,w,T,r,a,i,t,u]),p(`div`,{className:`book-transition`,"data-direction":r,"data-binding":d,style:h,"aria-hidden":`true`,children:p(`div`,{className:`book-transition-rig`,ref:o,style:{width:u.width,height:u.height,transform:V(u),perspective:y,perspectiveOrigin:`${C}px center`},children:p(`div`,{className:`book-transition-lid`,ref:s,style:{left:C,top:w,width:T,height:E},children:[p(`div`,{className:`book-transition-front`,children:p(`div`,{className:`book-transition-art`,style:{left:-C,top:-w,width:u.width,height:u.height},children:p(v,{title:e.title,src:e.src,artwork:e.artwork,titleRef:l})})}),p(`div`,{className:`book-transition-inside`,ref:c})]})})})}var W=e=>(e.match(/\d+[xX]\d+|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).join(`-`).toLowerCase();function G(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:W(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ee=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},te=e=>{let t=ee(e);return t.charAt(0).toUpperCase()+t.slice(1)},ne=(...e)=>{let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of n.split(/\s+/))e&&t.add(e);return[...t].join(` `)},K={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function q(e){return e!=null}function re(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??K.width,a=e.size??e.height??K.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?ne(...c):ne(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??K[`stroke-width`])*Number(e.size??e.width??K.width)/Number(t.size??t.width??K.width):t.strokeWidth??K[`stroke-width`];return[`svg`,{...Object.entries(K).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&q(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&q(t.width)&&{[r(`width`)]:t.width},...`height`in t&&q(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function ie(e,t={}){return re(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ae=e=>{if(typeof e!=`object`||!e)return!1;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(t.startsWith(`aria-`)||t===`role`||t===`title`)&&e[t]!=null)return!0;return!1},oe=e({}),se=()=>c(oe),ce=o(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=se()??{},b=!!c||ae(d),[x,S,C=[]]=ie(u,{color:e??v,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:ne(y,s),hasA11yProp:b,attributes:d});return h(x,{ref:f,...S},[...C.map(([e,t])=>h(e,t)),...Array.isArray(c)?c:[c]])});function J(e,t=[],n=[]){let r=typeof e==`string`?G(e,t,n):e,i=o(({className:e,...t},n)=>h(ce,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=te(r.name)),i}var le={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};le.node;var ue=J(le),de={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};de.node;var fe=J(de),pe={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};pe.node;var me=J(pe),he={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};he.node;var ge=J(he),_e={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};_e.node;var ve=J(_e);function ye({publisher:e}){let t=e?h(e.url?`a`:`span`,{className:`library-publisher`,href:e.url},e.label):null;return h(`footer`,{className:`library-footer`},t,h(`a`,{href:`https://github.com/kkm-horikawa/grimoire3d`},`Grimoire3D`))}function be(e){let t=new Map,n=[];for(let r of e){if(!r.category){n.push(r);continue}let e=t.get(r.category)??[];e.push(r),t.set(r.category,e)}let r=[...t].map(([e,t])=>({category:e,books:t}));return n.length&&r.push({books:n}),r}function xe({category:e}){return h(`div`,{className:`shelf-label-rail`},h(`h2`,{className:`shelf-plate`},e))}function Se(e,t){return`read/${[e,...t?.split(`/`)??[]].map(encodeURIComponent).join(`/`)}/`}function Ce(e){let[t,n]=e.slice(1).split(`?`,2);try{let[,e,r]=(t??``).split(`/`);return{book:e?decodeURIComponent(e):void 0,page:r?decodeURIComponent(r):void 0,anchor:new URLSearchParams(n).get(`anchor`)}}catch{return{book:void 0,page:void 0,anchor:null}}}var Y=document.querySelector(`meta[name="grimoire-static"]`)?.content,X=new URL(Y||`./`,location.href),we=document.querySelector(`[data-initial-book]`),Te=document.querySelector(`[data-initial-shelf]`),Z=!location.hash.startsWith(`#/`)&&matchMedia(`(max-width: 699px)`).matches&&(we||Te)?we?`paper`:`shelf`:void 0,Ee=Z?null:we,De=Z?null:Te,Oe=Y?X.href:`#/`;function Q(e){return new URL(e,X).href}function $(e,t,n){if(Y)return Q(Se(e,t))+(n?`#${encodeURIComponent(n)}`:``);let r=`#/${encodeURIComponent(e)}`;if(t===void 0)return r;let i=`${r}/${encodeURIComponent(t)}`;return n?`${i}?anchor=${encodeURIComponent(n)}`:i}function ke(e){if(e.startsWith(`#/`)){let{book:t,page:n,anchor:r}=Ce(e);return t?$(t,n,r??void 0):Oe}return e.startsWith(`./`)?Q(e):e}function Ae(){if(!Y||location.hash.startsWith(`#/`))return Ce(location.hash);try{let[e,t,...n]=location.pathname.slice(X.pathname.length).replace(/(?:\/)?index\.html$/i,``).replace(/\/$/,``).split(`/`);return{book:e===`read`&&t?decodeURIComponent(t):void 0,page:n.length?n.map(decodeURIComponent).join(`/`):void 0,anchor:location.hash?decodeURIComponent(location.hash.slice(1)):null}}catch{return{book:void 0,page:void 0,anchor:null}}}function je(e){new URL(e,location.href).href!==location.href&&(Y?(history.pushState(null,``,e),window.dispatchEvent(new PopStateEvent(`popstate`))):location.hash=e)}function Me(e){if(!Y||e.button!==0||e.defaultPrevented||e.metaKey||e.altKey||e.shiftKey||e.ctrlKey||!(e.target instanceof Element))return;let t=e.target.closest(`a[href]`);if(!t||t.download||t.target&&t.target!==`_self`)return;let n=new URL(t.href);if(n.origin!==X.origin||!n.pathname.startsWith(X.pathname))return;let r=n.pathname.slice(X.pathname.length);(!r||r.startsWith(`read/`))&&(e.preventDefault(),je(n.href))}var Ne=`modulepreload`,Pe=function(e,t){return new URL(e,t).href},Fe={},Ie=function(e){return e.pathname.endsWith(`.css`)},Le=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Re=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Pe(t,n);let r=s(t),i=Ie(r);return Le(Fe,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Ne,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ze=t(()=>Re(()=>import(`./SearchDialog-Df-utrwU.js`),__vite__mapDeps([0,1,2]),import.meta.url));function Be({text:e,book:t,disabled:r}){let[a,o]=u(!1),s=n(null),c=t?e.searchBook:e.searchText;return p(i,{children:[p(`button`,{className:`text-search-button${t?` reader-search-button`:``}`,type:`button`,"aria-label":c,"aria-haspopup":`dialog`,ref:s,disabled:r,onClick:()=>o(!0),children:[p(ge,{size:18,"aria-hidden":!0}),p(`span`,{children:c})]}),a&&p(d,{fallback:null,children:p(ze,{text:e,book:t,onClose:()=>{o(!1),s.current?.focus()}})})]})}function Ve(e){return e.normalize(`NFKC`).toLowerCase().trim()}function He({book:e,onOpen:t,front:n=!1,opening:r}){let i=F(e.id,e.cover);return p(`a`,{className:`volume`,href:$(e.id),"data-book":e.id,"data-cover":i.binding,style:i.style,"data-opening":r||void 0,"aria-label":e.title,title:e.title,onClick:t,children:p(v,{title:e.title,src:i.src,compact:i.compact,artwork:e.coverImage&&Q(e.coverImage),loading:n?`eager`:`lazy`})})}function Ue({library:e,text:t,state:o,onState:c,openingBookId:l,onOpenVolume:u,onLocateVolume:d}){let{locale:f,books:h}=e,{mode:g,query:_,category:v,newestFirst:y,scroll:b,focus:x,shown:S}=o,C=n(null),w=n(null),T=n(new Map),E=n(!0),D=n(!1),O=n(!!d),k=n(null),A=n([]),j=n(new Set),M=n(null),N=Ve(_),P=!!(N||v),I=g===`shelves`&&!P;m(()=>{let e=M.current,t=De;if(I&&e&&t)return e.append(t),()=>t.remove()},[I]);let L=h.length>6,R=a(()=>{let e=h.flatMap(e=>e.category?[e.category]:[]);return[...new Set(e)].sort((e,t)=>e.localeCompare(t,f))},[h,f]),z=R.length>0,B=h.some(e=>e.date),V=a(()=>{let e=P?h.filter(e=>(!v||e.category===v)&&(!N||Ve(e.title).includes(N)||Ve(e.id).includes(N))):h;return y?[...e].sort((e,t)=>(t.date??``).localeCompare(e.date??``,`en`)||e.title.localeCompare(t.title,f,{numeric:!0})||e.id.localeCompare(t.id,f)):g===`index`?[...e].sort((e,t)=>e.title.localeCompare(t.title,f,{numeric:!0})):e},[h,v,P,f,N,g,y]),H=g===`shelves`&&V.some(e=>e.category),U=a(()=>g===`index`?V:(H?be(V).flatMap(e=>e.books):V).slice(0,S),[H,g,V,S]),W=g===`shelves`&&S<V.length;s(()=>{let e=k.current;if(l||!e||!W)return;let t=new IntersectionObserver(([e])=>{e?.isIntersecting&&c({...o,shown:Math.min(S+12,V.length)})},{rootMargin:`250px 0px`});return t.observe(e),()=>t.disconnect()},[W,c,l,V.length,S,o]),s(()=>{if(g!==`shelves`)return;let e=new Set;j.current=e;let t=new IntersectionObserver(t=>{for(let n of t)n.target instanceof HTMLAnchorElement&&(n.isIntersecting?e.add(n.target):e.delete(n.target))}),n=w.current?.querySelectorAll(`[data-book]`)??[],r=new Set(U.map(e=>e.id));for(let e of n)r.has(e.dataset.book??``)&&t.observe(e);return()=>t.disconnect()},[g,U]);let G=r(()=>Array.from(w.current?.querySelectorAll(`[data-book]`)??[]),[]);m(()=>{(E.current||D.current&&!l)&&(E.current=!1,window.scrollTo(0,b),l||G().find(e=>e.dataset.book===x)?.focus({preventScroll:!0}))},[x,l,G,b]),m(()=>{D.current=!!l},[l]),m(()=>{if(O.current){O.current=!1;return}if(g!==`shelves`||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let e=Array.from(w.current?.querySelectorAll(`[data-book]`)??[]);for(let e of A.current)e.cancel();A.current=[];for(let[t,n]of e.entries()){let e=T.current.get(n.dataset.book??``);if(!e&&(!N||t>=6))continue;let r=n.getBoundingClientRect(),i=e?e.left-r.left:0,a=e?e.top-r.top:32,o=e?Math.max(.6,Math.min(1.2,e.width/r.width)):.82;A.current.push(n.animate([{translate:`${i}px ${a}px`,scale:String(o),opacity:e?1:.48},{translate:`0px 0px`,scale:`1`,opacity:1}],{duration:360,easing:`cubic-bezier(.22,.9,.32,1)`}))}T.current.clear()},[N,g]),m(()=>{if(!d)return;let e=U.find(({id:e})=>e===l),t=G().find(e=>e.dataset.book===l),n=t?.getBoundingClientRect();d(e&&t&&n&&n.bottom>0&&n.top<window.innerHeight?{id:e.id,title:e.title,cover:e.cover,artwork:e.coverImage&&Q(e.coverImage),src:t.querySelector(`img`)?.currentSrc||F(e.id,e.cover).src,rect:n}:null)},[d,l,G,U]);function ee(e){T.current=new Map(g===`shelves`?[...j.current].map(e=>[e.dataset.book??``,e.getBoundingClientRect()]):[]),c({...o,query:e,shown:12}),window.scrollTo(0,0)}function te(e,t){c({...o,category:e,newestFirst:t,shown:12,scroll:0,focus:``}),window.scrollTo(0,0)}function ne(e,t){if(t.defaultPrevented||t.button!==0||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||(c({...o,scroll:window.scrollY,focus:e.id}),matchMedia(`(prefers-reduced-motion: reduce)`).matches))return;t.preventDefault();let n=t.currentTarget;u({id:e.id,title:e.title,cover:e.cover,artwork:e.coverImage&&Q(e.coverImage),src:n.querySelector(`img`)?.currentSrc||F(e.id,e.cover).src,rect:n.getBoundingClientRect()})}let K=new Set(U.slice(0,3).map(({id:e})=>e));function q(e){return p(`div`,{className:`shelf-cell`,children:p(He,{book:e,front:K.has(e.id),opening:l===e.id,onOpen:t=>ne(e,t)})},e.id)}return p(`main`,{className:`library`,ref:w,"data-searching":P,children:[p(`header`,{className:`library-brand brand`,children:[p(ue,{"aria-hidden":!0,size:25}),e.title]}),p(`div`,{className:L?`library-heading library-heading-sticky`:`library-heading`,children:[p(`h1`,{children:t.library}),p(`div`,{className:`library-tools`,children:[(L||z||B)&&p(`search`,{className:`search-region`,children:p(`form`,{className:`shelf-search`,onSubmit:e=>{e.preventDefault(),V.length===1?G()[0]?.click():G()[0]?.focus()},children:[p(ge,{"aria-hidden":!0,size:18}),p(`input`,{ref:C,type:`search`,"aria-label":t.find,placeholder:t.find,value:_,onChange:e=>ee(e.target.value),onKeyDown:e=>{e.key===`ArrowDown`&&(e.preventDefault(),G()[0]?.focus()),e.key===`Escape`&&_&&ee(``)}}),_&&p(`button`,{type:`button`,"aria-label":t.clear,onClick:()=>{ee(``),C.current?.focus()},children:p(ve,{"aria-hidden":!0,size:17})})]})}),p(Be,{text:t}),(L||z||B)&&p(`div`,{className:`segment segment-library`,children:[p(`button`,{type:`button`,"aria-pressed":g===`shelves`,onClick:()=>{c({...o,mode:`shelves`}),window.scrollTo(0,0)},children:t.shelves}),p(`button`,{type:`button`,"aria-pressed":g===`index`,onClick:()=>{c({...o,mode:`index`}),window.scrollTo(0,0)},children:t.index})]})]}),(z||B)&&p(`div`,{className:`catalog-options`,children:[z&&p(`div`,{className:`catalog-option`,children:[p(`select`,{"aria-label":t.category,value:v,onChange:e=>te(e.target.value,y),children:[p(`option`,{value:``,children:t.allCategories}),R.map(e=>p(`option`,{value:e,children:e},e))]}),p(fe,{"aria-hidden":!0,size:16})]}),B&&p(`div`,{className:`catalog-option`,children:[p(`select`,{"aria-label":t.sort,value:y?`newest`:`default`,onChange:e=>te(v,e.target.value===`newest`),children:[p(`option`,{value:`default`,children:t.defaultOrder}),p(`option`,{value:`newest`,children:t.newestFirst})]}),p(fe,{"aria-hidden":!0,size:16})]})]})]}),P&&p(`output`,{className:`book-count`,children:V.length===0?t.zero:t.matches(V.length)}),g===`index`?p(i,{children:[!P&&p(`p`,{className:`book-count index-count`,children:t.count(h.length)}),p(`ul`,{className:`library-index`,children:V.map(e=>p(`li`,{children:p(`a`,{href:$(e.id),"data-book":e.id,onClick:()=>c({...o,scroll:window.scrollY,focus:e.id}),children:[p(`span`,{className:`index-spine`,style:{"--hue":F(e.id,e.cover).hue},"aria-hidden":!0}),p(`span`,{children:e.title}),p(me,{size:20,"aria-hidden":!0})]})},e.id))})]}):p(`div`,{"data-mobile-rows":!H&&h.length>=3&&h.length<=4?`2`:void 0,className:`shelf ${H?`shelf-categorized shelf-many`:`${L?`shelf-many`:``} ${I?`resting-shelf`:``} ${P?`shelf-searching`:``} ${P&&V.length===1?`shelf-one-match`:``}`}`,children:[I&&!H&&(De?p(`div`,{className:`resting-art-slot`,ref:M,"aria-hidden":`true`}):p(`div`,{className:`shelf-art`,"aria-hidden":`true`})),H?be(U).map(e=>{let n=e.category??t.otherBooks;return p(`section`,{className:`category-shelf shelf-grid`,"aria-label":n,children:[p(xe,{category:n}),e.books.map(q)]},e.category??``)}):p(`div`,{className:`shelf-grid`,children:U.map(q)}),W&&p(`div`,{ref:k,className:`more-shelves`,"aria-hidden":!0})]}),!W&&p(ye,{publisher:e.footer})]})}var We={en:{library:`Library`,shelves:`Shelves`,index:`Index`,find:`Find a book`,searchText:`Search text`,searchLibrary:`Search library`,searchBook:`Search this book`,searchQuery:`Search text`,searchLoading:`Loading search…`,searchUnavailable:`Search could not load. Close it and try again.`,searchResults:e=>`${e} ${e===1?`result`:`results`}`,searchMore:`Show more results`,category:`Category`,allCategories:`All categories`,otherBooks:`Other books`,sort:`Sort books`,defaultOrder:`Default order`,newestFirst:`Newest first`,clear:`Clear search`,zero:`No books found`,count:e=>`${e} ${e===1?`book`:`books`}`,matches:e=>`${e} ${e===1?`book`:`books`} found`,contents:`Contents`,scrollableTable:`Horizontally scrollable table`,loadVideo:`Load video`,openVideo:`Open video on its site`,diagram:`Mermaid diagram`,image:`Image`,imageExpand:e=>`Enlarge ${e}`,imagePan:`Image, drag or use arrow keys to pan`,imageFit:`Fit image to viewport`,fit:`Fit`,diagramExpand:`Open enlarged diagram`,diagramPan:`Diagram, drag or use arrow keys to pan`,diagramFit:`Fit diagram to viewport`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,diagramError:`This diagram could not be rendered.`,magic:`Spell mode`,cover:`Cover`,chapterPages:e=>`${e} pages`,previous:`Previous page`,next:`Next page`,close:`Close`,unavailable:`This page could not be opened.`,loading:`Opening…`},ja:{library:`書架`,shelves:`書架`,index:`目録`,find:`本を探す`,searchText:`本文検索`,searchLibrary:`書架を検索`,searchBook:`この本を検索`,searchQuery:`キーワードを入力`,searchLoading:`検索を読み込み中…`,searchUnavailable:`検索を読み込めませんでした。閉じてからもう一度お試しください。`,searchResults:e=>`${e} 件`,searchMore:`もっと表示`,category:`カテゴリ`,allCategories:`すべてのカテゴリ`,otherBooks:`その他の本`,sort:`並び順`,defaultOrder:`既定順`,newestFirst:`公開日が新しい順`,clear:`検索をクリア`,zero:`一致する本がありません`,count:e=>`${e} 冊`,matches:e=>`${e} 冊見つかりました`,contents:`目次`,scrollableTable:`横にスクロールできる表`,loadVideo:`動画を読み込む`,openVideo:`動画サイトで開く`,diagram:`Mermaid 図`,image:`画像`,imageExpand:e=>`${e}を拡大表示`,imagePan:`画像。ドラッグまたは矢印キーで移動`,imageFit:`画像を画面に合わせる`,fit:`全体`,diagramExpand:`図を拡大表示`,diagramPan:`図。ドラッグまたは矢印キーで移動`,diagramFit:`図を画面に合わせる`,zoomIn:`拡大`,zoomOut:`縮小`,diagramError:`図を表示できませんでした。`,magic:`超魔導`,cover:`表紙`,chapterPages:e=>`${e}のページ`,previous:`前のページ`,next:`次のページ`,close:`閉じる`,unavailable:`ページを開けませんでした。`,loading:`読み込み中…`}};function Ge(e){let t=encodeURIComponent(e.id);return e.section?`${t}#${encodeURIComponent(e.section.id)}`:t}function Ke(e,t,n){let r=e.findIndex(e=>e.id===t);if(r<0)return 0;if(n)for(let i=r;i<e.length;i+=1){let r=e[i];if(!r||r.id!==t)break;if(r.section?.id===n||Object.values(r.headingIds??{}).includes(n))return i}return r}var qe=t(()=>Re(async()=>{let{BookReader:e}=await import(`./BookReader-CMVm2j3P.js`);return{BookReader:e}},__vite__mapDeps([3,1]),import.meta.url).then(({BookReader:e})=>({default:e})));async function Je(e,t){let n=await fetch(Q(e),{signal:t});if(n.status===422){let e=await n.json();throw Error(e.error)}if(!n.ok)throw Error(`${e} (${n.status})`);return n.json()}function Ye({library:e,initialBook:t,initialReader:a}){let[o,c]=u(Ae),[l,f]=u(()=>t?new Map([[t.id,t]]):new Map),h=a??qe;m(Ze,[]);let[g,_]=u(``),[v,y]=u(null),[b,x]=u(),S=n(!1),[C,w]=u(null),[T,E]=u(`ready`),[D,O]=u({mode:`shelves`,query:``,category:``,newestFirst:!1,scroll:0,focus:``,shown:12}),k=We[e.locale],A=o.book?e.books.find(e=>e.id===o.book):e.shelf?void 0:e.books[0],j=A?.id,M=j?l.get(j):void 0,N=v&&v.id===j&&g!==j?v:null,P=N?.direction,F=!o.book&&e.shelf,I=N?.direction===`open`?N.origin:b,L=P===`close`?T!==`travel`:T===`hinge`,R=r(()=>{y(null),x(void 0),w(null),E(`ready`),P===`close`?(je(Oe),c(Ae())):S.current=!0},[P]);m(()=>{!N&&S.current&&(S.current=!1,window.scrollTo(0,0),document.querySelector(`.reader`)?.focus({preventScroll:!0}))},[N]);let z=r(e=>{e?x(e):R()},[R]);function B(e){v||(E(`travel`),y({direction:`open`,id:e.id,origin:e}),je($(e.id)),c(Ae()))}function V(e){!j||v||D.mode!==`shelves`||e.button!==0||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||matchMedia(`(prefers-reduced-motion: reduce)`).matches||(e.preventDefault(),E(`ready`),y({direction:`close`,id:j}))}s(()=>{let e=()=>{let e=Ae();y(t=>t?.id===e.book?t:null),c(e)};return window.history.scrollRestoration=`manual`,window.addEventListener(`hashchange`,e),window.addEventListener(`popstate`,e),document.addEventListener(`click`,Me),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`popstate`,e),document.removeEventListener(`click`,Me)}},[]),s(()=>{v&&g===v.id&&y(null),N||(x(void 0),w(null),E(`ready`))},[N,g,v]),s(()=>{if(!j||M)return;let e=new AbortController;return Je(`./books/${encodeURIComponent(j)}.json`,e.signal).then(e=>{f(t=>new Map(t).set(j,e))}).catch(()=>{e.signal.aborted||_(j)}),()=>e.abort()},[M,j]),s(()=>{let t=M?.pages.find(e=>e.id===o.page),n=t?.id===`index`?A?.title:t?.title??A?.title;document.title=n&&n!==e.title?`${n} · ${e.title}`:e.title},[M,e.title,o.page,A]);let H=p(`main`,{className:`status-screen`,"aria-busy":`true`,children:k.loading});return p(i,{children:[(F||N)&&p(`div`,{inert:!!N,children:p(Ue,{library:e,text:k,state:D,onState:O,openingBookId:N?.id,onLocateVolume:P===`close`?z:void 0,onOpenVolume:B})}),N&&p(`div`,{className:`book-transition-backdrop`,"data-paper":L,"aria-hidden":`true`}),!F&&p(`div`,{className:N?`reader-transition-shell`:void 0,"data-direction":P,"data-phase":N?T:void 0,"data-paper":N?L:void 0,inert:!!N,children:!j||g===j?p(`main`,{className:`status-screen`,children:[p(`p`,{children:k.unavailable}),p(`a`,{href:Oe,children:k.library})]}):M?p(d,{fallback:H,children:p(h,{library:e,text:k,book:M,pageId:o.page,anchor:o.anchor,onPaperReady:N?w:void 0,onReturn:V},j)}):H}),N&&I&&p(U,{origin:I,direction:N.direction,paper:C,onStage:E,onDone:R})]})}var Xe=document.getElementById(`root`);function Ze(){let e=Xe;if(!Z||!e)return;let t=document.documentElement,n=[`pointerdown`,`keydown`,`hashchange`,`popstate`,`resize`],r=()=>{delete t.dataset.initialArt,e.hidden=!0;for(let e of n)window.removeEventListener(e,r,!0)};e.inert=!0,e.setAttribute(`aria-hidden`,`true`),t.dataset.initialArt=Z;for(let e of n)window.addEventListener(e,r,{capture:!0,once:!0});return r}var Qe=Xe;if(Qe){let e=Z?document.createElement(`div`):Qe;e!==Qe&&(e.id=`grimoire-app`,Qe.after(e));let t=g(e);async function n(){let e=document.getElementById(`grimoire-initial`)?.textContent,n=e?JSON.parse(e):{library:await Je(`./library.json`)},r=n.book?(await Re(async()=>{let{BookReader:e}=await import(`./BookReader-CMVm2j3P.js`);return{BookReader:e}},__vite__mapDeps([3,1]),import.meta.url)).BookReader:void 0;document.documentElement.lang=n.library.locale,t.render(p(Ye,{library:n.library,initialBook:n.book,initialReader:r}))}n().catch(n=>{e===Qe&&t.render(p(`main`,{className:`status-screen`,role:`alert`,children:n.message}))}),document.querySelector(`meta[name="grimoire-preview"]`)&&new EventSource(Q(`./__grimoire_events`)).addEventListener(`update`,()=>location.reload())}export{F as _,Q as a,je as c,ve as d,ge as f,J as g,ue as h,Re as i,ke as l,fe as m,Ge as n,$ as o,me as p,Be as r,Ee as s,Ke as t,Oe as u,L as v};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SearchDialog-BGpJffal.js","./jsxRuntime-WpZ1bTm4.js","./SearchDialog--R9gfmZJ.css","./BookReader-SE4dJZfI.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as e,a as t,d as n,f as r,g as i,h as a,i as o,l as s,m as c,o as l,p as u,r as d,s as f,t as p,u as m,v as h}from"./jsxRuntime-WpZ1bTm4.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function g(e){return{render:function(t){f(t,e)},unmount:function(){l(e)}}}function _(e,t,n){return h(`picture`,null,t&&h(`source`,{media:`(max-width: 699px)`,srcSet:t}),h(`img`,{className:`volume-render`,src:e,width:600,height:760,alt:``,loading:n,fetchPriority:`low`,decoding:`async`}))}function v({title:e,src:t,compact:n,artwork:r,loading:i,titleRef:a}){let o=h(`span`,{className:`volume-title`,ref:a},e),s=t&&_(t,n,i);return r?h(`span`,{className:`volume-face`},s,t&&h(`span`,{className:`volume-unmarked`,"aria-hidden":!0},_(t,n,i)),h(`span`,{className:`volume-cover-content`},o,h(`img`,{className:`volume-cover-image`,src:r,alt:``,loading:i,decoding:`async`,fetchPriority:`low`}))):h(`span`,{className:`volume-face`},s,o)}var y=2300;function b(e,t,n,r,i){let a=i*Math.PI/180,o=t+n;return Array.from({length:25},(i,s)=>{let c=s/24,l=c*a,u=r*Math.sin(l),d=t+n*Math.cos(l)/(1-u/y),f=Math.max(0,Math.min(1,(c-.35)/.4)),p=Math.max(0,(c-.8)/.2),m=o+(e.right+64-o)*f,h=Math.min(m,d+(e.left-64-d)*p);return{offset:c,clipPath:`inset(-64px ${e.right-m}px -64px ${h-e.left}px)`}})}var x=new URL(`resting-amber-BSjsErIg.avif`,import.meta.url).href,S=new URL(`resting-black-DDQ4XMJI.avif`,import.meta.url).href,C=new URL(`resting-blue-DDOT8IQ8.avif`,import.meta.url).href,w=new URL(`resting-green-DkRrV8eX.avif`,import.meta.url).href,T=new URL(`resting-ivory-CEqoG5yI.avif`,import.meta.url).href,E=new URL(`resting-plum-B-8tkSmP.avif`,import.meta.url).href,D=new URL(`resting-red-D0hLpMpz.avif`,import.meta.url).href,O=new URL(`resting-slate-CH8Z_Rky.avif`,import.meta.url).href,k=new URL(`resting-teal-CGt6jFmT.avif`,import.meta.url).href,A=new URL(`resting-walnut-t3WgHgUO.avif`,import.meta.url).href,j={red:{base:`red`,filter:`brightness(1)`,edge:`#6d2022`,mobile:`none`,hue:`0deg`,dye:``,light:`.22,.064,.060`},green:{base:`green`,filter:`brightness(1)`,edge:`#424624`,mobile:`hue-rotate(66deg) saturate(.62)`,hue:`72deg`,dye:`.57,.83,.25`,light:`.105,.128,.049`},blue:{base:`blue`,filter:`brightness(1)`,edge:`#34314c`,mobile:`hue-rotate(248deg) saturate(.62)`,hue:`235deg`,dye:`.37,.51,.85`,light:`.08,.102,.164`},plum:{base:`red`,filter:`hue-rotate(-47deg) saturate(.79)`,edge:`#572c50`,mobile:`hue-rotate(-47deg) saturate(.79)`,hue:`313deg`,dye:`.71,.31,.67`,light:`.15,.069,.14`},amber:{base:`red`,filter:`hue-rotate(34deg) saturate(.85) brightness(1.28)`,edge:`#8a551e`,mobile:`hue-rotate(34deg) brightness(1.28)`,hue:`34deg`,dye:`1.24,.68,.20`,light:`.27,.17,.055`},teal:{base:`green`,filter:`hue-rotate(63deg) saturate(.86) brightness(1.18)`,edge:`#245452`,mobile:`hue-rotate(152deg) saturate(.65)`,hue:`150deg`,dye:`.26,.81,.75`,light:`.06,.16,.15`},black:{base:`blue`,filter:`grayscale(1) brightness(.82)`,edge:`#252321`,mobile:`grayscale(1) brightness(.68)`,hue:`0deg`,dye:`.38,.37,.36`,light:`.072,.07,.068`},ivory:{base:`red`,filter:`grayscale(1) invert(.86) sepia(.33) brightness(1.05)`,edge:`#d9c5a3`,mobile:`grayscale(1) invert(.86) sepia(.33)`,hue:`32deg`,dye:`3.2,2.7,2.02`,light:`.38,.315,.22`,lettering:`#392518`},walnut:{base:`red`,filter:`hue-rotate(22deg) saturate(.58) brightness(.78)`,edge:`#50301c`,mobile:`hue-rotate(22deg) saturate(.58) brightness(.78)`,hue:`23deg`,dye:`.70,.43,.25`,light:`.15,.09,.048`},slate:{base:`blue`,filter:`grayscale(.66) brightness(1.42)`,edge:`#5e6570`,mobile:`hue-rotate(213deg) saturate(.24) brightness(1.23)`,hue:`220deg`,dye:`.75,.82,.91`,light:`.17,.19,.21`}},M=[`red`,`blue`,`green`];function N(e,t){if(t&&Object.hasOwn(j,t))return t;let n=2166136261;for(let t of e.replace(/^\d+[-_]+/,``))n=Math.imul(n^(t.codePointAt(0)??0),16777619);return M[(n>>>10)%M.length]}var P={red:{src:new URL(new URL(`cover-red-qvZEk3PI.avif`,import.meta.url).href,``+import.meta.url).href,compact:new URL(new URL(`cover-red-mobile-DHOCz3wI.avif`,import.meta.url).href,``+import.meta.url).href,opaqueBounds:[40,29,531,689]},blue:{src:new URL(new URL(`cover-blue-Bh8Xp4T5.avif`,import.meta.url).href,``+import.meta.url).href,compact:new URL(new URL(`cover-blue-mobile-YcuYIg0I.avif`,import.meta.url).href,``+import.meta.url).href,opaqueBounds:[8,4,582,715]},green:{src:new URL(new URL(`cover-green-By13JjUx.avif`,import.meta.url).href,``+import.meta.url).href,compact:new URL(new URL(`cover-green-mobile-BNTgNt7v.avif`,import.meta.url).href,``+import.meta.url).href,opaqueBounds:[49,42,507,637]}};function F(e,t){let n=N(e,t),r=j[n]??j.red,i={"--cover-filter":r.filter,"--cover-lettering":r.lettering,"--cover-title-shadow":r.lettering?`0 1px 1px #fbe9c6b0`:void 0,"--leather-edge":r.edge,"--leather-filter":r.mobile};return{...P[r.base],...r,binding:n,style:i}}var I=Object.assign({"./art/resting-amber.avif":x,"./art/resting-black.avif":S,"./art/resting-blue.avif":C,"./art/resting-green.avif":w,"./art/resting-ivory.avif":T,"./art/resting-plum.avif":E,"./art/resting-red.avif":D,"./art/resting-slate.avif":O,"./art/resting-teal.avif":k,"./art/resting-walnut.avif":A});function L(e){return I[`./art/resting-${e}.avif`]??I[`./art/resting-red.avif`]}var R=`(prefers-reduced-motion: reduce)`,z=410,B=420,V=e=>`translate3d(${e.left}px, ${e.top}px, 0)`;function H(e,t){let n=Math.min(e,t);return`scale(${n/e}, ${n/t})`}function U({origin:e,paper:t,direction:r,onStage:i,onDone:a}){let o=n(null),s=n(null),c=n(null),l=n(null),{rect:u}=e,{binding:d,opaqueBounds:f,style:h}=F(e.id,e.cover),[g,_,x,S]=f,C=g/600*u.width,w=_/760*u.height,T=x/600*u.width,E=S/760*u.height;return m(()=>{let e=o.current,n=s.current,d=c.current,f=l.current,p=t?.parentElement;if(!t||!p||!e||!n||!d||!f)return;let m=matchMedia(R),h=t.getBoundingClientRect();if(m.matches||!e.animate||!u.width||!h.width){a();return}let g=p.dataset.wide===`true`,_=g?h.width/2:h.width,v=g?h.left+_:h.left,y=_/T,x=h.height/E,S=`translate3d(${v-C*y}px, ${h.top-w*x}px, 0) scale(${y}, ${x})`,D=r===`close`,O=[],k=()=>{i(`travel`);let t=[V(u),S],n={duration:z,easing:D?`cubic-bezier(.42,0,.72,.97)`:`cubic-bezier(.24,.76,.28,1)`,fill:`forwards`},r=e.animate((D?t.reverse():t).map(e=>({transform:e})),n),o=Array.from({length:13},(e,t)=>{let n=t/12;return{transform:H(1+(y-1)*n,1+(x-1)*n)}});O.push(r,f.animate(D?o.reverse():o,n)),r.onfinish=D?a:A},A=()=>{i(`hinge`);let e=g?179:152,t={duration:B,direction:D?`reverse`:`normal`,easing:`ease-in-out`,fill:`both`},r=n.animate([{transform:`rotateY(0deg)`},{transform:`rotateY(-${e}deg)`}],t),o=p.animate(b(p.getBoundingClientRect(),v,_,T,e),t),s=d.animate([{opacity:1},{opacity:1,offset:.975},{opacity:0}],t);O.push(r,o,s);let c=p.parentElement?.querySelectorAll(`.reader-header, .reader-pagination`);for(let e of c??[])O.push(e.animate([{opacity:0},{opacity:0,offset:.7},{opacity:1}],t));r.onfinish=D?k:a};return D?(e.style.transform=S,f.style.transform=H(y,x),A()):k(),window.addEventListener(`resize`,a),m.addEventListener(`change`,a),()=>{for(let e of O)e.cancel();window.removeEventListener(`resize`,a),m.removeEventListener(`change`,a)}},[E,C,w,T,r,a,i,t,u]),p(`div`,{className:`book-transition`,"data-direction":r,"data-binding":d,style:h,"aria-hidden":`true`,children:p(`div`,{className:`book-transition-rig`,ref:o,style:{width:u.width,height:u.height,transform:V(u),perspective:y,perspectiveOrigin:`${C}px center`},children:p(`div`,{className:`book-transition-lid`,ref:s,style:{left:C,top:w,width:T,height:E},children:[p(`div`,{className:`book-transition-front`,children:p(`div`,{className:`book-transition-art`,style:{left:-C,top:-w,width:u.width,height:u.height},children:p(v,{title:e.title,src:e.src,artwork:e.artwork,titleRef:l})})}),p(`div`,{className:`book-transition-inside`,ref:c})]})})})}var W=e=>(e.match(/\d+[xX]\d+|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).join(`-`).toLowerCase();function G(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:W(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ee=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},te=e=>{let t=ee(e);return t.charAt(0).toUpperCase()+t.slice(1)},ne=(...e)=>{let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of n.split(/\s+/))e&&t.add(e);return[...t].join(` `)},K={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function q(e){return e!=null}function re(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??K.width,a=e.size??e.height??K.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?ne(...c):ne(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??K[`stroke-width`])*Number(e.size??e.width??K.width)/Number(t.size??t.width??K.width):t.strokeWidth??K[`stroke-width`];return[`svg`,{...Object.entries(K).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&q(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&q(t.width)&&{[r(`width`)]:t.width},...`height`in t&&q(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function ie(e,t={}){return re(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ae=e=>{if(typeof e!=`object`||!e)return!1;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(t.startsWith(`aria-`)||t===`role`||t===`title`)&&e[t]!=null)return!0;return!1},oe=e({}),se=()=>c(oe),ce=o(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=se()??{},b=!!c||ae(d),[x,S,C=[]]=ie(u,{color:e??v,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:ne(y,s),hasA11yProp:b,attributes:d});return h(x,{ref:f,...S},[...C.map(([e,t])=>h(e,t)),...Array.isArray(c)?c:[c]])});function J(e,t=[],n=[]){let r=typeof e==`string`?G(e,t,n):e,i=o(({className:e,...t},n)=>h(ce,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=te(r.name)),i}var le={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};le.node;var ue=J(le),de={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};de.node;var fe=J(de),pe={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};pe.node;var me=J(pe),he={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};he.node;var ge=J(he),_e={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};_e.node;var ve=J(_e);function ye({publisher:e}){let t=e?h(e.url?`a`:`span`,{className:`library-publisher`,href:e.url},e.label):null;return h(`footer`,{className:`library-footer`},t,h(`a`,{href:`https://github.com/kkm-horikawa/grimoire3d`},`Grimoire3D`))}function be(e){let t=new Map,n=[];for(let r of e){if(!r.category){n.push(r);continue}let e=t.get(r.category)??[];e.push(r),t.set(r.category,e)}let r=[...t].map(([e,t])=>({category:e,books:t}));return n.length&&r.push({books:n}),r}function xe({category:e}){return h(`div`,{className:`shelf-label-rail`},h(`h2`,{className:`shelf-plate`},e))}function Se(e,t){return`read/${[e,...t?.split(`/`)??[]].map(encodeURIComponent).join(`/`)}/`}function Ce(e){let[t,n]=e.slice(1).split(`?`,2);try{let[,e,r]=(t??``).split(`/`);return{book:e?decodeURIComponent(e):void 0,page:r?decodeURIComponent(r):void 0,anchor:new URLSearchParams(n).get(`anchor`)}}catch{return{book:void 0,page:void 0,anchor:null}}}var Y=document.querySelector(`meta[name="grimoire-static"]`)?.content,X=new URL(Y||`./`,location.href),we=document.querySelector(`[data-initial-book]`),Te=document.querySelector(`[data-initial-shelf]`),Z=!location.hash.startsWith(`#/`)&&matchMedia(`(max-width: 699px)`).matches&&(we||Te)?we?`paper`:`shelf`:void 0,Ee=Z?null:we,De=Z?null:Te,Oe=Y?X.href:`#/`;function Q(e){return new URL(e,X).href}function $(e,t,n){if(Y)return Q(Se(e,t))+(n?`#${encodeURIComponent(n)}`:``);let r=`#/${encodeURIComponent(e)}`;if(t===void 0)return r;let i=`${r}/${encodeURIComponent(t)}`;return n?`${i}?anchor=${encodeURIComponent(n)}`:i}function ke(e){if(e.startsWith(`#/`)){let{book:t,page:n,anchor:r}=Ce(e);return t?$(t,n,r??void 0):Oe}return e.startsWith(`./`)?Q(e):e}function Ae(){if(!Y||location.hash.startsWith(`#/`))return Ce(location.hash);try{let[e,t,...n]=location.pathname.slice(X.pathname.length).replace(/(?:\/)?index\.html$/i,``).replace(/\/$/,``).split(`/`);return{book:e===`read`&&t?decodeURIComponent(t):void 0,page:n.length?n.map(decodeURIComponent).join(`/`):void 0,anchor:location.hash?decodeURIComponent(location.hash.slice(1)):null}}catch{return{book:void 0,page:void 0,anchor:null}}}function je(e){new URL(e,location.href).href!==location.href&&(Y?(history.pushState(null,``,e),window.dispatchEvent(new PopStateEvent(`popstate`))):location.hash=e)}function Me(e){if(!Y||e.button!==0||e.defaultPrevented||e.metaKey||e.altKey||e.shiftKey||e.ctrlKey||!(e.target instanceof Element))return;let t=e.target.closest(`a[href]`);if(!t||t.download||t.target&&t.target!==`_self`)return;let n=new URL(t.href);if(n.origin!==X.origin||!n.pathname.startsWith(X.pathname))return;let r=n.pathname.slice(X.pathname.length);(!r||r.startsWith(`read/`))&&(e.preventDefault(),je(n.href))}var Ne=`modulepreload`,Pe=function(e,t){return new URL(e,t).href},Fe={},Ie=function(e){return e.pathname.endsWith(`.css`)},Le=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Re=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Pe(t,n);let r=s(t),i=Ie(r);return Le(Fe,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Ne,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ze=t(()=>Re(()=>import(`./SearchDialog-BGpJffal.js`),__vite__mapDeps([0,1,2]),import.meta.url));function Be({text:e,book:t,disabled:r}){let[a,o]=u(!1),s=n(null),c=t?e.searchBook:e.searchText;return p(i,{children:[p(`button`,{className:`text-search-button${t?` reader-search-button`:``}`,type:`button`,"aria-label":c,"aria-haspopup":`dialog`,ref:s,disabled:r,onClick:()=>o(!0),children:[p(ge,{size:18,"aria-hidden":!0}),p(`span`,{children:c})]}),a&&p(d,{fallback:null,children:p(ze,{text:e,book:t,onClose:()=>{o(!1),s.current?.focus()}})})]})}function Ve(e){return e.normalize(`NFKC`).toLowerCase().trim()}function He({book:e,onOpen:t,front:n=!1,opening:r}){let i=F(e.id,e.cover);return p(`a`,{className:`volume`,href:$(e.id),"data-book":e.id,"data-cover":i.binding,style:i.style,"data-opening":r||void 0,"aria-label":e.title,title:e.title,onClick:t,children:p(v,{title:e.title,src:i.src,compact:i.compact,artwork:e.coverImage&&Q(e.coverImage),loading:n?`eager`:`lazy`})})}function Ue({library:e,text:t,state:o,onState:c,openingBookId:l,onOpenVolume:u,onLocateVolume:d}){let{locale:f,books:h}=e,{mode:g,query:_,category:v,newestFirst:y,scroll:b,focus:x,shown:S}=o,C=n(null),w=n(null),T=n(new Map),E=n(!0),D=n(!1),O=n(!!d),k=n(null),A=n([]),j=n(new Set),M=n(null),N=Ve(_),P=!!(N||v),I=g===`shelves`&&!P;m(()=>{let e=M.current,t=De;if(I&&e&&t)return e.append(t),()=>t.remove()},[I]);let L=h.length>6,R=a(()=>{let e=h.flatMap(e=>e.category?[e.category]:[]);return[...new Set(e)].sort((e,t)=>e.localeCompare(t,f))},[h,f]),z=R.length>0,B=h.some(e=>e.date),V=a(()=>{let e=P?h.filter(e=>(!v||e.category===v)&&(!N||Ve(e.title).includes(N)||Ve(e.id).includes(N))):h;return y?[...e].sort((e,t)=>(t.date??``).localeCompare(e.date??``,`en`)||e.title.localeCompare(t.title,f,{numeric:!0})||e.id.localeCompare(t.id,f)):g===`index`?[...e].sort((e,t)=>e.title.localeCompare(t.title,f,{numeric:!0})):e},[h,v,P,f,N,g,y]),H=g===`shelves`&&V.some(e=>e.category),U=a(()=>g===`index`?V:(H?be(V).flatMap(e=>e.books):V).slice(0,S),[H,g,V,S]),W=g===`shelves`&&S<V.length;s(()=>{let e=k.current;if(l||!e||!W)return;let t=new IntersectionObserver(([e])=>{e?.isIntersecting&&c({...o,shown:Math.min(S+12,V.length)})},{rootMargin:`250px 0px`});return t.observe(e),()=>t.disconnect()},[W,c,l,V.length,S,o]),s(()=>{if(g!==`shelves`)return;let e=new Set;j.current=e;let t=new IntersectionObserver(t=>{for(let n of t)n.target instanceof HTMLAnchorElement&&(n.isIntersecting?e.add(n.target):e.delete(n.target))}),n=w.current?.querySelectorAll(`[data-book]`)??[],r=new Set(U.map(e=>e.id));for(let e of n)r.has(e.dataset.book??``)&&t.observe(e);return()=>t.disconnect()},[g,U]);let G=r(()=>Array.from(w.current?.querySelectorAll(`[data-book]`)??[]),[]);m(()=>{(E.current||D.current&&!l)&&(E.current=!1,window.scrollTo(0,b),l||G().find(e=>e.dataset.book===x)?.focus({preventScroll:!0}))},[x,l,G,b]),m(()=>{D.current=!!l},[l]),m(()=>{if(O.current){O.current=!1;return}if(g!==`shelves`||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let e=Array.from(w.current?.querySelectorAll(`[data-book]`)??[]);for(let e of A.current)e.cancel();A.current=[];for(let[t,n]of e.entries()){let e=T.current.get(n.dataset.book??``);if(!e&&(!N||t>=6))continue;let r=n.getBoundingClientRect(),i=e?e.left-r.left:0,a=e?e.top-r.top:32,o=e?Math.max(.6,Math.min(1.2,e.width/r.width)):.82;A.current.push(n.animate([{translate:`${i}px ${a}px`,scale:String(o),opacity:e?1:.48},{translate:`0px 0px`,scale:`1`,opacity:1}],{duration:360,easing:`cubic-bezier(.22,.9,.32,1)`}))}T.current.clear()},[N,g]),m(()=>{if(!d)return;let e=U.find(({id:e})=>e===l),t=G().find(e=>e.dataset.book===l),n=t?.getBoundingClientRect();d(e&&t&&n&&n.bottom>0&&n.top<window.innerHeight?{id:e.id,title:e.title,cover:e.cover,artwork:e.coverImage&&Q(e.coverImage),src:t.querySelector(`img`)?.currentSrc||F(e.id,e.cover).src,rect:n}:null)},[d,l,G,U]);function ee(e){T.current=new Map(g===`shelves`?[...j.current].map(e=>[e.dataset.book??``,e.getBoundingClientRect()]):[]),c({...o,query:e,shown:12}),window.scrollTo(0,0)}function te(e,t){c({...o,category:e,newestFirst:t,shown:12,scroll:0,focus:``}),window.scrollTo(0,0)}function ne(e,t){if(t.defaultPrevented||t.button!==0||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||(c({...o,scroll:window.scrollY,focus:e.id}),matchMedia(`(prefers-reduced-motion: reduce)`).matches))return;t.preventDefault();let n=t.currentTarget;u({id:e.id,title:e.title,cover:e.cover,artwork:e.coverImage&&Q(e.coverImage),src:n.querySelector(`img`)?.currentSrc||F(e.id,e.cover).src,rect:n.getBoundingClientRect()})}let K=new Set(U.slice(0,3).map(({id:e})=>e));function q(e){return p(`div`,{className:`shelf-cell`,children:p(He,{book:e,front:K.has(e.id),opening:l===e.id,onOpen:t=>ne(e,t)})},e.id)}return p(`main`,{className:`library`,ref:w,"data-searching":P,children:[p(`header`,{className:`library-brand brand`,children:[p(ue,{"aria-hidden":!0,size:25}),e.title]}),p(`div`,{className:L?`library-heading library-heading-sticky`:`library-heading`,children:[p(`h1`,{children:t.library}),p(`div`,{className:`library-tools`,children:[(L||z||B)&&p(`search`,{className:`search-region`,children:p(`form`,{className:`shelf-search`,onSubmit:e=>{e.preventDefault(),V.length===1?G()[0]?.click():G()[0]?.focus()},children:[p(ge,{"aria-hidden":!0,size:18}),p(`input`,{ref:C,type:`search`,"aria-label":t.find,placeholder:t.find,value:_,onChange:e=>ee(e.target.value),onKeyDown:e=>{e.key===`ArrowDown`&&(e.preventDefault(),G()[0]?.focus()),e.key===`Escape`&&_&&ee(``)}}),_&&p(`button`,{type:`button`,"aria-label":t.clear,onClick:()=>{ee(``),C.current?.focus()},children:p(ve,{"aria-hidden":!0,size:17})})]})}),p(Be,{text:t}),(L||z||B)&&p(`div`,{className:`segment segment-library`,children:[p(`button`,{type:`button`,"aria-pressed":g===`shelves`,onClick:()=>{c({...o,mode:`shelves`}),window.scrollTo(0,0)},children:t.shelves}),p(`button`,{type:`button`,"aria-pressed":g===`index`,onClick:()=>{c({...o,mode:`index`}),window.scrollTo(0,0)},children:t.index})]})]}),(z||B)&&p(`div`,{className:`catalog-options`,children:[z&&p(`div`,{className:`catalog-option`,children:[p(`select`,{"aria-label":t.category,value:v,onChange:e=>te(e.target.value,y),children:[p(`option`,{value:``,children:t.allCategories}),R.map(e=>p(`option`,{value:e,children:e},e))]}),p(fe,{"aria-hidden":!0,size:16})]}),B&&p(`div`,{className:`catalog-option`,children:[p(`select`,{"aria-label":t.sort,value:y?`newest`:`default`,onChange:e=>te(v,e.target.value===`newest`),children:[p(`option`,{value:`default`,children:t.defaultOrder}),p(`option`,{value:`newest`,children:t.newestFirst})]}),p(fe,{"aria-hidden":!0,size:16})]})]})]}),P&&p(`output`,{className:`book-count`,children:V.length===0?t.zero:t.matches(V.length)}),g===`index`?p(i,{children:[!P&&p(`p`,{className:`book-count index-count`,children:t.count(h.length)}),p(`ul`,{className:`library-index`,children:V.map(e=>p(`li`,{children:p(`a`,{href:$(e.id),"data-book":e.id,onClick:()=>c({...o,scroll:window.scrollY,focus:e.id}),children:[p(`span`,{className:`index-spine`,style:{"--hue":F(e.id,e.cover).hue},"aria-hidden":!0}),p(`span`,{children:e.title}),p(me,{size:20,"aria-hidden":!0})]})},e.id))})]}):p(`div`,{"data-mobile-rows":!H&&h.length>=3&&h.length<=4?`2`:void 0,className:`shelf ${H?`shelf-categorized shelf-many`:`${L?`shelf-many`:``} ${I?`resting-shelf`:``} ${P?`shelf-searching`:``} ${P&&V.length===1?`shelf-one-match`:``}`}`,children:[I&&!H&&(De?p(`div`,{className:`resting-art-slot`,ref:M,"aria-hidden":`true`}):p(`div`,{className:`shelf-art`,"aria-hidden":`true`})),H?be(U).map(e=>{let n=e.category??t.otherBooks;return p(`section`,{className:`category-shelf shelf-grid`,"aria-label":n,children:[p(xe,{category:n}),e.books.map(q)]},e.category??``)}):p(`div`,{className:`shelf-grid`,children:U.map(q)}),W&&p(`div`,{ref:k,className:`more-shelves`,"aria-hidden":!0})]}),!W&&p(ye,{publisher:e.footer})]})}var We={en:{library:`Library`,shelves:`Shelves`,index:`Index`,find:`Find a book`,searchText:`Search text`,searchLibrary:`Search library`,searchBook:`Search this book`,searchQuery:`Search text`,searchLoading:`Loading search…`,searchUnavailable:`Search could not load. Close it and try again.`,searchResults:e=>`${e} ${e===1?`result`:`results`}`,searchMore:`Show more results`,category:`Category`,allCategories:`All categories`,otherBooks:`Other books`,sort:`Sort books`,defaultOrder:`Default order`,newestFirst:`Newest first`,clear:`Clear search`,zero:`No books found`,count:e=>`${e} ${e===1?`book`:`books`}`,matches:e=>`${e} ${e===1?`book`:`books`} found`,contents:`Contents`,scrollableTable:`Horizontally scrollable table`,loadVideo:`Load video`,openVideo:`Open video on its site`,diagram:`Mermaid diagram`,image:`Image`,imageExpand:e=>`Enlarge ${e}`,imagePan:`Image, drag or use arrow keys to pan`,imageFit:`Fit image to viewport`,fit:`Fit`,diagramExpand:`Open enlarged diagram`,diagramPan:`Diagram, drag or use arrow keys to pan`,diagramFit:`Fit diagram to viewport`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,diagramError:`This diagram could not be rendered.`,magic:`Spell mode`,cover:`Cover`,chapterPages:e=>`${e} pages`,previous:`Previous page`,next:`Next page`,close:`Close`,unavailable:`This page could not be opened.`,loading:`Opening…`},ja:{library:`書架`,shelves:`書架`,index:`目録`,find:`本を探す`,searchText:`本文検索`,searchLibrary:`書架を検索`,searchBook:`この本を検索`,searchQuery:`キーワードを入力`,searchLoading:`検索を読み込み中…`,searchUnavailable:`検索を読み込めませんでした。閉じてからもう一度お試しください。`,searchResults:e=>`${e} 件`,searchMore:`もっと表示`,category:`カテゴリ`,allCategories:`すべてのカテゴリ`,otherBooks:`その他の本`,sort:`並び順`,defaultOrder:`既定順`,newestFirst:`公開日が新しい順`,clear:`検索をクリア`,zero:`一致する本がありません`,count:e=>`${e} 冊`,matches:e=>`${e} 冊見つかりました`,contents:`目次`,scrollableTable:`横にスクロールできる表`,loadVideo:`動画を読み込む`,openVideo:`動画サイトで開く`,diagram:`Mermaid 図`,image:`画像`,imageExpand:e=>`${e}を拡大表示`,imagePan:`画像。ドラッグまたは矢印キーで移動`,imageFit:`画像を画面に合わせる`,fit:`全体`,diagramExpand:`図を拡大表示`,diagramPan:`図。ドラッグまたは矢印キーで移動`,diagramFit:`図を画面に合わせる`,zoomIn:`拡大`,zoomOut:`縮小`,diagramError:`図を表示できませんでした。`,magic:`超魔導`,cover:`表紙`,chapterPages:e=>`${e}のページ`,previous:`前のページ`,next:`次のページ`,close:`閉じる`,unavailable:`ページを開けませんでした。`,loading:`読み込み中…`}};function Ge(e){let t=encodeURIComponent(e.id);return e.section?`${t}#${encodeURIComponent(e.section.id)}`:t}function Ke(e,t,n){let r=e.findIndex(e=>e.id===t);if(r<0)return 0;if(n)for(let i=r;i<e.length;i+=1){let r=e[i];if(!r||r.id!==t)break;if(r.section?.id===n||Object.values(r.headingIds??{}).includes(n))return i}return r}var qe=t(()=>Re(async()=>{let{BookReader:e}=await import(`./BookReader-SE4dJZfI.js`);return{BookReader:e}},__vite__mapDeps([3,1]),import.meta.url).then(({BookReader:e})=>({default:e})));async function Je(e,t){let n=await fetch(Q(e),{signal:t});if(n.status===422){let e=await n.json();throw Error(e.error)}if(!n.ok)throw Error(`${e} (${n.status})`);return n.json()}function Ye({library:e,initialBook:t,initialReader:a}){let[o,c]=u(Ae),[l,f]=u(()=>t?new Map([[t.id,t]]):new Map),h=a??qe;m(Ze,[]);let[g,_]=u(``),[v,y]=u(null),[b,x]=u(),S=n(!1),[C,w]=u(null),[T,E]=u(`ready`),[D,O]=u({mode:`shelves`,query:``,category:``,newestFirst:!1,scroll:0,focus:``,shown:12}),k=We[e.locale],A=o.book?e.books.find(e=>e.id===o.book):e.shelf?void 0:e.books[0],j=A?.id,M=j?l.get(j):void 0,N=v&&v.id===j&&g!==j?v:null,P=N?.direction,F=!o.book&&e.shelf,I=N?.direction===`open`?N.origin:b,L=P===`close`?T!==`travel`:T===`hinge`,R=r(()=>{y(null),x(void 0),w(null),E(`ready`),P===`close`?(je(Oe),c(Ae())):S.current=!0},[P]);m(()=>{!N&&S.current&&(S.current=!1,window.scrollTo(0,0),document.querySelector(`.reader`)?.focus({preventScroll:!0}))},[N]);let z=r(e=>{e?x(e):R()},[R]);function B(e){v||(E(`travel`),y({direction:`open`,id:e.id,origin:e}),je($(e.id)),c(Ae()))}function V(e){!j||v||D.mode!==`shelves`||e.button!==0||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||matchMedia(`(prefers-reduced-motion: reduce)`).matches||(e.preventDefault(),E(`ready`),y({direction:`close`,id:j}))}s(()=>{let e=()=>{let e=Ae();y(t=>t?.id===e.book?t:null),c(e)};return window.history.scrollRestoration=`manual`,window.addEventListener(`hashchange`,e),window.addEventListener(`popstate`,e),document.addEventListener(`click`,Me),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`popstate`,e),document.removeEventListener(`click`,Me)}},[]),s(()=>{v&&g===v.id&&y(null),N||(x(void 0),w(null),E(`ready`))},[N,g,v]),s(()=>{if(!j||M)return;let e=new AbortController;return Je(`./books/${encodeURIComponent(j)}.json`,e.signal).then(e=>{f(t=>new Map(t).set(j,e))}).catch(()=>{e.signal.aborted||_(j)}),()=>e.abort()},[M,j]),s(()=>{let t=M?.pages.find(e=>e.id===o.page),n=t?.id===`index`?A?.title:t?.title??A?.title;document.title=n&&n!==e.title?`${n} · ${e.title}`:e.title},[M,e.title,o.page,A]);let H=p(`main`,{className:`status-screen`,"aria-busy":`true`,children:k.loading});return p(i,{children:[(F||N)&&p(`div`,{inert:!!N,children:p(Ue,{library:e,text:k,state:D,onState:O,openingBookId:N?.id,onLocateVolume:P===`close`?z:void 0,onOpenVolume:B})}),N&&p(`div`,{className:`book-transition-backdrop`,"data-paper":L,"aria-hidden":`true`}),!F&&p(`div`,{className:N?`reader-transition-shell`:void 0,"data-direction":P,"data-phase":N?T:void 0,"data-paper":N?L:void 0,inert:!!N,children:!j||g===j?p(`main`,{className:`status-screen`,children:[p(`p`,{children:k.unavailable}),p(`a`,{href:Oe,children:k.library})]}):M?p(d,{fallback:H,children:p(h,{library:e,text:k,book:M,pageId:o.page,anchor:o.anchor,onPaperReady:N?w:void 0,onReturn:V},j)}):H}),N&&I&&p(U,{origin:I,direction:N.direction,paper:C,onStage:E,onDone:R})]})}var Xe=document.getElementById(`root`);function Ze(){let e=Xe;if(!Z||!e)return;let t=document.documentElement,n=[`pointerdown`,`keydown`,`hashchange`,`popstate`,`resize`],r=()=>{delete t.dataset.initialArt,e.hidden=!0;for(let e of n)window.removeEventListener(e,r,!0)};e.inert=!0,e.setAttribute(`aria-hidden`,`true`),t.dataset.initialArt=Z;for(let e of n)window.addEventListener(e,r,{capture:!0,once:!0});return r}var Qe=Xe;if(Qe){let e=Z?document.createElement(`div`):Qe;e!==Qe&&(e.id=`grimoire-app`,Qe.after(e));let t=g(e);async function n(){let e=document.getElementById(`grimoire-initial`)?.textContent,n=e?JSON.parse(e):{library:await Je(`./library.json`)},r=n.book?(await Re(async()=>{let{BookReader:e}=await import(`./BookReader-SE4dJZfI.js`);return{BookReader:e}},__vite__mapDeps([3,1]),import.meta.url)).BookReader:void 0;document.documentElement.lang=n.library.locale,t.render(p(Ye,{library:n.library,initialBook:n.book,initialReader:r}))}n().catch(n=>{e===Qe&&t.render(p(`main`,{className:`status-screen`,role:`alert`,children:n.message}))}),document.querySelector(`meta[name="grimoire-preview"]`)&&new EventSource(Q(`./__grimoire_events`)).addEventListener(`update`,()=>location.reload())}export{F as _,Q as a,je as c,ve as d,ge as f,J as g,ue as h,Re as i,ke as l,fe as m,Ge as n,$ as o,me as p,Be as r,Ee as s,Ke as t,Oe as u,L as v};
|